/* =====================================================================
   FULLY FUNCTIONAL AUTISM CENTER — Design System
   Warm Modernism × Editorial Design × Organic Motion
   ===================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette — Deep Plum × Warm Cream × Blush × Apricot × Teal
     (token names kept stable; only their values changed) */
  --forest: #3A2E5C;        /* deep plum/indigo — primary dark brand */
  --forest-700: #2F2549;    /* darker plum */
  --forest-900: #221A38;    /* deepest plum (footer, deep sections) */
  --ivory: #FBF6EF;         /* warm cream — main background */
  --ivory-dark: #F1E8DC;
  --sage: #F3DDDA;          /* soft blush — alternating soft sections */
  --sage-deep: #E9C7C2;     /* deeper blush */
  --terracotta: #F0A868;    /* apricot — accent */
  --terracotta-deep: #E08C43;/* deep apricot — accent hover/contrast text */
  --teal: #2F9C95;          /* supporting teal accent */
  --teal-soft: #8FCFC9;
  --charcoal: #2A2438;      /* deep ink — body copy */
  --white: #FFFFFF;

  /* Semantic tokens */
  --bg: var(--ivory);
  --surface: var(--white);
  --text: var(--charcoal);
  --text-muted: #6A6480;
  --heading: var(--forest);
  --accent: var(--terracotta);
  --on-dark: var(--ivory);

  /* Typography */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --fs-display: clamp(2.75rem, 1.4rem + 6vw, 7rem);

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;
  --sp-8: 10rem;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --shadow-sm: 0 2px 10px rgba(23, 63, 53, 0.06);
  --shadow: 0 20px 50px -24px rgba(23, 63, 53, 0.28);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--terracotta); color: var(--forest-900); }

:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--forest); color: var(--ivory);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 2000; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--forest { background: var(--forest); color: var(--on-dark); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--sage { background: var(--sage); }

/* ---------- 4. TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--terracotta-deep); display: inline-block;
}
.section--forest .eyebrow { color: var(--terracotta); }

.lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--text); max-width: 60ch; }
.section--forest .lead { color: var(--sage); }

.h2 { font-size: var(--fs-h2); }
.measure { max-width: 62ch; }
.muted { color: var(--text-muted); }
.section--forest .muted { color: rgba(244, 240, 232, 0.7); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--ivory);
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.6rem; border: 1px solid transparent; border-radius: 100px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }

.btn--accent { --btn-bg: var(--terracotta); --btn-fg: var(--forest-900); }
.btn--accent:hover { background: var(--terracotta-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--forest);
  border-color: rgba(23, 63, 53, 0.25);
}
.btn--ghost:hover { background: rgba(23, 63, 53, 0.06); }
.section--forest .btn--ghost { --btn-fg: var(--ivory); border-color: rgba(244,240,232,0.3); }
.section--forest .btn--ghost:hover { background: rgba(244,240,232,0.1); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; color: var(--forest);
  position: relative; padding-bottom: 2px;
}
.section--forest .textlink { color: var(--ivory); }
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.textlink:hover::after { transform: scaleX(1); }
.textlink .arrow { transition: transform 0.35s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ---------- 6. HEADER / NAV ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.1rem;
}
.header.is-scrolled {
  background: rgba(244, 240, 232, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23,63,53,0.08);
  padding-block: 0.6rem;
}


.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 800; color: var(--forest); letter-spacing: -0.02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--forest); color: var(--ivory);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 800;
}
/* Wide wordmark logo (already contains name + tagline) shown as a banner. */
.brand__logo {
  flex: none; display: block; width: auto; height: 46px; object-fit: contain;
}
.header.is-scrolled .brand__logo { height: 40px; }
.brand__logo--footer { height: 52px; background: var(--white); padding: 8px 12px; border-radius: 10px; }
@media (max-width: 640px){
  .brand__logo { height: 38px; }
  .brand__logo--footer { height: 46px; }
}
/* Because the logo already spells out the brand, hide the adjacent text label
   (kept in the DOM for screen readers via the link's aria-label). */
.brand .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand__name { font-size: 1.05rem; line-height: 1.1; }
.brand__name span { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--forest);
  position: relative; padding: 0.4rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--terracotta-deep); transform: scaleX(0); transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle { display: none; background: none; border: none; padding: 0.5rem; color: var(--forest); }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 82vw);
    background: var(--forest); color: var(--ivory); flex-direction: column; align-items: stretch;
    padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.25); }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 0.4rem; }
  .nav__link { color: var(--ivory); font-size: 1.25rem; padding: 0.6rem 0; }
  .nav__link::after { background: var(--terracotta); }
  .nav__cta { margin-top: 1rem; }
  .nav__toggle { display: block; z-index: 1100; }
  body.nav-open { overflow: hidden; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(34,26,56,0.5); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease); z-index: 999; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
}

/* ---------- 7. HERO ---------- */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.03em; }

/* --- Editorial hero: bright ivory, oversized centered type, drawn growth-line --- */
.hero--editorial {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(9rem, 18vh, 12rem);
  padding-bottom: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(217,229,216,0.55), transparent 70%),
    var(--ivory);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero--editorial .hero__eyebrow { justify-content: center; margin-bottom: var(--sp-3); }
.hero--editorial .hero__eyebrow::before { display: none; }

.hero--editorial .hero__title {
  font-size: clamp(3rem, 1rem + 9vw, 9.5rem);
  line-height: 0.94; letter-spacing: -0.04em; margin-bottom: var(--sp-3);
}
.hero--editorial .hero__title em { font-style: normal; color: var(--terracotta-deep); }
.hero--editorial .hero__lead { margin-inline: auto; text-align: center; max-width: 56ch; }
.hero--editorial .hero__actions { justify-content: center; margin-top: var(--sp-4); }

/* stat row */
.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem);
  margin: var(--sp-5) 0 0;
}
.hero__stats div { display: flex; flex-direction: column; align-items: center; }
.hero__stats dt { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); color: var(--forest); letter-spacing: -0.02em; }
.hero__stats dd { margin: 0; font-size: 0.9rem; color: var(--text-muted); max-width: 18ch; }

/* drawn organic growth line */
.hero__path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.9; }
.hero__path-line {
  stroke: var(--terracotta); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-out) 0.3s;
  opacity: 0.55;
}
.hero.is-ready .hero__path-line { stroke-dashoffset: 0; }
.hero__path-dot { fill: var(--terracotta-deep); opacity: 0; }
.hero.is-ready .hero__path-dot { animation: dotTravel 2.6s var(--ease-out) 0.3s forwards; }
@keyframes dotTravel {
  0% { opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
.hero__path-dot { offset-path: path("M-40,420 C220,300 340,540 560,400 C760,275 900,470 1120,330 C1300,215 1420,360 1520,270"); offset-distance: 0%; }

/* editorial scrolling ribbon at the bottom of the hero */
.hero__marquee {
  width: 100%; margin-top: clamp(2.5rem, 6vh, 5rem);
  background: var(--forest); color: var(--ivory);
  overflow: hidden; padding-block: 1rem; position: relative; z-index: 2;
}
.hero__marquee-track {
  display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap;
  will-change: transform; animation: marquee 32s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em;
}
.hero__marquee-track .dot { color: var(--terracotta); font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__marquee:hover .hero__marquee-track { animation-play-state: paused; }

@media (max-width: 640px) {
  .hero__stats { gap: 1.4rem 2rem; }
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--terracotta-deep); }
.hero__lead { margin-top: var(--sp-3); }
.hero__actions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__eyebrow { margin-bottom: var(--sp-3); }

.hero__media { position: relative; }
.hero__img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--sage);
}
.hero__img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--white);
  border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.8rem; max-width: 240px;
}
.hero__badge .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--forest); line-height: 1; }
.hero__badge .lbl { font-size: 0.8rem; color: var(--text-muted); }

/* Designed hero panel (replaces hero photo) */
.hero__panel {
  position: relative; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(155deg, rgba(244,240,232,0.12), rgba(244,240,232,0.04));
  border: 1px solid rgba(244,240,232,0.18);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__panel::after {
  /* faint concentric "cell" rings echoing the animated background */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 46%, rgba(240,168,104,0.20) 47%, transparent 49%),
    radial-gradient(circle, transparent 62%, rgba(240,168,104,0.14) 63%, transparent 65%),
    radial-gradient(circle at 35% 35%, rgba(143,207,201,0.22), transparent 60%);
  pointer-events: none;
}
.hero__panel-eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta);
}
.hero__panel-quote {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.3rem); line-height: 1.12; color: var(--ivory);
  position: relative; z-index: 1;
}
.hero__panel-list { display: flex; flex-direction: column; gap: 0.6rem; position: relative; z-index: 1; }
.hero__panel-list li {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem; color: rgba(244,240,232,0.9);
}
.hero__panel-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--terracotta); box-shadow: 0 0 0 4px rgba(230,167,124,0.18);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin-inline: auto; }
}

/* ---------- 8. ORGANIC BACKGROUND VISUALS ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; z-index: 0; opacity: 0.7; }
.blob--sage { background: radial-gradient(circle at 30% 30%, var(--sage-deep), transparent 72%); opacity: 0.85; }
.blob--terra { background: radial-gradient(circle at 30% 30%, var(--terracotta), transparent 70%); opacity: 0.6; }
.blob--teal { background: radial-gradient(circle at 30% 30%, var(--teal-soft), transparent 72%); opacity: 0.55; }
/* on the dark plum sections, blobs are lighter/warmer so they actually read */
.blob--forest { background: radial-gradient(circle at 30% 30%, #6b5aa0, transparent 68%); opacity: 0.75; }
/* gentle visible drift so the background feels alive even without scrolling */
.blob { animation: blobFloat 18s ease-in-out infinite; }
.blob--terra { animation-duration: 22s; animation-delay: -5s; }
.blob--teal  { animation-duration: 26s; animation-delay: -9s; }
.blob--forest{ animation-duration: 30s; animation-delay: -3s; }
@keyframes blobFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(24px,-30px,0) scale(1.08); }
  66%     { transform: translate3d(-20px,18px,0) scale(0.96); }
}
.hero .blob--1 { width: 520px; height: 520px; top: -120px; right: -120px; }
.hero .blob--2 { width: 300px; height: 300px; bottom: 40px; left: -140px; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- 9. INTRO (forest) ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: end; }
.intro__statement { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h2); color: var(--white); letter-spacing: -0.02em; line-height: 1.08; }
@media (max-width: 800px){ .intro__grid { grid-template-columns: 1fr; align-items: start; } }

/* Philosophy — The Fully Functional System + outcomes */
.philosophy__system { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.philosophy__system-intro { max-width: 70ch; margin-bottom: var(--sp-5); }
.philosophy__system-intro .lead { color: var(--sage); }
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.outcomes li {
  border-top: 2px solid rgba(240,168,104,0.5); padding-top: 1.1rem;
}
.outcomes h3 { color: var(--white); font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.5rem; }
.outcomes p { color: rgba(244,240,232,0.72); font-size: 0.95rem; }
@media (max-width: 900px){ .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .outcomes { grid-template-columns: 1fr; } }

/* ---------- 10. SERVICES ---------- */
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.service {
  display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-top: 1px solid rgba(23,63,53,0.15);
  transition: background 0.4s var(--ease); position: relative;
}
.service:last-child { border-bottom: 1px solid rgba(23,63,53,0.15); }
.service__num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--terracotta-deep); }
.service__body h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; transition: transform 0.4s var(--ease); }
.service__body p { color: var(--text-muted); max-width: 60ch; }
.service__arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(23,63,53,0.2);
  display: grid; place-items: center; color: var(--forest); flex: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover { background: rgba(217,229,216,0.4); }
.service:hover .service__body h3 { transform: translateX(8px); }
.service:hover .service__arrow { background: var(--forest); color: var(--ivory); transform: rotate(0deg) scale(1.05); }
@media (max-width: 700px){
  .service { grid-template-columns: 60px 1fr; }
  .service__arrow { display: none; }
}

/* ---------- 11. ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.about__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: linear-gradient(160deg,#57487f,var(--forest-900)); margin: 0; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.about__img:hover img { transform: scale(1.04); }
.about__img figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem 1.1rem;
  color: var(--ivory); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(to top, rgba(34,26,56,0.8), transparent);
}
/* if the photo is missing, keep a designed panel instead of a broken image */
.about__img.is-empty img { display: none; }
.about__img.is-empty::after {
  content: "Fully Functional Autism Center"; position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 2rem;
  color: var(--ivory); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
}

/* Designed about panel (replaces about photo) */
.about__panel {
  position: relative; border-radius: var(--radius-lg); aspect-ratio: 3/4;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem;
  background: linear-gradient(160deg, #57487f 0%, var(--forest) 55%, var(--forest-900) 100%);
  box-shadow: var(--shadow); overflow: hidden;
}
.about__panel::before {
  content: ""; position: absolute; top: -70px; left: -70px; width: 300px; height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 48%, rgba(240,168,104,0.22) 49%, transparent 51%),
    radial-gradient(circle, transparent 66%, rgba(240,168,104,0.14) 67%, transparent 69%),
    radial-gradient(circle at 35% 35%, rgba(143,207,201,0.24), transparent 62%);
  pointer-events: none;
}
.about__panel-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem);
  color: rgba(230,167,124,0.9); line-height: 1; position: relative; z-index: 1; margin-bottom: auto;
}
.about__panel-lead {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.1; color: var(--ivory);
  position: relative; z-index: 1;
}
.about__panel-sub { color: var(--sage); font-size: 0.98rem; position: relative; z-index: 1; }
.about__panel-tag {
  margin-top: 0.6rem; font-family: var(--font-head); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,240,232,0.6);
  position: relative; z-index: 1;
}
.about__statement { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--forest); border-left: 3px solid var(--terracotta); padding-left: 1.2rem; margin: var(--sp-4) 0; }
@media (max-width: 820px){ .about__grid { grid-template-columns: 1fr; } .about__img { max-width: 420px; } }

/* ---------- 12. TEAM ---------- */
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--sp-6); }
.member { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.5rem); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__avatar {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ivory); background: var(--forest); margin-bottom: 1.3rem;
}
.member:nth-child(2) .member__avatar { background: var(--terracotta-deep); color: var(--forest-900); }

/* Member photo (founder) with initials fallback */
.member__photo {
  position: relative; width: 100%; aspect-ratio: 4/5; max-width: 320px;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.4rem;
  background: linear-gradient(160deg, #57487f, var(--forest-900));
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.6s var(--ease); position: relative; z-index: 1;
}
.member--photo:hover .member__photo img { transform: scale(1.05); }
.member__photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: rgba(244,240,232,0.9);
}
/* when the image fails to load, hide it and reveal the fallback initials */
.member__photo.is-empty img { display: none; }
.member h3 { font-size: var(--fs-h3); }
.member .role { font-family: var(--font-head); font-weight: 600; color: var(--terracotta-deep); margin: 0.3rem 0 0.9rem; }
@media (max-width: 720px){ .team__grid { grid-template-columns: 1fr; } }

/* ---------- 13. FEATURED MESSAGE ---------- */
.feature__big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 3.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.06; color: var(--white); max-width: 20ch; }
.feature__big em { font-style: normal; color: var(--terracotta); }

/* ---------- 14. RESOURCES ---------- */
.res__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: var(--sp-6); }
.res-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem,2.5vw,2rem); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: flex; flex-direction: column; gap: 0.7rem; }
.res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.res-card .tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta-deep); font-weight: 600; }
.res-card h3 { font-size: 1.2rem; }
.res-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.res-card h3 { color: var(--forest); transition: color 0.3s var(--ease); line-height: 1.25; }
.res-card--link:hover h3 { color: var(--terracotta-deep); }
.res-card--link .textlink .arrow { transition: transform 0.35s var(--ease); }
.res-card--link:hover .textlink .arrow { transform: translate(3px,-3px); }
@media (max-width: 860px){ .res__grid { grid-template-columns: 1fr; } }

/* ---------- 15. RESOURCES + IN THE PRESS (static founder background) ---------- */
/* The founder office photo is a fixed background behind the blog + press archive.
   Applied per-section so the FAQ section between them is unaffected.
   Falls back to the plum colour until assets/press-bg.jpg is present. */
.press-bg-section { position: relative; isolation: isolate; background: var(--forest-900); }
.press__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(34,26,56,0.86), rgba(34,26,56,0.9)),
    url("assets/press-bg.jpg");
  background-size: cover;
  background-position: 22% 80%;      /* focus lower-left, on the founder at the desk */
  background-attachment: fixed;      /* stays static while content scrolls over it */
  background-repeat: no-repeat;
}
/* On touch / small screens, fixed attachment is janky — pin it normally instead. */
@media (max-width: 900px) {
  .press__bg { background-attachment: scroll; background-position: 26% 76%; }
}
.press-bg-section .lead { color: rgba(244,240,232,0.82); }
/* the white article cards keep their dark heading on their own light surface */
.press-bg-section .res-card h3 { color: var(--forest); }

.press__head { max-width: 720px; margin-bottom: var(--sp-6); }
.press__featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--forest); color: var(--ivory); margin-bottom: clamp(1.5rem,3vw,2.5rem);
}
.press__featured-cover {
  min-height: 340px; padding: clamp(2rem,4vw,3.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #57487f, #221a38);
  position: relative; overflow: hidden;
}
.press__featured-cover .cover-pub { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--ivory); letter-spacing: -0.02em; }
.press__featured-cover .cover-kicker { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.press__featured-body { padding: clamp(2rem,4vw,3.5rem); display: flex; flex-direction: column; justify-content: center; }
.press__featured-body h3 { color: var(--white); font-size: var(--fs-h3); margin: 0.8rem 0 1rem; }
.press__featured-body p { color: var(--sage); margin-bottom: 1.5rem; }

.press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem,3vw,2rem); }
@media (max-width: 980px){ .press__grid { grid-template-columns: 1fr 1fr; } }
.press-card {
  display: block; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.press-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.press-card__cover {
  height: 150px; display: flex; align-items: flex-end; padding: 1.2rem 1.4rem; overflow: hidden;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
}
.press-card:nth-child(2) .press-card__cover { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep)); }
.press-card:nth-child(3) .press-card__cover { background: linear-gradient(135deg, var(--teal-soft), var(--teal)); }
.press-card:nth-child(3) .press-card__cover .pub { color: var(--white); }
.press-card__cover .pub { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--forest-900); }
.press-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.press-card__body .meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta-deep); font-weight: 600; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.press-card__body h4 { font-family: var(--font-head); font-size: 1.15rem; color: var(--forest); margin: 0.6rem 0 0.7rem; line-height: 1.25; }
.press-card__body p { font-size: 0.92rem; color: var(--text-muted); }
.press-card .go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; color: var(--forest); font-size: 0.9rem; }
.press-card:hover .go .arrow { transform: translate(3px,-3px); }
.press-card .go .arrow { transition: transform 0.35s var(--ease); }
@media (max-width: 820px){ .press__featured { grid-template-columns: 1fr; } .press__grid { grid-template-columns: 1fr; } }

/* ---------- 16. CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact__info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(244,240,232,0.12); display: grid; place-items: center; color: var(--terracotta); }
.info-row h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.2rem; }
.info-row p, .info-row a { color: var(--sage); font-size: 0.98rem; }
.info-row a { text-decoration: underline; text-underline-offset: 3px; }
.info-row a:hover { color: var(--white); }
.contact__actions { margin-top: 1.8rem; }

.form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem,4vw,2.75rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--forest); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.85rem 1rem; border: 1.5px solid rgba(23,63,53,0.18);
  border-radius: var(--radius-sm); background: var(--ivory); color: var(--charcoal);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,63,53,0.12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b23c2b; }
.field .err { color: #b23c2b; font-size: 0.82rem; margin-top: 0.35rem; min-height: 1em; display: block; }
.form__status { margin-top: 0.5rem; font-weight: 600; font-family: var(--font-head); }
.form__status.ok { color: var(--forest); }
@media (max-width: 820px){ .contact__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq__item { border-bottom: 1px solid rgba(58,46,92,0.16); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  color: var(--forest); transition: color 0.3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--terracotta-deep); }
.faq__icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--terracotta-deep); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__answer { overflow: hidden; padding-bottom: clamp(1.1rem, 2.5vw, 1.6rem); }
.faq__answer p { color: var(--text-muted); max-width: 68ch; }
.faq__item[open] summary { color: var(--terracotta-deep); }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer { animation: faqOpen 0.4s var(--ease-out); }
  @keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- 17. FOOTER ---------- */
.footer { background: var(--forest-900); color: var(--ivory); padding-block: clamp(3.5rem,7vw,6rem) 2rem; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem,4vw,3rem); }
.footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.footer a { color: rgba(244,240,232,0.72); font-size: 0.95rem; line-height: 2.1; transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--terracotta); }
.footer__brand .brand__name { color: var(--ivory); }
.footer__brand .brand__name span { color: rgba(244,240,232,0.6); }
.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(244,240,232,0.1); color: var(--ivory);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social a:hover { background: var(--terracotta); color: var(--forest-900); transform: translateY(-3px); }
.footer__brand p { color: rgba(244,240,232,0.7); margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer__bottom { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.5rem; border-top: 1px solid rgba(244,240,232,0.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(244,240,232,0.6); }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 18. MOTION / REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* hero line reveal */
.hero__title .line > span { transform: translateY(110%); transition: transform 0.9s var(--ease-out); }
.hero.is-ready .hero__title .line > span { transform: translateY(0); }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero.is-ready .hero__title .line:nth-child(3) > span { transition-delay: 0.2s; }
.hero__fade { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.hero.is-ready .hero__fade { opacity: 1; transform: none; }
.hero.is-ready .hero__eyebrow { transition-delay: 0.05s; }
.hero.is-ready .hero__lead { transition-delay: 0.35s; }
.hero.is-ready .hero__actions { transition-delay: 0.5s; }
.hero.is-ready .hero__media { transition-delay: 0.3s; }

.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__title .line > span { transform: none !important; transition: none !important; }
  .blob { display: none; }
  .btn:hover, .member:hover, .res-card:hover, .press-card:hover { transform: none; }
  .parallax { transform: none !important; }
  * { animation: none !important; }
  /* draw the growth line instantly, no travel */
  .hero__path-line { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero__path-dot { display: none; }
  .hero__marquee-track { animation: none !important; transform: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===================================================================
   CMS ADDITIONS — mobile CTA, cookie banner, form states, loading
   =================================================================== */

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900;
  background: var(--terracotta); color: var(--forest-900);
  font-family: var(--font-head); font-weight: 700; text-align: center;
  padding: 1rem; border-radius: 100px; box-shadow: 0 12px 30px -8px rgba(34,26,56,0.45);
}
@media (max-width: 720px) { .mobile-cta { display: block; } .footer { padding-bottom: 6rem; } }
@media (prefers-reduced-motion: no-preference) { .mobile-cta { transition: transform 0.3s var(--ease); } .mobile-cta:active { transform: scale(0.97); } }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1200;
  max-width: 560px; margin-inline: auto;
  background: var(--forest); color: var(--ivory);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.9rem;
}
.cookie-banner p { font-size: 0.9rem; color: rgba(244,240,232,0.9); margin: 0; }
.cookie-banner a { color: var(--terracotta); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.7rem; }
.cookie-banner .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.cookie-banner[hidden] { display: none !important; }
@media (max-width: 720px) { .cookie-banner { bottom: 5.5rem; } }

/* Form select styling to match inputs */
.field select {
  width: 100%; font: inherit; padding: 0.85rem 1rem; border: 1.5px solid rgba(58,46,92,0.18);
  border-radius: var(--radius-sm); background: var(--ivory); color: var(--charcoal);
}
.field select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(58,46,92,0.12); }

/* Button loading state */
.btn.is-loading { opacity: 0.7; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; margin-left: 0.5rem;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  display: inline-block; animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation: none; } }

/* Contact form grid pairing (form sits beside info in .contact__grid) */
.contact__grid > .form { align-self: start; }

/* ===================================================================
   MULTIPAGE NAV — dropdowns (desktop) + accordion (mobile)
   =================================================================== */
.nav__item { position: relative; }
.nav__parent {
  background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav__caret { font-size: 0.7em; transition: transform 0.3s var(--ease); }
.nav__submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; margin-top: 0.6rem;
  background: var(--white); border-radius: var(--radius-sm); padding: 0.5rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50; list-style: none;
}
.nav__item.has-children:hover .nav__submenu,
.nav__item.has-children.is-open .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item.has-children:hover .nav__caret,
.nav__item.has-children.is-open .nav__caret { transform: rotate(180deg); }
.nav__sublink {
  display: block; padding: 0.6rem 0.8rem; border-radius: 8px; color: var(--forest);
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__sublink:hover { background: var(--sage); color: var(--forest-900); }

@media (max-width: 900px) {
  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.06); margin: 0.3rem 0 0.6rem; max-height: 0; overflow: hidden;
    padding: 0; transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .nav__item.has-children.is-open .nav__submenu { max-height: 500px; padding: 0.4rem; }
  .nav__sublink { color: var(--ivory); }
  .nav__sublink:hover { background: rgba(255,255,255,0.1); color: var(--ivory); }
  .nav__parent { width: 100%; justify-content: space-between; font-size: 1.25rem; padding: 0.6rem 0; }
}

/* ===================================================================
   FULL MOBILE OPTIMIZATION — refined breakpoints for every section
   =================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: clamp(1.25rem, 4vw, 3rem); }
  .services__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 768px) {
  .hero--editorial { min-height: auto; padding-top: 7.5rem; padding-bottom: 3rem; }
  .hero--editorial .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero__stats { gap: 1.2rem 1.8rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__marquee-track span { font-size: 0.9rem; }
  .intro__grid, .about__grid, .contact__grid, .team__grid { grid-template-columns: 1fr; }
  .about__img { max-width: 100%; margin-bottom: 1.5rem; }
  .outcomes { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 44px 1fr; gap: 1rem; padding-block: 1.4rem; }
  .service__arrow { display: none; }
  .service__body h3 { font-size: 1.25rem; }
  .press__featured { grid-template-columns: 1fr; }
  .press__featured-cover { min-height: 200px; }
  .press__grid, .res__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding-block: clamp(2.75rem, 9vw, 4rem); }
}
@media (max-width: 480px) {
  :root { --gutter: 1.15rem; }
  html { font-size: 15px; }
  .hero--editorial .hero__title { font-size: clamp(2.2rem, 13vw, 3rem); line-height: 1; }
  .hero__stats { grid-template-columns: 1fr; display: grid; gap: 1rem; text-align: center; }
  .hero__stats div { align-items: center; }
  .outcomes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__name { display: none; }
  .btn { width: 100%; justify-content: center; }
  .nav__cta { width: 100%; }
  .h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .lead { font-size: 1.05rem; }
  .member, .res-card, .press-card__body { padding: 1.25rem; }
  .form { padding: 1.4rem; }
  .cookie-banner { left: 0.6rem; right: 0.6rem; padding: 1rem; }
  .cookie-banner__actions .btn { flex: 1; }
  .nav__link, .nav__sublink, .footer a { min-height: 44px; display: flex; align-items: center; }
}

/* ===================================================================
   MOBILE OVERFLOW HARD-FIX — nothing bleeds off-screen on phones
   =================================================================== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; width: 100%; max-width: 100%; }
  .wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
  .blob { max-width: 90vw; max-height: 60vh; }
  .hero__title, .h2, .intro__statement, .feature__big,
  .press__featured-body h3, .about__statement {
    word-break: break-word; overflow-wrap: anywhere; hyphens: auto; max-width: 100%;
  }
  .hero__marquee { max-width: 100%; overflow: hidden; }
  section, .section, header, footer, main { max-width: 100%; overflow-x: clip; }
  .press__bg { max-width: 100%; }
}
@media (max-width: 400px) {
  .hero__title, .hero--editorial .hero__title { font-size: clamp(2rem, 11vw, 2.6rem); }
  .intro__statement, .feature__big { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* ===================================================================
   GLOBAL OVERFLOW GUARD — applies at ALL widths (fixes zoom margin)
   =================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
/* The scrolling marquee must never widen the page or cause a side margin */
.hero__marquee { max-width: 100vw; overflow: hidden; }
.hero__marquee-track { will-change: transform; }
/* Blobs are decorative; clip them so they can't create scroll space */
.hero, .section, .press-zone, .press-bg-section { overflow-x: clip; }

/* ===================================================================
   FLOATING WHATSAPP BUTTON (number set in admin Settings)
   =================================================================== */
.wa-float {
  position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.7); }
.wa-float:active { transform: scale(0.96); }
.wa-float svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: waPulse 2.4s ease-out infinite;
  }
  @keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
  }
}
@media (max-width: 720px) {
  .wa-float { bottom: 5rem; width: 52px; height: 52px; }
}
