:root {
  --ink: #17201b;
  --muted: #627067;
  --line: #dce4dd;
  --paper: #fff;
  --soft: #f2f6f2;
  --green: #0f634f;
  --green-dark: #0b4539;
  --accent: #c53d3d;
  --shadow: 0 18px 50px rgba(24, 34, 29, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8faf8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header.compact { position: static; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  font-weight: 700;
}
.primary-nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.primary-nav a.is-active {
  color: var(--green);
  border-color: var(--green);
}
.nav-cta {
  padding: 10px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 12px;
  font-weight: 800;
}

.hero {
  min-height: min(680px, 72vh);
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 100px);
  background:
    linear-gradient(90deg, rgba(9, 21, 31, 0.78), rgba(9, 21, 31, 0.2)),
    var(--hero-image) center / cover no-repeat;
}
.hero-inner {
  width: min(760px, 100%);
  color: #fff;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}
.hero .eyebrow { color: #d8fff3; }
h1, h2, h3, p { word-break: keep-all; }
h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}
h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.hero p {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split img,
.info-card img,
.gallery-grid img {
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split img { aspect-ratio: 4 / 3; width: 100%; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 0;
}
.info-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.info-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.gallery-grid figcaption {
  margin-top: 10px;
  font-weight: 800;
}

.donate-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
  padding: 34px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 8px;
}
.donate-band .eyebrow { color: #bdeee1; }
.donate-band p { margin-bottom: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #d9ded9;
  background: #1d211f;
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sub-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 clamp(28px, 5vw, 56px);
}
.sub-hero h1 {
  color: var(--ink);
}
.sub-hero p:last-child {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
  padding-top: 16px;
}
.content-copy p {
  margin: 0 0 18px;
  font-size: 18px;
}
.page-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.feature-row,
.partner-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}
.feature-row article,
.partner-grid article,
.portal-grid article,
.content-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-row article span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 900;
}
.activity-grid {
  padding-top: 16px;
}
.gallery-grid.expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.notice-list {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}
.notice-list article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.notice-list time {
  color: var(--green);
  font-weight: 900;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
  padding-top: 16px;
}
.step-list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.step-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.step-list strong {
  color: var(--green);
}
.method-list {
  display: grid;
  gap: 12px;
}
.method-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}
.report-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.report-row {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) 140px 140px;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.report-row:last-child {
  border-bottom: 0;
}
.report-row.head {
  color: var(--muted);
  background: var(--soft);
  font-weight: 900;
}
.partner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-number {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(42px, 8vw, 68px);
  line-height: 1;
  font-weight: 900;
}
.policy-copy h2 {
  margin-top: 34px;
}
.policy-copy h2:first-child {
  margin-top: 0;
}

.form-page {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: start center;
  padding: 56px 20px;
}
.form-panel {
  width: min(920px, 100%);
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.donation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
label, fieldset {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
legend { padding: 0 8px; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cad6cd;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}
.full { grid-column: 1 / -1; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.method-card input {
  width: auto;
  min-height: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: auto;
  min-height: auto;
}
.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.notice {
  margin: 18px 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
}
.notice.success { background: #e8f7ee; color: #155b3e; }
.notice.error { background: #fff0ef; color: #9b2020; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open,
  .primary-nav.always { display: flex; }
  .primary-nav a { padding: 12px; }
  .split,
  .page-split,
  .cards,
  .donation-form,
  .gallery-grid,
  .gallery-grid.expanded,
  .feature-row,
  .partner-grid,
  .portal-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }
  .info-card {
    grid-template-columns: 1fr;
  }
  .notice-list article,
  .step-list li,
  .report-row {
    grid-template-columns: 1fr;
  }
  .report-row.head {
    display: none;
  }
  .donate-band {
    align-items: stretch;
    flex-direction: column;
  }
  .site-footer {
    flex-direction: column;
  }
}
