/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Core palette — earthy, grounded, nonprofit-warm */
  --forest:     #2E6F40;   /* logo Forest Green — primary action */
  --forest-dk:  #1f4f2d;   /* darker green for nav/hero backgrounds */
  --forest-lt:  #4a8f5a;   /* hover states */
  --burnt:      #9F2305;   /* logo Burnt Red — donate CTA ONLY */
  --burnt-lt:   #b83518;

  --cream:      #f4f0e6;   /* aged-paper page background */
  --parchment:  #e8e0cc;   /* card/section tint */
  --linen:      #ede8da;   /* subtle section alt */

  --ink:        #1e2119;   /* near-black text */
  --stone:      #4a5045;   /* body text secondary */
  --pewter:     #7a8275;   /* muted labels/captions */
  --rule:       #cdc6b0;   /* borders/dividers */

  --white:      #ffffff;
  --gold:       #a07c30;   /* accent hairline only */

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Source Serif 4', Georgia, serif;
  --ff-ui:      'Inter', system-ui, sans-serif;

  --max-w: 1080px;
  --pad:   5rem 1.5rem;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  background: var(--cream);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { max-width: 68ch; }

/* ─── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ─── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest-dk);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 62px;
  border-bottom: 2px solid var(--forest);
}
.nav-logo {
  font-family: var(--ff-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #e8f4eb; text-decoration: none;
  display: flex; align-items: center; gap: 0.65rem;
}
.nav-logo .badge {
  background: var(--forest); color: var(--white);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; letter-spacing: 0.05em; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-family: var(--ff-ui); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(220,235,222,0.8); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }
.nav-links .btn-donate {
  background: var(--burnt); color: var(--white);
  padding: 0.45rem 1.1rem; border-radius: 4px; transition: background 0.2s;
}
.nav-links .btn-donate:hover { background: var(--burnt-lt); color: var(--white); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--forest-dk);
  color: var(--cream); padding: 5.5rem 1.5rem 4.5rem;
  position: relative; overflow: hidden;
}
.hero-contours {
  position: absolute; right: -6%; top: -10%;
  width: 55%; height: 125%; opacity: 0.1; pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.hero-eyebrow {
  font-family: var(--ff-ui); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #7ec990; margin-bottom: 1.1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; max-width: 18ch; }
.hero p  { color: rgba(232,244,235,0.82); font-size: 1.05rem; max-width: 52ch; margin-bottom: 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--ff-ui); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; padding: 0.8rem 1.65rem; border-radius: 4px;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-forest  { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-lt); }
.btn-burnt   { background: var(--burnt); color: var(--white); }
.btn-burnt:hover { background: var(--burnt-lt); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.75); }
.btn-white { background: var(--white); color: var(--forest); }
.btn-white:hover { background: var(--linen); }

/* ─── Section wrapper ───────────────────────────────────────── */
.section { padding: var(--pad); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-family: var(--ff-ui); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--forest);
  margin-bottom: 0.55rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 24px; height: 1.5px; background: var(--gold);
}
.section h2 { margin-bottom: 0.9rem; }
.section-intro { color: var(--stone); margin-bottom: 2.75rem; font-size: 1.03rem; }

/* ─── Page header (inner pages) ─────────────────────────────── */
.page-header {
  background: var(--forest-dk); color: var(--white);
  padding: 3.75rem 1.5rem 3rem; position: relative; overflow: hidden;
}
.page-header-contours {
  position: absolute; right: -5%; top: -40%;
  width: 36%; height: 180%; opacity: 0.1; pointer-events: none;
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.page-header .eyebrow {
  font-family: var(--ff-ui); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #7ec990; margin-bottom: 0.7rem;
}
.page-header h1 { color: var(--white); margin-bottom: 0.7rem; }
.page-header p  { color: rgba(220,235,222,0.8); max-width: 54ch; }

/* ─── Pillar section (dark green) ───────────────────────────── */
.pillars { background: var(--forest-dk); color: var(--cream); }
.pillars .section-label { color: #7ec990; }
.pillars .section-label::before { background: rgba(255,255,255,0.3); }
.pillars h2 { color: var(--white); }
.pillars .section-intro { color: rgba(220,235,222,0.75); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.pillar { border-left: 3px solid var(--forest); padding-left: 1.25rem; }
.pillar-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.pillar h3 { color: #e8f4eb; margin-bottom: 0.35rem; }
.pillar p  { color: rgba(220,235,222,0.72); font-size: 0.93rem; max-width: 100%; }

/* ─── Project cards ─────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--white); border-radius: 6px;
  border: 1px solid var(--rule); display: flex; flex-direction: column;
  overflow: hidden;
}
.project-card-icon { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-green { background: #ddeee1; }
.card-warm  { background: #ede6d8; }
.card-sage  { background: #e0e8db; }
.project-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { margin-bottom: 0.4rem; }
.project-card-body p  { font-size: 0.93rem; color: var(--stone); flex: 1; }
.progress-wrap { margin-top: 1.1rem; }
.progress-label {
  font-family: var(--ff-ui); font-size: 0.72rem; color: var(--pewter);
  display: flex; justify-content: space-between; margin-bottom: 0.35rem;
}
.progress-bar { height: 5px; background: var(--parchment); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--forest); border-radius: 3px; }

/* ─── About grid ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.about-aside {
  background: var(--parchment); border-left: 4px solid var(--forest);
  padding: 1.75rem; border-radius: 0 6px 6px 0;
}
.about-aside h3 { margin-bottom: 0.65rem; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label {
  font-family: var(--ff-ui); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
  display: block; margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%; padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--rule); border-radius: 4px;
  background: var(--white); font-family: var(--ff-body);
  font-size: 1rem; color: var(--ink); outline: none; transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--forest); }
textarea { resize: vertical; min-height: 105px; }

/* ─── Request form section ──────────────────────────────────── */
.request-section { background: var(--linen); }
.request-box {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 8px; padding: 2.5rem; max-width: 720px;
}
.request-box h3 { margin-bottom: 0.4rem; }
.request-box .sub { color: var(--stone); font-size:0.95rem; margin-bottom: 1.75rem; }

/* ─── Donation cards ────────────────────────────────────────── */
.donate-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2.25rem; }
.donate-card {
  background: var(--white); border: 2px solid var(--rule);
  border-radius: 6px; padding: 1.75rem; cursor: pointer; transition: all 0.2s;
}
.donate-card:hover, .donate-card.active { border-color: var(--forest); box-shadow: 0 3px 16px rgba(46,111,64,0.1); }
.donate-card h3 { margin-bottom: 0.4rem; }
.donate-card p  { font-size: 0.88rem; color: var(--stone); max-width: 100%; }
.donate-icon { font-size: 1.75rem; margin-bottom: 0.65rem; }
.donate-form-wrap {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 8px; padding: 2.25rem; max-width: 520px;
}
.donate-form-wrap h3 { margin-bottom: 1.25rem; }
.amount-grid { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.amount-btn {
  font-family: var(--ff-ui); font-size: 0.88rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border: 2px solid var(--rule); border-radius: 4px;
  background: var(--white); cursor: pointer; transition: all 0.2s; color: var(--ink);
}
.amount-btn:hover, .amount-btn.active { border-color: var(--forest); color: var(--forest); }
.form-row { margin-bottom: 1.1rem; }
.zeffy-note {
  background: var(--linen); border-left: 4px solid var(--forest);
  padding: 1rem 1.2rem; border-radius: 0 4px 4px 0;
  font-size: 0.85rem; color: var(--stone); margin-top: 2.25rem; max-width: 520px;
}

/* ─── Newsletter ────────────────────────────────────────────── */
.newsletter { background: var(--forest); }
.newsletter-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.newsletter-copy { flex: 1; min-width: 220px; }
.newsletter-copy h2 { color: var(--white); margin-bottom: 0.4rem; }
.newsletter-copy p  { color: rgba(255,255,255,0.78); max-width: 100%; }
.newsletter-form { flex: 1; min-width: 260px; display: flex; gap: 0.65rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 190px;
  border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--white); }

/* ─── News feed ─────────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; align-items: start; }
.update-post { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.update-post:first-child { padding-top: 0; }
.post-meta { font-family: var(--ff-ui); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pewter); margin-bottom: 0.35rem; }
.post-tag {
  display: inline-block; background: #ddeee1; color: var(--forest);
  font-family: var(--ff-ui); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 3px; margin-left: 0.4rem;
}
.update-post h3 { margin: 0.3rem 0 0.5rem; }
.update-post p  { font-size: 0.93rem; color: var(--stone); }
.sidebar-box { background: var(--parchment); border-radius: 6px; padding: 1.6rem; margin-bottom: 1.25rem; }
.sidebar-box h4 { font-family: var(--ff-ui); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--forest); margin-bottom: 0.9rem; }
.calendar-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-size: 0.86rem; }
.calendar-item:last-child { border-bottom: none; }
.cal-date { font-family: var(--ff-ui); font-size: 0.72rem; font-weight: 700; color: var(--forest); min-width: 48px; text-align: center; background: var(--white); border-radius: 4px; padding: 0.22rem 0.35rem; line-height: 1.3; }
.cal-date span { display: block; font-size: 1.05rem; }

/* ─── Tagline bar ───────────────────────────────────────────── */
.tagline-bar {
  background: #9F2305 !important;
  text-align: center; padding: 1.1rem 1.5rem;
}
.tagline-bar p {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 1.1rem; max-width: 100%; color: #ffffff !important;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer { background: var(--ink); color: rgba(220,235,222,0.6); padding: 3rem 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
footer h4 { font-family: var(--ff-ui); font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; color: #e8f4eb; margin-bottom: 0.9rem; }
footer a { text-decoration: none; display: block; margin-bottom: 0.35rem; font-size: 0.88rem; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w); margin: 1.75rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--ff-ui); font-size: 0.72rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: rgba(220,235,222,0.4);
}

/* ─── Alt section backgrounds ───────────────────────────────── */
.bg-linen    { background: var(--linen); }
.bg-parchment{ background: var(--parchment); }
.bg-white    { background: var(--white); }

/* ─── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.divider { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  .form-grid, .about-grid, .news-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
