/* CLAVA Health — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Serif:opsz,wght@8..144,300;8..144,400;8..144,500;8..144,600;8..144,700&display=swap');

:root {
  /* CLAVA Health brand palette */
  --forest: #1d2e2e;       /* darkest green — body text, dark sections */
  --sage:   #2e4749;       /* mid green — accents, hovers */
  --stone:  #5a6b6c;       /* cool grey — secondary body text */
  --lime:   #f5ff9b;       /* bright accent — Book Now */
  --sand:   #d0c5b7;       /* beige — borders */
  --cream:  #f3ede2;       /* off-white — surfaces */
  --linen:  #f9f4ed;       /* lightest — page backgrounds */
  --black:  #000000;
  --error:  #b0483a;       /* error/warning states */

  --serif: "Roboto Serif", "Roboto", sans-serif;
  --sans: "Roboto", sans-serif;

  --container: 1280px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Overscroll + the area behind iOS Safari's collapsing chrome paint the ROOT
   background — forest, so the page edges never show as a gray block. */
html { background: var(--forest); }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--forest);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.05; font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; font-weight: 500; }
h4 { font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; color: var(--forest); }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: inherit; text-decoration: none; }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; text-align: center; font-weight: 600; transition: all .35s cubic-bezier(.2,.7,.2,1); cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: none; }
.btn-primary:hover { background: var(--sage); border-color: var(--sage); box-shadow: none; }
.btn-outline { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: none; }
.btn-outline:hover { background: var(--sage); border-color: var(--sage); color: var(--cream); box-shadow: none; transform: none; }
.btn-light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-light:hover { background: var(--lime); color: var(--forest); border-color: var(--lime); transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Nav — fixed; logo+menu always visible, dark bar fades in on scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(180deg, rgba(15,28,28,.92) 0%, rgba(15,28,28,.7) 40%, rgba(15,28,28,.35) 75%, rgba(15,28,28,0) 100%); pointer-events: none; z-index: 0; opacity: 1; transition: opacity .35s ease; }
.nav.scrolled::after, body[data-nav="solid"] .nav::after { opacity: 0; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(15,28,28,.65); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); opacity: 0; transition: opacity .4s ease; pointer-events: none; border-bottom: 1px solid rgba(246,251,202,.1); }
.nav.scrolled::before { opacity: 1; }
body[data-nav="solid"] .nav::before { opacity: 1; }
.nav-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: var(--container); margin: 0 auto; gap: 32px; }
.nav-logo { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.18em; color: var(--cream); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.nav-logo span { color: var(--lime); }
.nav-logo img, .nav-logo-link img, .nav-inner > a > img { filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,.35)); }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: 'Roboto Serif', Georgia, serif; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.nav-links a { color: var(--cream); position: relative; padding: 6px 0; transition: color .2s ease; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.55); }
.nav-links a:hover { color: var(--lime); }
.nav-links > a:hover::after,
.nav-links > .has-dropdown > a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
.nav-links > a.active:not(.nav-cta),
.nav-links > .has-dropdown > a.active { color: var(--lime); }
.nav-links > a.active:not(.nav-cta)::after,
.nav-links > .has-dropdown > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.nav-links a.nav-cta { background: var(--lime); color: var(--forest); padding: 12px 22px; border-radius: 999px; transition: background .25s ease, transform .25s ease, color .2s ease; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; text-shadow: none; box-shadow: 0 6px 20px -6px rgba(0,0,0,.35); }
.nav-links a.nav-cta:hover { background: var(--sage); color: var(--cream); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Ask Clava — sage-light text link to mark it as the AI-native entry point */
.nav-links a.nav-ask { color: var(--lime); }
.nav-links a.nav-ask:hover { color: var(--lime); }
.nav-links a.nav-ask.active { color: var(--lime); }
.nav-links a.nav-ask.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); box-shadow: 0 1px 6px rgba(0,0,0,.45); }

/* Desktop + Tablet (>900px): true-center the .nav-mid group between logo and the right-side actions.
   3-column grid on .nav-inner; .nav-links uses display:contents so .nav-mid (col 2) and .nav-right (col 3)
   participate in the grid directly. */
@media (min-width: 901px) {
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .nav-inner > a:first-child { justify-self: start; grid-column: 1; }
  .nav-links { display: contents; }
  .nav-mid { display: flex; align-items: center; gap: 28px; justify-self: center; grid-column: 2; }
  .nav-mid > a, .nav-mid > .has-dropdown > a { white-space: nowrap; }
  .nav-right { display: flex; align-items: center; gap: 28px; justify-self: end; grid-column: 3; }
  .nav-right > a { white-space: nowrap; }
}


/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.has-dropdown > a::after { content: none !important; }
.has-dropdown > a .chev { display: inline-block; transition: transform .25s ease; font-size: 0.7em; }
.has-dropdown.open > a .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 320px; background: rgba(15,28,28,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246,251,202,.12); border-radius: 6px; padding: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.has-dropdown.open .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 12px 16px; font-family: 'Roboto Serif', Georgia, serif; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 400; border-radius: 4px; color: var(--cream); }
.dropdown a:hover { background: rgba(246,251,202,.08); color: var(--lime); }
.dropdown a.active { color: var(--lime); background: rgba(246,251,202,.06); }
.dropdown a::after { display: none !important; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 0; position: relative; width: 34px; height: 34px; }
.nav-toggle span { display: block; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: var(--cream); margin: 0; transform: translate(-50%, -50%); transition: transform .3s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile-only: quick Book Now lozenge to the left of the burger */
.nav-mobile-actions { display: none; align-items: center; gap: 10px; }
.nav-mobile-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--forest); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 10px 16px; min-height: 38px; border-radius: 999px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 10px rgba(0,0,0,.25); transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-mobile-cta:hover, .nav-mobile-cta:focus-visible { background: var(--sage); color: var(--cream); }

/* Page transitions */
html { background: var(--cream); }
body { background: var(--cream); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform, opacity; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Stagger children inside a grid that itself reveals */
.grid-2.reveal > *, .grid-3.reveal > *, .grid-4.reveal > * { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.grid-2.reveal.visible > *, .grid-3.reveal.visible > *, .grid-4.reveal.visible > * { opacity: 1; transform: translateY(0); }
.grid-2.reveal.visible > *:nth-child(2) { transition-delay: .12s; }
.grid-3.reveal.visible > *:nth-child(2) { transition-delay: .1s; }
.grid-3.reveal.visible > *:nth-child(3) { transition-delay: .2s; }
.grid-4.reveal.visible > *:nth-child(2) { transition-delay: .08s; }
.grid-4.reveal.visible > *:nth-child(3) { transition-delay: .16s; }
.grid-4.reveal.visible > *:nth-child(4) { transition-delay: .24s; }
/* Parallax — gentle vertical drift on media */
.parallax { will-change: transform; transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible, .reveal > *, .parallax { transition: none !important; transform: none !important; }
}

/* Sections */
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-cream { background: var(--cream); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest h1, .section-forest h2, .section-forest h3, .section-forest h4 { color: var(--cream); }
.section-forest .eyebrow { color: var(--lime); }
.section-forest .step { border-top-color: rgba(244,237,225,.14); }
.section-forest .step:last-child { border-bottom-color: rgba(244,237,225,.14); }
.section-forest .step .step-num { color: var(--lime); }
.section-forest .step h3 { color: var(--cream); }
.section-forest .step p { color: rgba(244,237,225,.75); }
.section-sage { background: var(--sage); color: var(--cream); }
.section-sage h1, .section-sage h2, .section-sage h3, .section-sage h4 { color: var(--cream); }
.section-sage .eyebrow { color: var(--lime); }
.section-sage p { color: rgba(244,237,225,.82); }
.founder-dark .pill { background: rgba(244,237,225,.06); border-color: rgba(244,237,225,.22); color: var(--cream); }
.what-we-test-dark .card { background: rgba(255,255,255,.04); border-color: rgba(244,237,225,.18); }
.what-we-test-dark .card:hover { border-color: var(--lime); box-shadow: 0 24px 50px -30px rgba(0,0,0,.5); }
.financing-h2 { min-height: 2.2em; display: flex; align-items: flex-start; }
@media (max-width: 768px) { .financing-h2 { min-height: 0; display: block; } }
.section-paper { background: var(--linen); }
.section-soft { background: var(--linen); }
.section-beige { background: var(--sand); color: var(--forest); }
.section-lime { background: var(--lime); color: var(--forest); }

/* Hero */
.hero { min-height: 92vh; display: flex; align-items: center; padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; max-width: 48ch; color: var(--stone); margin-bottom: 36px; }
.hero-art { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--linen); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Cards */
.card { background: var(--linen); border: 1px solid var(--sand); padding: 36px; border-radius: 16px; transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--sage); box-shadow: 0 24px 50px -30px rgba(58,66,52,.25); }
.card h3 { margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-2.align-top { align-items: start; }
.grid-2.align-center { align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 40px; } }

/* Service cards */
.service-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--sand); border-radius: 16px; overflow: hidden; transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease; position: relative; overflow: hidden; }
.service-card .card-media { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.service-card .card-media .card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(29,46,46,.55); font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.service-card .card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-card:hover { border-color: var(--sage); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(15,28,28,.35); }
.service-card:hover .card-media img { transform: scale(1.04); }
.service-card .num { font-family: var(--serif); font-size: 0.85rem; color: var(--sage); letter-spacing: 0.2em; }
.service-card h3 { font-size: 1.4rem; margin: 12px 0 10px; }
.service-card p { color: var(--stone); font-size: 0.95rem; margin: 0; }
.service-card .cta-link { margin-top: auto; padding-top: 22px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); display: inline-flex; align-items: center; gap: 8px; }
.service-card .cta-link .arrow { transition: transform .3s; }
.service-card:hover .cta-link .arrow { transform: translateX(4px); }

/* Mobile horizontal carousel — generic */
.scroll-dots { display: none; }
@media (max-width: 768px) {
  /* Base scroller */
  .mobile-scroll { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; gap: 16px; padding: 8px 20px 24px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: stretch; }
  .mobile-scroll::-webkit-scrollbar { display: none; }
  .mobile-scroll > * { flex: 0 0 82%; scroll-snap-align: start; }
  .mobile-scroll > *:last-child { margin-right: 20px; }
  /* Per-card-type sizing tweaks */
  .mobile-scroll > .service-card { flex: 0 0 78%; }
  /* Pagination dots */
  .scroll-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .scroll-dots .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--sage); opacity: .25; transition: opacity .3s ease, transform .3s ease, background-color .3s ease; padding: 0; border: 0; cursor: pointer; }
  .scroll-dots .dot.active { opacity: 1; transform: scale(1.25); background: var(--sage); }
  /* Dark sections — brighten dots so they read on forrest/moss/emerald backgrounds */
  .section-forest .scroll-dots .dot,
  .section-sage .scroll-dots .dot,
  .founder-dark .scroll-dots .dot,
  .treatment-menu-dark .scroll-dots .dot,
  .what-we-test-dark .scroll-dots .dot { background: var(--cream); opacity: .35; }
  .section-forest .scroll-dots .dot.active,
  .section-sage .scroll-dots .dot.active,
  .founder-dark .scroll-dots .dot.active,
  .treatment-menu-dark .scroll-dots .dot.active,
  .what-we-test-dark .scroll-dots .dot.active { background: var(--lime); opacity: 1; }
}
/* Back-compat: existing class names route to .mobile-scroll behavior on mobile */
@media (max-width: 768px) {
  .grid-3.services-scroll, .grid-3.testimonials-scroll { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; gap: 16px; padding: 8px 20px 24px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .grid-3.services-scroll::-webkit-scrollbar, .grid-3.testimonials-scroll::-webkit-scrollbar { display: none; }
  .grid-3.services-scroll > .service-card { flex: 0 0 78%; scroll-snap-align: start; }
  .grid-3.testimonials-scroll > .testimonial { flex: 0 0 82%; scroll-snap-align: start; }
  .grid-3.services-scroll > .service-card:last-child, .grid-3.testimonials-scroll > .testimonial:last-child { margin-right: 20px; }
}

/* Step list */
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 40px 0; border-top: 1px solid var(--sand); }
.step:last-child { border-bottom: 1px solid var(--sand); }
.step .step-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--sage); font-weight: 300; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--stone); margin: 0; }

/* Testimonials */
.testimonial { padding: 32px; border: 1px solid var(--sand); background: var(--linen); border-radius: 16px; }
.testimonial blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; font-style: italic; color: var(--forest); }
.testimonial cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }
.testimonial-forest { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.testimonial-forest blockquote { color: var(--cream); }
.testimonial-forest cite { color: var(--lime); }

/* Full-bleed band — edge-to-edge image with overlay copy */
.full-bleed-band { position: relative; min-height: 70vh; padding: 140px 0; background-color: var(--forest); background-size: cover; background-position: center; color: var(--cream); display: flex; align-items: center; overflow: hidden; }
.full-bleed-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,28,28,.82) 0%, rgba(15,28,28,.6) 45%, rgba(15,28,28,.15) 100%); z-index: 1; }
.full-bleed-band > .container { position: relative; z-index: 2; }
.full-bleed-band .full-bleed-content { max-width: 560px; }
.full-bleed-band .eyebrow { color: var(--lime); }
.full-bleed-band h1, .full-bleed-band h2, .full-bleed-band h3 { color: var(--cream); }
.full-bleed-band p { color: rgba(244,237,225,.92); font-size: 1.05rem; }
.full-bleed-band.full-bleed-darker::before { background: linear-gradient(90deg, rgba(15,28,28,.92) 0%, rgba(15,28,28,.78) 35%, rgba(15,28,28,.35) 75%, rgba(15,28,28,.18) 100%); }
@media (max-width: 768px) {
  .full-bleed-band { min-height: 60vh; padding: 100px 0; }
  .full-bleed-band::before { background: linear-gradient(180deg, rgba(15,28,28,.55) 0%, rgba(15,28,28,.85) 60%, rgba(15,28,28,.92) 100%); }
}

/* Stats */
.stat { text-align: left; padding: 24px 0; }
.stat .num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--forest); font-weight: 300; }
.stat .label { display: block; margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }

/* Footer */
footer { background: var(--forest); color: var(--cream); padding: 80px 0 32px; }
footer h4 { color: var(--lime); margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer a { color: var(--cream); opacity: 0.85; transition: opacity .25s, color .25s; display: block; padding: 4px 0; font-size: 0.92rem; }
footer a:hover { opacity: 1; color: var(--lime); }
.footer-logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.2em; margin-bottom: 16px; }
.footer-logo span { color: var(--lime); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(244,237,225,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; opacity: 0.7; }
.footer-bottom a { display: inline; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 600px; }
.form input, .form textarea, .form select { width: 100%; padding: 14px 16px; border: 1px solid var(--sand); background: var(--linen); font-family: var(--sans); font-size: 1rem; color: var(--forest); border-radius: 4px; transition: border-color .25s; }
.form select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2e2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>"); background-repeat: no-repeat; background-position: right 18px center; background-size: 14px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--forest); }
.form label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; display: block; font-weight: 600; }
.form label .req { color: var(--sage); margin-left: 2px; }
.form label .opt { letter-spacing: 0.04em; text-transform: none; color: var(--stone); font-weight: 500; font-size: 0.78rem; margin-left: 4px; }
.form .form-legend { font-size: 0.82rem; color: var(--stone); margin: 0 0 4px; }
.form .form-legend span { color: var(--sage); font-weight: 700; }

/* Custom select */
.custom-select { position: relative; }
.custom-select .cs-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--sand); background: var(--linen); font-family: var(--sans); font-size: 1rem; color: var(--forest); border-radius: 4px; cursor: pointer; text-align: left; transition: border-color .25s ease, background .25s ease; }
.custom-select .cs-trigger:hover { border-color: var(--forest); }
.custom-select .cs-trigger:focus-visible { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(58,89,80,.15); }
.custom-select .cs-chev { color: var(--forest); flex-shrink: 0; transition: transform .25s ease; }
.custom-select.open .cs-chev { transform: rotate(180deg); }
.custom-select .cs-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select .cs-menu { list-style: none; padding: 6px; margin: 6px 0 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--linen); border: 1px solid var(--sand); border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(15,28,28,.35); z-index: 20; max-height: 320px; overflow-y: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.custom-select.open .cs-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.custom-select .cs-menu li { padding: 11px 14px; font-size: 0.97rem; color: var(--forest); border-radius: 3px; cursor: pointer; transition: background .15s ease, color .15s ease; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.custom-select .cs-menu li:hover, .custom-select .cs-menu li.cs-active { background: var(--forest); color: var(--cream); }
.custom-select .cs-menu li[aria-selected="true"]::after { content: "✓"; font-size: 0.9rem; opacity: .9; }
.form .field { display: block; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form-success { padding: 16px 20px; background: var(--sage); color: var(--cream); border-radius: 4px; display: none; }
.form-success.show { display: block; }
.form-error { padding: 16px 20px; background: #f9eeec; color: var(--error); border: 1px solid var(--error); border-radius: 4px; display: none; font-size: .92rem; }
.form-error a { color: var(--error); }
.form-error.show { display: block; }

/* Hero animated mark */
.hero-mark { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 540px; height: 540px; opacity: 0.5; pointer-events: none; z-index: 1; }
.image-hero-home { min-height: 86vh; align-items: center; padding: 120px 0 100px; }
.image-hero-home::after { background: linear-gradient(180deg, rgba(15,28,28,.78) 0%, rgba(15,28,28,.55) 30%, rgba(15,28,28,.5) 60%, rgba(15,28,28,.7) 100%), linear-gradient(90deg, rgba(29,46,46,.92) 0%, rgba(29,46,46,.7) 40%, rgba(29,46,46,.4) 75%, rgba(29,46,46,.6) 100%); }
.btn-outline-light { background: transparent; border: 1px solid rgba(249,244,237,.5); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.hero-mark .ring { transform-origin: center; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.hero-mark .r1 { animation: spin-slow 60s linear infinite; transform-origin: 270px 270px; }
.hero-mark .r2 { animation: spin-rev 80s linear infinite; transform-origin: 270px 270px; }
.hero-mark .r3 { animation: spin-slow 100s linear infinite; transform-origin: 270px 270px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: float 7s ease-in-out infinite; }

/* Page hero (interior) */
.page-hero { padding: 140px 0 80px; background: var(--cream); border-bottom: 1px solid var(--sand); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.page-hero p { color: var(--stone); max-width: 56ch; font-size: 1.1rem; margin-top: 18px; }
.page-hero-dark { background: var(--forest); border-bottom-color: var(--forest); color: var(--cream); }
.page-hero-dark h1, .page-hero-dark h2, .page-hero-dark h3 { color: var(--cream); }
.page-hero-dark p { color: rgba(244,237,225,.8); }
.page-hero-dark .eyebrow { color: var(--lime); }

/* Ask Clava — full-bleed emerald section between header and footer */
/* Ask Clava — viewport-locked layout: orb area flexes, prompts/input pinned at bottom */
.ask-clava-page {
  background: var(--sage);
  color: var(--cream);
  min-height: 100vh;
  height: 100vh;
  padding: 96px 0 24px; /* top accounts for fixed header */
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.ask-clava-shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .ask-clava-shell { padding: 0 20px; }
}
/* Voice page (orb + copy + controls) takes available space */
.ask-clava-shell > #ask-clava-voice {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
/* Bottom UX block hugs the bottom */
.ask-clava-shell > #ask-clava-ui { flex: 0 0 auto; }

@media (max-width: 900px) {
  .ask-clava-page { padding: 84px 0 16px; }
}

/* Soften the top gradient when the page itself is Ask Clava (transparent nav state) */
body:has(.ask-clava-page) .nav:not(.scrolled)::after {
  background: linear-gradient(180deg, rgba(15,28,28,.45) 0%, rgba(15,28,28,.25) 45%, rgba(15,28,28,.08) 75%, rgba(15,28,28,0) 100%);
}

/* ===== Voice AI module — embedded in Ask Clava (Clava palette) ===== */
.voice-stage {
  position: relative;
  width: 100%;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.voice-stage__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
}
.voice-stage__orb-wrap { display: flex; align-items: center; justify-content: center; }
.voice-stage__copy { max-width: 540px; text-align: center; padding: 0 20px; }
.voice-stage__title {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--cream);
}
.voice-stage__sub {
  font-size: clamp(13px, 1.05vw, 16px);
  color: rgba(244,237,225,0.72);
  margin: 0;
  line-height: 1.45;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}
.voice-stage__controls { display: flex; align-items: center; gap: 16px; }
.voice-ctrl {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244,237,225,0.22);
  background: rgba(244,237,225,0.06);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.voice-ctrl:hover:not(:disabled) { background: rgba(244,237,225,0.14); border-color: rgba(244,237,225,0.4); transform: translateY(-1px); }
.voice-ctrl:disabled { opacity: 0.4; cursor: not-allowed; }
.voice-ctrl > * { pointer-events: none; }
.voice-ctrl svg { pointer-events: none; }
.voice-ctrl--main {
  width: 76px; height: 76px;
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest);
  box-shadow: 0 8px 28px rgba(199,170,87,0.32);
}
.voice-ctrl--main:hover:not(:disabled) { background: color-mix(in srgb, var(--lime) 88%, white); border-color: color-mix(in srgb, var(--lime) 88%, white); }
.voice-ctrl--main.is-active { background: var(--cream); color: var(--sage); border-color: var(--cream); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.voice-ctrl--mute.is-on { background: rgba(244,237,225,0.18); }

/* RaiaOrb wrapper sits centered without intercepting clicks */
.raia-orb { display: block; margin: 0 auto; }

/* ===== Ask Clava — bottom UX block (Pick a Vibe + scrolling prompts + input bar) ===== */
.ac-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 18px);
  margin-top: clamp(16px, 2.4vh, 32px);
  flex: 0 0 auto;
}

/* Header row: label + pagination dots */
.ac-marquee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}
.ac-marquee-label {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.ac-dots {
  list-style: none;
  display: flex;
  gap: 7px;
  padding: 0;
  margin: 0;
}
.ac-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244,237,225,0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}
.ac-dot.is-active {
  background: var(--lime);
  transform: scale(1.2);
}

/* Edge-masked horizontal marquee */
.ac-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ac-marquee__track {
  display: flex;
  gap: 14px;
  padding: 6px 0;
  width: max-content;
  animation: ac-marquee 60s linear infinite;
}
.ac-marquee:hover .ac-marquee__track { animation-play-state: paused; }
@keyframes ac-marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ac-marquee__track { animation: none; }
}

/* Prompt cards — translucent cream with subtle border, dark green text */
.ac-prompt {
  flex: 0 0 auto;
  width: 320px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(244,237,225,0.10);
  border: 1px solid rgba(244,237,225,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  color: var(--cream);
  font-family: var(--sans, 'Inter', sans-serif);
  text-align: left;
  cursor: default;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ac-prompt:hover {
  background: rgba(244,237,225,0.18);
  border-color: rgba(244,237,225,0.4);
}
.ac-prompt__text {
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--cream);
}
.ac-prompt__chev {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(244,237,225,0.3);
  color: rgba(244,237,225,0.85);
}

/* Bottom input bar — pill, full width within the page gutter */
.ac-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--cream);
  border-radius: 999px;
  width: min(960px, calc(100% - 48px));
  margin: 12px auto 0;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.ac-input__plus {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(29,46,46,0.06);
  color: var(--forest);
  border: 1px solid rgba(29,46,46,0.10);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ac-input__plus:hover { background: rgba(29,46,46,0.12); }
.ac-input__field {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 1rem;
  color: var(--forest);
  letter-spacing: -0.005em;
}
.ac-input__field::placeholder { color: rgba(29,46,46,0.5); }
.ac-input__field:focus { outline: none; }
.ac-input__actions {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.ac-input__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(29,46,46,0.08);
  color: var(--forest);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ac-input__icon:hover { background: rgba(29,46,46,0.14); }
.ac-input__speak {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}
.ac-input__speak:hover { filter: brightness(0.96); transform: translateY(-1px); }

@media (max-width: 700px) {
  .ac-prompt { width: 260px; min-height: 70px; padding: 14px 18px; }
  .ac-marquee-label { font-size: 1.3rem; }
  .ac-input { padding: 6px 6px 6px 14px; gap: 6px; }
  .ac-input__plus { width: 32px; height: 32px; flex-basis: 32px; }
  .ac-input__icon { width: 36px; height: 36px; }
  .ac-input__speak { padding: 0 16px; height: 38px; font-size: 0.82rem; }
  .ac-ui { gap: 14px; margin-top: 32px; }
}


/* Image hero — edge to edge, full bleed */
.image-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; padding: 110px 0 56px; overflow: hidden; color: var(--cream); border-bottom: 0; background-color: var(--forest); background-size: cover; background-position: center; background-repeat: no-repeat; }
.image-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(180deg, rgba(15,28,28,.4) 0%, rgba(15,28,28,.18) 60%, rgba(15,28,28,0) 100%); pointer-events: none; z-index: 1; }
.image-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,28,.25) 0%, rgba(15,28,28,.18) 30%, rgba(29,46,46,.45) 65%, rgba(29,46,46,.92) 100%), linear-gradient(90deg, rgba(29,46,46,.55) 0%, rgba(29,46,46,.15) 55%, rgba(29,46,46,0) 100%); z-index: 1; }
.image-hero > .container { position: relative; z-index: 2; text-align: left; width: 100%; align-self: stretch; }
.image-hero .eyebrow, .image-hero h1, .image-hero p, .image-hero .hero-meta { text-align: left; margin-left: 0; margin-right: auto; }
.image-hero .eyebrow { color: var(--lime); }
.image-hero h1 { color: var(--cream); font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 18ch; line-height: 1.02; font-weight: 300; }
.image-hero p { color: rgba(249,244,237,.9); max-width: 56ch; font-size: 1.15rem; margin-top: 22px; }
.image-hero .hero-meta { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(249,244,237,.75); }
.image-hero .hero-meta > span { display: flex; align-items: center; gap: 10px; }
.image-hero .hero-meta .dot { width: 4px; height: 4px; background: var(--lime); border-radius: 50%; display: inline-block; }
@media (max-width: 768px) { .image-hero { min-height: 64vh; padding: 120px 0 48px; } }
/* MindSpan hero — on mobile, shift the focal point to keep the subject in frame and add a slightly darker mask so headline stands out */
.mindspan-hero::after { background: linear-gradient(180deg, rgba(15,28,28,.45) 0%, rgba(15,28,28,.35) 30%, rgba(29,46,46,.55) 65%, rgba(29,46,46,.95) 100%), linear-gradient(90deg, rgba(15,28,28,.35) 0%, rgba(15,28,28,.1) 60%, rgba(15,28,28,0) 100%); }
@media (max-width: 768px) {
  .mindspan-hero { background-position: 78% 28% !important; }
  .mindspan-hero::after { background: linear-gradient(180deg, rgba(15,28,28,.55) 0%, rgba(15,28,28,.45) 35%, rgba(29,46,46,.65) 70%, rgba(29,46,46,.95) 100%), linear-gradient(90deg, rgba(15,28,28,.55) 0%, rgba(15,28,28,.25) 55%, rgba(15,28,28,.05) 100%); }
}
@media (max-width: 768px) { .image-hero-home { min-height: 100vh; min-height: 100svh; min-height: 100dvh; padding: 140px 0 80px; } }
/* Hero CTAs — dark lozenges sit on dark imagery, so give them a subtle cream hairline stroke so they pop off the background */
.image-hero .btn-primary,
.image-hero .btn-outline { border: 1.5px solid rgba(249,244,237,.6); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 24px -10px rgba(15,28,28,.55); }
.image-hero .btn-primary:hover,
.image-hero .btn-outline:hover { border-color: var(--cream); }

/* Hero slideshow — cross-dissolve Ken Burns */
.hero-slideshow { background-image: none !important; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); animation: heroCycle 22.5s infinite; will-change: opacity, transform; }
.hero-slide:nth-child(1) { animation-delay: 0s;    transform-origin: 30% 35%; }
.hero-slide:nth-child(2) { animation-delay: 4.5s;  transform-origin: 70% 40%; }
.hero-slide:nth-child(3) { animation-delay: 9s;    transform-origin: 50% 60%; }
.hero-slide:nth-child(4) { animation-delay: 13.5s; transform-origin: 35% 70%; }
.hero-slide:nth-child(5) { animation-delay: 18s;   transform-origin: 65% 30%; }
@keyframes heroCycle {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.14); }
  24%  { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; transform: none; }
  .hero-slide:not(:first-child) { display: none; }
}

/* Pretty wrap */
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

/* Image placeholder */
.placeholder { background: linear-gradient(135deg, var(--linen), var(--cream)); border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; color: var(--sage); font-family: var(--serif); font-style: italic; font-size: 1.1rem; aspect-ratio: 4/5; border-radius: 4px; position: relative; overflow: hidden; }
.placeholder::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--sand); border-radius: 2px; }

/* Treatment list */
.treatment-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; column-gap: 32px; align-items: baseline; }
.treatment-list li { display: contents; }
.treatment-list li > * { padding: 28px 0; border-top: 1px solid var(--sand); transition: transform .3s ease; }
.treatment-list li:last-child > * { border-bottom: 1px solid var(--sand); }
.treatment-list li:hover > * { transform: translateX(8px); }
.treatment-list li > *:last-child { transform: none !important; }
.treatment-list h3 { font-size: 1.3rem; line-height: 1.5; margin: 0; }
.treatment-list p { color: var(--stone); font-size: 0.95rem; line-height: 1.5; margin: 0; text-align: left; }
.treatment-list .price { font-family: var(--serif); color: var(--sage); font-size: 1.25rem; line-height: 1.5; }
@media (max-width: 700px) {
  .treatment-list { grid-template-columns: 1fr; column-gap: 0; }
  .treatment-list li { display: block; padding: 18px 0; border-top: 1px solid var(--sand); }
  .treatment-list li > * { padding: 0; border-top: 0; margin-top: 4px; }
  .treatment-list li:last-child { border-bottom: 1px solid var(--sand); }
  .treatment-list li:last-child > * { border-bottom: 0; }
  .treatment-list li:hover > * { transform: none; }
}

/* Treatment list — dark forrest section variant */
.treatment-menu-dark .treatment-list li { border-top-color: rgba(244,237,225,.18); }
.treatment-menu-dark .treatment-list li:last-child { border-bottom-color: rgba(244,237,225,.18); }
.treatment-menu-dark .treatment-list h3 { color: var(--cream); }
.treatment-menu-dark .treatment-list p { color: rgba(244,237,225,.78); }
.treatment-menu-dark .treatment-list .price { color: var(--lime); }
.treatment-menu-dark .container > p { color: rgba(244,237,225,.7); }
.treatment-menu-dark .container > p a { color: var(--lime); }

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 48px; }
.legal-content h3 { font-size: 1.15rem; margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--stone); font-size: 0.97rem; line-height: 1.75; }

/* Pill cluster */
.pill-cluster { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 18px; border: 1px solid var(--sand); border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); background: var(--linen); }

/* Mobile nav */
.nav-mobile-only { display: none; }
.nav-mobile-legal { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-mobile-only { display: block; }
  .nav-mobile-actions { display: flex; }
  /* Hide any nav link that doesn't have a mobile label (MindSpan, Payment Plans, Book Now CTA) */
  .nav-links > a:not([data-mlabel]) { display: none !important; }
  .nav-links a.nav-cta { display: none; }
  /* Full-screen menu SLIDES IN FROM THE RIGHT. Item spacing comes from
     per-item padding, NOT flex gap — iOS Safari drops flex gap on the
     dropdown's display:contents children, which crammed the Care items. */
  .nav-links { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100dvh; background: rgba(15,28,28,.92); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 86px) 28px 18px; gap: 0; align-items: flex-start; border-bottom: 0; display: flex; visibility: hidden; transform: translateX(102%); transition: transform .38s cubic-bezier(.22,.61,.36,1), visibility 0s linear .38s; font-family: 'Roboto Serif', Georgia, serif; font-weight: 400; font-size: 1.4rem; letter-spacing: 0; text-transform: none; overflow-y: auto; z-index: 1; }
  /* Keep logo + Book Now pill + burger above the menu overlay */
  .nav-inner > a:first-child, .nav-mobile-actions { position: relative; z-index: 2; }
  .nav-links.open { visibility: visible; transform: translateX(0); transition: transform .38s cubic-bezier(.22,.61,.36,1); }
  /* Big tap targets: every item is a full-width ~52px row */
  .nav-links a { font-family: 'Roboto Serif', Georgia, serif; font-weight: 400; font-size: 1.4rem; line-height: 1.15; letter-spacing: 0; text-transform: none; padding: 13px 0; width: 100%; display: flex; align-items: center; }
  .nav-links > a:hover::after, .nav-links > a.active:not(.nav-cta)::after { bottom: 8px; }
  /* Dropdown becomes transparent container so children flow as siblings of nav-links a */
  .nav-links .has-dropdown { display: contents; }
  .nav-links .has-dropdown > a { display: none !important; }
  .nav-links .has-dropdown .dropdown { display: contents; pointer-events: auto !important; }
  .nav-links .has-dropdown .dropdown a { position: relative; padding: 13px 0; width: 100%; display: flex; align-items: center; font-family: 'Roboto Serif', Georgia, serif; font-weight: 400; font-size: 1.4rem; letter-spacing: 0; text-transform: none; border-radius: 0; background: transparent !important; color: var(--cream); pointer-events: auto !important; }
  /* Match the hover underline used by other top-level mobile nav links (Home, Our Team, MindSpan, Payment Plans).
     Also fires on :active / :focus so the underline is visible on touch (where :hover is unreliable). */
  .nav-links .has-dropdown .dropdown a:hover,
  .nav-links .has-dropdown .dropdown a:active,
  .nav-links .has-dropdown .dropdown a:focus { color: var(--lime); }
  .nav-links .has-dropdown .dropdown a:hover::after,
  .nav-links .has-dropdown .dropdown a:active::after,
  .nav-links .has-dropdown .dropdown a:focus::after { content: "" !important; display: block !important; position: absolute; left: 0; right: auto; width: 100%; bottom: 8px; height: 1px; background: currentColor; }
  .nav-links .has-dropdown .dropdown a.active::after { content: "" !important; display: block !important; position: absolute; left: 0; right: auto; width: 100%; bottom: 6px; height: 2px; background: var(--lime); box-shadow: 0 1px 6px rgba(0,0,0,.45); }
  @media (prefers-reduced-motion: reduce) { .nav-links, .nav-links.open { transition: none; } }
  /* Mobile-only legal/copyright block at the bottom of the slide-out menu */
  .nav-mobile-legal { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(246,251,202,.12); font-size: 0.72rem; letter-spacing: 0.14em; }
  .nav-mobile-legal a { font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(246,251,202,.78); }
  .nav-mobile-copy { color: rgba(246,251,202,.55); font-size: 0.66rem; letter-spacing: 0.16em; margin-top: 4px; }
}

/* Mobile top mask — opaque band that covers status-bar / safe-area so content can't peek above nav */
.mobile-top-mask { display: none; }
@media (max-width: 900px) {
  /* Mobile nav has a solid opaque background at all times — content must never peek behind the status bar / nav strip. */
  .mobile-top-mask { display: block; position: fixed; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 64px); background: rgba(15,28,28,.96); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); z-index: 49; pointer-events: none; }
  .nav { padding-top: env(safe-area-inset-top, 0px); }
  /* Re-enable scroll-driven blur on mobile too (the desktop gradient ::after stays disabled — the ::before blur fades in on .scrolled) */
  .nav::after { display: none; }
  .nav::before { background: rgba(15,28,28,.55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; gap: 16px; }
  .nav-links { inset: 0; padding: calc(env(safe-area-inset-top, 0px) + 86px) 24px 32px; }
  body { -webkit-text-size-adjust: 100%; }
  /* prevent horizontal scroll on small screens */
  html, body { overflow-x: hidden; }
}
@media (max-width: 600px) {
  .image-hero h1 { font-size: clamp(2.8rem, 11vw, 4rem); line-height: 1.04; max-width: 16ch; }
  .image-hero p { font-size: 1.05rem; }
  .page-hero h1 { font-size: clamp(2.6rem, 10vw, 3.6rem); line-height: 1.06; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .btn { padding: 12px 22px; font-size: 0.74rem; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.4rem) !important; }
  /* About Us — center the "We're changing the game" intro and stats on mobile */
  .changing-game-block { text-align: center; }
  .changing-game-block .eyebrow { display: block; }
  .changing-game-block .pill-cluster { justify-content: center; }
  .changing-game-stats { text-align: center; }
  .changing-game-stats .stat { text-align: center; }
}

/* Testimonials heading — much larger, single line on desktop, allowed to stack on mobile */
.testimonials-heading { font-size: clamp(2.4rem, 5.4vw, 4.6rem) !important; line-height: 1.04; max-width: none; white-space: nowrap; }
@media (max-width: 768px) {
  .testimonials-heading { font-size: clamp(2.2rem, 9vw, 3.2rem) !important; white-space: normal; }
}

/* About Us — "We're changing the game" stats: centered at all sizes, with count-up */
.changing-game-stats { text-align: center; }
.changing-game-stats .stat { text-align: center; padding: 24px 16px; }
.changing-game-stats .stat .num { color: var(--forest); }

/* Emsculpt Neo stats — center the three numbers */
.emsculpt-stats { text-align: center; }
.emsculpt-stats .stat { text-align: center; padding: 24px 16px; }

/* Mobile: center the Telehealth "Book a virtual visit" CTA */
@media (max-width: 900px) {
  .section-soft .grid-2 > div:last-child { text-align: center; }
  .section-soft .grid-2 > div:last-child .eyebrow { display: inline-block; }
}

/* MindSpan — "Your MindSpan year, at a glance." */
.mindspan-year-title { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; max-width: none; white-space: nowrap; }
@media (max-width: 900px) {
  .mindspan-year-title { font-size: clamp(2rem, 8vw, 3rem) !important; white-space: normal; max-width: 18ch; }
}

/* Payment Plans — "Have questions about pricing?" */
.pricing-questions-title { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; max-width: none; white-space: nowrap; }
@media (max-width: 900px) {
  .pricing-questions-title { font-size: clamp(2rem, 8vw, 3rem) !important; white-space: normal; max-width: 18ch; }
}


/* Dropdown item subtext (Care menu) */
.dropdown a .dd-sub { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; color: rgba(244,237,225,.55); margin-top: 2px; }
.dropdown a:hover .dd-sub { color: rgba(244,237,225,.78); }
@media (max-width: 900px) { .dropdown a .dd-sub { display: none; } }
