/* =========================================================================
   Milestone Learning Corp — ABA Therapy
   Design system. Palette derived from the official logo.
   Concept: "Milestones" — a rainbow arc + stars, per-section color coding.
   ========================================================================= */

/* ---- Fonts (loaded via <link> in each page head) ----
   Display: Fredoka (rounded, warm, kid-friendly)
   Body:    Nunito (highly readable, friendly, professional)               */

:root {
  /* Brand — sampled from logo.jpg */
  --navy:        #002069;  /* anchor: trust, clinical */
  --navy-700:    #0a2f86;
  --navy-500:    #1a44a6;
  --blue:        #016DCF;  /* bright blue */
  --green:       #00985D;  /* growth */
  --gold:        #FDA100;  /* warmth / energy */
  --red:         #E9111C;  /* accent, use sparingly */

  /* Tints for soft section backgrounds */
  --blue-tint:   #E8F2FC;
  --green-tint:  #E4F5EE;
  --gold-tint:   #FFF3DC;
  --red-tint:    #FDEAEA;
  --navy-tint:   #EAEEF7;

  /* Neutrals */
  --bg:          #F7FAFD;  /* soft blue-tinted white */
  --surface:     #FFFFFF;
  --ink:         #12203f;  /* body text (soft navy-black) */
  --ink-soft:    #4a5678;
  --ink-faint:   #7c86a3;
  --line:        #e2e8f4;

  /* Type scale */
  --font-display: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Lato", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 4rem);

  /* Shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(0, 32, 105, 0.06);
  --shadow-md: 0 12px 30px rgba(0, 32, 105, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 32, 105, 0.16);

  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 100px;
}
@media (max-width: 600px) { :root { --header-h: 74px; } }

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1rem; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Eyebrow / labels ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: var(--step--1); color: var(--blue);
  margin: 0 0 0.75rem;
}
.eyebrow::before { content: "★"; color: var(--gold); font-size: 0.9em; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  padding: 0.8em 1.6em; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(253,161,0,0.35); }
.btn-primary:hover { background: #ffb02a; box-shadow: 0 12px 26px rgba(253,161,0,0.45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn-lg { font-size: var(--step-1); padding: 0.9em 1.9em; }

/* ---- Focus visibility ---- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card--link:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 60px; height: 60px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem;
}
/* Inline SVG icon system (replaces emoji — inherits container color) */
[data-ico] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
[data-ico] svg { width: 1.5em; height: 1.5em; }
.card__icon svg { width: 34px; height: 34px; }
.role__icon svg { width: 30px; height: 30px; }
.res-item__icon svg { width: 24px; height: 24px; }
.quote__avatar svg { width: 42px; height: 42px; }
.card h3 { margin-bottom: 0.4rem; }
.card__more { font-family: var(--font-display); font-weight: 600; color: var(--blue); }

/* Per-section color coding — the logo's four panels */
.accent-blue  .card__icon, .chip-blue  { background: var(--blue-tint);  color: var(--blue);  }
.accent-green .card__icon, .chip-green { background: var(--green-tint); color: var(--green); }
.accent-gold  .card__icon, .chip-gold  { background: var(--gold-tint);  color: #c47d00; }
.accent-red   .card__icon, .chip-red   { background: var(--red-tint);   color: var(--red);   }
.accent-navy  .card__icon, .chip-navy  { background: var(--navy-tint);  color: var(--navy);  }

.card--top-blue  { border-top: 5px solid var(--blue); }
.card--top-green { border-top: 5px solid var(--green); }
.card--top-gold  { border-top: 5px solid var(--gold); }
.card--top-red   { border-top: 5px solid var(--red); }
.card--top-navy  { border-top: 5px solid var(--navy); }

/* ---- Pills / chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35em 0.9em; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
}

/* =========================================================================
   Header / Nav (injected by site.js)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 0.65rem;
  padding-block: 0.5rem; min-height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; margin-left: -0.6rem; flex: none; }
.nav__brand img { height: 84px; width: auto; }
@media (max-width: 600px) { .nav__brand img { height: 56px; } .nav__cta { display: none; } }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.nav__brand-sub { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 0.45rem 0.5rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.93rem;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--navy-tint); text-decoration: none; }
.nav__links a.is-active { background: var(--navy); color: #fff; }
.nav__cta { margin-left: 0.4rem; white-space: nowrap; }
.lang-toggle { display: inline-flex; border: 2px solid var(--line); border-radius: var(--r-pill); overflow: hidden; flex: none; }
.lang-toggle button {
  border: 0; background: #fff; color: var(--navy); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  padding: 0.35rem 0.62rem; line-height: 1; letter-spacing: 0.02em;
}
.lang-toggle button:hover { background: var(--navy-tint); }
.lang-toggle button.active { background: var(--navy); color: #fff; }
.lang-toggle button.active:hover { background: var(--navy); }
.nav__phone { font-family: var(--font-display); font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav__phone span { display:block; font-size: 0.62rem; letter-spacing:0.12em; text-transform:uppercase; color: var(--ink-faint); font-weight:700; }
.nav__toggle {
  display: none; background: var(--navy); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem;
}
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 0.4rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s ease;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-menu a { padding: 0.6rem 0.8rem; border-radius: var(--r-sm); }

@media (max-width: 1180px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform 0.25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] .nav__links { transform: translateY(0); }
  .nav__links a { padding: 0.8rem 1rem; }
  .nav__dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--bg); margin: 0.2rem 0 0.4rem; }
  .nav__cta { margin: 0.5rem 0 0; }
  .nav__phone { display: none; }
}

/* =========================================================================
   Arc / wave dividers — the signature motif
   ========================================================================= */
.arc-top, .arc-bottom { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.arc-bottom { margin-bottom: -1px; }
.arc-top { margin-top: -1px; }
.has-arc { position: relative; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(1,109,207,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0,152,93,0.10), transparent 55%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl { color: var(--blue); position: relative; white-space: nowrap; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; color: var(--ink-soft); font-weight: 700; font-size: var(--step--1); }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust i { color: var(--green); font-style: normal; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } .hero__lead { margin-inline: auto; } .hero__cta, .hero__trust { justify-content: center; } }

/* Hero illustration built from brand shapes */
.hero__art { position: relative; aspect-ratio: 1/1; max-width: 480px; margin-inline: auto; width: 100%; }

/* =========================================================================
   Section backgrounds
   ========================================================================= */
.bg-navy  { background: var(--navy); color: #eaf0ff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-blue-tint  { background: var(--blue-tint); }
.bg-green-tint { background: var(--green-tint); }
.bg-gold-tint  { background: var(--gold-tint); }
.bg-white { background: var(--surface); }

.section-head { max-width: 60ch; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }

/* =========================================================================
   Stats
   ========================================================================= */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--gold); line-height: 1; }
.bg-navy .stat__num { color: var(--gold); }
.stat__label { color: inherit; opacity: 0.9; font-weight: 600; }

/* =========================================================================
   Steps / process (numbered — real sequence)
   ========================================================================= */
.steps { counter-reset: step; display: grid; gap: 1.3rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.step__num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: #fff; background: var(--blue); flex: none;
}
.step:nth-child(4n+1) .step__num { background: var(--blue); }
.step:nth-child(4n+2) .step__num { background: var(--green); }
.step:nth-child(4n+3) .step__num { background: var(--gold); color: var(--navy); }
.step:nth-child(4n+4) .step__num { background: var(--red); }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 0.25rem; }

/* =========================================================================
   Testimonials
   ========================================================================= */
.quote {
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.4rem);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative;
}
.quote__mark { font-family: var(--font-display); font-size: 3.5rem; color: var(--gold); line-height: 0.6; }
.quote p { font-size: var(--step-1); color: var(--ink); font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; font-weight: 700; color: var(--navy); }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-family: var(--font-display); font-weight: 700; }

/* =========================================================================
   FAQ (accordion)
   ========================================================================= */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.8rem; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--navy);
  padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__q::after { content: "+"; font-size: 1.6rem; color: var(--blue); transition: transform 0.2s; flex: none; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-500)); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd8f5; font-size: var(--step-1); max-width: 52ch; margin-inline: auto; }
.cta-band__stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; }

/* =========================================================================
   Forms
   ========================================================================= */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  padding: 0.75rem 0.9rem; border: 2px solid var(--line); border-radius: var(--r-sm);
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,109,207,0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field small { color: var(--ink-faint); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* Role selector cards */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
@media (max-width: 760px) { .role-grid { grid-template-columns: repeat(2,1fr); } }
.role {
  position: relative; border: 2px solid var(--line); border-radius: var(--r-md);
  padding: 1.1rem 1rem; cursor: pointer; background: #fff; text-align: center;
  transition: 0.15s ease; display: block;
}
.role:hover { border-color: var(--blue); }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role__icon { font-size: 1.7rem; }
.role__title { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-top: 0.4rem; display: block; }
.role__desc { font-size: 0.8rem; color: var(--ink-faint); }
.role:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: var(--shadow-sm); }
.role:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Notices */
.notice { padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; }
.notice-ok { background: var(--green-tint); color: #06693f; border: 1px solid #b7e4cf; }
.notice-info { background: var(--blue-tint); color: #044a8a; border: 1px solid #bfe0fb; }
.notice-warn { background: var(--gold-tint); color: #8a5a00; border: 1px solid #ffdf9e; }
.notice-err { background: var(--red-tint); color: #a1121a; border: 1px solid #f6c3c5; }

/* =========================================================================
   Resource list / admin table
   ========================================================================= */
.res-item {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.res-item__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; flex: none; }
.res-item__body { flex: 1 1 auto; min-width: 0; }
.res-item__body h3 { font-size: var(--step-1); margin: 0; }
.res-item__meta { font-size: var(--step--1); color: var(--ink-faint); }
.res-item__cat { font-size: 0.72rem; }
.res-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.res-filter { border: 2px solid var(--line); background: #fff; color: var(--navy); }
.res-filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-display); color: var(--navy); background: var(--navy-tint); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.icon-btn { border: 0; background: none; cursor: pointer; font-size: 1.05rem; padding: 0.3rem 0.5rem; border-radius: 8px; }
.icon-btn:hover { background: var(--navy-tint); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy); color: #c5d0ef; margin-top: 2rem; }
.site-footer a { color: #c5d0ef; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.5rem,5vw,4rem); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 54px; background: #fff; padding: 6px; border-radius: 12px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: var(--step--1); }
.footer__social a { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; }
.footer__social svg { width: 22px; height: 22px; }

/* =========================================================================
   Photos / media (photo-driven layout — reference-style)
   ========================================================================= */
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--navy-tint); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 3 / 2; }
.media--square { aspect-ratio: 1 / 1; }

/* Decorative brand shape behind a photo */
.media-wrap { position: relative; z-index: 0; }
.media-wrap::before {
  content: ""; position: absolute; z-index: -1;
  inset: auto -18px -18px auto; width: 62%; height: 62%;
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, var(--gold) 0 14px, #ffd27a 14px 28px);
  opacity: 0.5;
}
.media-wrap--blue::before { background: var(--blue-tint); opacity: 1; inset: -16px auto auto -16px; width: 55%; height: 70%; }
.media-wrap--green::before { background: var(--green-tint); opacity: 1; }

/* Hero photo */
.hero__photo { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero__photo .media { aspect-ratio: 6 / 5; }
.hero__photo::after {
  content: "★"; position: absolute; top: -14px; left: -10px;
  font-size: 2.2rem; color: var(--gold); filter: drop-shadow(0 3px 6px rgba(0,0,0,.15));
}
.hero__badge {
  position: absolute; bottom: -18px; right: -6px; z-index: 2;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; color: var(--navy); max-width: 220px;
}
.hero__badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
@media (max-width: 860px) { .hero__badge { position: static; margin: 1rem auto 0; max-width: none; width: fit-content; } .hero__photo::after { display: none; } }

/* Card with photo header */
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo .card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card--photo .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card--photo.card--link:hover .card__media img { transform: scale(1.05); }
.card--photo .card__body { padding: clamp(1.2rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card--photo .card__body h3 { margin: 0; }

/* Photo gallery ("kids love our centers") */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.5vw, 1rem); }
.gallery .media { aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); }
.gallery .media:nth-child(4n+1) { border: 4px solid var(--blue); }
.gallery .media:nth-child(4n+2) { border: 4px solid var(--green); }
.gallery .media:nth-child(4n+3) { border: 4px solid var(--gold); }
.gallery .media:nth-child(4n+4) { border: 4px solid var(--red); }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Utilities
   ========================================================================= */
.hidden { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.7rem 1rem; border-radius: 0 0 12px 0; z-index: 200; }
.skip-link:focus { left: 0; }
.text-soft { color: var(--ink-soft); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.4rem 0.9rem; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.7rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 800; background: var(--green-tint); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
