@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --green:    #3E7A2E;
  --green-d:  #2C5820;
  --green-lt: #EBF5E5;
  --ink:      #1A2B18;
  --text:     #2D3D2B;
  --muted:    #6B7F69;
  --cream:    #F8F6F1;
  --white:    #FFFFFF;
  --border:   #D8E4D4;
  --sans:     'Nunito', system-ui, sans-serif;
  --serif:    'Playfair Display', Georgia, serif;
  --max-w:    1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── BUTTONS ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 52px;
}
.btn-green       { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-d); border-color: var(--green-d); }
.btn-green-lg    { font-size: 1.25rem; padding: 1.125rem 2.5rem; min-height: 60px; }
.btn-outline     { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-lt); }
.btn-white       { background: var(--white); color: var(--green-d); border-color: var(--white); }
.btn-white:hover { background: var(--cream); }

/* ── NAV ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.25rem, calc((100% - var(--max-w)) / 2));
  height: 76px;
}
.nav-logo img { height: 52px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links  { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-lt); }

/* Donate always visible — never in hamburger */
.nav-donate { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  z-index: 99;
  padding: 1.25rem max(1.25rem, calc((100% - var(--max-w)) / 2));
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-nav a:hover { background: var(--green-lt); color: var(--green); }

/* ── PAGE OFFSET ─────────────────────────────────── */
.page-body { padding-top: 76px; }

/* ── HERO ────────────────────────────────────────── */

.hero {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100% - var(--max-w)) / 2));
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FBF7A;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── DONATE BANNER ───────────────────────────────── */

.donate-banner {
  background: var(--green);
  padding: 1.5rem max(1.25rem, calc((100% - var(--max-w)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.donate-banner-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}
.donate-banner-text span { display: block; font-size: 0.9rem; font-weight: 400; opacity: 0.85; margin-top: 0.2rem; }

/* ── SECTION WRAPPER ─────────────────────────────── */

.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) max(1.25rem, calc((100% - var(--max-w)) / 2));
}
.section-cream { background: var(--cream); }
.section-green-lt { background: var(--green-lt); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

/* ── WHAT WE DO ──────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.how-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
}
.how-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 0.875rem;
}
.how-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.how-card p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ── IMPACT STATS ────────────────────────────────── */

.impact-row {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}
.impact-item {
  flex: 1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 2px solid var(--border);
}
.impact-item:last-child { border-right: none; }
.impact-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
}
.impact-lbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── DONATE PAGE ─────────────────────────────────── */

.donate-hero {
  background: var(--green);
  padding: clamp(3.5rem, 6vw, 5rem) max(1.25rem, calc((100% - var(--max-w)) / 2));
  text-align: center;
}
.donate-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.875rem;
}
.donate-hero p { font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

.donate-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.donate-box h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.donate-amounts {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.amount-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.875rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--green);
  background: var(--green-lt);
  color: var(--green-d);
}
.amount-impact {
  font-size: 0.8125rem;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
}

.donate-steps {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.donate-steps h3 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.step-list { display: flex; flex-direction: column; gap: 0.75rem; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-main-btn {
  width: 100%;
  font-size: 1.25rem;
  padding: 1.125rem 2rem;
  min-height: 64px;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.paypal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.donate-alt {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.donate-alt-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.donate-alt-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.donate-alt-item strong { color: var(--ink); }

/* ── PAGE HERO (inner pages) ─────────────────────── */

.page-hero {
  background: var(--ink);
  padding: clamp(3.5rem, 6vw, 5rem) max(1.25rem, calc((100% - var(--max-w)) / 2));
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero p { font-size: 1.0625rem; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ── APPLY FORM ──────────────────────────────────── */

.apply-form-wrap { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1.0625rem;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.875rem; color: var(--muted); margin-top: 0.375rem; }
.form-submit { width: 100%; font-size: 1.125rem; min-height: 60px; border-radius: 6px; margin-top: 0.5rem; }

/* ── CONTACT ─────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { font-size: 1.0625rem; color: var(--text); line-height: 1.6; }
.contact-item a:hover { color: var(--green); }

/* ── FOOTER ──────────────────────────────────────── */

.footer {
  background: var(--ink);
  padding: 3.5rem max(1.25rem, calc((100% - var(--max-w)) / 2)) 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p { font-size: 0.9375rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.9375rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-bottom span { font-size: 0.8125rem; color: rgba(255,255,255,0.25); }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }

/* ── SCROLL REVEAL ───────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .js-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer { grid-template-columns: 1fr; gap: 2rem; }
  .impact-row { flex-direction: column; }
  .impact-item { border-right: none; border-bottom: 2px solid var(--border); }
  .impact-item:last-child { border-bottom: none; }
}
@media (max-width: 540px) {
  body { font-size: 17px; }
  .donate-banner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .donate-amounts { gap: 0.5rem; }
  .amount-btn { min-width: 70px; font-size: 1rem; }
}
