:root {
  --ink: #10292a;
  --ink-soft: #4f6263;
  --green: #0f5a4f;
  --green-dark: #073b35;
  --green-soft: #dcebe6;
  --red: #c8423a;
  --gold: #d6a443;
  --cream: #f7f3ec;
  --paper: #fcfaf6;
  --white: #ffffff;
  --line: rgba(16, 41, 42, 0.14);
  --shadow: 0 22px 70px rgba(16, 41, 42, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(252, 250, 246, 0.96);
  box-shadow: 0 14px 40px rgba(16, 41, 42, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(16, 41, 42, 0.16);
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--green-dark);
  font-size: 15px;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.35vw, 18px);
  font-weight: 800;
  font-size: 13px;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(680px, 90vh, 900px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background-color: var(--green-dark);
  background-image:
    linear-gradient(90deg, rgba(5, 34, 30, 0.98) 0%, rgba(5, 34, 30, 0.86) 46%, rgba(5, 34, 30, 0.28) 100%),
    url("assets/main-hero-final.png");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, rgba(16, 41, 42, 0.56), rgba(16, 41, 42, 0));
}

.hero-content {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-top: 96px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c275;
}

h1,
h2,
h3,
p,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 7.8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 4.9vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.footer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 34px rgba(200, 66, 58, 0.34);
}

.button-secondary {
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(16, 41, 42, 0.18);
}

.button-secondary-dark {
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 14px 34px rgba(16, 41, 42, 0.2);
}

.button-outline-dark {
  color: var(--green-dark);
  border-color: rgba(16, 41, 42, 0.28);
  background: var(--white);
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 900;
}

.action-strip {
  position: relative;
  z-index: 3;
  margin-top: -52px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.action-grid a {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 22px;
  border-right: 1px solid var(--line);
  transition: background 160ms ease;
}

.action-grid a:last-child {
  border-right: 0;
}

.action-grid a:hover,
.action-grid a:focus-visible {
  background: var(--green-soft);
}

.action-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
}

.section {
  padding: clamp(74px, 9vw, 124px) 0;
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading-wide {
  max-width: 940px;
}

.mission-layout,
.impact-layout,
.gallery-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.lead-copy {
  padding-top: 8px;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 18px;
}

.body-copy p:first-child {
  margin-top: 0;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(16, 41, 42, 0.06);
}

.program-number {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin-bottom: 30px;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.program-card p,
.work-card p,
.impact-copy p,
.gallery-intro p,
.donate-panel p,
.volunteer-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.impact-section {
  color: var(--white);
  background: var(--green-dark);
}

.impact-section .section-kicker {
  color: #f4c275;
}

.impact-copy p {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.stat-placeholder {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.stat-placeholder strong {
  color: #f4c275;
}

.impact-list {
  display: grid;
  gap: 14px;
}

.impact-list div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.impact-list div:first-child {
  padding-top: 0;
}

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

.impact-list strong {
  color: #f4c275;
  font-size: 20px;
}

.impact-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(16, 41, 42, 0.08);
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card {
  grid-column: span 2;
}

.feature-card img {
  aspect-ratio: 2 / 1;
}

.work-card-body {
  padding: 20px 22px 24px;
}

.work-card span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.fy-panel {
  margin-top: 42px;
  padding: clamp(28px, 4vw, 42px);
  border-left: 7px solid var(--gold);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.fy-panel .section-kicker {
  color: #f4c275;
}

.fy-panel h2 {
  max-width: 760px;
  font-size: clamp(28px, 4.2vw, 50px);
}

.fy-panel p {
  margin: 22px 0 0;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-intro p {
  margin-top: 20px;
  font-size: 18px;
}

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

.photo-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(16, 41, 42, 0.12);
}

.photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.photo-grid .photo-large {
  grid-column: 1 / -1;
}

.photo-grid .photo-large img {
  height: 340px;
}

.photo-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(5, 34, 30, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.donate-section {
  color: var(--white);
  background: linear-gradient(90deg, var(--green-dark), var(--green) 58%, #7e4736);
}

.donate-panel,
.volunteer-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.donate-panel div,
.volunteer-panel div {
  max-width: 840px;
}

.donate-panel .section-kicker {
  color: #f4c275;
}

.donate-panel h2,
.volunteer-panel h2 {
  max-width: 860px;
}

.donate-panel p {
  max-width: 790px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.volunteer-section {
  background: var(--cream);
}

.volunteer-panel {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 54px rgba(16, 41, 42, 0.1);
}

.volunteer-panel p {
  max-width: 780px;
  margin-top: 18px;
  font-size: 18px;
}

.volunteer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-section {
  background: var(--paper);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(16, 41, 42, 0.1);
  overflow: hidden;
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-row strong {
  color: var(--ink);
  font-size: 19px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
}

.footer-content {
  justify-content: space-between;
  align-items: center;
}

.footer-content div {
  display: grid;
  gap: 3px;
}

.footer-content a,
.footer-content div a {
  font-weight: 900;
  color: var(--green);
}

@media (max-width: 1120px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: auto;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
  }

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

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 780px;
    align-items: end;
    background-color: var(--green-dark);
    background-image:
      linear-gradient(180deg, rgba(5, 34, 30, 0.1) 0%, rgba(5, 34, 30, 0.42) 36%, rgba(5, 34, 30, 0.92) 68%, rgba(5, 34, 30, 0.98) 100%),
      url("assets/main-hero-final.png");
    background-position: center, center top;
    background-repeat: no-repeat;
    background-size: cover, auto 72%;
  }

  .hero-content {
    padding: 120px 0 82px;
  }

  .action-grid,
  .mission-layout,
  .impact-layout,
  .gallery-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .action-grid a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .action-grid a:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .action-grid a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .feature-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 660px) {
  .container,
  .hero-content {
    width: min(calc(100% - 32px), var(--max));
  }

  .brand {
    padding: 6px 10px 6px 7px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 780px;
    background-size: cover, 100% auto;
  }

  h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .hero-actions,
  .donate-panel,
  .volunteer-panel,
  .volunteer-actions,
  .footer-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .action-grid,
  .program-grid,
  .work-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .action-grid a,
  .action-grid a:nth-child(odd),
  .action-grid a:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .action-grid a:last-child {
    border-bottom: 0;
  }

  .photo-grid .photo-large {
    grid-column: auto;
  }

  .photo-grid img,
  .photo-grid .photo-large img {
    height: 260px;
  }

  .program-card {
    min-height: auto;
  }

  .contact-row strong {
    font-size: 17px;
  }
}
