/* =========================================================
   Alonyo Foundation — Design System
   Palette matched to the logo (blue/orange/teal/pink), fast/snappy motion
   Note: variable names kept as --green-N and --gold-N for backward
   compatibility across the codebase, but values are now blue/orange.
   ========================================================= */

:root {
  /* "Green" scale -> brand blue (from the logo wordmark, #0E74BC) */
  --green-950: #0A2E4A;
  --green-900: #0D4A78;
  --green-800: #0E5C93;
  --green-700: #0E74BC;
  --green-600: #2286C9;
  --green-500: #3B9AD6;
  --green-400: #6BB3E0;
  --green-300: #9FCCEA;
  --green-200: #CCE4F4;
  --green-100: #E6F3FB;
  --green-50:  #F3FAFD;

  /* Warm neutrals */
  --sand-50:  #FDFBF6;
  --sand-100: #FBF7EE;
  --sand-200: #F4EEDD;

  /* "Gold" scale -> brand orange (from the logo, #F8931D) */
  --gold-400: #FAA83F;
  --gold-500: #F8931D;
  --gold-600: #D97D0F;

  /* Extra logo accents, used sparingly (icon variety, tags) */
  --teal-500: #15ACA3;
  --teal-600: #0E8E86;
  --teal-100: #DFF5F3;
  --pink-500: #EB1A6B;
  --pink-600: #C2135A;
  --pink-100: #FCE1EC;
  --leaf-500: #8BC741;

  /* Ink (blue-tinted neutrals, replacing the old green-tinted grays) */
  --ink-900: #15222E;
  --ink-800: #1D2E3C;
  --ink-700: #3C4C59;
  --ink-500: #647685;
  --ink-300: #9AACB8;

  --white: #FFFFFF;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(10, 46, 74, 0.08), 0 1px 2px rgba(10, 46, 74, 0.06);
  --shadow-md: 0 8px 24px -6px rgba(10, 46, 74, 0.16), 0 2px 6px rgba(10, 46, 74, 0.08);
  --shadow-lg: 0 20px 48px -12px rgba(10, 46, 74, 0.24);

  /* Radius */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 6px;
  --r-pill: 999px;

  /* Motion — fast & snappy per project preference */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  background: var(--sand-100);
  color: var(--ink-900);
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-950);
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

p { color: var(--ink-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 88px 0; }
@media (max-width: 720px) { .section-pad { padding: 56px 0; } }

.bg-white { background: var(--white); }
.bg-sand { background: var(--sand-100); }
.bg-sand-2 { background: var(--sand-200); }
.bg-green-50 { background: var(--green-50); }
.bg-green-900 { background: var(--green-900); color: var(--green-100); }
.bg-green-900 p { color: var(--green-200); }
.bg-green-900 h2, .bg-green-900 h3 { color: var(--white); }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.bg-green-900 .eyebrow { background: rgba(255,255,255,0.1); color: var(--gold-400); }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--ink-700);
  max-width: 620px;
}
.bg-green-900 .lede { color: var(--green-100); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

.text-gold { color: var(--gold-500); }
.text-green { color: var(--green-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }

.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-800); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: var(--white); transform: translateY(-2px); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--green-900); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,46,74,0.06);
  transition: box-shadow 420ms var(--ease-out), background-color 420ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(251, 247, 238, 0.97); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding 420ms var(--ease-out);
}
.site-header.is-scrolled .nav-wrap { padding: 10px 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 420ms var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.site-header.is-scrolled .brand-logo { height: 34px; }
.brand-mark-icon {
  width: 38px; height: 38px;
  display: block;
  flex-shrink: 0;
  transition: transform 420ms var(--ease-out);
}
.brand:hover .brand-mark-icon { transform: rotate(-8deg) scale(1.05); }
.brand-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-950);
  line-height: 1.1;
  transition: font-size 420ms var(--ease-out);
}
.site-header.is-scrolled .brand-name { font-size: 0.97rem; }
.brand-name span { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.06em; color: var(--green-600); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green-600);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  border-radius: 5px;
  align-items: center; justify-content: center;
  color: var(--green-900);
}
.nav-toggle:hover { background: var(--green-100); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 72px 16px auto 16px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    gap: 18px;
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .nav-links.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Photo backgrounds (solid-color overlays, no gradients) ---------- */
.photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--photo-tint, rgba(8, 30, 48, 0.4));
}
.photo > * { position: relative; z-index: 2; }
.photo-dark { --photo-tint: rgba(8, 30, 48, 0.68); }
.photo-light { --photo-tint: rgba(8, 30, 48, 0.16); }

.img-block.photo, .map-box.photo {
  transition: transform 500ms var(--ease-out);
}
.img-block.photo:hover, .map-box.photo:hover { transform: scale(1.025); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 96px 0 110px;
}
@media (min-width: 900px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 90px;
  }
  .hero-stats { flex-wrap: nowrap; }
  .hero-stat { flex: 1; text-align: center; }
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1100ms var(--ease-out);
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background-color: rgba(8, 30, 48, 0.66); }

.hero-inner { position: relative; z-index: 2; max-width: 640px; animation: hero-fade-up 900ms var(--ease-out) both; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 { color: var(--white); margin-bottom: 14px; line-height: 1.1; }
.hero .lede { color: var(--green-100); max-width: 540px; margin-bottom: 26px; line-height: 1.45; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 14px 20px;
  transition: background 300ms var(--ease-out), transform 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
@media (max-width: 899px) {
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stat { padding: 12px 14px; }
  .hero-stat strong { font-size: 1.4rem; }
}
.hero-stat:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); transform: translateY(-3px); }
.hero-stat strong { display: block; font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.7rem; color: var(--gold-400); }
.hero-stat span { font-size: 0.82rem; color: var(--green-200); }

.hero-dots { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; padding: 0; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.hero-dots button.active { background: var(--gold-400); transform: scale(1.25); }
@media (max-width: 720px) { .hero-dots { display: none; } }

/* ---------- Marquee / partner strip ---------- */
.strip {
  background: var(--green-950);
  color: var(--green-200);
  padding: 14px 0;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.strip strong { color: var(--gold-400); }

/* ---------- Cards: Programs ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  border: 1px solid rgba(10,46,74,0.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-tile {
  width: 54px; height: 54px;
  border-radius: var(--r-sm);
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.card:hover .icon-tile { background: var(--green-700); color: var(--white); transform: rotate(-6deg) scale(1.08); }
.icon-tile svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--green-700); }
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-spring); }
.card:hover .card-link svg { transform: translateX(4px); }

.card-stat { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; color: var(--green-700); font-size: 0.85rem; }

/* ---------- Impact counters ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-grid.impact-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .impact-grid.impact-grid-3 { grid-template-columns: 1fr; } }
.impact-item { padding: 28px 16px; border-radius: var(--r-md); background: rgba(255,255,255,0.06); }
.impact-item .num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--gold-400);
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.impact-item .label { font-size: 0.88rem; color: var(--green-100); margin-top: 6px; }

/* ---------- Testimonial ---------- */
.testi-wrap { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testi-quote { width: 40px; height: 40px; color: var(--gold-500); margin: 0 auto 20px; }
.testi-text { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; color: var(--green-950); line-height: 1.4; }
.testi-person { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-600); color: white; display: grid; place-items: center; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; }
.testi-name { font-weight: 600; font-size: 0.95rem; }
.testi-role { font-size: 0.82rem; color: var(--ink-500); }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--green-200); border: none; padding: 0; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.testi-dots button.active { background: var(--green-700); transform: scale(1.25); }

/* ---------- CTA banner (full-bleed section) ---------- */
.cta-section {
  padding: 90px 0;
  color: var(--white);
  background-color: var(--green-800);
}
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--green-100); }
@media (max-width: 720px) {
  .cta-section { padding: 64px 0; }
  .cta-banner { justify-content: center; text-align: center; }
  .cta-banner .actions { justify-content: center; }
}
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--green-950);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--green-200);
  padding: 56px 0 24px;
  border-top: 3px solid var(--gold-500);
  position: relative;
}

.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-newsletter h3 { color: var(--white); margin-bottom: 4px; }
.footer-newsletter p { color: var(--green-300); font-size: 0.92rem; }
.footer-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-newsletter-form .field { margin-bottom: 0; min-width: 240px; }
.footer-newsletter-form input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: var(--white);
}
.footer-newsletter-form input::placeholder { color: var(--green-300); }
.footer-newsletter-form input:focus { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(217,164,65,0.15); }
.footer-newsletter .form-success { background: rgba(255,255,255,0.08); color: var(--green-100); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name span { color: var(--green-300); }
.footer-brand p { color: var(--green-300); font-size: 0.9rem; margin: 16px 0 20px; max-width: 280px; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.social-row a:hover { background: var(--gold-500); color: var(--green-950); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

.footer-col h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--green-300); transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--green-300); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold-400); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; color: var(--green-300); flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--gold-400); }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-800); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--green-200);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.error input, .field.error textarea { border-color: #C64545; }
.field-error-msg { color: #C64545; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.error .field-error-msg { display: block; }
.form-note { font-size: 0.82rem; color: var(--ink-500); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--green-100); color: var(--green-800);
  padding: 14px 18px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 500;
  margin-top: 16px;
  align-items: center; gap: 10px;
}
.form-success.show { display: flex; animation: pop var(--dur-slow) var(--ease-spring); }

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Donate tiers ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 780px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
.tier-grid.tier-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .tier-grid.tier-grid-3 { grid-template-columns: 1fr; } }
.tier {
  border: 2px solid var(--green-200);
  border-radius: var(--r-md);
  padding: 20px 14px;
  text-align: center;
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out);
}
.tier input { display: none; }
.tier label { cursor: pointer; display: block; }
.tier .amt { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--green-800); }
.tier .impact { font-size: 0.78rem; color: var(--ink-500); margin-top: 6px; display: block; }
.tier:hover { transform: translateY(-3px); border-color: var(--green-400); }
.tier:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }

.freq-toggle { display: inline-flex; background: var(--green-100); border-radius: var(--r-pill); padding: 4px; margin-bottom: 24px; }
.freq-toggle input { display: none; }
.freq-toggle label { padding: 9px 22px; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600; color: var(--green-700); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.freq-toggle input:checked + label { background: var(--green-700); color: var(--white); }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--green-200); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.timeline-item .yr { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; color: var(--gold-600); font-size: 0.9rem; }

/* ---------- Values / Team ---------- */
.value-item { display: flex; gap: 16px; }
.value-item .icon-tile { flex-shrink: 0; margin-bottom: 0; }

.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-md);
  background-color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
  font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; font-size: 2rem;
}
.team-card h4 { margin-bottom: 2px; }
.team-role { color: var(--green-600); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 0.86rem; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background-color: var(--green-900);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .crumbs { font-size: 0.85rem; color: var(--green-300); margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: var(--gold-400); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--green-100); max-width: 620px; margin-top: 14px; }

/* ---------- News ---------- */
.news-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { height: 170px; transition: transform 500ms var(--ease-out); }
.news-card:hover .news-thumb { transform: scale(1.06); }
.news-body { padding: 22px; }
.news-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 12px; }
.news-date { font-size: 0.78rem; color: var(--ink-500); margin-top: 12px; }
.news-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.news-body p { font-size: 0.9rem; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-pill { padding: 9px 18px; border-radius: var(--r-pill); background: var(--white); border: 1.5px solid var(--green-200); font-size: 0.85rem; font-weight: 600; color: var(--ink-700); transition: all var(--dur-fast) var(--ease-out); }
.filter-pill:hover, .filter-pill.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--green-200); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 600; font-size: 1rem; cursor: pointer; }
.faq-q svg { width: 20px; height: 20px; color: var(--green-700); transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-a p { padding-bottom: 18px; font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 260px; }

/* ---------- Ways to help (get involved) ---------- */
.way-card { display: flex; flex-direction: column; height: 100%; }
.way-card .icon-tile { background: var(--gold-500); color: var(--green-950); }
.way-card:hover .icon-tile { background: var(--green-700); color: var(--white); }

/* ---------- Map placeholder ---------- */
.map-box {
  border-radius: var(--r-md);
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  color: var(--white);
  border: 1px solid var(--green-200);
}
.map-box .pin { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.map-box svg { width: 34px; height: 34px; }

/* ---------- Reveal-on-scroll (fast) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* stagger children quickly */
.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in-view > *:nth-child(2) { transition-delay: 60ms; }
.stagger.in-view > *:nth-child(3) { transition-delay: 120ms; }
.stagger.in-view > *:nth-child(4) { transition-delay: 180ms; }
.stagger.in-view > *:nth-child(5) { transition-delay: 240ms; }
.stagger.in-view > *:nth-child(6) { transition-delay: 300ms; }
.stagger.in-view > * { opacity: 1; transform: translateY(0); }

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

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-700); color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.9);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring), background var(--dur-fast) var(--ease-out);
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-top:hover { background: var(--green-800); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--green-200); margin: 48px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.img-block { border-radius: var(--r-lg); aspect-ratio: 4/3; background-color: var(--green-800); box-shadow: var(--shadow-md); }
.stat-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--white); box-shadow: var(--shadow-md); border-radius: var(--r-pill); padding: 12px 20px; position: absolute; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-950);
  transition: opacity 550ms var(--ease-out), visibility 550ms var(--ease-out);
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preloader-mark { width: 64px; height: 64px; animation: preloader-pulse 1500ms ease-in-out infinite; }
.preloader-mark img { width: 100%; height: 100%; object-fit: contain; }
.preloader-word { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; color: var(--white); font-size: 1.05rem; letter-spacing: 0.01em; }
.preloader-bar { width: 140px; height: 3px; background: rgba(255,255,255,0.14); border-radius: 999px; overflow: hidden; display: block; }
.preloader-bar span { display: block; height: 100%; width: 35%; background: var(--gold-500); border-radius: 999px; animation: preloader-slide 1300ms ease-in-out infinite; }
@keyframes preloader-pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes preloader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* ---------- Mega menu ---------- */
.nav-item { position: relative; }
.nav-mega-head { display: flex; align-items: center; gap: 2px; }
.nav-item:hover .nav-mega-trigger,
.nav-item.mega-open .nav-mega-trigger { color: var(--green-700); }
.nav-item:hover .nav-mega-trigger::after,
.nav-item.mega-open .nav-mega-trigger::after { width: 100%; }

.mega-toggle {
  background: none;
  border: none;
  padding: 4px;
  margin-left: 1px;
  display: flex;
  align-items: center;
  color: var(--ink-500);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mega-toggle svg { width: 14px; height: 14px; }
.nav-item:hover .mega-toggle, .nav-item.mega-open .mega-toggle { color: var(--green-700); }
.nav-item.mega-open .mega-toggle { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(720px, 90vw);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10,46,74,0.08);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 260ms;
  z-index: 120;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; align-content: start; }
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  min-width: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.mega-item:hover { background: var(--green-50); }
.mega-item .mega-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mega-item:hover .mega-icon { background: var(--green-700); color: var(--white); }
.mega-item .mega-icon svg { width: 18px; height: 18px; }
.mega-item .mega-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-item .mega-text strong { font-size: 0.9rem; color: var(--green-950); font-weight: 600; display: block; }
.mega-item .mega-text span { font-size: 0.78rem; color: var(--ink-500); display: block; }

.mega-side { border-left: 1px solid var(--green-100); padding-left: 24px; display: flex; flex-direction: column; }
.mega-side-photo { aspect-ratio: 16/10; border-radius: var(--r-sm); background-size: cover; background-position: center; margin-bottom: 14px; }
.mega-side h4 { font-size: 1rem; margin-bottom: 6px; }
.mega-side p { font-size: 0.85rem; margin-bottom: 14px; }

@media (max-width: 900px) {
  .nav-mega-head { width: 100%; justify-content: space-between; }
  .mega-toggle { padding: 8px; }
  .mega-menu {
    position: static;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms var(--ease-out);
  }
  .nav-item.mega-open .mega-menu { max-height: 600px; }
  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu,
  .nav-item.mega-open .mega-menu {
    transform: none;
  }
  .mega-grid { grid-template-columns: 1fr; gap: 2px; }
  .mega-side { display: none; }
  .nav-mega-trigger::after { display: none; }
}
