:root {
  --green-primary: #2e7d32;
  --green-vibrant: #4caf50;
  --terracotta: #e36a4e;
  --teal: #26a69a;
  --beige: #f5f0e8;
  --charcoal: #263238;
  --gold: #f9a825;
  --white: #ffffff;
  --black: #0b0c0c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  background: #ececec;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--gold);
  color: #151515;
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid #20a4dd;
  outline-offset: 2px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--black);
  transition: box-shadow 0.25s ease;
}

.top-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 120px;
  height: 56px;
  object-fit: contain;
  background: #ffffff;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.main-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a,
.mobile-nav a {
  color: #f8f8f8;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.active,
.mobile-nav a.active {
  color: var(--teal);
}

.main-nav a.active,
.mobile-nav a.active {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.btn-donate {
  background: var(--gold);
  color: #151515;
  padding: 0.75rem 1.25rem;
}

.menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
}

.landing {
  min-height: calc(100vh - 74px);
  position: relative;
  background: linear-gradient(115deg, rgba(24, 42, 32, 0.84), rgba(38, 166, 154, 0.66)),
    linear-gradient(20deg, rgba(76, 175, 80, 0.3), rgba(227, 106, 78, 0.24));
  color: var(--white);
  display: flex;
  align-items: center;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.18), transparent 38%);
}

.landing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: center;
}

.section-line {
  width: 56%;
  height: 6px;
  background: #20a4dd;
  margin: 0 0 1rem;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 760px;
}

.lead-tag {
  margin: 0 0 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9ead6;
}

.landing-copy p {
  max-width: 640px;
  font-size: 1rem;
}

.btn-light {
  margin-top: 1rem;
  background: #d8ddc5;
  color: #111;
  padding: 0.85rem 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.landing-photo {
  display: flex;
  justify-content: center;
}

.landing-photo img {
  width: min(390px, 80%);
  background: rgba(255, 255, 255, 0.86);
  padding: 1.2rem;
}

.impact-section,
.news-section,
.about-section,
.money-section,
.involve-section,
.donate-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.impact-section,
.news-section {
  background: #ececec;
  padding: 4.5rem 0;
}

.about-section {
  background: #ffffff;
  padding: 4.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}

.about-copy,
.about-focus {
  background: #efefef;
  padding: 2rem;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.about-copy h3,
.about-focus h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.2rem;
}

.about-copy h3:first-of-type {
  margin-top: 0;
}

.about-copy p {
  margin: 0;
  line-height: 1.65;
}

.about-focus ul {
  margin: 0;
  padding-left: 1.2rem;
}

.about-focus li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border-left: 4px solid var(--teal);
  padding: 0.8rem 0.85rem;
  margin: 0;
  font-weight: 600;
}

.focus-list li span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.section-title {
  text-align: center;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.03em;
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0.7rem auto 2rem;
}

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

.impact-card {
  background: transparent;
  transition: transform 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-4px);
}

.impact-image {
  height: 175px;
  border-top: 5px solid #20a4dd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-a {
  background-image:
    linear-gradient(rgba(20, 40, 30, 0.2), rgba(20, 40, 30, 0.2)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=900&q=80");
}

.img-b {
  background-image:
    linear-gradient(rgba(20, 40, 30, 0.22), rgba(20, 40, 30, 0.22)),
    url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=900&q=80");
}

.img-c {
  background-image:
    linear-gradient(rgba(20, 40, 30, 0.2), rgba(20, 40, 30, 0.2)),
    url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=900&q=80");
}

.img-d {
  background-image:
    linear-gradient(rgba(20, 40, 30, 0.22), rgba(20, 40, 30, 0.22)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
}

.impact-kicker {
  font-size: 0.67rem;
  margin: 0.8rem 0 0.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.impact-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.impact-card p {
  margin: 0.45rem 0;
  font-size: 0.88rem;
}

.impact-card a,
.money-copy a,
.news-head a {
  display: inline-block;
  background: #d8ddc5;
  color: #111;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.62rem 0.86rem;
}

.money-section {
  background: #fff;
  padding: 4rem 0;
}

.money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.money-copy {
  background: #efefef;
  padding: 2.5rem;
}

.money-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.donut-wrap {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.donut-chart {
  width: min(390px, 88%);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: conic-gradient(var(--green-primary) 0deg 331deg, #9ecab8 331deg 360deg);
  position: relative;
}

.donut-chart::after {
  content: "";
  width: 48%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  inset: 0;
  margin: auto;
}

.badge {
  position: absolute;
  background: #efefef;
  padding: 0.7rem 1rem;
}

.badge strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.badge span {
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-top {
  top: 18px;
  right: 22%;
}

.badge-bottom {
  bottom: 32px;
  left: 11%;
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 0.9rem;
}

.news-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

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

.news-card {
  font-size: 0.9rem;
}

.news-image {
  height: 130px;
  border-top: 5px solid #20a4dd;
  margin-bottom: 0.65rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.n1 {
  background-image:
    linear-gradient(rgba(26, 38, 30, 0.22), rgba(26, 38, 30, 0.22)),
    url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1200&q=80");
}

.n2 {
  background-image:
    linear-gradient(rgba(26, 38, 30, 0.22), rgba(26, 38, 30, 0.22)),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=80");
}

.n3 {
  background-image:
    linear-gradient(rgba(26, 38, 30, 0.22), rgba(26, 38, 30, 0.22)),
    url("https://images.unsplash.com/photo-1593113598332-cd59a93f7d75?auto=format&fit=crop&w=1200&q=80");
}

.n4 {
  background-image:
    linear-gradient(rgba(26, 38, 30, 0.25), rgba(26, 38, 30, 0.25)),
    url("https://images.unsplash.com/photo-1547683905-f686c993aae5?auto=format&fit=crop&w=1200&q=80");
}

.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.news-card p {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
}

.news-card a {
  color: #111;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
}

.news-card a:hover,
.news-card a:focus-visible {
  text-decoration: underline;
}

.donate-section {
  background: linear-gradient(135deg, var(--green-primary), var(--teal));
  color: var(--white);
  padding: 3.5rem 0;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.donate-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.donate-section p {
  margin: 0;
  line-height: 1.65;
  max-width: 560px;
}

.donate-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.btn-donate-lg {
  padding: 0.9rem 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.donate-note {
  font-size: 0.88rem;
  opacity: 0.92;
}

.site-footer {
  background: var(--charcoal);
  color: #eef2f4;
  padding: 2.5rem 0 0;
}

.site-footer a {
  color: #b8e6dc;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.involve-section {
  background: #ffffff;
  padding: 4rem 0;
}

.involve-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.involve-copy,
.newsletter-card {
  background: #efefef;
  padding: 2rem;
}

.involve-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.involve-copy p {
  margin: 0 0 0.85rem;
}

.involve-copy ul {
  margin: 0;
  padding-left: 1.1rem;
}

.involve-copy li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.newsletter-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.3rem;
}

.newsletter-form {
  display: grid;
  gap: 0.7rem;
}

.newsletter-form label {
  font-weight: 700;
  font-size: 0.86rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.72rem 0.75rem;
  border: 1px solid #c7c7c7;
  font: inherit;
}

.newsletter-form button {
  justify-self: start;
}

.newsletter-status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.newsletter-status.status-loading {
  color: #3a4548;
}

.newsletter-status.status-success {
  color: #1d6f42;
}

.newsletter-status.status-error {
  color: #a52b2b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

@media (max-width: 1200px) {
  .impact-cards,
  .news-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge-top {
    right: 14%;
  }

  .badge-bottom {
    left: 7%;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(1180px, 94%);
  }

  .nav-wrap {
    height: 68px;
  }

  .brand img {
    width: 108px;
    height: 50px;
  }

  .main-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    background: var(--gold);
    color: #111;
    border: 0;
    padding: 0.58rem 0.95rem;
    font-weight: 700;
  }

  .mobile-nav {
    display: none;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 4% 1rem;
    gap: 0.8rem;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .landing {
    min-height: auto;
    padding: 3.5rem 0 2.4rem;
  }

  .landing-grid,
  .about-grid,
  .involve-grid,
  .money-grid,
  .footer-grid,
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .landing-copy h1 {
    font-size: clamp(1.75rem, 7vw, 2.8rem);
    line-height: 1.08;
  }

  .landing-copy p {
    font-size: 0.96rem;
  }

  .section-line {
    width: 72%;
  }

  .landing-photo {
    justify-content: flex-start;
  }

  .landing-photo img {
    width: min(320px, 72%);
  }

  .impact-section,
  .about-section,
  .involve-section,
  .money-section,
  .news-section {
    padding: 3.2rem 0;
  }

  .impact-cards,
  .news-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .impact-image {
    height: 180px;
  }

  .money-copy {
    padding: 1.5rem 1.2rem;
  }

  .about-copy,
  .about-focus,
  .involve-copy,
  .newsletter-card {
    padding: 1.5rem 1.2rem;
  }

  .money-copy h2 {
    font-size: clamp(1.4rem, 6vw, 2.1rem);
  }

  .donut-wrap {
    min-height: 320px;
    justify-items: start;
  }

  .badge-top,
  .badge-bottom {
    position: static;
    margin-top: 0.7rem;
  }

  .badge strong {
    font-size: 2rem;
  }

  .news-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .news-head h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .news-card h3 {
    font-size: 1.03rem;
  }

  .site-footer {
    padding: 2rem 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: 92%;
  }

  .nav-wrap {
    height: 64px;
  }

  .menu-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .mobile-nav a {
    font-size: 0.76rem;
  }

  .landing {
    padding: 2.8rem 0 2rem;
  }

  .lead-tag {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .landing-copy h1 {
    font-size: clamp(1.55rem, 8.2vw, 2.1rem);
  }

  .landing-copy p {
    font-size: 0.9rem;
  }

  .btn-light {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .landing-photo img {
    width: min(280px, 78%);
    padding: 0.8rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .impact-card h3 {
    font-size: 2rem;
  }

  .impact-card p {
    font-size: 0.85rem;
  }

  .impact-card a,
  .money-copy a,
  .news-head a {
    font-size: 0.66rem;
  }

  .donut-wrap {
    min-height: 290px;
  }

  .donut-chart {
    width: min(310px, 92%);
  }

  .badge {
    width: 100%;
    max-width: 260px;
  }

  .badge strong {
    font-size: 1.65rem;
  }

  .badge span {
    font-size: 0.76rem;
  }

  .news-image {
    height: 120px;
  }

  .news-card h3 {
    font-size: 0.98rem;
  }

  .news-card p {
    font-size: 0.76rem;
  }

  .site-footer p {
    font-size: 0.9rem;
  }
}
