:root {
  --green: #2e7d32;
  --green-dark: #1f4a2b;
  --green-soft: #eaf7e9;
  --earth: #a56d2a;
  --cream: #fdf8ec;
  --text: #183121;
  --muted: #5f6f63;
  --border: #dcebdc;
  --shadow: 0 20px 50px rgba(31, 74, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fdfdf8 0%, #f5f8ef 100%);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(24, 49, 33, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--green);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #eef8eb 0%, #fcfcf7 45%, #f5efe0 100%);
}

.hero-grid,
.about-grid,
.donate-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}

.hero h1,
.section-heading h2,
.about h2,
.donate-grid h2 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.hero-text,
.about p,
.card p,
.project-content p,
.donate-grid p,
.contact-panel p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, #3d8f42 100%);
  color: white;
  box-shadow: 0 14px 30px rgba(47, 107, 63, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--green-dark);
  border: 1px solid var(--border);
}

.hero-media img,
.project-card img {
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 320px;
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.section {
  padding: 4.5rem 0;
}

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

.section-accent {
  background: linear-gradient(135deg, var(--green-soft), #f7f3e6);
}

.about-grid {
  grid-template-columns: 1fr 0.9fr;
}

.about-card,
.contact-card,
.donate-card,
.contact-form,
.contact-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.about-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.card,
.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.3rem;
  box-shadow: 0 12px 28px rgba(31, 74, 43, 0.08);
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-card img {
  min-height: 220px;
  border-radius: 0;
}

.project-content {
  padding: 1.2rem 1.3rem 1.4rem;
}

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

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(31, 74, 43, 0.06);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--green-dark);
}

.stat-card span {
  color: var(--muted);
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.logo-pill {
  text-align: center;
  padding: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--green-dark);
  font-weight: 700;
}

.donate-grid {
  grid-template-columns: 1fr 0.8fr;
}

.contact-card ul,
.contact-bullets {
  padding-left: 1rem;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fcfcfa;
}

.contact-bullets {
  display: grid;
  gap: 0.7rem;
}

.contact-bullets div {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
}

.site-footer {
  background: var(--green-dark);
  color: white;
  padding: 2.2rem 0;
}

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

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

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .donate-grid,
  .contact-layout,
  .stats-grid,
  .impact-grid,
  .project-grid,
  .partner-logos,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .about-grid,
  .donate-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .impact-grid,
  .project-grid,
  .stats-grid,
  .partner-logos,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
