/* ==========================================================================
   RQA Chicago — design tokens
   Ported from the design handoff prototype (RQA Chicago Prototype.dc.html)
   and its README's documented Design Tokens table — navy / gold / cream,
   Marcellus + Source Sans 3. This is the real, approved visual design for
   the school; every class name below is kept stable so page HTML never
   needs to reference raw hex values.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Source+Sans+3:ital,wght@0,300..700;1,400&display=swap');

:root {
  /* --- Navy: primary brand — hero backgrounds, primary buttons, links, headings */
  --navy-900: #0B2440;  /* footer background */
  --navy-800: #0E2C52;  /* table headers, utility bar, headings on light */
  --navy-600: #123A6B;  /* primary brand — hero bg, primary buttons, links */

  /* --- Gold: accent — kickers, CTA-on-dark, borders, dividers ------------ */
  --gold-600: #8A6516;  /* kicker/eyebrow text, small caps labels */
  --gold-500: #C9A24A;  /* accent — CTA buttons on dark, borders, dividers */
  --gold-300: #E8CE8B;  /* kickers/links on navy, button hover on navy */
  --gold-200: #F2E3B8;  /* ghost-button text on navy */
  --gold-100: #E3D3A9;  /* highlighted card borders on cream */

  /* --- Crimson: alerts, warnings, link hover ------------------------------ */
  --crimson-700: #7A1030;  /* alert bar background, warning kickers */
  --crimson-600: #8C1236;  /* link hover, "read more" accents */
  --crimson-500: #A81941;  /* timeline current-marker */

  /* --- Cream / rose / blue: section fills and status card tints ---------- */
  --cream-50:  #FAF7F0;  /* section background, table zebra */
  --cream-100: #F5EEDC;  /* TO CONFIRM / tbc badge background */
  --rose-50:   #FDF3F5;  /* warning card background (late fees, absences) */
  --rose-100:  #F0D3DC;  /* warning card border */
  --blue-50:   #EEF2F8;  /* meal-row highlight, milestone tag background */
  --blue-100:  #DCE3EC;  /* elementary card border */

  /* --- Ink: text ----------------------------------------------------------- */
  --ink-900: #2A3444;  /* body text */
  --ink-700: #3A4250;  /* long-form prose */
  --ink-600: #4A5462;  /* secondary prose, lead paragraphs on light */
  --ink-500: #5A6472;  /* captions, metadata */
  --ink-400: #8A93A0;  /* disabled / em-dash cells */

  /* --- Lines --------------------------------------------------------------- */
  --line-200: #E7E2D6;  /* standard border (warm grey) */
  --line-100: #F0ECE2;  /* table row divider */
  --line-50:  #F4F1EA;  /* checklist row divider */
  --dash-300: #DCD6C8;  /* dashed borders, form field borders */

  /* --- On-navy text ---------------------------------------------------------- */
  --on-navy-body:   #D3DEEE;
  --on-navy-muted:  #B9C8DC;
  --on-navy-faint:  #8FA4C0;
  --on-navy-bright: #EAF0F8;

  /* --- Semantic aliases: use THESE in component CSS ------------------------ */
  --surface:  var(--cream-50);
  --card:     #ffffff;
  --line:     var(--line-200);
  --text-hi:  var(--navy-800);   /* headings, strong */
  --text-mid: var(--ink-900);    /* body copy */
  --text-lo:  var(--ink-500);    /* mono meta, captions, labels */
  --accent:   var(--navy-600);   /* primary action, links, focus */

  /* --- Program identity: Preschool = gold, Elementary = navy -------------- */
  --brand-50:  var(--cream-50);
  --brand-100: var(--gold-100);
  --brand-200: var(--gold-100);
  --brand-400: var(--navy-600);   /* Elementary accent */
  --brand-500: var(--navy-600);
  --brand-600: var(--navy-800);
  --brand-700: var(--gold-500);   /* Preschool accent */
  --gray-50:  var(--cream-50);
  --gray-200: var(--line-200);
  --gray-400: var(--ink-400);
  --gray-600: var(--ink-500);
  --gray-900: var(--navy-600);

  /* --- Status: TO CONFIRM reuses the gold/cream pair; alerts reuse rose --- */
  --success-fg: #2F7D4F;  --success-bg: #EAF3EC;   /* Enrolling / OPEN */
  --warning-fg: var(--gold-600);  --warning-bg: var(--cream-100);  /* TBC */
  --error-fg:   var(--crimson-700);  --error-bg: var(--rose-50);   /* alerts */

  /* --- Type ------------------------------------------------------------- */
  --font-serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Radius -------------------------------------------------------------- */
  --radius-sm:   6px;    /* buttons */
  --radius-md:   8px;    /* small cards */
  --radius-lg:  10px;    /* cards */
  --radius-full: 999px;  /* pills */

  /* --- Elevation: dropdown only. Cards use a hairline, never a shadow. ---- */
  --shadow-xs: none;
  --shadow-sm: 0 14px 34px rgba(11, 36, 64, .18);
}

/* ==========================================================================
   Base
   ========================================================================== */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--card);
  color: var(--text-mid);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-hi);
  text-wrap: pretty;
}
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.25; }

p { margin: 0 0 14px; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text-hi); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--crimson-600); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ==========================================================================
   Patterns used by the design
   ========================================================================== */

/* Section eyebrow — mono, gold, uppercase. Owns the gap below itself. */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 12px;
}

/* Lede — one step up from body, capped so it stays readable. */
.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 700px;
}

/* Bands carry the page rhythm: default white, .surface cream, .navy dark,
   .tint a soft gold tint for closing CTAs. Alternate them. */
.band { padding: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.band--surface { background: var(--surface); }
.band--tint    { background: var(--cream-50); border-bottom-color: var(--gold-100); }
.band--navy {
  background: var(--navy-600);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom-color: transparent;
}
.band--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(216, 196, 138, .22) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .55;
  pointer-events: none;
}
.band--navy > * { position: relative; }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--navy .eyebrow { color: var(--gold-300); }
.band--navy .lede, .band--navy p { color: var(--on-navy-body); }
.band--navy a:not(.btn) { color: var(--gold-300); }
.band--navy strong { color: #fff; }
.band--navy .btn--primary { background: var(--gold-500); color: #231703; }
.band--navy .btn--primary:hover { background: var(--gold-300); color: #231703; }
.band--navy .btn--outline { border-color: rgba(216, 196, 138, .55); color: var(--gold-200); }
.band--navy .btn--outline:hover { background: rgba(216, 196, 138, .12); color: var(--gold-200); }
.band--navy .btn--ghost { color: var(--gold-200); }
.band--navy .btn--ghost:hover { background: rgba(216, 196, 138, .12); }
.band--navy .img-ph { background: rgba(255, 255, 255, .04); border-color: rgba(216, 196, 138, .4); color: var(--gold-300); }

/* Card — hairline, not a shadow. */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Mono figure, for the fact strip — actually Marcellus per the design. */
.figure { font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--accent); }

/* Buttons. Every button is an <a> in this design and needs inline-block. */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--navy-600); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.btn--outline { background: transparent; border: 1px solid var(--line); color: var(--text-hi); }
.btn--outline:hover { background: var(--surface); color: var(--text-hi); }
.btn--ghost { background: transparent; color: var(--text-hi); font-weight: 600; }
.btn--ghost:hover { background: var(--surface); }

/* Badge — status pill. Colour AND a word, never colour alone. */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
}
.badge--success { background: var(--success-bg); color: var(--success-fg); }
.badge--warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge--primary { background: var(--gold-100);   color: var(--gold-600); }
.badge--neutral { background: var(--surface);    color: var(--text-mid); }
.badge--pre     { background: var(--gold-100);   color: var(--gold-600); }  /* Preschool accent, matches --brand-700 */
.badge--elem    { background: var(--blue-50);    color: var(--navy-600); }  /* Elementary accent, matches --brand-400 */

/* "Not settled yet" pill — the exact TO CONFIRM spec from the source. */
.tbc {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  background: var(--cream-100);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gold-600);
}

/* Image placeholder. Keep these deliberately obvious and LABELLED until real
   photography arrives — an unlabelled grey box reads as a broken image. */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--ink-400);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-lo);
  text-align: center;
  padding: 12px;
}

/* Rotated-diamond icon — the "what makes us different" pattern. No icon
   library; a bordered square rotated 45deg with a solid inset square. */
.diamond-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-500);
  border-radius: 4px;
  transform: rotate(45deg);
  margin-bottom: 20px;
  position: relative;
}
.diamond-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--fill, var(--navy-600));
  border-radius: 2px;
}

/* Gold fade divider — inside cream cards. */
.gold-divider { height: 1px; background: linear-gradient(90deg, #D8C48A, transparent); margin: 20px 0 14px; }

/* Responsive: below 900px every two-column grid collapses to one column,
   in source order. */
@media (max-width: 900px) {
  .band { padding: 32px 20px; }
}
