/* ============================================================
   BRAND TOKENS — Davids Dental Studios, sampled from the logo.
   Shared by every page (homepage + all treatment pages).
   ============================================================ */
:root {
  --color-bg:            #f6f8fc;   /* cool near-white to sit with the blue brand */
  --color-surface:       #ffffff;
  --color-primary:       #3a2ea6;   /* royal indigo — dark sections, CTA fill, hero accent */
  --color-primary-mid:   #4839c9;   /* logo royal blue — links, icons, accents */
  --color-primary-light: #d9e1f8;   /* light indigo tint — placeholder blocks, dividers */
  --color-accent:        #362a99;   /* deep indigo — eyebrows/labels (holds 4.5:1 on light bg) */
  --color-text-dark:     #1a1a1a;   /* headings + footer stay black */
  --color-text-body:     #444444;
  --color-text-muted:    #6b6b6b;
  --color-banner-bg:     #4839c9;   /* royal blue announcement bar */
  --color-cta-primary:   #3a2ea6;   /* royal indigo CTA fill */
  --color-cta-secondary: transparent;

  /* Brand accent colors (blue + yellow + sky, from the logo arcs).
     Gold & sky are decorative only — both fail 4.5:1 as text on white. */
  --color-sky:           #5cb2e0;
  --color-gold:          #f6ce49;

  /* Derived */
  --color-hairline:      #e6ebf2;
  --star-gold:           #f4c430;

  /* Type (swappable) */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  /* Z-index scale (no magic numbers) */
  --z-banner: 90;
  --z-nav: 100;
  --z-dropdown: 110;
  --z-overlay: 200;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-text-dark); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Accessible focus ring */
:focus-visible { outline: 3px solid var(--color-primary-mid); outline-offset: 3px; border-radius: 4px; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0 1.9rem;
  border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  will-change: transform;
}
.btn-primary { background: var(--color-cta-primary); color: #fff; box-shadow: 0 6px 18px -8px rgba(0,76,76,.6); }
.btn-primary:hover { background: var(--color-accent); box-shadow: 0 12px 26px -10px rgba(0,76,76,.65); transform: translateY(-2px); }
.btn-outline { background: var(--color-cta-secondary); color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--color-primary); box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.btn-white:hover { background: var(--color-bg); transform: translateY(-2px); }
.btn-gold { background: var(--color-gold); color: var(--color-text-dark); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.btn-gold:hover { background: #ffd95e; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(0,0,0,.4); }

/* ---- Placeholder image block ---- */
.ph {
  position: relative;
  aspect-ratio: var(--ph-ar, 16/10);
  width: 100%;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, rgba(0,76,76,.03) 0 14px, transparent 14px 28px),
    color-mix(in srgb, var(--color-primary-light) 45%, #fff);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 30%, transparent);
  display: grid; place-content: center; place-items: center;
  gap: .7rem; padding: 1.25rem; text-align: center;
  color: var(--color-accent);
  overflow: hidden;
}
.ph svg { width: 40px; height: 40px; opacity: .55; }
.ph .ph-label {
  font-family: var(--font-body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
  color: var(--color-accent); max-width: 22ch;
}
.ph-icon { width: 40px; height: 40px; opacity: .55; }

/* ============================================================
   1. ANNOUNCEMENT BANNER
   ============================================================ */
.banner {
  position: relative; z-index: var(--z-banner);
  background: var(--color-banner-bg); color: #fff;
  overflow: hidden; text-align: center;
}
.banner-track { display: flex; width: max-content; }
.banner-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem 2.5rem; white-space: nowrap;
  font-size: .86rem; font-weight: 500; letter-spacing: .01em;
}
.banner svg { width: 15px; height: 15px; fill: var(--color-gold); flex: none; opacity: .95; }
.banner span { text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .banner-track { animation: marquee 9s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-track { width: 100%; justify-content: center; }
  .banner-item[aria-hidden] { display: none; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   2. NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: clamp(10px, 1.6vw, 18px); z-index: var(--z-nav);
  margin-top: clamp(8px, 1.2vw, 14px);
  padding-inline: var(--gutter);
}
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--container); margin-inline: auto;
  padding: .5rem .65rem .5rem 1rem;
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border: 1px solid var(--color-hairline);
  border-radius: 100px;
  box-shadow: 0 10px 30px -16px rgba(26,26,46,.4);
  transition: box-shadow .25s ease, padding .25s ease, background-color .25s ease;
}
.nav.scrolled .nav-inner {
  padding-top: .38rem; padding-bottom: .38rem;
  background: color-mix(in srgb, var(--color-surface) 97%, transparent);
  box-shadow: 0 16px 36px -14px rgba(26,26,46,.45);
}

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--color-primary-mid), var(--color-sky));
  color: #fff; display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s ease;
}
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; transition: transform .25s ease; }
.nav.scrolled .brand-logo { transform: scale(.86); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--color-text-dark); }
.brand-text small { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav-links > a { font-weight: 500; font-size: .95rem; color: var(--color-text-dark); position: relative; padding: .35rem 0; }
.nav-links > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--color-primary-mid); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links > a:hover::after, .nav-links > a:focus-visible::after { transform: scaleX(1); }

/* ---- Treatments dropdown (desktop: hover/click panel; mobile: inline expand) ---- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 500; font-size: .95rem; color: var(--color-text-dark);
  padding: .35rem 0;
}
.nav-drop-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .2s ease; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  z-index: var(--z-dropdown);
  width: min(560px, 82vw);
  background: var(--color-surface); border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md); padding: .9rem;
  box-shadow: 0 30px 60px -24px rgba(26,26,46,.35);
  display: grid; grid-template-columns: 1fr 1fr; gap: .15rem;
  transform-origin: top center;
  transform: translate(-50%, -8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s cubic-bezier(.23,1,.32,1), transform .2s cubic-bezier(.23,1,.32,1), visibility 0s linear .2s;
}
.nav-drop.open .nav-drop-panel {
  transform: translate(-50%, 0);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .2s cubic-bezier(.23,1,.32,1), transform .2s cubic-bezier(.23,1,.32,1), visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .nav-drop-panel, .nav-drop.open .nav-drop-panel { transform: translate(-50%, 0) !important; }
}
.nav-drop-panel a {
  display: block; padding: .55rem .7rem; border-radius: 10px;
  font-size: .9rem; color: var(--color-text-body);
  transition: background-color .15s ease, color .15s ease;
}
.nav-drop-panel a:hover, .nav-drop-panel a:focus-visible { background: var(--color-bg); color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-cta .btn { min-height: 46px; padding: 0 1.35rem; }
.nav-book .lbl-short { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; color: var(--color-primary); }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Mobile nav-drop: plain expanding sublist inside the open panel */
.nav-drop-mobile-list { display: none; flex-direction: column; gap: .15rem; padding: .3rem 0 .3rem 1rem; }
.nav-drop-mobile-list a { font-size: .88rem; color: var(--color-text-body); padding: .4rem 0; }

/* Anchor-link targets (#treatments, #about, #contact) sit under the sticky
   nav's footprint (clamp(10px,1.6vw,18px) offset + ~60px pill height) —
   without this, tapping "View Treatments" / "About" / "Contact" lands the
   heading half-hidden behind the floating nav. */
#treatments, #about, #contact { scroll-margin-top: 96px; }

/* ============================================================
   3. HOMEPAGE HERO (full-bleed background video — index.html only)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: flex; align-items: center; min-height: clamp(560px, 85vh, 860px); position: relative; z-index: 2; }
.hero-copy { width: min(100%, 620px); padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero-copy .eyebrow { color: var(--color-gold); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 800; margin-bottom: 1.35rem; color: #fff; }
.hero h1 .accent { color: var(--color-sky); font-style: italic; }
.hero-lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.88); max-width: 46ch; margin-bottom: 2rem; }
.hero-copy .eyebrow, .hero h1, .hero-lede { text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: #fff; color: var(--color-primary); border-color: #fff; }

/* Full-bleed video layer. Desaturation is a filter on the element itself,
   not a re-encoded file — one number to tune, not a re-export. */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) contrast(1.05) brightness(.85);
}
.hero-scrim {
  position: absolute; inset: 0;
  /* darkest/most indigo where the text sits (left), lighter toward the right
     so the video still reads through where nothing needs to stay legible */
  background: linear-gradient(100deg, rgba(58,46,166,.75) 0%, rgba(20,18,36,.6) 55%, rgba(20,18,36,.4) 100%);
}

.g-badge {
  position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: clamp(1rem, 3vw, 2rem);
  background: var(--color-surface); border-radius: var(--pill);
  box-shadow: 0 20px 45px -18px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem;
  max-width: calc(100% - 2rem);
}
.g-badge .g-label { font-weight: 700; font-size: .78rem; letter-spacing: .04em; color: var(--color-text-dark); }
.g-stars { display: inline-flex; gap: 1px; }
.g-stars svg { width: 15px; height: 15px; fill: var(--star-gold); }
.g-count { font-size: .78rem; color: var(--color-text-muted); white-space: nowrap; }
.g-word { font-family: var(--font-body); font-weight: 600; font-size: .92rem; letter-spacing: -.02em; }
.g-word b { font-weight: 700; }

/* ============================================================
   3b. TREATMENT PAGE HERO (simple split hero — every treatments/*.html)
   ============================================================ */
.t-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.t-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 600; color: var(--color-text-muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem); transition: color .18s ease;
}
.t-back:hover { color: var(--color-primary); }
.t-back svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.t-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.t-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); margin-bottom: 1.1rem; }
.t-hero-lede { font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 48ch; margin-bottom: 1.9rem; }
.t-hero-media .ph { --ph-ar: 4/5; box-shadow: 0 36px 64px -40px rgba(58,46,166,.4); }

/* ============================================================
   4. STATS BAR
   ============================================================ */
.stats { background: var(--color-primary); color: #fff; border-top: 3px solid var(--color-gold); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(1.6rem, 4vw, 2.6rem) 1.5rem; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.18); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; margin-bottom: .5rem; }
.stat .lbl { font-size: .9rem; color: rgba(255,255,255,.78); letter-spacing: .02em; }

/* ============================================================
   5. TREATMENTS CAROUSEL
   ============================================================ */
.treatments { padding: var(--section-y) 0; }
.tr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.tr-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.tr-arrows { display: flex; gap: .6rem; flex: none; }
.tr-arrow {
  width: 52px; height: 52px; border-radius: var(--pill);
  background: var(--color-surface); border: 1px solid var(--color-hairline);
  display: grid; place-content: center; color: var(--color-primary);
  transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}
.tr-arrow svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.tr-arrow:hover { background: var(--color-primary); color: #fff; }
.tr-arrow:disabled { opacity: .35; cursor: not-allowed; }

.tr-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: .5rem;
  scrollbar-width: none;
}
.tr-track::-webkit-scrollbar { display: none; }
.tr-card {
  scroll-snap-align: start;
  background: color-mix(in srgb, var(--color-primary-light) 22%, #fff);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tr-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(0,76,76,.4); }
.tr-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tr-card h3 { font-size: 1.28rem; font-weight: 700; }
.tr-card-desc { font-size: .84rem; color: var(--color-text-body); max-width: 20ch; text-align: right; }
.tr-card .ph { --ph-ar: 5/4; margin-top: auto; }

/* ============================================================
   6. TRUST LOGOS
   ============================================================ */
.trust { padding: clamp(2rem, 4vw, 3rem) 0; }
.trust p.eyebrow { text-align: center; color: var(--color-text-muted); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.trust-logo {
  width: clamp(96px, 14vw, 150px); height: 46px; border-radius: 8px;
  background: color-mix(in srgb, var(--color-text-muted) 14%, transparent);
  display: grid; place-content: center;
  color: var(--color-text-muted); font-weight: 600; font-size: .68rem; letter-spacing: .12em;
}

/* ============================================================
   7. WHY CHOOSE US (split section — homepage + treatment "why us")
   ============================================================ */
.why { padding: var(--section-y) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.4rem; }
.why p { color: var(--color-text-body); max-width: 48ch; margin-bottom: 2rem; }
.why-media .ph { --ph-ar: 4/5; box-shadow: 0 40px 70px -45px rgba(0,76,76,.5); }
/* Treatment pages reuse .why as a centered, text-only "why us for X" block */
.why-solo { max-width: 62ch; }
.why-solo p { max-width: 62ch; }

/* ============================================================
   7b. TREATMENT PAGE: WHAT IS IT (alternating split)
   ============================================================ */
.t-split { padding: var(--section-y) 0; }
.t-split:nth-of-type(even) { background: var(--color-surface); }
.t-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.t-split-grid.reverse .t-split-copy { order: 2; }
.t-split-grid.reverse .t-split-media { order: 1; }
.t-split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.1rem; }
.t-split p { max-width: 52ch; }
.t-split-media .ph { --ph-ar: 4/3; }

/* ============================================================
   7c. TREATMENT PAGE: BENEFITS STRIP
   ============================================================ */
.benefits { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.benefit-card {
  background: var(--color-surface); border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md); padding: 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.benefit-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: grid; place-content: center; flex: none;
}
.benefit-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.benefit-card strong { font-size: 1.02rem; color: var(--color-text-dark); }
.benefit-card span { font-size: .88rem; color: var(--color-text-body); }

/* ============================================================
   7d. TREATMENT PAGE: PROCESS / JOURNEY STEPS
   ============================================================ */
.process { background: var(--color-primary); color: #fff; padding: var(--section-y) 0; }
.process .eyebrow { color: rgba(255,255,255,.75); }
.process h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.process-steps { display: flex; flex-direction: column; gap: 1.4rem; max-width: 640px; }
.process-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.process-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  display: grid; place-content: center; font-family: var(--font-display); font-weight: 700;
}
.process-step strong { display: block; font-size: 1.15rem; margin-bottom: .3rem; }
.process-step p { color: rgba(255,255,255,.78); font-size: .92rem; max-width: 50ch; }

/* ============================================================
   7e. TREATMENT PAGE: FAQ ACCORDION (native <details>, no JS needed)
   ============================================================ */
.faq { padding: var(--section-y) 0; }
.faq h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 780px; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm); padding: 0 1.3rem;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; color: var(--color-text-dark); font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-item summary .faq-plus::before, .faq-item summary .faq-plus::after {
  content: ""; position: absolute; background: var(--color-primary); border-radius: 2px;
  transition: transform .2s ease;
}
.faq-item summary .faq-plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-item summary .faq-plus::after { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.faq-item[open] summary .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item .faq-a { padding: 0 0 1.2rem; color: var(--color-text-body); font-size: .94rem; max-width: 68ch; }
/* Animated open/close. Modern-CSS progressive enhancement — unsupported
   browsers (no ::details-content/interpolate-size) keep today's exact
   instant native behavior, no regression either way. */
.faq-item { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    height: 0; overflow: hidden;
    transition: height .3s cubic-bezier(.23,1,.32,1), content-visibility .3s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
.faq-item .faq-a a { color: var(--color-primary-mid); font-weight: 600; }

/* ============================================================
   7f. BEFORE & AFTER — comparison slider (native, no library).
   Drag/tap/keyboard moves --pos; a single custom property drives
   both the clip-path and the divider position via CSS inheritance,
   so JS only ever writes one value per pointer move.
   ============================================================ */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.compare-figure { display: flex; flex-direction: column; gap: .9rem; }
.compare {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(58,46,166,.4);
  cursor: ew-resize; touch-action: none; user-select: none;
}
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-after .ph, .compare-before .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: none; }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); z-index: 2;
}
.compare-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: var(--pill);
  background: var(--color-primary); color: #fff;
  display: grid; place-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); border: 3px solid #fff;
  transition: transform .15s ease;
}
.compare-handle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.compare.dragging .compare-handle { transform: translate(-50%, -50%) scale(1.1); }
.compare-label {
  position: absolute; top: 1rem; z-index: 3;
  padding: .4rem .9rem; border-radius: var(--pill);
  background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.compare-label-before { left: 1rem; }
.compare-label-after { right: 1rem; }
.compare-figure figcaption { font-size: .92rem; font-weight: 600; color: var(--color-text-dark); text-align: center; }

/* ============================================================
   8. TESTIMONIALS
   ============================================================ */
.reviews { background: #fff; padding: var(--section-y) 0; }
.reviews-head { text-align: center; max-width: 52ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.reviews-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .8rem; }
.reviews-head p { color: var(--color-text-body); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.review-card {
  background: var(--color-bg); border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md); padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem;
}
.review-card .g-stars svg { width: 17px; height: 17px; }
.review-card .r-text { color: var(--color-text-body); font-size: .95rem; flex: 1; }
.review-foot { display: flex; align-items: center; justify-content: space-between; }
.review-foot .r-name { font-weight: 600; color: var(--color-text-dark); font-size: .92rem; }
.g-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px -2px rgba(0,0,0,.25); display: grid; place-content: center; }
.g-dot svg { width: 13px; height: 13px; }

/* ============================================================
   9. FINAL CTA
   ============================================================ */
.final { background: var(--color-primary); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.final h2 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin-bottom: 1rem; }
.final p { color: rgba(255,255,255,.82); max-width: 44ch; margin: 0 auto 2.2rem; font-size: 1.05rem; }

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer { background: var(--color-text-dark); color: rgba(255,255,255,.7); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.footer .brand-mark { background: linear-gradient(150deg, var(--color-sky), var(--color-primary-mid)); }
.footer-about p { margin: 1.1rem 0 1.3rem; font-size: .9rem; max-width: 34ch; }
.footer-socials { display: flex; gap: .6rem; }
.footer-socials a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-content: center; color: #fff; transition: background-color .2s ease; }
.footer-socials a:hover { background: var(--color-primary-mid); }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { font-size: .92rem; transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
/* Treatments is the only footer list long enough (13 items) to dominate
   the whole row's height under grid's default stretch — let it wrap into
   2 columns wherever there's room, instead of one tall single column.
   nth-child(2), not :first-of-type: .footer-about is also a <div> and
   comes first, so :first-of-type would (and did) match nothing. */
.footer-col:nth-child(2) ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  column-gap: 1.1rem; row-gap: .55rem;
}
.footer-contact address { font-style: normal; font-size: .92rem; display: flex; flex-direction: column; gap: .65rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: 1.5rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ============================================================
   ENTRANCE MOTION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > :nth-child(1) { animation-delay: .02s; }
  .hero-copy > :nth-child(2) { animation-delay: .10s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .26s; }
  .hero-media { animation: fade-in .9s ease .1s both; }
  .t-hero-copy > * { animation: rise .6s cubic-bezier(.16,1,.3,1) both; }
  .t-hero-copy > :nth-child(1) { animation-delay: .02s; }
  .t-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .t-hero-copy > :nth-child(3) { animation-delay: .14s; }
  .t-hero-copy > :nth-child(4) { animation-delay: .2s; }
  .t-hero-media { animation: fade-in .7s ease .12s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   SCROLL REVEAL — shared IntersectionObserver-driven entrance.
   Hidden-state is scoped behind html.js so content stays fully
   visible if JS never runs (no "shipped blank" risk). Fires once
   per element; unobserved after triggering (see site.js).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--delay, 0ms);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }

  html.js .reveal-clip {
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--delay, 0ms);
  }
  html.js .reveal-clip.is-in { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   TREATMENT HERO — word-stagger headline (page-load, not scroll)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .t-hero h1 .word {
    display: inline-block;
    animation: rise .5s cubic-bezier(.16,1,.3,1) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}

/* ============================================================
   BLUR-UP IMAGE LOAD — ready for real photos; inert until an
   <img class="blur-up"> exists (all treatment images are still
   placeholders, so this currently has nothing to attach to).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  img.blur-up { filter: blur(8px); transition: filter .5s ease-out; }
  img.blur-up.is-loaded { filter: blur(0); }
}

/* ============================================================
   CROSS-DOCUMENT VIEW TRANSITIONS — native browser crossfade
   between page navigations. Pure progressive enhancement:
   unsupported browsers ignore these rules and navigate normally.
   ============================================================ */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- Press feedback (every button, every page) ---- */
.btn:active { transform: scale(.97); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-media { max-width: 460px; margin-inline: auto; }
  .hero-inner { min-height: clamp(460px, 70vh, 640px); }
  .t-hero-grid { grid-template-columns: 1fr; }
  .t-hero-media { max-width: 460px; margin-inline: auto; order: -1; }
  .t-split-grid { grid-template-columns: 1fr; }
  .t-split-grid.reverse .t-split-copy, .t-split-grid.reverse .t-split-media { order: unset; }
  .t-split-media { max-width: 460px; margin-inline: auto; }
  .tr-track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .compare-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }

  .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--color-surface); padding: 1.25rem 1.4rem;
    border: 1px solid var(--color-hairline); border-radius: 20px;
    box-shadow: 0 24px 44px -20px rgba(26,26,46,.35);
    max-height: calc(100vh - 140px); overflow-y: auto;
    transform-origin: top center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    z-index: var(--z-overlay);
    transition: opacity .22s cubic-bezier(.23,1,.32,1), transform .22s cubic-bezier(.23,1,.32,1), visibility 0s linear .22s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
    transition: opacity .22s cubic-bezier(.23,1,.32,1), transform .22s cubic-bezier(.23,1,.32,1), visibility 0s linear 0s;
  }
  /* Scrim behind the open mobile menu — without it the panel visually
     collides with whatever page content sits underneath it (no dimming,
     no separation). Pure CSS via :has(); if unsupported the menu still
     works, it just won't dim the page. */
  body:has(.nav-links.open)::after {
    content: ""; position: fixed; inset: 0;
    background: rgba(20, 18, 36, .45);
    z-index: var(--z-dropdown);
    animation: nav-scrim-in .22s ease both;
  }
  @keyframes nav-scrim-in { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .nav-links, .nav-links.open { transform: translateY(0) !important; }
  }
  .nav-links.open > a { padding: .55rem 0; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: .55rem 0; }
  .nav-drop-panel { display: none !important; } /* desktop hover panel replaced by inline list on mobile */
  .nav-drop.open .nav-drop-mobile-list { display: flex; }
  .nav-book .lbl-full { display: none; }
  .nav-book .lbl-short { display: inline; }
  .nav .brand-text small { display: none; }
  .nav .brand-text strong { font-size: .78rem; }
  .nav .brand-logo { width: 42px; height: 42px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  /* Keep the 3-up row (the divider ::before from the base rule still
     applies) instead of stacking — just shrink it to fit. */
  .stat { padding: 1.1rem .35rem; }
  .stat .num { font-size: 1.3rem; margin-bottom: .3rem; }
  .stat .lbl { font-size: .62rem; line-height: 1.3; }
  .tr-track { grid-auto-columns: 82%; }
  .tr-head { flex-direction: column; align-items: flex-start; }
  /* At full-card-width mobile, the desktop title-left/description-right
     row squeezes both into cramped, wrapping ~140px columns. Stack them
     full-width instead. */
  .tr-card-top { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .tr-card-desc { max-width: none; text-align: left; }
  /* Reviews: same horizontal scroll-snap carousel treatment as the
     treatments track above, instead of the auto-fit grid stacking to
     one column. Swipe-only (no arrows) — this is a mobile-only pattern. */
  .reviews-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review-card { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-steps { gap: 1.1rem; }

  .hero-inner { min-height: clamp(420px, 82vh, 560px); }
  .hero .eyebrow { font-size: .66rem; margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(1.3rem, 6.6vw, 2rem); margin-bottom: .7rem; }
  .hero-lede { font-size: .8rem; line-height: 1.5; margin-bottom: 1rem; max-width: 20rem; }
  .hero-actions { flex-direction: column; gap: .55rem; align-items: flex-start; }
  .hero-actions .btn { min-height: 44px; padding: 0 1.1rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
