:root {
  --navy: #123A63;
  --navy-dark: #08233f;
  --green: #2E7D32;
  --green-dark: #19551f;
  --gold: #D4AF37;
  --white: #ffffff;
  --cream: #fbf8ef;
  --light: #f5f8fb;
  --text: #1c2733;
  --muted: #607085;
  --border: rgba(18, 58, 99, 0.16);
  --shadow: 0 18px 45px rgba(8, 35, 63, 0.12);
  --shadow-soft: 0 10px 24px rgba(8, 35, 63, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: linear-gradient(180deg, var(--light), #fff); }
.section-cream { background: var(--cream); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.78rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.35rem, 5vw, 5rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 18px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #314255; max-width: 760px; }
.small { font-size: 0.92rem; color: var(--muted); }
.gold-text { color: var(--gold); }
.green-text { color: var(--green); }

.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
}
.topbar-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.topbar a { color: #fff; font-weight: 700; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 240px;
}
.brand-logo { width: 82px; height: auto; }
.brand-text strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.1; letter-spacing: 0.01em; }
.brand-text span { display: block; color: var(--green); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.2s ease; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
}
.primary-nav a:hover,
.primary-nav a.active { background: rgba(46,125,50,0.11); color: var(--green); }
.primary-nav a.nav-donate { background: var(--gold); color: var(--navy-dark); box-shadow: 0 8px 18px rgba(212,175,55,.25); }
.primary-nav a.nav-donate:hover { background: #e5bf44; color: var(--navy-dark); }

.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-outline { border-color: rgba(18,58,99,.25); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.hero-banner {
  position: relative;
  background: #f7fbf7;
  overflow: hidden;
}
.hero-banner .hero-img {
  width: 100%;
  height: auto;
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(8,35,63,0.72));
  padding: 70px 0 32px;
  color: #fff;
  pointer-events: none;
}
.hero-overlay strong { font-size: clamp(1.2rem, 2vw, 1.75rem); display: block; }
.hero-overlay span { color: #f6dc82; font-weight: 800; }

.page-hero {
  background: linear-gradient(135deg, rgba(18,58,99,0.95), rgba(46,125,50,0.9));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  min-height: 460px;
  gap: 34px;
  padding: 48px 0;
}
.page-hero h1,
.page-hero h2 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.9); }
.page-hero .eyebrow { color: #fff; }
.page-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,.18);
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.intro-panel {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-item {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--light));
  min-height: 132px;
}
.stat-item strong { display: block; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1; }
.stat-item span { color: var(--muted); font-weight: 700; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.card:hover { transform: translateY(-4px); transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow); }
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(46,125,50,.12);
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.card:nth-child(even) .card-icon { background: rgba(18,58,99,.1); color: var(--navy); }
.card:nth-child(3n) .card-icon { background: rgba(212,175,55,.18); color: #9a7416; }
.card ul,
.check-list { padding: 0; margin: 18px 0 0; list-style: none; }
.card li,
.check-list li { position: relative; padding-left: 26px; margin: 10px 0; }
.card li::before,
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  position: absolute;
  left: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.image-card img { width: 100%; height: auto; }
.callout {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(212,175,55,.18);
}
.callout h2,
.callout h3 { color: #fff; }
.callout p { color: rgba(255,255,255,.88); }
.callout .btn { position: relative; z-index: 1; }

.cta-band {
  background: linear-gradient(90deg, var(--green), var(--navy));
  color: #fff;
  padding: 46px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 0; }

.program-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.program-row:nth-child(even) { grid-template-columns: 1.05fr 0.95fr; }
.program-row:nth-child(even) .program-image { order: 2; }
.program-image img { width: 100%; height: 100%; object-fit: cover; min-height: 310px; }
.program-content { padding: 34px; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { color: var(--navy); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(18,58,99,.24);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: start; }
.contact-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-panel h3 { color: #fff; }
.contact-line { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-line strong { display: block; color: #fff; }
.contact-line a { color: #f7d669; font-weight: 800; }

.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.82);
  padding-top: 58px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 30px;
  padding-bottom: 38px;
}
.footer h3,
.footer h4 { color: #fff; }
.footer-logo { width: 112px; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 14px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 8px 0; }
.footer a { color: rgba(255,255,255,.9); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .92rem;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--navy-dark);
  display: none;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}
.back-to-top.show { display: grid; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-links { display: none; }
  .header-inner { min-height: 76px; }
  .brand-logo { width: 70px; }
  .brand-text strong { font-size: .92rem; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { border-radius: 14px; padding: 13px 14px; }
  .page-hero-grid,
  .split,
  .contact-grid,
  .program-row,
  .program-row:nth-child(even) { grid-template-columns: 1fr; }
  .program-row:nth-child(even) .program-image { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 54px 0; }
  .brand { min-width: auto; }
  .brand-text span { display: none; }
  .hero-banner .hero-img { min-height: 440px; object-fit: cover; object-position: center; }
  .hero-overlay { position: static; background: var(--navy); padding: 22px 0; }
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-strip,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .card, .callout, .form-card, .contact-panel { padding: 24px; border-radius: 20px; }
  .page-hero-grid { min-height: auto; padding: 34px 0; }
  .page-hero-img { border-radius: 20px; }
  .footer-bottom { display: block; }
  .footer-bottom-links { margin-top: 12px; }
}

/* Zeffy donation embed */
.donation-layout { align-items: start; }
.donation-note {
  margin-top: 24px;
  border-left: 5px solid var(--gold);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}
.donation-note strong { display: block; color: var(--navy); margin-bottom: 6px; }
.donation-note span { color: var(--muted); font-weight: 700; }
.zeffy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.zeffy-card-header {
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.zeffy-card-header span { font-weight: 900; letter-spacing: .03em; text-transform: uppercase; font-size: .86rem; }
.zeffy-card-header strong { color: #f8e29a; }
.zeffy-embed-wrap { padding: 18px; min-height: 620px; }
.zeffy-embed-wrap iframe { border-radius: 18px; background: #fff; }
.zeffy-card .form-note { padding: 0 20px 20px; }
@media (max-width: 650px) {
  .zeffy-embed-wrap { padding: 10px; min-height: 680px; }
  .zeffy-card-header { padding: 16px; }
}
