:root {
  --navy: #0b2f56;
  --navy-2: #073d83;
  --blue: #0955ad;
  --blue-soft: #eef5ff;
  --orange: #f9b040;
  --orange-hover: #f4a72a;
  --ink: #17283a;
  --muted: #5d6b79;
  --line: #dce5ee;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --shadow: 0 24px 60px rgba(5, 36, 74, .16);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid #1e78d6; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,229,238,.95);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { width: 232px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.primary-nav a { color: #30465c; font-weight: 700; font-size: 14px; }
.primary-nav a:hover { color: var(--blue); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--orange);
  color: #17324d;
  box-shadow: 0 10px 28px rgba(249,176,64,.28);
}
.button-primary:hover { background: var(--orange-hover); box-shadow: 0 12px 32px rgba(249,176,64,.34); }
.button-small { min-height: 44px; padding-inline: 19px; font-size: 14px; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.button-ghost:hover { background: rgba(255,255,255,.14); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow-light { color: #ffd58b; }

.hero { position: relative; min-height: 660px; isolation: isolate; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; z-index: -2; }
.hero-media {
  background-image: url('../images/children-learning.webp');
  background-size: cover;
  background-position: center 43%;
  transform: scale(1.01);
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,28,59,.94) 0%, rgba(5,36,74,.83) 47%, rgba(5,36,74,.30) 76%, rgba(5,36,74,.18) 100%),
    linear-gradient(0deg, rgba(4,28,59,.18), rgba(4,28,59,.18));
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); gap: 54px; align-items: center; min-height: 660px; padding-block: 64px; }
.hero-copy { color: #fff; max-width: 700px; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(48px, 5.4vw, 72px); line-height: 1.01; letter-spacing: -.045em; }
.hero-lead { margin: 24px 0 0; max-width: 630px; color: rgba(255,255,255,.88); font-size: clamp(17px,1.7vw,20px); line-height: 1.6; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin: 42px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 660px; border-top: 1px solid rgba(255,255,255,.26); padding-top: 20px; }
.hero-trust li { padding-right: 18px; }
.hero-trust strong, .hero-trust span { display: block; }
.hero-trust strong { color: #fff; font-size: 17px; }
.hero-trust span { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.35; }

.donation-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.donation-card-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.donation-card-header h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; line-height: 1.1; }
.donation-card-header p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
fieldset { margin: 22px 0 0; padding: 0; border: 0; }
legend, .custom-field label { display: block; margin-bottom: 9px; color: #405266; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.amount-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.amount-button {
  min-height: 48px;
  border: 1px solid #cfdbe7;
  border-radius: 12px;
  background: #fff;
  color: var(--navy-2);
  font-weight: 850;
  cursor: pointer;
}
.amount-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.amount-button.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.custom-field { margin-top: 16px; }
.currency-input { display: flex; align-items: center; min-height: 52px; border: 1px solid #cfdbe7; border-radius: 12px; background: #fff; overflow: hidden; }
.currency-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,85,173,.10); }
.currency-input > span { padding-left: 15px; color: #516274; font-weight: 800; }
.currency-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 14px 12px 7px; color: var(--ink); }
.field-error { margin: 7px 0 0; color: #a72424; font-size: 13px; }
.donation-submit { width: 100%; margin-top: 18px; min-height: 54px; border: 0; }
.payment-note { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: #657384; font-size: 12px; line-height: 1.45; }
.payment-note svg { width: 18px; height: 18px; fill: var(--blue); margin-top: 1px; }

.section { padding: 88px 0; }
.section-intro { background: var(--surface); }
.split-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.78fr); gap: 80px; align-items: start; }
.section-heading h2, .impact-heading h2, .about-card h2, .final-cta h2 { margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.08; letter-spacing: -.04em; }
.section-copy { color: var(--muted); font-size: 17px; }
.section-copy p { margin: 0 0 18px; }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 52px; }
.support-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(19,57,94,.06); }
.icon-wrap { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); }
.icon-wrap svg { width: 24px; height: 24px; fill: var(--blue); }
.support-card h3 { margin: 20px 0 8px; font-size: 20px; line-height: 1.2; }
.support-card p { margin: 0; color: var(--muted); font-size: 15px; }

.section-impact { background: var(--navy); color: #fff; }
.impact-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 70px; align-items: end; }
.impact-heading p:last-child { margin: 0; color: rgba(255,255,255,.7); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 46px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; overflow: hidden; }
.metric { min-height: 185px; padding: 28px; background: rgba(255,255,255,.055); display: flex; flex-direction: column; justify-content: flex-end; }
.metric strong { color: #ffd38a; font-size: clamp(34px,4vw,48px); line-height: 1; letter-spacing: -.035em; }
.metric span { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.45; }

.about-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.75fr); gap: 70px; padding: 48px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line); }
.about-card > div:last-child { color: var(--muted); font-size: 16px; }
.about-card > div:last-child > p { margin-top: 0; }
.text-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.text-links a { color: var(--blue); font-weight: 800; }

.final-cta { padding-top: 0; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 38px 44px; border-radius: 24px; background: #fff5df; border: 1px solid #f5dfb5; }
.final-cta h2 { max-width: 760px; font-size: clamp(30px,3vw,42px); }

.site-footer { background: #071f3a; color: #fff; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand img { width: 180px; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { margin: 8px 0 0; color: rgba(255,255,255,.58); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: rgba(255,255,255,.75); font-size: 13px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 70px; }
  .hero { min-height: auto; }
  .donation-card { max-width: 620px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,28,59,.95), rgba(5,36,74,.78) 65%, rgba(5,36,74,.38)); }
  .split-layout, .impact-heading, .about-card { grid-template-columns: 1fr; gap: 26px; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 70px; gap: 14px; }
  .brand { width: 170px; }
  .header-inner > .button { min-height: 40px; padding-inline: 14px; font-size: 13px; }

  .hero-media { background-position: 58% 42%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,28,59,.93) 0%, rgba(5,36,74,.84) 60%, rgba(5,36,74,.78) 100%); }
  .hero-layout { padding-block: 52px; gap: 30px; }
  .hero h1 { font-size: clamp(42px,12vw,56px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .hero-trust li { padding-right: 6px; }
  .hero-trust li:last-child { grid-column: 1 / -1; }

  .donation-card { padding: 22px; border-radius: 20px; }
  .donation-card-header h2 { font-size: 27px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .amount-button { min-height: 50px; font-size: 16px; }

  .section { padding: 64px 0; }
  .section-heading h2, .impact-heading h2, .about-card h2 { font-size: 36px; }
  .support-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .support-card { padding: 24px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 150px; }
  .about-card { padding: 28px; }
  .final-cta-inner { padding: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* WordPress utility pages */
.thank-you-page { min-height: 65vh; background: var(--surface-2); }
.thank-you-card { max-width: 820px; padding: 54px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 18px 45px rgba(5,36,74,.08); }
.thank-you-card h1 { margin: 0; font-size: clamp(38px,5vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.thank-you-card > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 17px; }
.button-outline { border-color: var(--line); background: #fff; color: var(--navy); }
@media (max-width: 680px) { .thank-you-card { padding: 30px 24px; } }

/* v1.0.4 highlighted why + impact sections */
.section-why {
  background: #eef3f6;
  padding: 80px 0 44px;
}
.why-card {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 28px;
  padding: 40px 42px;
  box-shadow: 0 10px 30px rgba(19,57,94,.05);
}
.eyebrow-accent { color: #e49a27; }
.why-card h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.why-intro {
  margin: 24px 0 0;
  max-width: 860px;
  color: #5f7081;
  font-size: 18px;
  line-height: 1.7;
}
.why-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.why-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #edf3fb;
  color: #0f55b3;
  font-size: 15px;
  font-weight: 800;
}
.why-card h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.why-support-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.support-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.support-list li {
  position: relative;
  padding-left: 18px;
  color: #5f7081;
  font-size: 16px;
  line-height: 1.55;
}
.support-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8a034;
}

.section-impact {
  background: #eef3f6;
  padding: 24px 0 84px;
  color: var(--ink);
}
.impact-card {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 28px;
  padding: 28px 0;
  box-shadow: 0 10px 30px rgba(19,57,94,.05);
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.impact-stat {
  padding: 10px 28px 12px;
  text-align: center;
  border-right: 1px solid #d7e0e8;
}
.impact-stat:last-child { border-right: 0; }
.impact-accent {
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #e8a034;
}
.impact-stat strong {
  display: block;
  color: #0f55b3;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
}
.impact-label {
  display: block;
  margin-top: 8px;
  color: #25413c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.impact-stat p {
  margin: 10px auto 0;
  max-width: 220px;
  color: #677788;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer { padding: 32px 0 36px; }
.footer-brand img {
  width: 180px;
  height: auto;
  filter: none;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  opacity: 1;
}

@media (max-width: 1020px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-stat:nth-child(2) { border-right: 0; }
  .impact-stat:nth-child(-n+2) { border-bottom: 1px solid #d7e0e8; padding-bottom: 24px; }
  .impact-stat:nth-child(n+3) { padding-top: 24px; }
}

@media (max-width: 680px) {
  .section-why { padding: 56px 0 18px; }
  .why-card { padding: 28px 24px; border-radius: 24px; }
  .why-card h2 { font-size: clamp(34px, 10vw, 48px); }
  .why-intro { font-size: 16px; }
  .why-chip { width: fit-content; font-size: 14px; }
  .why-card h3 { font-size: 28px; }
  .section-impact { padding: 18px 0 56px; }
  .impact-card { padding: 14px 0; border-radius: 24px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-stat {
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid #d7e0e8;
  }
  .impact-stat:nth-child(-n+2),
  .impact-stat:nth-child(n+3) { padding-top: 18px; padding-bottom: 18px; }
  .impact-stat:last-child { border-bottom: 0; }
  .footer-brand img { width: 170px; }
}


/* v1.0.5 footer background refinement */
.site-footer { background: #111111; color: #ffffff; }
.footer-brand p { color: rgba(255,255,255,.68); }
.footer-links { color: rgba(255,255,255,.82); }
.footer-links a:hover { color: #ffffff; }
