:root {
  --bg: #f6f7ec;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #1e2d2f;
  --ink-muted: #465758;
  --brand: #157a54;
  --brand-soft: #7fcb9e;
  --accent: #f2a43b;
  --line: rgba(21, 122, 84, 0.18);
  --shadow: 0 16px 45px rgba(30, 45, 47, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Gill Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(40rem 24rem at 10% -5%, rgba(127, 203, 158, 0.32), transparent 70%),
    radial-gradient(35rem 22rem at 95% 5%, rgba(242, 164, 59, 0.22), transparent 70%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.33;
}

.bg-glow-a {
  background: #8cd8ab;
  top: 16rem;
  left: -4rem;
}

.bg-glow-b {
  background: #ffd08a;
  right: -4rem;
  bottom: 8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 236, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 45, 47, 0.08);
}

.header-inner {
  width: min(1100px, 94vw);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(21, 122, 84, 0.22);
}

.brand-text {
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(127, 203, 158, 0.3);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

main {
  width: min(1100px, 94vw);
  margin: 1.2rem auto 4rem;
}

.hero,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero {
  display: block;
  background-color: #1d2d2b;
  background-image:
    linear-gradient(120deg, rgba(14, 25, 24, 0.62), rgba(20, 40, 36, 0.46)),
    var(--hero-image),
    var(--hero-image);
  background-position: center center;
  background-size: auto, cover, cover;
  background-repeat: no-repeat;
  border-color: rgba(201, 227, 213, 0.55);
  padding: clamp(1.1rem, 2vw, 2rem);
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.7rem;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.hero-copy p {
  color: rgba(245, 252, 247, 0.92);
}

.hero h1 {
  color: #f4fff7;
}

.hero .eyebrow {
  color: #c8f4d9;
}

.hero-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: linear-gradient(120deg, #157a54, #2ca86f);
  color: #fff;
}

.btn-ghost {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.support-image,
.sdg-image {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.panel {
  margin-top: 1.2rem;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.panel-head p,
.impact-intro,
.about p,
.events p,
.challenge p {
  color: var(--ink-muted);
}

.about-gallery-wrap {
  margin-top: 1rem;
}

.about-gallery-wrap h3 {
  margin-bottom: 0.35rem;
}

.about-gallery-wrap p {
  margin-top: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.about-thumb {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.about-thumb:hover img,
.about-thumb:focus-visible img {
  transform: scale(1.05);
}

.about-thumb-more {
  position: relative;
}

.about-thumb-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 28, 0.5);
  pointer-events: none;
}

.about-thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.support-image,
.sdg-image {
  margin: 0.9rem 0 1rem;
  border: 1px solid var(--line);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.goal-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand-soft);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  color: #344445;
}

.event-media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.event-media-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.event-category {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  margin: 0.8rem 0 0;
  padding-bottom: 0.35rem;
  border-bottom: 2.5px solid var(--ink);
  display: block;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.event-card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 12px;
  padding: 0.8rem;
}

.event-card p {
  margin: 0.45rem 0;
}

.challenge ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.challenge li {
  margin-bottom: 0.25rem;
  color: #314244;
}

.join-form {
  display: grid;
  gap: 0.8rem;
}

.join-form label,
.join-form legend {
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(70, 87, 88, 0.25);
  border-radius: 10px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

fieldset {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.check {
  display: block;
  font-weight: 400;
  margin-top: 0.45rem;
  color: #2f3f41;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--brand);
}

.form-status.is-error {
  color: #b84732;
}

.site-footer {
  width: min(1100px, 94vw);
  margin: 0 auto 2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: #3f5052;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.modal-open {
  overflow: hidden;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 27, 0.72);
}

.gallery-dialog {
  position: relative;
  margin: clamp(1rem, 3vw, 2rem) auto;
  width: min(980px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.gallery-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  background: #101616;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.gallery-close,
.gallery-nav {
  border: 0;
  background: rgba(16, 30, 31, 0.74);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gallery-close:hover,
.gallery-nav:hover,
.gallery-close:focus-visible,
.gallery-nav:focus-visible {
  background: rgba(16, 30, 31, 0.92);
}

.gallery-close:hover,
.gallery-close:focus-visible {
  transform: scale(1.04);
}

.gallery-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
}

.gallery-prev {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
  z-index: 2;
}

.gallery-next {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  z-index: 2;
}

.gallery-prev:hover,
.gallery-prev:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.gallery-next:hover,
.gallery-next:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.gallery-caption {
  margin: 0;
  text-align: center;
  color: #ebf4ef;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
}

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

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.stagger-wrap .stagger:nth-child(2) {
  transition-delay: 80ms;
}

.stagger-wrap .stagger:nth-child(3) {
  transition-delay: 130ms;
}

.stagger-wrap .stagger:nth-child(4) {
  transition-delay: 180ms;
}

.stagger-wrap .stagger:nth-child(5) {
  transition-delay: 230ms;
}

.stagger-wrap .stagger:nth-child(6) {
  transition-delay: 280ms;
}

.stagger-wrap .stagger:nth-child(7) {
  transition-delay: 330ms;
}

.stagger-wrap .stagger:nth-child(8) {
  transition-delay: 380ms;
}

.stagger-wrap .stagger:nth-child(9) {
  transition-delay: 430ms;
}

.stagger-wrap .stagger:nth-child(10) {
  transition-delay: 480ms;
}

@media (max-width: 980px) {
  .event-media-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    width: 96vw;
    margin: 0.85rem auto 3rem;
  }

  .header-inner {
    min-height: 68px;
    gap: 0.6rem;
  }

  .brand-text {
    font-size: 1.12rem;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% - 0.35rem);
    right: 0;
    left: 0;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.55rem;
    display: none;
    flex-direction: column;
  }

  .site-nav a {
    width: 100%;
    padding: 0.62rem 0.75rem;
  }

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

  .hero {
    padding: 1rem;
    gap: 0.85rem;
  }

  .panel {
    padding: 0.95rem;
    margin-top: 0.95rem;
  }

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

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

  .gallery-dialog {
    width: 96vw;
    margin: 0.8rem auto;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .gallery-prev {
    left: 0.45rem;
  }

  .gallery-next {
    right: 0.45rem;
  }

  .gallery-close {
    top: 0.45rem;
    right: 0.45rem;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .gallery-image {
    max-height: 72vh;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .event-media-row {
    grid-template-columns: 1fr;
  }

  .event-media-item img {
    height: 200px;
  }

  .event-category {
    font-size: 1.35rem;
  }

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

  .site-footer {
    width: 96vw;
    margin-bottom: 1.25rem;
  }
}
