:root {
  --blue-950: #08263f;
  --blue-900: #0b2f4f;
  --blue-800: #12476f;
  --blue-700: #17649b;
  --blue-600: #1d72b8;
  --blue-100: #e8f5ff;
  --green-800: #125c47;
  --green-700: #16765a;
  --green-600: #26966f;
  --green-500: #39a96b;
  --green-100: #e9f8ef;
  --ink: #132235;
  --muted: #637386;
  --line: #d7e6e5;
  --bg: #f7fbfb;
  --white: #ffffff;
  --gold: #f8c65c;
  --shadow: 0 18px 42px rgba(11, 47, 79, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--blue-900);
  z-index: 200;
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 251, 0.9);
  border-bottom: 1px solid rgba(215, 230, 229, 0.75);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(11, 47, 79, 0.08);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-900);
  font-weight: 800;
}

.brand-mark,
.mini-mark {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: 0 12px 26px rgba(29, 114, 184, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #31455b;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--green-700);
}

.nav-donate {
  color: var(--white) !important;
  background: var(--green-600);
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-100);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-900);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section.compact {
  padding: 40px 0;
}

.home-hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100vh - 76px));
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(8, 38, 63, 0.88), rgba(8, 38, 63, 0.58) 48%, rgba(22, 118, 90, 0.25)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 430px;
}

.hero-inner,
.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.hero-inner {
  max-width: 1180px;
}

.hero-inner > *,
.page-hero-inner > * {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero .eyebrow,
.page-hero .eyebrow {
  color: #a8f0c3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--blue-900);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.28;
}

.home-hero p,
.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.section-copy p,
.simple-card p,
.photo-card p,
.story-card p,
.quote-card p,
.footer p,
.info-panel p {
  color: var(--muted);
}

.hero-actions,
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  box-shadow: 0 14px 28px rgba(29, 114, 184, 0.23);
}

.btn-secondary {
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(11, 47, 79, 0.08);
}

.text-link {
  color: var(--blue-700);
  font-weight: 800;
}

.text-link:hover {
  color: var(--green-700);
}

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

.split,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.rounded-photo {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-grid,
.card-grid,
.gallery-grid,
.partner-grid {
  display: grid;
  gap: 22px;
}

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

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

.card-grid.three,
.gallery-grid,
.partner-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stat,
.simple-card,
.photo-card,
.quote-card,
.story-card,
.info-panel,
.donation-card,
.contact-panel,
.map-panel,
.logo-tile,
details,
.cta-panel,
.feature-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(11, 47, 79, 0.07);
}

.stat {
  padding: 24px;
}

.stat strong {
  display: block;
  color: var(--blue-700);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.simple-card,
.quote-card,
.info-panel,
.contact-panel {
  padding: 26px;
}

.photo-card,
.story-card,
.gallery-item {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:hover,
.story-card:hover,
.simple-card:hover,
.quote-card:hover,
.feature-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.photo-card img,
.story-card img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body,
.story-card {
  padding: 22px;
}

.mini-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #eef8ff, #ebf8ee);
}

.section-cta {
  margin-top: 28px;
}

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

.feature-link {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-link span {
  color: var(--green-700);
  font-weight: 900;
}

.feature-link strong {
  color: var(--blue-900);
}

.check-list {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  color: #35495f;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: inset 0 0 0 5px var(--green-100);
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--blue-900);
  font-weight: 800;
}

.partner-grid {
  grid-template-columns: repeat(6, 1fr);
}

.logo-tile {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--blue-800);
  font-weight: 900;
  text-align: center;
}

.cta-panel {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(29, 114, 184, 0.9), rgba(38, 150, 111, 0.9)),
    url("assets/img/volunteer.jpg");
  background-size: cover;
  background-position: center;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 0.78rem;
  font-weight: 900;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.amounts label {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--blue-900);
  font-weight: 900;
  cursor: pointer;
}

.amounts input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.amounts label:has(input:checked) {
  color: var(--white);
  background: var(--green-600);
  border-color: var(--green-600);
}

.donation-card,
.contact-form {
  display: grid;
  gap: 16px;
}

.donation-card {
  padding: 28px;
}

.donation-card label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.map-panel {
  min-height: 520px;
  overflow: hidden;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

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

details {
  padding: 18px 22px;
}

summary {
  cursor: pointer;
  color: var(--blue-900);
  font-weight: 900;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding-left: 26px;
  padding-right: 26px;
  margin-bottom: 70px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-600), var(--blue-600));
  color: var(--white);
}

.newsletter h2,
.newsletter p {
  color: var(--white);
  margin-bottom: 4px;
}

.newsletter input {
  min-width: min(320px, 65vw);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 56px;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr auto;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 560px;
  margin-top: 14px;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a,
.social-links a {
  color: var(--blue-800);
  font-weight: 800;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-100);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 10px 8px;
  }

  .nav-donate {
    text-align: center;
  }
}

@media (max-width: 1040px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .card-grid.four,
  .card-grid.three,
  .gallery-grid,
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 62px 0;
  }

  .home-hero {
    min-height: 680px;
  }

  .page-hero {
    min-height: 380px;
  }

  .hero-actions .btn,
  .newsletter-form,
  .newsletter-form .btn {
    width: 100%;
  }

  .stat-grid,
  .card-grid.four,
  .card-grid.three,
  .gallery-grid,
  .partner-grid,
  .feature-link {
    grid-template-columns: 1fr;
  }

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

  .newsletter {
    align-items: stretch;
    flex-direction: column;
  }

  .newsletter input {
    min-width: 0;
  }

  .brand {
    max-width: 230px;
    font-size: 0.94rem;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .simple-card,
  .quote-card,
  .info-panel,
  .contact-panel,
  .donation-card {
    padding: 22px;
  }
}
