/* =================================================================
   Serene Health Group — site redesign (demo)
   Custom-coded, framework-free. Forks the design-system structure of
   the MindSet PrTMS build, reskinned to Serene's lighter blue brand.
   Brand colors sampled from the live "serene" logo.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --sky:        #2BA8E2;   /* bright cyan-blue — lightest brand dot / accent */
  --sky-soft:   #5CC0EC;
  --blue:       #1C84C6;   /* primary brand blue — buttons, links */
  --blue-deep:  #155E9C;
  --navy:       #0E2B49;   /* MindSet dark band + deep contrast */
  --navy-deep:  #0A1F38;

  --gold:       #E3B04B;   /* warm accent on the navy homepage (per Kenny, 2026-07-24) */
  --gold-soft:  #F0C878;
  --gold-deep:  #C9962F;

  --ink:    #16263B;       /* headings / dark text (soft blue-black) */
  --slate:  #56697F;       /* body text */
  --mist:   #F1F7FC;       /* alt-section background */
  --cloud:  #E8F4FC;       /* hero soft wash */
  --line:   #E1EAF3;
  --white:  #FFFFFF;
  --sand:   #F7FAFD;
  --error:  #C7384A;

  --grad:      linear-gradient(135deg, #2BA8E2 0%, #1C84C6 55%, #155E9C 100%);
  --grad-soft: linear-gradient(160deg, #EAF6FD 0%, #F5FBFE 55%, #FFFFFF 100%);
  --grad-navy: linear-gradient(140deg, #0E2B49 0%, #133C61 55%, #0C2542 100%);
  --grad-text: linear-gradient(120deg, #155E9C 0%, #1C84C6 55%, #2BA8E2 100%);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 30px;

  --shadow-sm: 0 2px 10px rgba(21,40,67,.06);
  --shadow:    0 16px 44px -18px rgba(21,60,100,.26);
  --shadow-lg: 0 34px 80px -28px rgba(16,43,73,.36);

  --pad-section: clamp(64px, 9vw, 116px);
  --container: 1200px;
  --container-wide: 1600px;   /* homepage card bands — near-full-width, matches Kenny's concept */

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip is load-bearing — it stops the fixed off-canvas mobile nav (translateX(100%), parked off-screen
   right) from dragging out a horizontal scrollbar on phones. body overflow-x:hidden can't clip a fixed child. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
address { font-style: normal; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.16; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
/* Homepage runs near-full-width (matches Kenny's concept); inner pages stay at --container for readable prose */
.home .container { width: min(var(--container-wide), 92%); }
.section { padding-block: var(--pad-section); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
section[id] { scroll-margin-top: 92px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--sky-soft); }
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .7;
}

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section__lead { margin-top: 16px; color: var(--slate); font-size: 1.06rem; }
.section__head--light .section__title,
.section__head--light .section__lead { color: #fff; }
.section__head--light .section__lead { color: rgba(255,255,255,.82); }

/* ---------- Decorative line icons ---------- */
.ico-sm { width: 18px; height: 18px; flex: none; }
.hero__chips svg, .ico-sm, .care-card__icon svg, .trust__item svg,
.foot__contact svg, .glance-item__icon svg, .vlist svg, .social a svg {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -50px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--blue-deep));
  transform: scaleX(0); transform-origin: left;
  z-index: 150; pointer-events: none;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  text-align: center; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; padding-block: 16px; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(28,132,198,.75); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); }

.btn--sky { background: var(--sky); color: #08263c; box-shadow: 0 14px 32px -14px rgba(43,168,226,.8); }
.btn--sky:hover { background: var(--sky-soft); transform: translateY(-2px); }

.btn--ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sky); color: var(--blue-deep); transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.nav-bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 14px; color: var(--ink); font-weight: 500; font-size: .95rem;
  border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav > a:not(.nav__cta):hover,
.nav > a:not(.nav__cta).is-active { color: var(--blue); background: var(--mist); }
.nav > a.nav__cta { margin-left: 10px; color: #fff; }
.nav > a.nav__cta:hover { color: #fff; }

.nav-toggle { display: none; position: relative; z-index: 66; width: 46px; height: 46px; border-radius: var(--r-sm); }
.nav-toggle span {
  display: block; width: 24px; height: 2.4px; margin: 5px auto;
  background: var(--blue); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.site-header.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.site-header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(12,30,53,.46);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 55;
}
.nav-overlay.is-active { opacity: 1; visibility: visible; }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; background: var(--grad-soft); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow {
  position: absolute; top: -22%; right: -12%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%, rgba(43,168,226,.22), rgba(43,168,226,0) 62%);
}
.hero__glow--2 {
  top: auto; right: auto; bottom: -28%; left: -16%; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(21,94,156,.14), rgba(21,94,156,0) 62%);
}
.hero__ring {
  position: absolute; top: -120px; right: -120px; width: 460px; height: 460px;
  opacity: .12; pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 100px);
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.5rem); margin-top: 18px; letter-spacing: -0.03em;
}
.hero__title span {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 20px; font-size: 1.12rem; color: var(--slate); max-width: 520px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink);
}
.hero__chips svg { color: var(--blue); width: 16px; height: 16px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero media */
.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.hero__badge {
  position: absolute; left: -22px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero__badge-mark { width: 42px; height: 42px; flex: none; }
.hero__badge strong { display: block; font-size: 1.04rem; color: var(--ink); line-height: 1.2; }
.hero__badge span { font-size: .82rem; color: var(--slate); }

/* =================================================================
   TRUST STRIP
   ================================================================= */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 38px; padding-block: 22px;
}
.trust__item { display: inline-flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 500; color: var(--ink); }
.trust__item svg { color: var(--blue); width: 20px; height: 20px; }
.trust__sep { width: 1px; height: 22px; background: var(--line); }

/* =================================================================
   DIVISIONS (alternating bands)
   ================================================================= */
.divisions__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.divisions__head .eyebrow { margin-bottom: 14px; }
.divisions__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.divisions__head p { margin-top: 16px; color: var(--slate); font-size: 1.06rem; }

.division {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.division + .division { margin-top: clamp(48px, 7vw, 96px); }
.division--flip .division__media { order: 2; }

.division__media { position: relative; }
.division__photo {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.division__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.division__media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(21,60,100,.06); pointer-events: none;
}
.division__tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.94); color: var(--blue);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.division__name { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.division__lead { color: var(--blue); font-weight: 600; margin-top: 6px; font-size: 1.02rem; }
.division__body { margin-top: 16px; color: var(--slate); }
.vlist { margin-top: 18px; display: grid; gap: 11px; }
.vlist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: .97rem; }
.vlist svg { color: var(--sky); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.division__cta { margin-top: 26px; }

/* dark variant (MindSet PrTMS) */
.division--dark {
  position: relative; background: var(--grad-navy); color: #fff; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
}
.division--dark .division__name { color: #fff; }
.division--dark .division__lead { color: var(--sky-soft); }
.division--dark .division__body { color: rgba(255,255,255,.78); }
.division--dark .vlist li { color: rgba(255,255,255,.9); }
.division--dark .division__photo { box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.division--dark .division__tag { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(4px); }
.division--dark .waves {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none;
}
.division--dark .waves path { fill: none; stroke: var(--sky); stroke-width: 1.4; opacity: .35; }
.division--dark .division__inner {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.division--dark .division--flip-inner .division__media { order: 2; }

/* =================================================================
   INTEGRATIVE CARE — icon cards
   ================================================================= */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.care-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.care-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.care-card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, #E8F5FD, #D5ECFA); color: var(--blue); margin-bottom: 20px;
}
.care-card__icon svg { width: 28px; height: 28px; }
.care-card h3 { font-size: 1.18rem; }
.care-card p { margin-top: 10px; color: var(--slate); font-size: .97rem; }

/* =================================================================
   THERAPY / SERVICES strip
   ================================================================= */
.therapy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.therapy-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.therapy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.therapy-card img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; opacity: .92; }
.therapy-card__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 22px 22px 20px;
  background: linear-gradient(to top, rgba(8,24,42,.92), rgba(8,24,42,.5) 55%, transparent);
  color: #fff;
}
.therapy-card__cap h3 { color: #fff; font-size: 1.12rem; }
.therapy-card__cap p { margin-top: 4px; font-size: .9rem; color: rgba(255,255,255,.82); }

/* =================================================================
   CTA BAND
   ================================================================= */
.cta-band { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.cta-band__ring { position: absolute; right: -90px; top: -90px; width: 380px; height: 380px; opacity: .16; }
.cta-band__ring--2 { right: auto; top: auto; left: -110px; bottom: -120px; width: 320px; height: 320px; opacity: .12; }
.cta-band__inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; padding-block: clamp(60px, 8vw, 104px); }
.cta-band__inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.cta-band__inner p { margin-top: 18px; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(56px, 7vw, 84px); }
.footer__brand img { width: 190px; height: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .95rem; max-width: 320px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .18s, transform .18s;
}
.social a:hover { background: var(--blue); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: rgba(255,255,255,.72); font-size: .95rem; padding-block: 5px; }
.footer__col a:hover { color: #fff; }
.foot__contact a { display: inline-flex; align-items: center; gap: 9px; }
.foot__contact svg { width: 16px; height: 16px; color: var(--sky-soft); }

.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; }
.footer__disclaimer { font-size: .8rem; color: rgba(255,255,255,.5); max-width: 100%; margin-bottom: 16px; }
.footer__legal-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.footer__legal-row p { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer__legal-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-row nav a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer__legal-row nav a:hover { color: #fff; }

/* =================================================================
   PAGE HERO (interior / stub pages)
   ================================================================= */
.page-hero { position: relative; background: var(--grad-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__ring { position: absolute; top: -130px; right: -110px; width: 420px; height: 420px; opacity: .12; pointer-events: none; }
.page-hero__inner { position: relative; padding-block: clamp(48px, 7vw, 88px); max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--blue); }
.crumbs span[aria-current] { color: var(--ink); }
.page-hero__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero__title span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__sub { margin-top: 18px; font-size: 1.1rem; color: var(--slate); }

/* generic interior content */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 40px; }
.prose h3 { font-size: 1.2rem; margin-top: 28px; }
.prose p { margin-top: 14px; color: var(--slate); }
.prose ul { margin-top: 14px; display: grid; gap: 10px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); }
.prose ul li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-top: 9px; flex: none; }

.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 8px; }
.glance-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.glance-item__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--blue); margin-bottom: 14px; }
.glance-item__icon svg { width: 22px; height: 22px; }
.glance-item h3 { font-size: 1.05rem; }
.glance-item p, .glance-item address { margin-top: 6px; color: var(--slate); font-size: .95rem; }
.glance-item a { font-weight: 500; }

.stub-note {
  margin-top: 40px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; color: var(--slate); font-size: .95rem;
}
.stub-note svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* simple contact form */
.cform { display: grid; gap: 16px; max-width: 540px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(43,168,226,.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 540px; }
  .hero__copy { max-width: none; }
  .division, .division--dark .division__inner { grid-template-columns: 1fr; }
  .division--flip .division__media, .division--dark .division--flip-inner .division__media { order: -1; }
  .care-grid, .therapy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    background: #fff; padding: 96px 22px 32px; box-shadow: -20px 0 60px -30px rgba(16,43,73,.5);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 60;
  }
  .site-header.is-nav-open .nav { transform: translateX(0); }
  .nav > a { padding: 13px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav > a.nav__cta { margin-left: 0; margin-top: 10px; }
}

@media (max-width: 620px) {
  .care-grid, .therapy-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
  .trust__sep { display: none; }
  .btn { width: 100%; white-space: normal; }
  .hero__actions .btn, .cta-band__actions .btn { width: auto; }
}

/* =================================================================
   HOMEPAGE — physician cards + division cards (client mockup match)
   ================================================================= */

/* ---------- Physicians ---------- */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.doc {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doc__photo { width: 124px; height: 124px; border-radius: 18px; object-fit: cover; }
.doc__body h3 { font-size: 1.2rem; }
.doc__role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-top: 3px; }
.doc__body p { margin-top: 11px; color: var(--slate); font-size: .95rem; }

/* ---------- Division cards ---------- */
.dstack { display: grid; gap: 26px; }
.dcard {
  display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow);
}
.dcard__copy { padding: clamp(34px, 5vw, 64px); align-self: center; position: relative; z-index: 1; }
.dcard__name { font-size: clamp(1.8rem, 3.8vw, 2.9rem); letter-spacing: -0.025em; line-height: 1.04; }
.dcard__name--sky { color: var(--sky); }
.dcard__name--navy { color: var(--navy); }
.dcard__name .tm { font-size: .42em; vertical-align: super; font-weight: 600; }
.dcard__sub { margin-top: 12px; color: var(--slate); font-size: 1.12rem; max-width: 30ch; }
.dcard__btn { margin-top: 28px; }
/* soft skeleton wash behind the photo so an in-flight image never reads as a blank hole */
.dcard__media { position: relative; min-height: 290px; background: linear-gradient(150deg, #E8F4FC 0%, #F7FBFE 100%); }
.dcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* MindSet dark variant */
.dcard--dark { background: var(--grad-navy); border-color: transparent; color: #fff; position: relative; overflow: hidden; }
.dcard--dark .dcard__name { color: #fff; }
.dcard--dark .dcard__name .tm { color: var(--sky-soft); }
.dcard--dark .dcard__sub { color: rgba(255,255,255,.82); }
.dcard--dark .waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.dcard--dark .waves path { fill: none; stroke: var(--sky); stroke-width: 1.4; opacity: .4; }
/* gentle rolling drift — paths extend past the viewBox on both sides so ends never show */
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-140px); } }
.dcard--dark .waves path { animation: wave-drift 18s ease-in-out infinite alternate; }
.dcard--dark .waves path:nth-child(2) { animation-duration: 24s; animation-delay: -6s; }
.dcard--dark .waves path:nth-child(3) { animation-duration: 30s; animation-delay: -12s; }
@media (prefers-reduced-motion: reduce) { .dcard--dark .waves path { animation: none; } }

/* ---------- Section intro with side button (Integrative) ---------- */
.intro-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(36px, 5vw, 54px); }
.intro-row__head { max-width: 660px; }
.intro-row__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); color: var(--navy); letter-spacing: -0.02em; }
.intro-row__tag { color: var(--blue); font-weight: 600; font-size: 1.05rem; margin-top: 8px; }
.intro-row__head p.intro-row__desc { margin-top: 14px; color: var(--slate); font-size: 1.06rem; }

@media (max-width: 880px) {
  .docs { grid-template-columns: 1fr; }
  .dcard { grid-template-columns: 1fr; }
  /* min-height floor (not 0): engines without aspect-ratio support would
     otherwise collapse the abs-positioned photo to zero height */
  .dcard__media { order: -1; min-height: 210px; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .doc { grid-template-columns: 1fr; }
  .doc__photo { width: 96px; height: 96px; }
}

/* =================================================================
   LOCATION LEAD-GEN PAGE — hero with lead form (MindSet template, Serene brand)
   ================================================================= */
.lead-hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.lead-hero__ring { position: absolute; top: -130px; right: -110px; width: 440px; height: 440px; opacity: .12; pointer-events: none; }
.lead-hero__inner {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(30px, 5vw, 60px); align-items: center; padding-block: clamp(44px, 6vw, 82px);
}
.lead-hero__copy { max-width: 540px; }
.lead-hero .eyebrow { color: rgba(255,255,255,.86); }
.lead-hero .eyebrow::before { background: var(--sky-soft); opacity: 1; }
.lead-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.06; margin-top: 16px; }
.lead-hero__title span { color: var(--sky-soft); }
.lead-hero__sub { margin-top: 18px; font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 50ch; }
.lead-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lead-hero__chips li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.lead-hero__chips svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lead-hero__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: #fff; font-weight: 600; font-size: 1.06rem; }
.lead-hero__phone svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* form card */
.form-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form-card__title { font-size: 1.42rem; letter-spacing: -0.02em; }
.form-card__sub { margin-top: 6px; color: var(--slate); font-size: .97rem; }
.lead-form { display: grid; gap: 14px; margin-top: 20px; }
.lead-form .field__error { color: var(--error); font-size: .82rem; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(199,56,74,.12); }
.form-card__fine { margin-top: 2px; font-size: .8rem; color: var(--slate); display: flex; gap: 9px; align-items: flex-start; }
.form-card__fine svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.form-success { text-align: center; padding: 14px 6px; }
.form-success__mark { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(150deg, #E8F5FD, #D5ECFA); color: var(--blue); }
.form-success__mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: 8px; color: var(--slate); }

/* OSM map */
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

@media (max-width: 940px) {
  .lead-hero__inner { grid-template-columns: 1fr; }
  .lead-hero__copy { max-width: none; }
}

/* hero constellation canvas (mouse-reactive network) */
.hero__canvas, .lead-hero__canvas, .hero-band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.hero__canvas.is-ready, .lead-hero__canvas.is-ready, .hero-band__canvas.is-ready { opacity: 1; }

/* full-page ambient constellation — light-theme "dots" behind the whole page.
   z-index:-1 sits behind in-flow content but above the body background
   (body's white propagates to the root canvas, so the layer stays visible). */
.bg-net { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-net .bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.bg-net .bg-canvas.is-ready { opacity: 1; }
/* let the dots read faintly through the mist band on the homepage */
.home .section--mist { background: rgba(241,247,252,.8); }

/* compact hero band (homepage) — featuring the mouse-reactive dots */
.hero-band { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.hero-band__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; padding-block: clamp(50px, 7vw, 88px); }
.hero-band .eyebrow { margin-bottom: 14px; }
.hero-band__title { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.hero-band__title span { color: var(--sky-soft); }
.hero-band__sub { margin-top: 16px; color: rgba(255,255,255,.84); font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.hero-band__actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =================================================================
   Per-department ACCENT colors (homepage division cards + integrative)
   Each card sets --accent inline; heading + button pick it up.
   ================================================================= */
.dcard__name { color: var(--accent, var(--ink)); }
.intro-row__head h2 { color: var(--accent, var(--navy)); }
.btn--accent { background: var(--accent, var(--blue)); color: #fff; box-shadow: 0 14px 30px -14px rgba(16,43,73,.45); }
.btn--accent:hover { filter: brightness(1.08); transform: translateY(-2px); }
/* mockup-match buttons: dark flagship + soft light-blue (rest) */
.btn--dark { background: #17222E; color: #fff; box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); }
.btn--dark:hover { background: #25313F; transform: translateY(-2px); }
.btn--soft { background: #CFE8F9; color: #14517E; }
.btn--soft:hover { background: #B9DDF4; color: #0E3F63; transform: translateY(-2px); }
/* mockup-match footer: single near-black bar */
.site-footer--bar { background: #0B0F16; color: rgba(255,255,255,.72); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 62px); }
.footer-bar__tagline { color: #fff; font-size: clamp(1.25rem, 2.5vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.footer-bar__contact { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 1rem; }
.footer-bar__contact a { color: rgba(255,255,255,.8); }
.footer-bar__contact a:hover { color: #fff; }
.footer-bar__logo { width: 190px; height: auto; flex: none; filter: brightness(0) invert(1); opacity: .9; }
.footer-bar__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bar__legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bar__legal a { color: rgba(255,255,255,.5); }
.footer-bar__legal a:hover { color: #fff; }
@media (max-width: 700px) { .footer-bar__logo { width: 150px; } }

/* faded photo inside the integrative care cards (matches the concept) */
.care-card { position: relative; overflow: hidden; }
.care-card > * { position: relative; z-index: 1; }
.care-card__photo {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: right center;
  opacity: .34; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 6%, transparent 80%);
  mask-image: linear-gradient(to left, #000 6%, transparent 80%);
}

/* =================================================================
   HOMEPAGE — BLUE FRAME + LIGHT CONTENT (2026-07-24, per Kenny)
   Round 1 of this feedback went full navy; Kenny clarified same day:
   "just header and footer in the blue, their logo in white and then
   some type of lighter blue or gold for the content BG."
   Frame = navy header + navy footer (white Serene logo in both);
   content field = soft blue easing into a warm gold-tinted cream,
   services band = faint gold glass panel. Scoped to body.home so
   the interior stub pages keep their look.
   ================================================================= */
body.home {
  /* propagates to the root canvas, so the fixed .bg-net dots stay visible over it */
  background: linear-gradient(172deg, #E3EFF9 0%, #EAF4FC 52%, #F3EFE0 100%);
}

/* ambient glows live on the fixed .bg-net wrapper (viewport-anchored without
   background-attachment:fixed, which is unreliable on iOS) */
.home .bg-net { overflow: hidden; }
.home .bg-net::before {
  content: ""; position: absolute; top: -22vh; right: -14vw;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(227,176,75,.14), rgba(227,176,75,0) 62%);
}
.home .bg-net::after {
  content: ""; position: absolute; bottom: -26vh; left: -16vw;
  width: 56vw; height: 56vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at 50% 50%, rgba(43,168,226,.15), rgba(43,168,226,0) 62%);
}

.home ::selection { background: rgba(227,176,75,.35); }
.home .scroll-progress { background: linear-gradient(90deg, var(--sky), var(--gold)); }

/* THE FRAME, top: navy header bar (white logo swapped in the HTML) */
.home .nav-bar { background: rgba(14,43,73,.92); border-bottom: 1px solid rgba(255,255,255,.09); }
.home .nav > a { color: #E9F3FB; }
.home .nav > a:not(.nav__cta):hover,
.home .nav > a:not(.nav__cta).is-active { color: var(--gold-soft); background: rgba(255,255,255,.07); }
.home .nav-toggle span { background: #E9F3FB; }
@media (max-width: 920px) {
  .home .nav { background: #0C2440; box-shadow: -20px 0 60px -30px rgba(0,0,0,.85); }
  .home .nav > a { color: #E9F3FB; }
}

/* THE FRAME, bottom: navy footer (matches the MindSet band; white Serene logo already in place) */
.home .site-footer--bar { background: var(--grad-navy); border-top: 1px solid rgba(201,150,47,.4); }

/* cards sit white on the light field; the dark MindSet card keeps a gold edge + one gold wave */
.home .dcard--dark { border: 1px solid rgba(227,176,75,.45); }
.home .dcard--dark .waves path:nth-child(2) { stroke: var(--gold); opacity: .5; }

/* gold flagship button (Serene Health card) */
.btn--gold {
  background: linear-gradient(135deg, #F0C878 0%, #E3B04B 55%, #D29E33 100%);
  color: #132A44; box-shadow: 0 16px 36px -16px rgba(201,150,47,.55);
}
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-2px); }

.eyebrow--gold { color: var(--gold-deep); }

/* services directory band — faint gold glass panel (links to the live serenehealth.com pages) */
.home .svc {
  padding-block: clamp(48px, 6vw, 84px);
  background: rgba(227,176,75,.08); border-block: 1px solid rgba(201,150,47,.16);
}
.svc__head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.svc__head .eyebrow { margin-bottom: 14px; }
.svc__title { color: var(--navy); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.svc__lead { margin-top: 14px; color: var(--slate); font-size: 1.05rem; }
.svc__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1040px; margin-inline: auto; }
.svc__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(21,94,156,.25);
  color: var(--blue-deep); font-weight: 500; font-size: .96rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.svc__links a:hover { border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-2px); }
.svc__links a.svc__all { border-color: rgba(201,150,47,.6); color: var(--gold-deep); background: rgba(255,255,255,.7); }
.svc__links a.svc__all:hover { background: var(--gold); border-color: var(--gold); color: #132A44; }

/* Integrative band: white glass over the light field; gold thread in the tag + card hover */
.home .section--mist { background: rgba(255,255,255,.6); border-block: 1px solid rgba(21,94,156,.1); }
.home .intro-row__tag { color: var(--gold-deep); }
.home .care-card:hover { border-color: rgba(201,150,47,.55); }
