:root {
  --ink: #14201c;
  --muted: #586760;
  --paper: #f8faf7;
  --white: #ffffff;
  --line: #dde5de;
  --forest: #176b4d;
  --forest-dark: #0e4735;
  --gold: #d49a2a;
  --sky: #cfe9f4;
  --clay: #b85f3a;
  --shadow: 0 22px 60px rgba(18, 32, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.lightbox-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid rgba(221, 229, 222, 0.85);
  backdrop-filter: blur(18px);
}

.site-header .site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  flex: 0 0 42px;
}

.brand-mark img {
  width: auto;
  height: 52px;
  max-width: none;
  object-fit: contain;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--forest-dark);
}

.nav-donate,
.primary-action,
.secondary-action,
.panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

.nav-donate,
.primary-action,
.panel-button {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(23, 107, 77, 0.22);
}

.nav-donate {
  grid-column: 3;
  justify-self: end;
  padding: 0 18px;
}

.primary-action,
.secondary-action {
  width: 220px;
  padding: 0 22px;
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(38px, 6vw, 72px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 30, 25, 0.94) 0%, rgba(13, 30, 25, 0.78) 48%, rgba(13, 30, 25, 0.4) 100%),
    url("assets/Current pump track area.jpg") center / cover,
    linear-gradient(135deg, #18382e 0%, #215f48 44%, #d5b05e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(0deg, rgba(248, 250, 247, 1), rgba(248, 250, 247, 0));
}

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

.hero-content,
.donation-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-copy,
.hero-points {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-points-lead {
  padding-left: 0;
  font-weight: 800;
}

.hero-points-subhead {
  margin-top: 4px;
  padding-left: 0;
  color: var(--gold);
  font-size: 0.82em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-points-lead::before,
.hero-points-subhead::before {
  display: none;
}

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

.donation-panel {
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.panel-topline,
.amount-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.panel-topline {
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.amount-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 22px;
  width: 100%;
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
}

.amount-stat {
  display: grid;
  min-width: 0;
  gap: 7px;
  justify-items: start;
  text-align: left;
}

.amount-goal {
  justify-items: end;
  padding-left: 22px;
  border-left: 1px solid rgba(88, 103, 96, 0.22);
  text-align: right;
}

.amount-stat span {
  display: block;
  max-width: 100%;
  color: var(--forest-dark);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.amount-stat small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-shell {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 500ms ease;
}

.progress-caption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.progress-caption strong {
  color: var(--forest);
}

.panel-note {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.panel-button {
  width: 100%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px auto 0;
  width: min(1120px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 46px rgba(20, 32, 28, 0.08);
}

.trust-strip div {
  padding: 22px;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-strip span {
  margin-top: 7px;
  color: var(--forest-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 74px);
}

.project-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.project-section .section-copy {
  max-width: 820px;
}

.section-copy h2,
.section-heading h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p:not(.section-kicker),
.closing-section p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.section-heading {
  max-width: 760px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.photo-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 0 rgba(212, 154, 42, 0);
  background:
    linear-gradient(180deg, rgba(16, 35, 29, 0.05), rgba(16, 35, 29, 0.86)),
    linear-gradient(135deg, #d8ece4, #f4dfb4 55%, #cfe9f4);
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Ccircle cx='21' cy='21' r='17' fill='white' stroke='%23176b4d' stroke-width='3'/%3E%3Cpath d='M21 13v16M13 21h16' stroke='%23176b4d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 21 21,
    zoom-in;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.photo-card:hover,
.photo-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 154, 42, 0.95);
  transform: translateY(-2px);
}

.photo-card:focus-visible {
  outline: 0;
}

.photo-card::before {
  content: "Photo";
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--forest-dark);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-card.has-image::before {
  content: "";
  display: none;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 26, 21, 0.04) 25%, rgba(9, 26, 21, 0.88) 100%);
}

.photo-card figcaption {
  position: relative;
  z-index: 1;
  padding: 20px;
  color: var(--white);
}

.photo-card strong {
  display: block;
}

.photo-card strong {
  font-size: 1.05rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(8, 19, 16, 0.7);
  backdrop-filter: blur(14px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-frame {
  display: grid;
  gap: 14px;
  max-width: min(1120px, 100%);
  max-height: 92svh;
  margin: 0;
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 82svh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-frame figcaption {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--forest-dark);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: var(--forest-dark);
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #f1f6f2;
}

.closing-section {
  align-items: center;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.closing-section h2 {
  max-width: 1120px;
}

.closing-section h2 span {
  display: block;
}

.closing-section .primary-action {
  justify-self: start;
  min-width: 220px;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer p {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
    position: static;
    transform: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .donation-panel {
    max-width: 520px;
  }

  .trust-strip,
  .two-column,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-card {
    min-height: 0;
  }

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

  .closing-section .primary-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-mark img {
    height: 46px;
    max-width: none;
  }

  .nav-donate {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .amount-line {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .amount-stat,
  .amount-goal {
    justify-items: center;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .amount-goal {
    padding-top: 12px;
    border-top: 1px solid rgba(88, 103, 96, 0.22);
  }

  .amount-stat span {
    font-size: 2.15rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .section {
    width: calc(100% - 28px);
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card {
    min-height: 310px;
  }

}
