@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --forest:    #3B5249;
  --forest-mid:#4A6858;
  --forest-lt: #6B8F71;
  --sage:      #8FAF8C;
  --cream:     #F7F2E8;
  --parchment: #EDE4D0;
  --warm:      #D4956A;
  --amber:     #C4782A;
  --stone:     #8C7B6B;
  --slate:     #4A5568;
  --charcoal:  #2D3748;
  --white:     #FFFFFF;
  --nav-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(247,242,232,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59,82,73,0.12);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-logo { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--forest); font-weight: 700;
}
.nav-logo-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6rem; color: var(--stone); letter-spacing: 0.25em; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--slate); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }

.nav-cta {
  background: var(--forest); color: var(--white) !important;
  padding: 0.55rem 1.3rem; font-size: 0.78rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--forest-mid) !important; color: var(--white) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.9rem 2.2rem; cursor: pointer; border: none;
  transition: all 0.25s ease; text-align: center;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,82,73,0.3); }
.btn-warm { background: var(--warm); color: var(--white); }
.btn-warm:hover { background: var(--amber); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,120,42,0.3); }
.btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── LAYOUT ── */
.page-wrap { padding-top: var(--nav-h); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ── TYPE ── */
.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--forest-lt); margin-bottom: 0.7rem; font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--charcoal); font-weight: 700; line-height: 1.2;
}
.section-title-white { color: var(--white); }
.lead {
  font-family: 'Lora', serif;
  font-size: 1.15rem; color: var(--stone); line-height: 1.8; font-weight: 400;
}
.rule {
  width: 52px; height: 3px; border-radius: 2px;
  background: var(--warm); margin: 1.2rem 0;
}
.rule-center { margin: 1.2rem auto; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  padding: 5.5rem 2rem 4.5rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid rgba(59,82,73,0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block; margin-bottom: 0.45rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--slate); text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1.5px solid rgba(59,82,73,0.2);
  color: var(--charcoal);
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  outline: none; border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(59,82,73,0.1);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-select { cursor: pointer; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-hint { font-size: 0.82rem; color: var(--stone); margin-top: 0.35rem; font-style: italic; }

/* ── PILLARS ── */
.pillars {
  background: var(--forest);
  padding: 2.8rem 2rem;
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.pillar-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.pillar-title { font-family:'Playfair Display',serif; font-size:0.95rem; color:var(--white); font-weight:600; margin-bottom:0.2rem; }
.pillar-desc { font-size:0.85rem; color:rgba(255,255,255,0.65); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 4rem 2rem 2.5rem; color: rgba(255,255,255,0.7);
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family:'Playfair Display',serif; font-size:1.2rem; color:var(--white); font-weight:700; margin-bottom:0.5rem; }
.footer-tagline { font-size:0.9rem; line-height:1.7; }
.footer-col-title { font-size:0.72rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--white); font-weight:600; margin-bottom:1rem; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:0.5rem; }
.footer-links a { font-size:0.88rem; color:rgba(255,255,255,0.6); transition:color 0.2s; }
.footer-links a:hover { color:var(--white); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:1.5rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-copy { font-size:0.8rem; color:rgba(255,255,255,0.35); }
.footer-501 { font-size:0.78rem; color:rgba(255,255,255,0.35); font-style:italic; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.anim { opacity:0; }
.anim.visible { animation: fadeUp 0.85s ease forwards; }
.anim-delay-1.visible { animation-delay:0.1s; }
.anim-delay-2.visible { animation-delay:0.22s; }
.anim-delay-3.visible { animation-delay:0.36s; }
.anim-delay-4.visible { animation-delay:0.52s; }

/* ── RESPONSIVE ── */
@media (max-width:768px) {
  .form-grid-2 { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr; gap:2rem; }
  nav { padding:0 1.2rem; }
  .nav-links { gap:1.2rem; }
  .nav-links .hide-sm { display:none; }
}

/* ── STICKY DONATE BUTTON ── */
.sticky-donate {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.sticky-donate-btn {
  background: var(--warm);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,149,106,0.5);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 2px;
}
.sticky-donate-btn:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,120,42,0.5);
}
.sticky-donate-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.sticky-donate-label {
  font-size: 0.62rem; color: var(--stone);
  text-align: right; font-style: italic;
  display: block;
}

/* ── DONATION MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1; pointer-events: all;
}
.modal {
  background: var(--white);
  max-width: 560px; width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--stone); line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--charcoal); }
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--charcoal);
  font-weight: 700; margin-bottom: 0.4rem;
}
.modal-sub {
  font-family: 'Lora', serif;
  font-size: 0.98rem; color: var(--stone);
  font-style: italic; margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Frequency toggle */
.freq-toggle {
  display: flex; background: var(--parchment);
  border: 1px solid rgba(59,82,73,0.15);
  margin-bottom: 1.5rem; overflow: hidden;
}
.freq-btn {
  flex: 1; padding: 0.7rem;
  background: none; border: none; cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone); transition: all 0.2s;
}
.freq-btn.active {
  background: var(--forest); color: var(--white);
}

/* Amount grid */
.amount-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
}
.amount-btn {
  padding: 0.85rem 0.5rem; text-align: center;
  background: var(--white);
  border: 2px solid rgba(59,82,73,0.15);
  cursor: pointer; border-radius: 2px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--charcoal);
  font-weight: 700; transition: all 0.2s;
}
.amount-btn .amount-label {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.62rem; color: var(--stone);
  font-weight: 500; margin-top: 0.15rem; letter-spacing: 0.06em;
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--forest);
  background: rgba(59,82,73,0.05);
  color: var(--forest);
}
.amount-btn.selected { border-width: 2px; }

/* Custom amount */
.custom-amount-wrap {
  position: relative; margin-bottom: 1.5rem;
}
.custom-amount-wrap .dollar {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--stone);
}
.custom-amount-input {
  width: 100%; padding: 0.85rem 1rem 0.85rem 1.8rem;
  border: 2px solid rgba(59,82,73,0.15);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--charcoal);
  outline: none; background: var(--white);
  transition: border-color 0.2s;
}
.custom-amount-input:focus { border-color: var(--forest); }
.custom-amount-input::placeholder { color: rgba(140,123,107,0.5); }

/* Impact line */
.impact-line {
  background: rgba(59,82,73,0.06);
  border-left: 3px solid var(--forest);
  padding: 0.7rem 1rem; margin-bottom: 1.5rem;
  font-size: 0.88rem; color: var(--forest);
  font-style: italic; min-height: 2.5rem;
  display: flex; align-items: center;
  transition: all 0.2s;
}

.modal-submit {
  width: 100%; padding: 1.1rem;
  background: var(--warm); color: var(--white);
  border: none; cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.25s;
}
.modal-submit:hover { background: var(--amber); }
.modal-note {
  font-size: 0.78rem; color: var(--stone);
  text-align: center; margin-top: 0.8rem;
  font-style: italic; line-height: 1.5;
}

/* Zeffy embed container */
.zeffy-wrap { margin-top: 1rem; }

@media (max-width: 480px) {
  .sticky-donate { bottom: 1rem; right: 1rem; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 1.8rem 1.4rem; }
}
