/* =========================================================
   Child Advancement — site stylesheet (2026 rebuild)
   Mobile-first. No frameworks, no build step.
   Brand colours taken from the original site:
   purple #431e5f / #350d57 / #2f1138, green #809817 / #889c25,
   lavender #f6eff7, event purple #7b5796.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL — see /fonts) ---------- */
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Boldonse";
  src: url("../fonts/boldonse-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --purple-950: #24092c;
  --purple-900: #2f1138;
  --purple-800: #350d57;
  --purple-700: #431e5f;
  --purple-500: #7b5796;
  --purple-400: #936bb2;
  --purple-100: #ece0f1;
  --lavender:   #f6eff7;

  --green-400:  #889c25;   /* brand accent (decorative / on dark) */
  --green-500:  #809817;   /* original brand green */
  --green-700:  #5f7110;   /* AA-contrast green for text & buttons on white */

  --ink:        #2a2131;
  --ink-soft:   #54485d;
  --line:       #e3d6e8;
  --white:      #ffffff;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Raleway", "Open Sans", system-ui, sans-serif;
  --font-accent: "Boldonse", "Raleway", system-ui, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4:  clamp(1.9rem, 1.5rem + 2vw, 3rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3rem, 2rem + 4vw, 5rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgb(47 17 56 / 0.08), 0 2px 8px rgb(47 17 56 / 0.06);
  --shadow-m: 0 6px 24px rgb(47 17 56 / 0.12);

  --container: 1120px;
  --gutter: 16px;
  --header-h: 68px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--purple-800); margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
a { color: var(--purple-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
strong { font-weight: 700; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 1000;
  background: var(--purple-800); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; color: var(--white); }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7rem 1.35rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--purple-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--purple-800); border-color: var(--purple-800); }
.btn-outline:hover { background: var(--purple-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--purple-800); }
.btn-light:hover { background: var(--green-400); color: var(--purple-950); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(230 216 240);
  -webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; max-width: calc(100% - 60px); }
.logo img { width: 299px; max-width: 100%; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px;
  background: var(--lavender); color: var(--purple-800); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
  padding: 0.5rem var(--gutter) 1.25rem;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav li a {
  display: flex; align-items: center; min-height: 52px; padding: 0.25rem 0.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--purple-800); text-decoration: none;
}
.site-nav li a:hover { color: var(--green-700); }
.site-nav li a[aria-current="page"] { color: var(--green-700); }
.site-nav li a[aria-current="page"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); margin-right: 0.6rem;
}
.nav-cta { margin-top: 1rem; display: grid; gap: 0.6rem; }
.nav-cta .btn { width: 100%; }
.header-phone { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    display: flex; align-items: center; gap: 1.25rem;
    position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; align-items: center; gap: 0.15rem; }
  .site-nav li + li { border-top: 0; }
  .site-nav li a {
    min-height: 44px; padding: 0.35rem 0.6rem; font-size: 0.95rem; border-radius: 999px; position: relative; white-space: nowrap;
  }
  .logo img { width: 230px; }
  .site-nav li a:hover { background: var(--lavender); color: var(--purple-800); }
  .site-nav li a[aria-current="page"] { color: var(--purple-800); background: var(--purple-100); }
  .site-nav li a[aria-current="page"]::before { display: none; }
  .nav-cta { display: none; }
  .header-phone { display: none; }
}
@media (min-width: 1200px) {
  .logo img { width: 299px; }
  .site-nav li a { padding-inline: 0.7rem; }
  .header-phone { display: inline-flex; min-height: 44px; padding: 0.55rem 1.05rem; white-space: nowrap; }
}
@media (min-width: 1400px) { .site-nav li a { padding-inline: 0.9rem; font-size: 1rem; } }

/* ---------- Accent badges (phone / event — echoes original Boldonse labels) ---------- */
.accent { font-family: var(--font-accent); font-weight: 400; letter-spacing: 0.02em; }
.badge-event {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--purple-500); color: var(--white); text-decoration: none;
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.72rem; line-height: 1.8; min-height: 44px;
}
.badge-event:hover { background: var(--purple-700); color: var(--white); }
.badge-event .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgb(136 156 37 / 0.35); }

/* ---------- Home hero ---------- */
.hero { background: linear-gradient(180deg, var(--lavender) 0%, #fbf7fc 100%); padding: var(--space-4) 0 var(--space-5); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
.hero-quote {
  font-family: var(--font-head); font-weight: 600; font-size: var(--step-3); line-height: 1.25;
  color: var(--purple-800); margin: 0 0 0.75rem; text-wrap: balance;
}
.hero-quote .mark { color: var(--green-500); }
.hero-attr { font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); margin-bottom: var(--space-3); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 886 / 461; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.hero .badge-event { margin-bottom: var(--space-3); }
@media (min-width: 900px) {
  .hero { padding: var(--space-6) 0; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-5); }
}

/* ---------- Inner page header (keeps original tagline + waterfall banner) ---------- */
.page-hero { background: var(--purple-700); color: var(--white); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; gap: var(--space-3); align-items: center; padding-block: var(--space-4); }
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; text-wrap: balance; }
.page-hero .tagline { font-family: var(--font-head); font-size: var(--step-1); line-height: 1.5; margin: 0; color: #f1e9f5; }
.page-hero .tagline cite { display: block; font-style: normal; font-weight: 700; color: #d9e88a; margin-top: 0.35rem; font-size: 0.95em; }
.page-hero-media { display: none; }
@media (min-width: 720px) {
  .page-hero-grid { grid-template-columns: 1.3fr 1fr; padding-block: var(--space-5); gap: var(--space-5); }
  .page-hero-media { display: block; }
  .page-hero-media img { width: 100%; aspect-ratio: 500 / 320; object-fit: cover; border-radius: var(--radius-l); box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
}

/* ---------- Tagline band (home) ---------- */
.tagline-band { background: var(--purple-700); color: var(--white); padding: var(--space-4) 0; text-align: center; }
.tagline-band p { font-family: var(--font-head); font-size: var(--step-1); margin: 0; }

/* ---------- Content ---------- */
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--lavender); }
.eyebrow { font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); margin: 0 0 0.6rem; }
.lead { font-size: var(--step-1); color: var(--ink); }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink); }

.split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); }
  .split.media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .split.media-left .split-media { order: -1; }
}
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius-m); box-shadow: var(--shadow-m); background: var(--lavender); }
.split-media.portrait img { max-width: 360px; margin-inline: auto; }
@media (max-width: 859px) { .split-media img { max-width: 420px; margin-inline: auto; } }

.symptoms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1.4rem; }
.symptoms li {
  background: var(--purple-100); color: var(--purple-800); font-weight: 600; font-size: var(--step--1);
  padding: 0.4rem 0.85rem; border-radius: 999px; line-height: 1.4;
}

/* Cards */
.card-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: var(--space-3); box-shadow: var(--shadow-s); display: flex; flex-direction: column;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.card p { margin-bottom: 0.9rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; font-weight: 700; font-family: var(--font-head); text-decoration: none; color: var(--green-700); }
.card .card-link:hover { color: var(--purple-700); }
.card .card-link::after { content: " \2192"; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--purple-100); color: var(--purple-700); margin-bottom: 0.9rem;
}
.card-icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--purple-400); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

/* Service list */
.service-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.service-list li {
  border-left: 4px solid var(--green-500); background: var(--lavender);
  padding: var(--space-2) var(--space-3); border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.service-list h2 { font-size: var(--step-1); margin: 0 0 0.25rem; }
.service-list p { margin: 0; color: var(--ink-soft); }

/* Fees */
.fee-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); box-shadow: var(--shadow-s); }
.fee-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 1.1rem var(--space-3); }
.fee-list li + li { border-top: 1px solid var(--line); }
.fee-name { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); color: var(--purple-800); }
.fee-price { font-family: var(--font-head); font-weight: 800; font-size: var(--step-1); color: var(--green-700); white-space: nowrap; }
.fee-price small { font-weight: 600; font-size: 0.8em; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.contact-card { background: var(--lavender); border-radius: var(--radius-l); padding: var(--space-4); }
.contact-card .phone-big { font-family: var(--font-head); font-weight: 800; font-size: var(--step-3); color: var(--purple-800); text-decoration: none; display: inline-block; margin-bottom: var(--space-2); }
.contact-card .phone-big:hover { color: var(--green-700); }
.map-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); background: var(--purple-100); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-caption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.6rem; }

/* CTA strip */
.cta-strip { background: var(--purple-900); color: var(--white); border-radius: var(--radius-l); padding: var(--space-4); display: grid; gap: var(--space-3); align-items: center; }
.cta-strip h2 { color: var(--white); font-size: var(--step-2); margin: 0 0 0.3rem; }
.cta-strip p { margin: 0; color: #e6dbec; }
@media (min-width: 760px) { .cta-strip { grid-template-columns: 1fr auto; padding: var(--space-4) var(--space-5); } }

/* ---------- Quote band (Frederick Douglass — on every page in the original) ---------- */
.quote-band { background: var(--green-700); color: var(--white); text-align: center; padding: var(--space-5) 0; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; }
.quote-band p { font-family: var(--font-head); font-weight: 700; font-size: var(--step-3); line-height: 1.3; margin: 0 0 0.75rem; text-wrap: balance; }
.quote-band cite { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: var(--step-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: #e9def0; padding: var(--space-5) 0 var(--space-3); font-size: var(--step--1); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--white); margin: 0 0 0.5rem; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d9e88a; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #d9e88a; text-decoration: underline; }
.footer-phone { font-family: var(--font-accent); font-size: 0.8rem; letter-spacing: 0.03em; line-height: 2; }
.copyright { border-top: 3px solid var(--green-500); margin-top: var(--space-4); padding-top: var(--space-3); color: #cdbdd6; }
.copyright p { margin: 0; }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .site-nav, .hero-media, .page-hero-media, .map-frame, .btn, .badge-event { display: none !important; }
  .page-hero, .quote-band, .site-footer { background: none; color: #000; }
  .page-hero h1, .quote-band p { color: #000; }
  body { font-size: 11pt; }
}
.header-phone .accent { font-size: 0.72rem; line-height: 1.8; }
.cta-wrap { margin-top: var(--space-5); }
