:root {
  --bg: #f6fff6;
  --bg-soft: #eefbe7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #1f3b4d;
  --muted: #537083;
  --peach: #ffe082;
  --gold: #ffd54f;
  --mint: #c8f1c1;
  --sky: #a9dfff;
  --coral: #7dcfb6;
  --berry: #5cbcf6;
  --shadow: 0 18px 45px rgba(83, 135, 166, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 79, 0.55), transparent 28%),
    radial-gradient(circle at top right, rgba(169, 223, 255, 0.45), transparent 24%),
    linear-gradient(180deg, #f4fff4 0%, #effce8 35%, #f4fbff 100%);
}

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

.hero,
.section,
.site-footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.topbar,
.hero-content,
.section > *,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 1.25rem;
  padding-bottom: 4rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(200, 241, 193, 0.8);
  top: -80px;
  right: -70px;
}

.hero::after {
  width: 180px;
  height: 180px;
  background: rgba(255, 213, 79, 0.55);
  bottom: 20px;
  left: -40px;
}

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

.brand,
h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.nav-links a {
  font-weight: 700;
  color: var(--muted);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #5aa469;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 0.95;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--berry));
  color: #173042;
  box-shadow: 0 12px 28px rgba(92, 188, 246, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(83, 112, 131, 0.12);
  color: var(--text);
}

.hero-card,
.info-card,
.research-card,
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 1.6rem;
  transform: rotate(1deg);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-grid,
.stats-grid,
.research-layout {
  display: grid;
  gap: 1.25rem;
}

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

.info-card,
.research-card,
.stat-card {
  padding: 1.4rem;
}

.icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.78), rgba(169, 223, 255, 0.82));
}

.info-card h3,
.research-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.info-card p,
.research-card p,
.impact-story {
  color: var(--muted);
  line-height: 1.7;
}

.info-card a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 800;
  color: #2f83c5;
}

.research-layout {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 232, 0.94));
}

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

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
}

.stat-card.accent {
  text-align: left;
  background: linear-gradient(135deg, rgba(169, 223, 255, 0.95), rgba(200, 241, 193, 0.92));
}

.stat-number {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.stat-label {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.fundraiser-grid .fundraiser-card:nth-child(2) {
  transform: translateY(12px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

@media (max-width: 980px) {
  .hero-content,
  .card-grid,
  .research-layout,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .fundraiser-grid .fundraiser-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 700px) {
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.6rem;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero,
  .section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
