/* ============================================================
   Aboriginal Head Start — design system
   Blend of "Sunrise Editorial" (serif, cream, terracotta) and
   "Playful Sun" (rounded, warm, friendly) with a northern-lights
   accent carried over from the original site.
   ============================================================ */

:root {
  /* Warm light base (from the two approved comps) */
  --cream: #FBF3E4;
  --cream-deep: #F3E8D2;
  --card: #FFFBF3;
  --ink: #33221A;
  --ink-soft: #5c4432;
  --ink-faint: #8a7361;

  /* Accents */
  --terracotta: #C25B3C;
  --terracotta-dark: #9c4529;
  --gold: #F2C14E;
  --gold-deep: #E39B33;
  --green: #4E7A46;
  --green-soft: #d8e6d2;

  /* Aurora (northern lights) palette — used for the night-sky bands */
  --night: #0E1B2E;
  --night-2: #16283f;
  --aurora-green: #4ADE9D;
  --aurora-teal: #38BDB8;
  --aurora-violet: #8B7BD8;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-card: 0 10px 30px rgba(58, 35, 23, .07);
  --border-soft: 1px solid rgba(58, 35, 23, .08);

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-accent: 'DM Serif Display', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; }
h3 { font-size: 21px; }
.kicker {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--terracotta);
}
.lede { font-size: 19px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 16px; padding: 14px 30px; border-radius: 999px; cursor: pointer;
  border: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--cream); box-shadow: 0 5px 0 var(--terracotta-dark); }
.btn-primary:hover { background: #b04f32; }
.btn-light { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 rgba(58,35,23,.18); }
.btn-night { background: var(--night); color: #EAF4EE; box-shadow: 0 5px 0 rgba(0,0,0,.3); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 243, 228, .92);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-soft);
}
.nav {
  max-width: 1240px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-sun {
  width: 46px; height: 46px; border-radius: 50%; background: var(--terracotta);
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 4px 0 rgba(58, 35, 23, .15);
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand-name span { font-weight: 700; font-size: 10.5px; color: var(--terracotta); letter-spacing: 2.4px; margin-top: 3px; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 15.5px; }
.nav-links a { padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--terracotta); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold-deep); }
.nav-cta { white-space: nowrap; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }
@media (max-width: 940px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: var(--border-soft);
    flex-direction: column; align-items: stretch; padding: 10px 24px 18px; gap: 4px;
    box-shadow: 0 18px 30px rgba(58,35,23,.12);
  }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(58,35,23,.07); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .nav { padding: 10px 16px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 40px !important; }
  .brand-name b { font-size: 15px; white-space: nowrap; }
  .brand-name span { display: none; }
  .nav-cta { padding: 10px 16px; font-size: 14px; }
}

/* ---------- Aurora night bands ---------- */
/* The northern-lights photo the client loves, used as a framed accent:
   a dark starry band with the aurora glowing through, while the rest of
   the page stays light and warm. */
.aurora-band {
  position: relative; color: #EAF4EE; overflow: hidden;
  background: var(--night);
}
.aurora-band .aurora-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85; pointer-events: none;
}
.aurora-band .aurora-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,27,46,.4) 0%, rgba(14,27,46,.12) 55%, transparent 75%),
    linear-gradient(180deg, rgba(14,27,46,.55) 0%, rgba(14,27,46,.25) 45%, rgba(14,27,46,.6) 100%);
}
.aurora-band > .wrap { position: relative; z-index: 2; }
.aurora-band > svg { z-index: 3; }
.aurora-band h1, .aurora-band h2, .aurora-band h3 { color: #F6FBF5; text-shadow: 0 2px 22px rgba(14,27,46,.55); }
.aurora-band p { text-shadow: 0 1px 14px rgba(14,27,46,.5); }

/* Living aurora: two blurred light curtains drifting over the photo */
.aurora-band::before,
.aurora-band::after {
  content: ""; position: absolute; inset: -22% -12%;
  pointer-events: none; mix-blend-mode: screen; z-index: 1;
  filter: blur(54px); will-change: transform, opacity;
}
.aurora-band::before {
  background:
    radial-gradient(34% 48% at 22% 24%, rgba(74, 222, 157, .22), transparent 62%),
    radial-gradient(26% 38% at 68% 16%, rgba(56, 189, 184, .17), transparent 62%);
  animation: aurora-drift-a 27s ease-in-out infinite alternate;
}
.aurora-band::after {
  background:
    radial-gradient(30% 44% at 78% 34%, rgba(139, 123, 216, .16), transparent 62%),
    radial-gradient(24% 36% at 42% 20%, rgba(74, 222, 157, .14), transparent 58%),
    radial-gradient(26% 38% at 58% 52%, rgba(233, 111, 176, .10), transparent 62%);
  animation: aurora-drift-b 41s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  0%   { transform: translate3d(-4%, -2%, 0) skewX(-6deg) scaleY(1);    opacity: .7; }
  45%  { transform: translate3d(2%, 1%, 0)  skewX(5deg)  scaleY(1.14); opacity: 1; }
  100% { transform: translate3d(5%, -1%, 0) skewX(-3deg) scaleY(.94);  opacity: .78; }
}
@keyframes aurora-drift-b {
  0%   { transform: translate3d(4%, 1%, 0)  skewX(5deg)  scaleY(1.05); opacity: .85; }
  50%  { transform: translate3d(-3%, -2%, 0) skewX(-5deg) scaleY(.92); opacity: .6; }
  100% { transform: translate3d(-5%, 2%, 0) skewX(3deg)  scaleY(1.1);  opacity: .95; }
}

/* ---------- Hero ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-art { margin-top: 10px; }
}

/* ---------- Cards / grids ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card); border: var(--border-soft);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.icon-chip {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  background: rgba(194, 91, 60, .13);
}

/* Commitments list on aurora band */
.commit {
  background: rgba(246, 251, 245, .1); border: 1px solid rgba(246, 251, 245, .16);
  border-radius: var(--radius-sm); padding: 16px 20px; font-weight: 700; font-size: 15.5px;
  color: #EAF4EE; backdrop-filter: blur(2px);
}
.commit::before { content: "✦  "; color: var(--gold); }

/* Funder rows collapse on mobile */
@media (max-width: 700px) {
  [data-funder] { grid-template-columns: 1fr !important; }
  [data-funder] img { max-width: 200px; }
}

/* Team avatars */
.avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; display: block;
  border: 4px solid var(--gold); box-shadow: 0 6px 16px rgba(58,35,23,.18);
}

/* Initials monogram avatar (staff without photos) */
.initials {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #FFFBF3;
  border: 3px solid var(--gold); box-shadow: 0 5px 12px rgba(58,35,23,.15);
  background: var(--terracotta);
}
.card:nth-child(3n+2) .initials { background: var(--green); }
.card:nth-child(3n) .initials { background: var(--gold-deep); }

/* Site staff rosters */
.staff-grid { display: grid; gap: 10px; margin-top: 6px; }
.staff-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: var(--border-soft); border-radius: 14px;
  padding: 12px 18px; box-shadow: 0 3px 10px rgba(58,35,23,.05);
}
.staff-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--terracotta)); }
.staff-role {
  flex: none; width: 168px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint);
}
.staff-names { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
@media (max-width: 600px) {
  .staff-row { flex-wrap: wrap; gap: 6px 14px; }
  .staff-role { width: auto; }
}

/* Enrollment steps */
.step-card { display: flex; gap: 22px; align-items: flex-start; }
.step-num {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--terracotta); color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--terracotta-dark);
}
.step-card:nth-child(even) .step-num { background: var(--green); box-shadow: 0 4px 0 #3a5c34; }

/* Resource link lists */
.res-links { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.res-links a { color: var(--terracotta); font-weight: 700; }
.res-links a:hover { text-decoration: underline; }
.res-links span { color: var(--ink-soft); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { font-size: 18px; color: var(--ink-soft); font-weight: 600; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c9d4cf; position: relative; overflow: hidden; }
.site-footer .aurora-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.site-footer .footer-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,46,.82), rgba(14,27,46,.94)); }
.site-footer .wrap { position: relative; z-index: 2; }
.site-footer::after {
  content: ""; position: absolute; inset: -20% -10%;
  pointer-events: none; mix-blend-mode: screen; z-index: 1;
  filter: blur(60px); will-change: transform, opacity;
  background:
    radial-gradient(36% 50% at 30% 30%, rgba(74, 222, 157, .16), transparent 65%),
    radial-gradient(30% 45% at 72% 24%, rgba(139, 123, 216, .13), transparent 65%);
  animation: aurora-drift-b 47s ease-in-out infinite alternate;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; padding: 60px 0 0; }
.site-footer h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #F6FBF5; margin: 0 0 15px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a:hover { color: var(--gold); }
.land-ack {
  margin-top: 42px; padding: 20px 24px; border-radius: 16px;
  background: rgba(246, 251, 245, .07); font-size: 13.5px; line-height: 1.65; text-align: center;
}
.footer-bottom {
  margin-top: 24px; padding: 20px 0 26px; border-top: 1px solid rgba(246,251,245,.12);
  text-align: center; font-size: 13px; color: #9fb0a8;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 56px; text-align: center; }
.page-hero .kicker { margin-bottom: 12px; }
.page-hero p { max-width: 720px; margin: 18px auto 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card); border-radius: var(--radius); border: var(--border-soft);
  box-shadow: 0 18px 44px rgba(14, 27, 46, .28); padding: 38px 36px; text-align: left;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: 13.5px; margin: 0 0 6px; color: var(--ink); }
.field label small { font-weight: 700; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 15.5px;
  color: var(--ink); background: #fff; border: 1.5px solid rgba(58, 35, 23, .18);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(194, 91, 60, .15);
}
.form-status { font-weight: 700; margin-top: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #B3261E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.pill {
  display: inline-block; background: var(--card); border: var(--border-soft);
  border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
}
.stat-band {
  background: var(--terracotta); color: var(--cream); border-radius: var(--radius);
  padding: 28px 34px; display: flex; flex-wrap: wrap; gap: 18px 46px;
  align-items: center; justify-content: center; text-align: center;
}
.stat-band b { font-family: var(--font-display); font-weight: 700; font-size: 22px; display: block; }
.stat-band small { font-weight: 700; opacity: .85; font-size: 13.5px; }
.divider-dot { color: var(--terracotta); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
