:root {
  --ink: #17211d;
  --muted: #66736d;
  --forest: #214b3c;
  --leaf: #7b9a43;
  --gold: #d7942d;
  --brick: #a6523d;
  --sky: #6e9fbd;
  --paper: #ffffff;
  --soft: #f5f7f2;
  --line: #dfe6dc;
  --shadow: 0 18px 50px rgba(23, 33, 29, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { color: var(--muted); margin: 0 0 1rem; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }

h1 { font-size: 4rem; }

h2 { font-size: 2.55rem; }

h3 { font-size: 1.15rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 220, 0.9);
  backdrop-filter: blur(14px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  font-weight: 900;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  color: #39453f;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: #edf4e7;
  color: var(--forest);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.home-hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-image,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 36%, rgba(255,255,255,0.2) 68%),
    linear-gradient(0deg, rgba(23,33,29,0.08), rgba(23,33,29,0));
  z-index: -1;
}

.home-hero-copy {
  width: min(680px, 90vw);
  margin-left: 5vw;
  padding: 4rem 0;
}

.home-hero-copy p {
  max-width: 620px;
  margin-top: 1.15rem;
  font-size: 1.25rem;
  color: #36443e;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(33, 75, 60, 0.22);
}

.button.primary:hover { background: #17392d; }

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button.secondary {
  color: var(--forest);
  background: white;
  border: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--forest);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.impact-strip div {
  padding: 1.5rem 5vw;
  background: white;
}

.impact-strip strong {
  display: block;
  color: var(--forest);
  font-size: 1.3rem;
}

.impact-strip span { color: var(--muted); }

.section {
  padding: 5.5rem 5vw;
}

.section.alt { background: var(--soft); }

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head p {
  margin-top: 1rem;
  font-size: 1.08rem;
}

.section-head.narrow { max-width: 620px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.split p { font-size: 1.05rem; }

.quote-panel,
.timeline-panel,
.donate-note {
  padding: 2rem;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(33,75,60,0.95), rgba(123,154,67,0.9)),
    var(--forest);
  box-shadow: var(--shadow);
}

.quote-panel p {
  color: white;
  font-size: 1.7rem;
  font-weight: 800;
}

.quote-panel span,
.timeline-panel span,
.donate-note span { color: rgba(255,255,255,0.82); }

.timeline-panel h3 {
  margin: 0.4rem 0 0.7rem;
  font-size: 1.6rem;
}

.timeline-panel p,
.donate-note p { color: rgba(255,255,255,0.86); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.project-card,
.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-card div,
.blog-card div { padding: 1.25rem; }

.project-card h3,
.service-grid h3 { margin-bottom: 0.55rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.4rem;
  border-left: 4px solid var(--gold);
  background: #fbfcf8;
}

.step span {
  display: block;
  color: var(--brick);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-band,
.testimonial-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 4rem 5vw;
  color: white;
  background: var(--forest);
}

.cta-band h2,
.testimonial-band h2 { color: white; }

.cta-band p,
.testimonial-band p { color: rgba(255,255,255,0.78); }

.cta-band .kicker,
.testimonial-band .kicker { color: #f2c77d; }

.page-hero {
  position: relative;
  min-height: 54svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(23,33,29,0.82), rgba(23,33,29,0.18));
}

.page-hero-copy {
  width: min(840px, 90vw);
  padding: 5rem 0 4rem;
  margin-left: 5vw;
  color: white;
}

.page-hero-copy p {
  margin-top: 1rem;
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  font-size: 1.18rem;
}

.page-hero-copy .kicker { color: #f2c77d; }

.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid article,
.service-grid article {
  min-height: 150px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.testimonial-band {
  grid-template-columns: 0.8fr 1fr 1fr;
  background: #22312b;
}

blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}

.article-intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brick);
  font-weight: 900;
  font-size: 0.85rem;
}

.article-body {
  width: min(820px, 90vw);
  margin: 0 auto;
  padding: 5rem 0;
}

.article-body h1 { font-size: 2.6rem; margin-bottom: 1.4rem; }
.article-body h2 { font-size: 1.75rem; margin: 2.2rem 0 0.8rem; }
.article-body p,
.article-body li { color: #4f5f58; font-size: 1.07rem; }
.article-body li { margin-bottom: 0.55rem; }

.contact-layout,
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 3rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-list p {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-list strong,
.contact-list span { display: block; }

form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06);
}

label,
fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: #35423d;
  font-weight: 800;
}

fieldset {
  padding: 0;
  border: 0;
}

legend { padding: 0 0 0.45rem; font-weight: 900; }

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ccd7cf;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: #fbfcf8;
}

textarea { resize: vertical; min-height: 130px; }

.amount-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.channel-grid { grid-template-columns: repeat(3, 1fr); }

.amount-grid label,
.channel-grid label {
  display: block;
  position: relative;
}

.amount-grid input,
.channel-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-grid span,
.channel-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0.6rem;
  border: 1px solid #ccd7cf;
  border-radius: 8px;
  font-weight: 900;
  background: #fbfcf8;
}

.amount-grid input:checked + span,
.channel-grid input:checked + span {
  color: white;
  border-color: var(--forest);
  background: var(--forest);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
  font-weight: 800;
}

.form-status.error { color: var(--brick); }
.form-status.success { color: var(--forest); }

.donate-note {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.not-found {
  min-height: 62svh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 5rem 5vw;
}

.return-panel {
  width: min(760px, 100%);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  gap: 2rem;
  padding: 3rem 5vw;
  color: white;
  background: #101915;
}

.site-footer p,
.site-footer a { color: rgba(255,255,255,0.78); }

.site-footer a { display: block; margin-top: 0.4rem; }

.footer-brand {
  margin-bottom: 0.8rem;
  color: white;
  font-size: 1.15rem;
}

.footer-heading {
  display: block;
  margin-bottom: 0.7rem;
  color: white;
  font-weight: 900;
}

.footer-donate {
  width: max-content;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--gold);
}

@media (max-width: 920px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.6rem 5vw 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: grid; }
  .site-nav a { border-radius: 8px; }
  .home-hero { min-height: 72svh; }
  .home-hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.74));
  }
  .impact-strip,
  .project-grid,
  .process-grid,
  .feature-grid,
  .service-grid,
  .article-intro,
  .contact-layout,
  .donate-layout,
  .site-footer,
  .testimonial-band,
  .split {
    grid-template-columns: 1fr;
  }
  .cta-band { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.85rem; }
  .site-header { min-height: 66px; }
  .site-nav { inset: 66px 0 auto 0; }
  .home-hero-copy { padding: 3rem 0; }
  .home-hero-copy p,
  .page-hero-copy p { font-size: 1.05rem; }
  .section { padding: 4rem 5vw; }
  .channel-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
