/* ==========================================================================
   Brite Smiles Dental — "Violet" theme (inverted palette)
   Load after style.css and add class="theme-violet" to <body>.
   Light surfaces become deep violet; violet bands become white.
   ========================================================================== */

.theme-violet {
  --ivory: #2a1747;
  --ink: #f4effb;
  --muted: rgba(244, 239, 251, .72);
  --violet-ink: #ffffff;
  --accent-text: #d6c6f3;
  --line: rgba(255, 255, 255, .16);
  --grad-text: linear-gradient(100deg, #f1eafc 0%, #bfa5ea 55%, #f1eafc 100%);
  --grad-band: linear-gradient(140deg, #feffff 0%, #f6f1fd 55%, #ebe2f8 100%);
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .07) 100%);
  --glass-border: rgba(255, 255, 255, .2);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 16px 32px -22px rgba(8, 2, 20, .55);
  --page-bg:
    radial-gradient(70% 45% at 100% 0%, rgba(185, 164, 220, .38) 0%, rgba(185, 164, 220, 0) 70%),
    radial-gradient(60% 40% at 0% 45%, rgba(254, 255, 255, .10) 0%, rgba(254, 255, 255, 0) 70%),
    radial-gradient(70% 45% at 100% 100%, rgba(185, 164, 220, .28) 0%, rgba(185, 164, 220, 0) 70%),
    linear-gradient(180deg, #4a2a7c 0%, #3a1f63 25%, #2a1747 55%, #3a1f63 80%, #24133f 100%);
  color-scheme: dark;
}
.theme-violet body, body.theme-violet { color: var(--ink); }
body.theme-violet::before { background: #4a2a7c; }
.theme-violet .aurora span { opacity: .45; }
.theme-violet .aurora span:nth-child(1) { background: #8a6cc0; }
.theme-violet .aurora span:nth-child(2) { background: #5d3895; }
.theme-violet .aurora span:nth-child(3) { background: #7a55b3; }
.theme-violet :focus-visible { outline-color: #e6dbf7; }

/* Text accents that used the brand violet now need a light tint */
.theme-violet .eyebrow,
.theme-violet .link-arrow,
.theme-violet .script,
.theme-violet .hero-trust strong,
.theme-violet .exp strong,
.theme-violet .doctor-copy h2 small,
.theme-violet .service-card .tag,
.theme-violet .step small,
.theme-violet .protocol ol li::before,
.theme-violet .member .role,
.theme-violet .contact-tile .arrow,
.theme-violet .form-note .icon,
.theme-violet .field label .req,
.theme-violet .btn-ghost .icon { color: var(--accent-text); }
.theme-violet .quote-line { border-left-color: var(--accent-text); }
.theme-violet .service-card .tag { background: rgba(255, 255, 255, .1); }
.theme-violet .glass::before { opacity: .08; }
.theme-violet .ico-chip { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 16px -8px rgba(0, 0, 0, .5); }
.theme-violet .hero-ring { border-color: rgba(255, 255, 255, .22); }
.theme-violet .member.lead-doc { background: linear-gradient(160deg, rgba(185, 164, 220, .3), rgba(255, 255, 255, .06)); }
.theme-violet .brand img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)); }

/* ---------- Buttons: white becomes the primary ---------- */
.theme-violet .btn { --btn-bg: #feffff; color: #5d3895; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
.theme-violet .btn:hover { box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .6); }
.theme-violet .btn-wa { --btn-bg: linear-gradient(180deg, #25b25e 0%, #1fa855 60%, #1a9a4d 100%); color: #fff; }
.theme-violet .btn-ghost { --btn-bg: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.theme-violet .btn-light { --btn-bg: linear-gradient(180deg, #6a43a6 0%, #5d3895 60%, #52317f 100%); color: #fff; }

/* ---------- Top bar & footer: white ---------- */
.theme-violet .topbar { background: #feffff; color: #5d3895; }
.theme-violet .topbar a:hover { color: #2a1747; }
.theme-violet .footer { background: #feffff; color: #615a6e; }
.theme-violet .footer::before { background: radial-gradient(circle, rgba(185, 164, 220, .45), transparent 70%); }
.theme-violet .footer h4 { color: #2a1747; }
.theme-violet .footer a:hover { color: #5d3895; }
.theme-violet .footer .socials a { background: rgba(93, 56, 149, .08); border-color: rgba(93, 56, 149, .16); color: #5d3895; }
.theme-violet .footer .socials a:hover { background: #5d3895; color: #fff; }
.theme-violet .footer-bottom { border-top-color: rgba(93, 56, 149, .14); }

/* ---------- Header, menus ---------- */
.theme-violet .nav > li > a:hover, .theme-violet .nav > li > button:hover, .theme-violet .nav > li > a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.theme-violet .dropdown { background: rgba(42, 23, 71, .95); }
.theme-violet .dropdown a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.theme-violet .call-chip small { color: var(--muted); }
.theme-violet .menu-toggle { background: rgba(255, 255, 255, .12); color: #fff; }
.theme-violet .drawer-panel { background: linear-gradient(160deg, rgba(74, 42, 124, .98), rgba(36, 19, 63, .98)); }
.theme-violet .drawer details a { color: var(--muted); }
.theme-violet .mobile-bar { background: linear-gradient(180deg, rgba(58, 31, 99, .82), rgba(36, 19, 63, .95)); border-top-color: rgba(255, 255, 255, .16); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .5); }

/* ---------- Form ---------- */
.theme-violet .field input, .theme-violet .field select, .theme-violet .field textarea { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; box-shadow: none; }
.theme-violet .field ::placeholder { color: rgba(255, 255, 255, .5); }
.theme-violet .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-violet .field option { color: #241a33; background: #fff; }
.theme-violet .field input:focus, .theme-violet .field select:focus, .theme-violet .field textarea:focus { border-color: #d6c6f3; box-shadow: 0 0 0 4px rgba(214, 198, 243, .2); }
.theme-violet .field .err { color: #ffb3ba; }
.theme-violet .slots label { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.theme-violet .slots input:checked + label { background: #feffff; color: #5d3895; }

/* ---------- FAQ & map ---------- */
.theme-violet .faq-item summary .plus { background: rgba(255, 255, 255, .12); color: #fff; }
.theme-violet .faq-item[open] summary .plus { background: #feffff; color: #5d3895; }
.theme-violet .map-box { border-color: rgba(255, 255, 255, .2); background: #3a1f63; }
.theme-violet .map-fallback { background: radial-gradient(circle at 50% 40%, #5d3895, #2a1747); }

/* ---------- Bands: violet becomes white ---------- */
.theme-violet .band,
.theme-violet .review.feature,
.theme-violet .marquee {
  --ink: #241a33;
  --muted: #615a6e;
  --violet-ink: #2a1747;
  --accent-text: #5d3895;
  --line: rgba(93, 56, 149, .14);
  color: var(--ink);
}
.theme-violet .band::before { background:
  radial-gradient(50% 80% at 90% 10%, rgba(185, 164, 220, .35), transparent 70%),
  radial-gradient(40% 60% at 10% 100%, rgba(93, 56, 149, .08), transparent 70%); }
.theme-violet .band { box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.theme-violet .band-bleed { box-shadow: none; }
.theme-violet .cred-chips li { background: rgba(255, 255, 255, .08); }
.theme-violet .cred-chips .icon, .theme-violet .service-card .go, .theme-violet .hero-tag { color: var(--accent-text); }
.theme-violet .marquee { color: #5d3895; }
.theme-violet .marquee-track span::after { color: #b9a4dc; }
.theme-violet .band h2, .theme-violet .band h3 { color: #2a1747; }
.theme-violet .band .glass-dark { background: linear-gradient(150deg, rgba(93, 56, 149, .08), rgba(93, 56, 149, .03)); border-color: rgba(93, 56, 149, .14); box-shadow: 0 1px 0 #fff inset, 0 18px 36px -24px rgba(58, 31, 99, .35); }
.theme-violet .band .ico-chip { box-shadow: 0 8px 16px -8px rgba(63, 34, 104, .6); }
.theme-violet .stat strong sup { color: #8a6cc0; }
.theme-violet .stat strong { color: #5d3895; }
.theme-violet .stat > span,
.theme-violet .makeover-copy p,
.theme-violet .makeover-steps span,
.theme-violet .reels-head p,
.theme-violet .intl p,
.theme-violet .intl-points span,
.theme-violet .cta-band p { color: #615a6e; }
.theme-violet .makeover-copy .eyebrow,
.theme-violet .reels-head .eyebrow,
.theme-violet .intl .eyebrow,
.theme-violet .check-list .icon,
.theme-violet .makeover-steps b { color: #5d3895; }
.theme-violet .makeover-steps strong,
.theme-violet .intl-points strong,
.theme-violet .reel-meta strong, .theme-violet .reel-title { color: #2a1747; }
.theme-violet .reel-meta a { color: #5d3895; }
.theme-violet .reel-meta a:hover { color: #2a1747; }
.theme-violet .round-btn { border-color: rgba(93, 56, 149, .25); background: rgba(93, 56, 149, .06); color: #5d3895; }
.theme-violet .round-btn:hover { background: rgba(93, 56, 149, .14); }
.theme-violet .reel-play .pill { background: rgba(42, 23, 71, .45); border-color: rgba(255, 255, 255, .4); }
.theme-violet .review.feature { border-color: rgba(255, 255, 255, .9); }
.theme-violet .review.feature blockquote { color: #2a1747; }
.theme-violet .review.feature .who strong { color: #2a1747; }
.theme-violet .review.feature .who span:not(.init) { color: #615a6e; }
.theme-violet .review.feature .who .init { background: var(--grad-brand); }

/* Sticky header stays readable over light photos */
.theme-violet .site-header .nav-shell { background: linear-gradient(145deg, rgba(58, 31, 99, .82), rgba(42, 23, 71, .78)); }

/* ---------- White sections on inner pages ---------- */
.theme-violet .sec-light {
  --ink: #241a33;
  --muted: #615a6e;
  --violet-ink: #2a1747;
  --accent-text: #5d3895;
  --line: rgba(93, 56, 149, .14);
  --grad-text: linear-gradient(100deg, #5d3895 0%, #8f6bc9 60%, #5d3895 100%);
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(250, 247, 254, .8));
  --glass-border: rgba(93, 56, 149, .12);
  --glass-shadow: 0 1px 0 #fff inset, 0 16px 32px -22px rgba(58, 31, 99, .25), 0 2px 8px -4px rgba(58, 31, 99, .08);
  background: linear-gradient(180deg, #feffff 0%, #f7f3fd 100%);
  color: var(--ink);
}
.theme-violet .sec-light .glass::before { opacity: .4; }
.theme-violet .sec-light .btn { --btn-bg: linear-gradient(180deg, #6a43a6 0%, #5d3895 60%, #52317f 100%); color: #fff; box-shadow: 0 10px 22px -12px rgba(63, 34, 104, .55); }
.theme-violet .sec-light .btn-wa { --btn-bg: linear-gradient(180deg, #25b25e 0%, #1fa855 60%, #1a9a4d 100%); }
.theme-violet .sec-light .btn-ghost { --btn-bg: transparent; color: #5d3895; border: 1px solid rgba(93, 56, 149, .3); }
.theme-violet .sec-light .ico-chip { box-shadow: 0 8px 16px -8px rgba(63, 34, 104, .55); }
.theme-violet .sec-light .member.lead-doc { background: linear-gradient(160deg, rgba(93, 56, 149, .1), rgba(255, 255, 255, .9)); }
.theme-violet .profile-copy h2 small,
.theme-violet .cred-list .icon { color: var(--accent-text); }
.theme-violet .profile-media .inset,
.theme-violet .ph-media .main { border-color: rgba(255, 255, 255, .25); }

/* Treatment pages */
.theme-violet .hero-points .icon, .theme-violet .tag-num { color: var(--accent-text); }
.theme-violet .sec-light .compare .yes { color: #15803d; }
.theme-violet .sec-light { --ivory: #feffff; }
/* Reel captions: white on purple, dark only inside white bands */
.theme-violet .reel-title { color: #fff; }
.theme-violet .band .reel-title, .theme-violet .sec-light .reel-title { color: #2a1747; }
.theme-violet .tech-card p { color: var(--muted); }
.theme-violet .visit-note .icon { color: var(--accent-text); }
.theme-violet .social-card .go { color: var(--accent-text); }
.theme-violet .open-status { color: #fff; }

/* Form fields inside white sections */
.theme-violet .sec-light .field input, .theme-violet .sec-light .field select, .theme-violet .sec-light .field textarea { background-color: #fff; border-color: rgba(93, 56, 149, .22); color: #241a33; box-shadow: 0 1px 2px rgba(58, 31, 99, .06) inset; }
.theme-violet .sec-light .field ::placeholder { color: #8a8296; }
.theme-violet .sec-light .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d3895' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-violet .sec-light .field input:focus, .theme-violet .sec-light .field select:focus, .theme-violet .sec-light .field textarea:focus { border-color: #5d3895; box-shadow: 0 0 0 4px rgba(93, 56, 149, .14); }
.theme-violet .sec-light .field .err { color: #b3323d; }
.theme-violet .sec-light .slots label { background: #fff; border-color: rgba(93, 56, 149, .22); color: #241a33; }
.theme-violet .sec-light .slots input:checked + label { background: linear-gradient(180deg, #6a43a6, #52317f); color: #fff; border-color: transparent; }
.theme-violet .sec-light .field input[type="date"] { color-scheme: light; }

/* White sections on the homepage */
.theme-violet .sec-light .cred-chips li { background: rgba(93, 56, 149, .07); border-color: rgba(93, 56, 149, .14); color: #2a1747; }
.theme-violet .sec-light .review.feature { background: linear-gradient(150deg, #6a43a6 0%, #5d3895 45%, #3f2268 100%); border-color: transparent; }
.theme-violet .sec-light .review.feature blockquote,
.theme-violet .sec-light .review.feature .who strong { color: #fff; }
.theme-violet .sec-light .review.feature .who span:not(.init) { color: rgba(255, 255, 255, .75); }
.theme-violet .sec-light .review.feature .who .init { background: rgba(255, 255, 255, .2); }
.theme-violet .sec-light .doctor-media .exp strong { color: #5d3895; }
.theme-violet .desk-note .icon { color: var(--accent-text); }
.theme-violet .qr-card .link-arrow { color: var(--accent-text); }
/* Gradient headline words inside white bands need the dark violet gradient */
.theme-violet .band .grad-text { background-image: linear-gradient(100deg, #5d3895 0%, #8f6bc9 60%, #5d3895 100%); }
.theme-violet .band .provider-actions .link-arrow { color: #5d3895; }
/* Booking form: red outline on fields with an error */
.theme-violet .field.invalid input:not([type="radio"]), .theme-violet .field.invalid select,
.theme-violet .sec-light .field.invalid input:not([type="radio"]), .theme-violet .sec-light .field.invalid select { border-color: #c2414b; box-shadow: 0 0 0 4px rgba(194, 65, 75, .12); }
.theme-violet .field.invalid .slots label { border-color: #c2414b; }
