:root {
  --purple: #4b1373;
  --deep-purple: #2f0c4d;
  --green: #118744;
  --deep-green: #063f2b;
  --gold: #f2c94c;
  --pink: #d82782;
  --cream: #fffaf0;
  --soft: #f4f8ef;
  --ink: #152019;
  --muted: #627168;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(30, 10, 46, .18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.top-strip {
  background: linear-gradient(90deg, var(--gold), #f8dd7a, var(--gold));
  color: var(--deep-purple);
  text-align: center;
  font-size: .88rem;
  font-weight: 800;
  padding: 8px 14px;
  letter-spacing: .02em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, var(--deep-purple) 0%, var(--purple) 45%, var(--deep-green) 100%);
  box-shadow: 0 10px 35px rgba(15, 32, 24, .18);
  border-bottom: 4px solid var(--gold);
}
.site-header.scrolled { box-shadow: 0 18px 45px rgba(15, 32, 24, .28); }
.navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--white);
  padding: 5px;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .02em; }
.brand small { color: #f9e6ff; font-style: italic; font-weight: 600; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  color: var(--white);
  font-weight: 800;
  font-size: .94rem;
  padding: 11px 13px;
  border-radius: 999px;
  transition: .25s ease;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.16); color: var(--gold); transform: translateY(-1px); }
.nav-menu .nav-cta { background: var(--pink); box-shadow: 0 12px 22px rgba(216, 39, 130, .35); }
.nav-menu .nav-cta:hover { background: var(--gold); color: var(--deep-purple); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 6px; }

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--deep-purple);
}
.hero-media, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  background-position: center;
  background-size: cover;
  transition: opacity 1.1s ease, transform 5s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(0deg, var(--cream), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 48px;
  padding: 90px 0 120px;
}
.eyebrow, .section-kicker, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero h1, .section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.04;
  margin: 16px 0 18px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); max-width: 900px; text-shadow: 0 6px 25px rgba(0,0,0,.25); }
.hero p { font-size: 1.18rem; max-width: 690px; color: #f9f4ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 22px;
  border: 2px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(0,0,0,.16); }
.btn-primary { background: linear-gradient(135deg, var(--pink), #f05aa7); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.68); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.btn-secondary { background: var(--green); color: var(--white); }
.hero-card {
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.5);
}
.hero-card img { width: 150px; border-radius: 18px; margin-bottom: 18px; }
.hero-card h2 { margin: 0 0 6px; color: var(--purple); font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; }
.hero-card p { color: var(--muted); font-size: .98rem; }
.hero-stat { margin-top: 18px; display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--soft); border-radius: 18px; }
.hero-stat strong { font-size: 2.6rem; color: var(--green); line-height: 1; }
.hero-stat span { font-weight: 800; color: var(--deep-purple); }
.slide-dots { position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.slide-dots button { width: 12px; height: 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.slide-dots button.active { width: 34px; border-radius: 999px; background: var(--gold); }

.section { padding: 88px 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--deep-purple); }
.section p { color: var(--muted); }
.two-col, .impact-grid, .contact-grid, .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.section-copy p { font-size: 1.04rem; }
.mini-cards { display: grid; gap: 15px; margin-top: 25px; }
.mini-cards div { padding: 18px; background: var(--white); border-left: 6px solid var(--green); border-radius: 16px; box-shadow: 0 12px 35px rgba(33, 58, 45, .08); }
.mini-cards strong { display: block; color: var(--purple); font-size: 1.1rem; margin-bottom: 4px; }
.mini-cards span { color: var(--muted); }
.photo-stack { position: relative; min-height: 540px; }
.photo-stack img { object-fit: cover; box-shadow: var(--shadow); }
.photo-main { width: 82%; height: 450px; border-radius: 34px; }
.photo-small { position: absolute; right: 0; bottom: 0; width: 48%; height: 280px; border: 10px solid var(--cream); border-radius: 28px; }
.floating-badge { position: absolute; right: 20px; top: 25px; background: var(--gold); color: var(--deep-purple); padding: 15px 18px; border-radius: 18px; box-shadow: var(--shadow); font-weight: 900; }
.floating-badge span { display: block; font-size: 1.8rem; line-height: 1; }

.programs { background: linear-gradient(180deg, #f4f8ef 0%, #ffffff 100%); }
.section-head { max-width: 780px; margin: 0 auto 42px; text-align: center; }
.section-head .section-kicker { justify-content: center; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(20, 48, 31, .11);
  border: 1px solid rgba(17, 135, 68, .12);
  transition: .25s ease;
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(20, 48, 31, .16); }
.program-img { height: 260px; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.program-card:hover .program-img img { transform: scale(1.08); }
.program-body { padding: 24px; }
.program-body .pill { color: var(--green); letter-spacing: .08em; }
.program-body h3 { color: var(--purple); margin: 8px 0 9px; font-size: 1.35rem; line-height: 1.2; }

.moving-gallery-section { overflow: hidden; background: var(--deep-purple); color: var(--white); }
.moving-gallery-section h2 { color: var(--white); }
.moving-gallery-section p { color: #eadff4; }
.gallery-marquee { width: 100%; overflow: hidden; padding: 8px 0 16px; }
.gallery-track { display: flex; gap: 20px; width: max-content; animation: scrollGallery 55s linear infinite; padding-left: 20px; }
.gallery-track:hover { animation-play-state: paused; }
.gallery-card {
  width: 330px;
  height: 290px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  color: var(--deep-purple);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  cursor: pointer;
  position: relative;
}
.gallery-card img { width: 100%; height: 225px; object-fit: cover; transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card figcaption { height: 65px; display: flex; align-items: center; padding: 0 18px; font-weight: 900; }
@keyframes scrollGallery { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.impact { background: var(--cream); }
.impact-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.impact-list span { background: var(--white); color: var(--deep-green); padding: 10px 14px; border-radius: 999px; font-weight: 850; box-shadow: 0 10px 25px rgba(21, 51, 32, .08); }
.stats-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 30px 20px; background: linear-gradient(135deg, var(--purple), var(--deep-green)); color: var(--white); border-radius: 26px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; color: var(--gold); font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1; }
.stat span { font-weight: 800; }

.feature-band { background: #eef6ed; }
.feature-photo { margin: 0; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.feature-photo img { width: 100%; height: 440px; object-fit: cover; }
.feature-photo figcaption { padding: 16px 20px; font-weight: 900; color: var(--purple); }

.partner { background: linear-gradient(135deg, rgba(75,19,115,.92), rgba(6,63,43,.94)), url('assets/images/tree-planting-02.jpg') center/cover fixed; color: var(--white); }
.partner h2 { color: var(--white); }
.partner p { color: #f6effb; }
.partner-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 42px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); padding: 34px; border-radius: 34px; backdrop-filter: blur(6px); }
.partner-wrap img { width: 100%; height: 360px; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow); }

.contact { background: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { padding: 14px 16px; background: var(--soft); border-radius: 15px; }
.contact-list a { color: var(--purple); font-weight: 900; }
.contact-form { background: var(--cream); padding: 30px; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(75,19,115,.08); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 900; color: var(--deep-purple); }
.contact-form input, .contact-form textarea { width: 100%; border: 2px solid #e5ddeb; border-radius: 16px; padding: 14px 15px; font: inherit; outline: none; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(75,19,115,.10); }
.form-note { margin: 13px 0 0; font-size: .9rem; }

.site-footer { background: var(--deep-purple); color: var(--white); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner div { display: flex; align-items: center; gap: 14px; }
.footer-inner img { width: 68px; height: 68px; object-fit: contain; background: var(--white); border-radius: 16px; padding: 4px; }
.footer-inner p { margin: 0; color: #f3e9fb; }
.back-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--pink); color: var(--white); font-size: 1.4rem; font-weight: 900; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; z-index: 40; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(15, 5, 25, .92); z-index: 200; padding: 26px; }
.lightbox.show { display: flex; }
.lightbox img { max-height: 78vh; max-width: min(100%, 1100px); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); object-fit: contain; }
.lightbox p { color: var(--white); font-weight: 900; font-size: 1.05rem; text-align: center; }
.lightbox-close { position: absolute; right: 24px; top: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--white); color: var(--deep-purple); font-size: 2rem; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; left: 16px; right: 16px; top: 96px; flex-direction: column; align-items: stretch; background: linear-gradient(145deg, var(--purple), var(--deep-green)); padding: 16px; border-radius: 22px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: .25s ease; }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu a { text-align: center; }
  .hero-content, .two-col, .impact-grid, .contact-grid, .feature-grid, .partner-wrap { grid-template-columns: 1fr; }
  .hero-content { padding: 70px 0 110px; }
  .hero-card { max-width: 430px; }
  .program-grid { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: 1fr; }
  .partner-wrap img { height: 300px; }
}
@media (max-width: 640px) {
  .brand img { width: 54px; height: 54px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .76rem; }
  .navbar { min-height: 76px; }
  .nav-menu { top: 84px; }
  .hero { min-height: 820px; }
  .hero h1 { font-size: 2.7rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .photo-stack { min-height: auto; }
  .photo-main { width: 100%; height: 340px; }
  .photo-small { position: relative; right: auto; bottom: auto; width: 80%; height: 230px; margin: -60px 0 0 auto; }
  .floating-badge { left: 16px; right: auto; top: 16px; }
  .gallery-card { width: 270px; height: 260px; }
  .gallery-card img { height: 200px; }
  .footer-inner, .footer-inner div { flex-direction: column; text-align: center; }
}
