/* ── Reset & Basis ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #2d6a1e;
  --green-mid:   #3a7d2a;
  --green-light: #4a8f38;
  --primary:     #73bc5a;
  --bg:          hsl(48 30% 97%);
  --fg:          hsl(30 15% 15%);
  --muted:       hsl(30 10% 42%);
  --border:      hsl(40 20% 86%);
  --secondary-bg: hsl(42 35% 91%);
  --radius:      0.625rem;
  --font-serif:  'Source Serif 4', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: top .1s;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(45,106,30,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.95);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.nav-brand img { height: 2.25rem; width: 2.25rem; filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: rgba(45,106,30,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  list-style: none;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.nav-mobile a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .15s;
}
.nav-mobile a:hover { color: #fff; }

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

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid) 55%, var(--green-light));
  padding-top: 5rem;
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-watermark img {
  width: 500px;
  height: 500px;
  opacity: .06;
  filter: brightness(0) invert(1);
  user-select: none;
}

.hero-circle-tr {
  position: absolute;
  top: -8rem; right: -8rem;
  width: 24rem; height: 24rem;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero-circle-bl {
  position: absolute;
  bottom: -5rem; left: -5rem;
  width: 18rem; height: 18rem;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: #fff;
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  animation: fadeUp 1s ease-out forwards;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: rgba(255,255,255,.9);
  font-style: italic;
  line-height: 1.55;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s .15s ease-out forwards;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,.7);
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s .3s ease-out forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--green-dark);
  padding: .875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: background .15s, transform .15s;
  opacity: 0;
  animation: fadeUp 1s .45s ease-out forwards;
}
.hero-cta:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }

.hero-badge {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s .6s ease-out forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-subtitle, .hero-desc, .hero-cta, .hero-badge {
    animation: none; opacity: 1; transform: none;
  }
}

/* ── Section helpers ───────────────────────────────────────── */
.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 8rem; } }

.section-alt { background: var(--secondary-bg); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── Vision ────────────────────────────────────────────────── */
.vision-inner { max-width: 52rem; margin-inline: auto; }

.vision-divider {
  width: 4rem;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-inline: auto;
}

.vision-quote {
  text-align: center;
  margin-block: 2rem;
}
.vision-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-style: italic;
  color: rgba(30,20,10,.85);
  line-height: 1.65;
  max-width: 48rem;
  margin-inline: auto;
}

.mou-quotes { margin-top: 3rem; max-width: 40rem; margin-inline: auto; }
.mou-quote {
  border-left: 4px solid rgba(115,188,90,.6);
  padding: .25rem 0 .25rem 1.5rem;
  margin-bottom: 2rem;
}
.mou-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: rgba(30,20,10,.8);
  line-height: 1.65;
}

.mou-source {
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2.5rem;
}
.mou-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
}
.mou-link:hover { text-decoration: underline; }

/* ── Members ───────────────────────────────────────────────── */
.members-inner { max-width: 48rem; margin-inline: auto; }
.members-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.members-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color .15s, color .15s, box-shadow .15s;
  cursor: pointer;
}
.chip:hover {
  border-color: rgba(115,188,90,.4);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.chip svg { opacity: .4; width: .75rem; height: .75rem; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-section {
  background: var(--green-mid);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-section .section-title { color: #fff; }
.contact-subtitle {
  text-align: center;
  color: rgba(255,255,255,.7);
  margin-top: -2rem;
  margin-bottom: 3.5rem;
}

.contact-circle-tr {
  position: absolute;
  top: -6rem; right: -6rem;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.contact-circle-bl {
  position: absolute;
  bottom: -4rem; left: -4rem;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  gap: 3rem 4rem;
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin-inline: auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-col h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(255,255,255,.95);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.contact-item svg {
  flex-shrink: 0;
  margin-top: .125rem;
  color: rgba(255,255,255,.6);
}
.contact-item-label {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: .125rem;
}
.contact-item-value {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}
.contact-item-value a {
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.contact-item-value a:hover { color: #fff; }

.donation-row {
  margin-bottom: .75rem;
  font-size: .875rem;
}
.donation-row .label { color: rgba(255,255,255,.5); margin-bottom: .125rem; }
.donation-row .val { font-weight: 500; color: rgba(255,255,255,.9); }
.donation-row .val.mono { font-family: monospace; letter-spacing: .04em; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: rgba(30,20,10,.03);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: .25rem;
}
.footer-brand p { font-size: .875rem; color: var(--muted); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--muted);
}
.footer-links a, .footer-links button {
  color: var(--muted);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  transition: color .15s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--primary); text-decoration: underline; }

/* ── Legal Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 { font-size: 1.25rem; }
.modal-header p { font-size: .875rem; color: var(--muted); margin-top: .25rem; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem;
  transition: color .15s;
}
.modal-close:hover { color: var(--fg); }
.modal-header { position: relative; }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  font-size: .875rem;
  line-height: 1.65;
}
.modal-body h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.modal-body h4 { font-weight: 700; margin-bottom: .25rem; }
.modal-body p { color: var(--muted); margin-bottom: .5rem; }
.modal-body section + section { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.5rem; }
.modal-body .source-note { font-size: .75rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
.modal-body .tmg-note { font-size: .75rem; color: var(--muted); }
.modal-body a { color: var(--primary); }
.modal-body a:hover { text-decoration: underline; }

.legal-block { margin-bottom: 1rem; }
.legal-block strong { color: var(--fg); }
