/* =========================================================================
   AID B4 8 — SITE STYLES
   -------------------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED (read this if you are not a developer):

   1. "THEME COLORS" below is the ONLY section you should need to touch to
      re-color the whole site. Change a value, save, refresh the page.
   2. Everything after that is layout/behaviour and rarely needs editing.
   3. Search for a section by its "== NAME ==" comment banner.
   ========================================================================= */

/* ============================== THEME COLORS ============================
   Pulled from the Aid B4 8 logo (navy + teal), plus warm, playful accents
   so the site feels friendly and kid-focused rather than corporate.
   All colors are in one place — change these and the whole site updates. */
:root {
  /* Brand (from the logo) */
  --navy: #17335c;
  --navy-deep: #0f2340;
  --teal: #17a398;
  --teal-deep: #0e7d74;

  /* Warm, playful accents (kid-themed, not corporate) */
  --sunshine: #ffbe3d;
  --coral: #ff7a59;
  --mint: #eaf7f2;
  --cream: #fffaf1;
  --sky: #eaf4fb;

  /* Text */
  --ink: #1c2b3a;
  --ink-soft: #4d5f6f;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.82);

  /* Surfaces */
  --bg: var(--cream);
  --card: #ffffff;
  --border: #e7ddc9;

  /* Chart accents (used for the two impact charts) */
  --chart-1: var(--teal);
  --chart-2: var(--sunshine);
  --chart-3: var(--coral);

  /* Shape + shadow language */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px -12px rgba(23, 51, 92, 0.18);
  --shadow-lift: 0 18px 40px -14px rgba(23, 51, 92, 0.28);

  --font-display: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

/* ============================== RESET ================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
section { position: relative; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow.on-dark { color: var(--sunshine); }

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============================== BUTTONS ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { background: #ff6a44; }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ============================== DOODLE BACKGROUND ======================
   Cute floating baby/kid emoji sprinkled behind content, low contrast so
   they never fight with the text. Purely decorative (aria-hidden). */
.doodle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.doodle {
  position: absolute;
  font-size: 2.4rem;
  opacity: 0.12;
  filter: saturate(0.8);
  animation: doodle-float 9s ease-in-out infinite;
}
.doodle-field.on-dark .doodle { opacity: 0.16; }
.doodle-field.on-light .doodle { opacity: 0.09; }
@keyframes doodle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .doodle { animation: none; }
}

/* ============================== HEADER ================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(23, 51, 92, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  display: block;
}
.main-nav { display: none; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--on-dark-soft);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
}
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions .btn-primary.header-donate { display: inline-flex; }
}
.header-donate { display: none; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { color: #fff; font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); }

/* ============================== HERO =================================== */
.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 35, 64, 0.82) 0%, rgba(17, 51, 78, 0.55) 45%, rgba(15, 35, 64, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 150px 0 80px;
}
.hero h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  color: #fff;
  font-weight: 700;
}
.hero .lede {
  margin-top: 20px;
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--on-dark-soft);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}
.watch-btn:hover { background: rgba(255, 255, 255, 0.22); }
.watch-btn .play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sunshine);
  color: var(--navy-deep);
}
.hero-tag {
  margin-top: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* ============================== VIDEO MODAL ============================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 34, 0.86);
}
.video-modal.open { display: flex; }
.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#video-modal-content {
  position: absolute;
  inset: 0;
}
.video-modal-box video,
.video-modal-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-empty {
  color: #fff;
  text-align: center;
  padding: 40px;
  font-weight: 600;
}

/* ============================== SECTION HEADINGS ======================= */
.section-head { max-width: 640px; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--navy);
  line-height: 1.15;
}
.section-head p {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================== MISSION ================================ */
.mission { padding: 90px 0; }
.pillars {
  margin-top: 50px;
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
}
/* Deliberately different corner treatment per card instead of identical
   rounded rectangles, so the row doesn't read as a stamped-out template. */
.pillar:nth-child(1) { border-radius: 30px 30px 30px 8px; }
.pillar:nth-child(2) { border-radius: 8px 30px 30px 30px; background: var(--mint); border-color: transparent; }
.pillar:nth-child(3) { border-radius: 30px 8px 30px 30px; }
.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--sky);
}
.pillar:nth-child(2) .pillar-icon { background: #fff; }
.pillar h3 { font-size: 1.2rem; color: var(--navy); }
.pillar p { color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }

/* ============================== IMPACT ================================= */
.impact { padding: 90px 0; background: var(--sky); }
.stat-row {
  margin-top: 50px;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card:nth-child(2) { background: var(--teal); }
.stat-card:nth-child(3) { background: var(--coral); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 700;
}
.stat-label {
  margin-top: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.stat-note { margin-top: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

.charts-row {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) { .charts-row { grid-template-columns: 3fr 2fr; } }
.chart-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.chart-card h3 { color: var(--navy); font-size: 1.1rem; }
.chart-card .sub { margin-top: 4px; color: var(--ink-soft); font-size: 0.88rem; }

.bar-chart {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 200px;
}
.bar-chart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.bar-chart .bar {
  width: 100%;
  max-width: 46px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  transition: height 0.9s cubic-bezier(.2,.8,.2,1);
  height: 0;
}
.bar-chart .bar-year { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; }

.donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(var(--chart-1) 0 0);
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--card);
}
.legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; color: var(--ink-soft); }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.legend .name { display: flex; align-items: center; }
.legend .pct { font-weight: 800; color: var(--navy); }

/* ============================== FOUNDER ================================= */
.founder { padding: 100px 0; background: var(--navy-deep); position: relative; overflow: hidden; }
.founder-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .founder-grid { grid-template-columns: 1.3fr 1fr; } }
.founder h2 { color: #fff; margin-top: 12px; }
.founder .role { margin-top: 8px; color: var(--on-dark-soft); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.founder .story { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.founder .story p { color: var(--on-dark-soft); line-height: 1.65; }
.founder blockquote {
  margin-top: 26px;
  max-width: 520px;
  border-left: 4px solid var(--sunshine);
  padding-left: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}
.founder-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lift);
}
.founder-photo img { height: 340px; width: 100%; object-fit: cover; }
.founder-photo figcaption {
  padding: 12px 16px;
  background: rgba(15, 35, 64, 0.9);
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder-flag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--sunshine);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================== TESTIMONIALS ============================ */
.testimonials { padding: 90px 0; }
.testi-grid {
  margin-top: 50px;
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-md);
}
/* Alternate tint so the row isn't three identical white cards in a row */
.testi-card:nth-child(odd) { background: var(--card); box-shadow: var(--shadow-card); }
.testi-card:nth-child(even) { background: var(--mint); }
.testi-card:nth-child(2) { transform: translateY(-14px); }
@media (max-width: 799px) { .testi-card:nth-child(2) { transform: none; } }
.testi-quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--sunshine); line-height: 1; }
.testi-card blockquote { margin-top: 10px; flex: 1; color: var(--ink); line-height: 1.6; font-size: 0.98rem; }
.testi-person { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.testi-person img, .testi-person .avatar-fallback {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none;
}
.testi-person .avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--sky); color: var(--navy); font-weight: 800; font-family: var(--font-display);
}
.testi-person .name { font-weight: 800; color: var(--navy); font-size: 0.92rem; display: block; }
.testi-person .detail { color: var(--ink-soft); font-size: 0.8rem; }

/* ============================== DONATE CTA ============================== */
.donate-cta { padding: 0 20px 100px; }
.donate-box {
  max-width: 1160px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%);
  border-radius: 34px;
  padding: 56px 40px;
  display: grid;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .donate-box { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 64px 56px; } }
.donate-box h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.donate-box .body-copy { margin-top: 16px; color: var(--on-dark-soft); line-height: 1.6; }
.donate-points { display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); padding: 26px; backdrop-filter: blur(6px); }
.donate-points li { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-weight: 600; font-size: 0.95rem; }
.donate-points .check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sunshine); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900;
}

/* ============================== FOOTER =================================== */
footer.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); padding: 60px 0 0; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 38px; width: 38px; }
.footer-brand span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer-tag { margin-top: 14px; font-size: 0.9rem; line-height: 1.6; }
footer h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
footer ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================== REVEAL-ON-SCROLL ========================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================== UTILITY =================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
