:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #52615e;
  --forest: #153f3a;
  --leaf: #2f7d55;
  --moss: #9fbb68;
  --clay: #c7663d;
  --sky: #d7ebef;
  --paper: #f7f7f1;
  --white: #ffffff;
  --line: rgba(23, 33, 31, 0.14);
  --shadow: 0 24px 60px rgba(15, 39, 34, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 247, 241, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: var(--forest);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.78;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 15px;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.header-donate,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 750;
}

.header-donate {
  background: var(--clay);
  color: var(--white);
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.secondary.dark {
  border-color: rgba(21, 63, 58, 0.28);
  color: var(--forest);
}

.button.wide {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 26, 23, 0.88) 0%, rgba(6, 26, 23, 0.58) 45%, rgba(6, 26, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 26, 23, 0.7) 0%, rgba(6, 26, 23, 0) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 130px 0 14svh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.band {
  background: var(--white);
}

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.intro {
  padding: 34px 0;
}

.intro-grid,
.donation-grid,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:last-child,
.donation-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.project-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.06);
}

.project-card.conservation {
  border-top: 5px solid var(--leaf);
}

.project-card.infrastructure {
  border-top: 5px solid #287b8f;
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--forest);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.project-card h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 24px;
}

.project-card p,
.project-card li,
.fineprint {
  color: var(--muted);
}

.project-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.project-card li + li {
  margin-top: 8px;
}

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

.metric {
  min-height: 150px;
  border-left: 4px solid var(--moss);
  padding: 8px 18px;
}

.metric strong {
  display: block;
  color: var(--clay);
  font-size: 48px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
}

.donation {
  background: linear-gradient(180deg, #eef4ed 0%, var(--paper) 100%);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid rgba(21, 63, 58, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--forest);
  font-weight: 750;
}

.donation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--forest);
  font-weight: 800;
}

label:first-child {
  margin-top: 0;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amounts button,
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 63, 58, 0.22);
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
}

.amounts button {
  cursor: pointer;
  font-weight: 800;
}

.amounts button.is-active {
  background: var(--forest);
  color: var(--white);
}

input,
select,
textarea {
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.fineprint {
  margin: 12px 0 0;
  font-size: 13px;
}

.contact-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.82);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .header-donate {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-top: 112px;
  }

  .intro-grid,
  .donation-grid,
  .contact-inner,
  .project-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
