@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --ink: #0b0b0d;
  --ash: #2b2b31;
  --muted: #666268;
  --paper: #fffdf8;
  --cream: #f6efe3;
  --blush: #f7e4dd;
  --red: #a5111b;
  --red-dark: #6e0710;
  --green: #2e7d4f;
  --gold: #efb23e;
  --line: rgba(11, 11, 13, 0.13);
  --shadow: 0 24px 70px rgba(28, 19, 15, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.locked {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
.eyebrow,
.stat-number,
.brand-word {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.5rem, 9vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.9;
}

h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 0.98;
}

.serif {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  text-transform: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.scrolled,
.site-header.light {
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  gap: 0.75rem;
  color: white;
}

.site-header.scrolled .brand,
.site-header.light .brand {
  color: var(--ink);
}

.brand img {
  width: 74px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.25));
}

.brand-word {
  display: grid;
  font-size: 1rem;
  line-height: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header.scrolled .nav-links,
.site-header.light .nav-links {
  color: var(--ink);
}

.nav-links a {
  position: relative;
  padding: 0.7rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.4rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.22);
  color: white;
  border-radius: 999px;
  cursor: pointer;
}

.site-header.scrolled .menu-toggle,
.site-header.light .menu-toggle {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: relative;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 4px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 11, 13, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(11, 11, 13, 0.2);
}

.btn-red {
  background: var(--red);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-white {
  background: white;
  color: var(--ink);
}

.btn-outline {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero.small {
  min-height: 620px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.46) 42%, rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 80% 20%, rgba(165, 17, 27, 0.35), transparent 30%);
}

.hero::after,
.wave-top::before,
.wave-bottom::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  height: 110px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 68% 68% 0 0;
  pointer-events: none;
}

.hero::after {
  bottom: -62px;
  transform: rotate(-2deg);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 160px 0 110px;
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.hero-copy {
  max-width: 690px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.impact-ribbon {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 32px));
  margin: -86px auto 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--red);
  color: white;
  box-shadow: var(--shadow);
}

.impact-ribbon article {
  min-height: 156px;
  padding: 1.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.impact-ribbon article:last-child {
  border-right: 0;
}

.stat-number {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.86;
}

.stat-label {
  display: block;
  max-width: 170px;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(52px, 8vw, 96px) 0;
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.lead {
  max-width: 720px;
  color: var(--ash);
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--red);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.28));
}

.feature-card,
.program-card,
.story-card,
.form-panel,
.donation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 44px rgba(28, 19, 15, 0.08);
}

.feature-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.cards-3,
.cards-4 {
  display: grid;
  gap: 1rem;
}

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

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.program-card,
.story-card {
  overflow: hidden;
}

.program-card img,
.story-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.card-body {
  padding: 1.45rem;
}

.card-meta {
  margin-bottom: 0.55rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-wall {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.metric-main {
  min-height: 520px;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12)),
    url("../images/hero-programs.png") center/cover;
  color: white;
}

.metric-list {
  display: grid;
  gap: 1rem;
}

.metric-box {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.quote-band {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: white;
}

.quote-band::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.quote-text {
  max-width: 840px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
}

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

.donation-card {
  padding: 1.6rem;
}

.donation-card strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 4.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

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

.gallery button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
  filter: brightness(0.88);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius);
}

.lightbox button {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox .close {
  right: 1.25rem;
  top: 1.25rem;
}

.lightbox .prev {
  left: 1.25rem;
  top: 50%;
}

.lightbox .next {
  right: 1.25rem;
  top: 50%;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(165, 17, 27, 0.42), transparent 28%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.donation-modal.open {
  display: grid;
}

.donation-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 860px);
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  overflow: auto;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.38);
}

.donation-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.donation-modal__story {
  position: relative;
  min-height: 620px;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2)),
    url("../images/hero-donate.png") center/cover;
  color: white;
}

.donation-modal__story h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

.donation-modal__story p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.85);
}

.donation-modal__impact {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0;
}

.donation-modal__impact span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-modal__impact strong {
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
  line-height: 0.9;
}

.donation-modal__fallback {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-modal__form {
  padding: clamp(1.4rem, 4vw, 3rem);
  align-self: center;
}

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

.amount-grid label {
  cursor: pointer;
}

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

.amount-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.amount-grid input:checked + span,
.amount-grid label:hover span {
  border-color: var(--red);
  background: var(--red);
  color: white;
  transform: translateY(-1px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question span:last-child {
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--ash);
  transition: max-height 0.25s ease;
}

.faq-answer p {
  max-width: 780px;
  padding-bottom: 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

.form-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ash);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(165, 17, 27, 0.16);
  border-color: var(--red);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #111114;
  color: white;
}

.footer-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 180px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 1fr;
  gap: 2rem;
}

.footer-logo {
  width: 110px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-main h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.footer-main a {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.footer-main p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-harvest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: bottom;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
}

.footer-bottom .container {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.notice {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(165, 17, 27, 0.1);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.95rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .impact-ribbon,
  .cards-4,
  .donation-grid,
  .footer-main,
  .donation-modal__panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split.reverse,
  .metric-wall {
    grid-template-columns: 1fr;
  }

  .donation-modal__panel {
    grid-template-columns: 1fr;
  }

  .donation-modal__story {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .hero,
  .hero.small {
    min-height: 660px;
  }

  .hero-inner {
    padding-top: 132px;
  }

  .brand {
    min-width: 0;
  }

  .brand-word {
    display: none;
  }

  .nav-actions .btn-red {
    padding-inline: 1rem;
  }

  .impact-ribbon,
  .cards-3,
  .cards-4,
  .donation-grid,
  .gallery,
  .form-grid,
  .amount-grid,
  .footer-main,
  .footer-bottom .container {
    grid-template-columns: 1fr;
  }

  .impact-ribbon article {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .impact-ribbon article:last-child {
    border-bottom: 0;
  }

  .footer-bottom .container {
    display: grid;
  }

  .lightbox .prev,
  .lightbox .next {
    top: auto;
    bottom: 4.5rem;
  }

  .donation-modal {
    padding: 10px;
  }

  .donation-modal__panel {
    max-height: 94vh;
  }

  .donation-modal__story {
    min-height: 320px;
  }

  .donation-modal__close {
    background: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
