/* ============================================================
   ABC NATIONAL CARE — styles
   Editorial, calm, Reyou-inspired: massive serif display,
   masked split-text reveals, curtain image reveals, ticker,
   arch portal imagery, film grain. Colors arrive as CSS custom
   properties injected from config.js (defaults below match).
   ============================================================ */

:root {
  --bg:           #F7F2E8;
  --bg-alt:       #F0E9DA;
  --surface:      #FDFBF5;
  --primary:      #1E3A2C;
  --primary-soft: #2E4C3B;
  --body:         #415047;
  --accent:       #B4633C;
  --accent-text:  #9C5230;
  --line:         rgba(30, 58, 44, 0.14);
  --footer-bg:    #1B3428;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Figtree", "Avenir Next", "Segoe UI", sans-serif;

  --radius-card: 28px;
  --shadow-card: 0 18px 50px rgba(30, 58, 44, 0.08), 0 2px 10px rgba(30, 58, 44, 0.04);
  --shadow-card-hover: 0 30px 70px rgba(30, 58, 44, 0.13), 0 4px 14px rgba(30, 58, 44, 0.05);
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

/* Lenis smooth-scroll compat */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.125rem;               /* 18px minimum */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — unifies the painterly imagery */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

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

::selection { background: rgba(180, 99, 60, 0.22); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem);
}
.eb-idx {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.section-heading {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  max-width: 17ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.section-intro {
  max-width: 58ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.75;
}

.center { text-align: center; }
.center .section-heading, .center .section-intro { margin-inline: auto; }

/* ---------- layout ---------- */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

section { position: relative; }

.section-pad { padding-block: clamp(6.5rem, 13vw, 11.5rem); }

[id] { scroll-margin-top: 96px; }

/* ---------- split-text masked reveals ---------- */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* keep descenders un-clipped inside the mask */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.split .wi {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1.15s var(--ease-expo);
  transition-delay: var(--wd, 0ms);
  will-change: transform;
}
.split.is-visible .wi { transform: none; }

/* ---------- block reveals (cards, paragraphs) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.25s var(--ease-expo), transform 1.25s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- curtain image reveals ---------- */
.curtain { overflow: hidden; }
.curtain img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.14);
  transition: clip-path 1.35s var(--ease-expo), transform 1.9s var(--ease-expo);
  will-change: clip-path, transform;
}
.is-visible .curtain img,
.curtain.is-visible img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* ---------- buttons / dual CTA ---------- */
.cta-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 1.05rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
              background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #FBF7EE; }
.btn-primary:hover {
  background: var(--primary-soft);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 58, 44, 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(30, 58, 44, 0.35);
}
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }
.btn-ghost svg { width: 18px; height: 18px; }

.btn-light { background: #FBF7EE; color: var(--primary); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }

.btn-ghost-light {
  background: transparent;
  color: #F3EEE2;
  border-color: rgba(243, 238, 226, 0.5);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-ghost-light svg { width: 18px; height: 18px; }

/* underline-draw text link */
.learn-more {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.9875rem;
  color: var(--accent-text);
  text-decoration: none;
}
.learn-more .lm-label {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease-out);
}
.learn-more:hover .lm-label { background-size: 100% 1px; }
.learn-more::after { content: "→"; transition: transform 0.4s var(--ease-out); }
.learn-more:hover::after { transform: translateX(6px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding-block: 1.15rem;
}
.site-header.is-scrolled {
  background: rgba(247, 242, 232, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 520;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { color: var(--primary); }
.logo .logo-mark { color: var(--accent); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  position: relative;
  font-size: 0.9875rem;
  font-weight: 550;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.main-nav a:hover { opacity: 1; color: var(--accent-text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: 0.9875rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; }
.header-phone:hover { color: var(--accent-text); }
.btn-header { padding: 0.72rem 1.45rem; font-size: 0.9375rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1020px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg, .hero-bg img, .hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img, .hero-bg video { object-fit: cover; }
.hero-bg img { animation: heroSettle 3s var(--ease-expo) both; }
@keyframes heroSettle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247, 242, 232, 0.4) 0%,
      rgba(247, 242, 232, 0.08) 32%,
      rgba(247, 242, 232, 0.3) 60%,
      rgba(247, 242, 232, 0.93) 88%,
      var(--bg) 100%);
}

/* live-action video needs a heavier veil than the painterly still */
.hero.has-video .hero-veil {
  background:
    linear-gradient(180deg,
      rgba(247, 242, 232, 0.6) 0%,
      rgba(247, 242, 232, 0.34) 32%,
      rgba(247, 242, 232, 0.52) 60%,
      rgba(247, 242, 232, 0.95) 88%,
      var(--bg) 100%);
}
.hero.has-video .hero-content::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 62% at 50% 60%,
    rgba(247, 242, 232, 0.72) 0%,
    rgba(247, 242, 232, 0.42) 48%,
    transparent 74%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3.2rem, 7vh, 6rem);
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 480;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
}
.hero-brand span { color: var(--accent-text); }

.hero h1 {
  font-size: clamp(3.1rem, 8vw, 7rem);
  font-weight: 380;
  line-height: 1.02;
  max-width: 14ch;
  margin-inline: auto;
}
.hero h1 em {
  font-style: italic;
  font-weight: 360;
  color: var(--accent-text);
}

.hero-sub {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  max-width: 46ch;
  margin: 1.9rem auto 2.8rem;
  color: var(--primary);
}

.hero .cta-row { justify-content: center; }

.hero-scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--primary);
  opacity: 0.5;
  font-size: 1.4rem;
  animation: drift 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50%       { transform: translate(-50%, 8px); }
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  background: var(--bg);
}
.ticker-track {
  display: flex;
  align-items: baseline;
  gap: 3.2rem;
  width: max-content;
  animation: tick 70s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 420;
  color: var(--primary);
  white-space: nowrap;
  opacity: 0.85;
}
.ticker-sep { color: var(--accent); font-size: 1rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- what we do (treatment cards) ---------- */
.card-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.8vw, 2.4rem);
  margin-top: clamp(3.2rem, 6vw, 5rem);
}

.t-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.t-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-card-hover); }

.t-card-img { aspect-ratio: 3 / 4; overflow: hidden; }
.t-card-img img { width: 100%; height: 100%; object-fit: cover; }
.t-card:hover .t-card-img img { transform: scale(1.05); }

.t-card-body { padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column; flex: 1; }
.t-card-body h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.t-card-body p { font-size: 1.0625rem; flex: 1; }

/* ---------- interstitial (typographic + full-bleed image band) ---------- */
.interstitial {
  padding-block: clamp(7rem, 17vw, 14rem);
  text-align: center;
  overflow: hidden;
}
.interstitial .mark {
  display: block;
  color: var(--accent);
  font-size: 1.7rem;
  margin-bottom: 2rem;
}
.interstitial p {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.8vw, 5.8rem);
  font-weight: 370;
  font-style: italic;
  color: var(--primary);
  line-height: 1.14;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

.interstitial-band { position: relative; }
.interstitial-band .band-bg,
.interstitial-band .band-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.interstitial-band .band-bg img { object-fit: cover; }
.interstitial-band .band-veil {
  position: absolute;
  inset: 0;
  background: rgba(247, 242, 232, 0.78);
}
.interstitial-band .container { position: relative; z-index: 2; }

/* ---------- services grid (staggered) ---------- */
.bg-alt { background: var(--bg-alt); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.3rem);
  margin-top: clamp(3.2rem, 6vw, 5rem);
}
.s-card:nth-child(3n + 2) { margin-top: 3.5rem; }
/* center a lone card in the final row */
.s-card:last-child:nth-child(3n + 1) { grid-column: 2; margin-top: 3.5rem; }

.s-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.s-card-img { aspect-ratio: 4 / 5; overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; }
.s-card:hover .s-card-img img { transform: scale(1.05); }
.s-card-body { padding: 1.7rem 1.8rem 2rem; }
.s-idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--accent-text);
  display: block;
  margin-bottom: 0.5rem;
}
.s-card-body h3 { font-size: 1.45rem; margin-bottom: 0.6rem; line-height: 1.2; }
.s-card-body p { font-size: 1.015rem; line-height: 1.66; }

/* ---------- why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.7rem, 3vw, 2.8rem);
  margin-top: clamp(3.2rem, 6vw, 4.5rem);
}

.why-block {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 3.4vw, 3rem);
}
.why-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(180, 99, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.why-icon svg { width: 26px; height: 26px; stroke: var(--accent-text); }
.why-block h3 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.why-sub {
  font-weight: 650;
  font-size: 0.9875rem;
  color: var(--accent-text);
  margin-bottom: 1.2rem;
}
.why-block ul { list-style: none; }
.why-block li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
  font-size: 1.0325rem;
}
.why-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.honesty {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.honesty p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--primary);
  max-width: 40ch;
  margin-inline: auto;
  line-height: 1.4;
}
.honesty .mark { color: var(--accent); display: block; margin-bottom: 1.1rem; font-size: 1.4rem; }

/* ---------- steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3.4rem, 6vw, 5rem);
}
.step {
  border-top: 1.5px solid var(--line);
  padding-top: 2rem;
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4.2rem, 7vw, 6.4rem);
  font-weight: 320;
  line-height: 0.95;
  color: var(--accent);
  margin-bottom: 1.3rem;
  display: block;
}
.step h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.step p { font-size: 1.0325rem; }

/* ---------- funding ---------- */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.8vw, 2.4rem);
  margin-top: clamp(3.2rem, 6vw, 4.5rem);
}
.f-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 3.2vw, 2.7rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.f-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.f-badge {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(180, 99, 60, 0.11);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  margin-bottom: 1.3rem;
}
.f-card h3 { font-size: 1.85rem; margin-bottom: 0.9rem; }
.f-card p { font-size: 1.0325rem; flex: 1; }

/* ---------- for families (arch portal image) ---------- */
.families-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.8rem, 6vw, 6rem);
  align-items: center;
}
.families-img {
  border-radius: 999px 999px var(--radius-card) var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5.4;
}
.families-img img { width: 100%; height: 100%; object-fit: cover; }
.families-copy p { margin-bottom: 1.4rem; max-width: 56ch; }
.families-copy .cta-row { margin-top: 2.4rem; }

/* ---------- closing ---------- */
.closing {
  text-align: center;
  padding-block: clamp(7.5rem, 17vw, 14rem);
  overflow: hidden;
}
.closing .mark { display: block; color: var(--accent); font-size: 1.7rem; margin-bottom: 2rem; }
.closing h2 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-style: italic;
  font-weight: 370;
  line-height: 1.1;
  margin-bottom: 1.6rem;
}
.closing p {
  max-width: 46ch;
  margin: 0 auto 2.8rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
}
.closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #E9E4D6;
  padding: clamp(4.5rem, 9vw, 7rem) 0 2.5rem;
  font-size: 1rem;
}
.site-footer a { color: #E9E4D6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(233, 228, 214, 0.18);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #F6F2E7;
  margin-bottom: 0.9rem;
}
.footer-brand .logo-mark { color: #D89B77; }

.newsletter-copy { opacity: 0.85; max-width: 42ch; margin-bottom: 1.4rem; }

.newsletter-form { display: flex; gap: 0.6rem; max-width: 440px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--primary);
  background: #F6F2E7;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
}
.newsletter-form input::placeholder { color: rgba(30, 58, 44, 0.55); }
.newsletter-form button {
  font: inherit;
  font-weight: 650;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #FFF8EF;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.newsletter-form button:hover { background: #C4744C; transform: translateY(-1px); }
.newsletter-success { margin-top: 0.9rem; font-weight: 600; color: #F0D9C8; }

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8BFA8;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-contact-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #F6F2E7;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.footer-hours { opacity: 0.75; font-size: 0.9375rem; }

.footer-legal {
  padding-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9375rem;
  opacity: 0.82;
}
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.footer-ack { margin-top: 1.6rem; font-style: italic; opacity: 0.72; max-width: 72ch; }

/* ---------- sticky mobile call bar ---------- */
.sticky-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--primary);
  color: #FBF7EE;
  text-decoration: none;
  text-align: center;
  font-weight: 650;
  font-size: 1.0625rem;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(30, 58, 44, 0.25);
}
.sticky-call:hover { color: #fff; }
.sticky-call svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.5rem; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(27, 52, 40, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--surface);
  border-radius: 26px;
  width: min(560px, 100%);
  max-height: min(88svh, 760px);
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 40px 90px rgba(20, 40, 30, 0.35);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.4s var(--ease-out);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.6rem; }
.modal h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  padding: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--accent-text); }
.modal-intro { font-size: 1rem; margin-bottom: 1.6rem; }

.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--primary);
  background: #FFFFFF;
  border: 1.5px solid rgba(30, 58, 44, 0.22);
  border-radius: 14px;
  padding: 0.78rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(180, 99, 60, 0.16);
}

.modal .btn-primary { width: 100%; margin-top: 0.4rem; }
.modal-alt { margin-top: 1.2rem; text-align: center; font-size: 0.9875rem; }

.modal-success { text-align: center; padding: 1.5rem 0.5rem 0.8rem; }
.modal-success .success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(30, 58, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-success .success-mark svg { width: 30px; height: 30px; stroke: var(--primary); }
.modal-success h2 { margin-bottom: 0.8rem; }
.modal-success p { margin-bottom: 1.6rem; }
.modal-success .header-phone { font-size: 1.35rem; font-family: var(--font-display); }

body.modal-open { overflow: hidden; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .split .wi { transform: none; transition: none; }
  .curtain img { clip-path: none; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  .ticker-track { animation: none; }
  .hero-scroll-hint { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .s-card:nth-child(3n + 2) { margin-top: 0; }
  .s-card:nth-child(2n) { margin-top: 3rem; }
}

@media (max-width: 860px) {
  .card-trio { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .funding-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .families-split { grid-template-columns: 1fr; }
  .families-img { max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero { min-height: 92svh; }
}

@media (max-width: 640px) {
  body { padding-bottom: 62px; } /* room for sticky call bar */
  .sticky-call { display: block; }
  .service-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .s-card:nth-child(2n) { margin-top: 0; }
  .header-phone { display: none; } /* sticky call bar covers calling on mobile */
  .btn-header { padding: 0.62rem 1.2rem; font-size: 0.9375rem; white-space: nowrap; }
  .btn-header .cta-long { display: none; }
  .logo { font-size: 1.2rem; }
  .cta-row .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}
@media (min-width: 641px) {
  .btn-header .cta-short { display: none; }
}
