@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  --green-deep: #0d3320;
  --green-dark: #1a4d33;
  --green-mid: #2d6e4f;
  --green-light: #3d8f66;
  --green-accent: #4caf7d;
  --white: #ffffff;
  --cream: #f5f9f6;
  --text-dark: #0a2818;
  --text-muted: #6b8f7a;
  --gold: #c9a84c;
  --shadow: 0 8px 40px rgba(13,51,32,0.15);
  --shadow-hover: 0 16px 60px rgba(13,51,32,0.25);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== NAVIGATION ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,51,32,0.97);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(76,175,125,0.2);
  transition: var(--transition);
}
nav.scrolled { background: rgba(13,51,32,1); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; border: 2px solid var(--green-accent); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-text span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.5px; line-height: 1.2;
}
.nav-brand-text span:last-child {
  font-size: 0.65rem; color: var(--green-accent); letter-spacing: 2px; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.3px;
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(76,175,125,0.15); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--green-accent); border-radius: 50%;
}

.nav-cta {
  background: var(--green-accent) !important; color: var(--green-deep) !important;
  padding: 0.5rem 1.2rem !important; font-weight: 700 !important;
}
.nav-cta:hover { background: #5cc98d !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 50%, var(--green-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 2rem 60px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234caf7d' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-glow-1 { width: 500px; height: 500px; background: rgba(76,175,125,0.12); top: -100px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(201,168,76,0.08); bottom: -100px; left: -100px; }

.hero-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(76,175,125,0.15); border: 1px solid rgba(76,175,125,0.3);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.78rem; color: var(--green-accent); letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s ease both;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--green-accent); border-radius: 50%; animation: pulse 2s infinite; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}
.hero-title em { color: var(--green-accent); font-style: normal; }

.hero-text {
  color: rgba(255,255,255,0.75); font-size: 1.05rem;
  margin-bottom: 2.5rem; max-width: 480px;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeSlideUp 0.7s ease 0.3s both; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none; letter-spacing: 0.3px;
}
.btn-primary { background: var(--green-accent); color: var(--green-deep); }
.btn-primary:hover { background: #5cc98d; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(76,175,125,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: #d4b56a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); }

.hero-image-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  animation: fadeSlideUp 0.8s ease 0.4s both;
}
.hero-img-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid rgba(76,175,125,0.2); position: relative;
}
.hero-img-wrap:first-child { grid-row: span 2; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.hero-img-wrap:hover img { transform: scale(1.05); }
.hero-img-wrap:first-child { height: 320px; }
.hero-img-wrap:not(:first-child) { height: 154px; }

/* ===================== SECTIONS ===================== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--green-deep);
  line-height: 1.2; margin-bottom: 1.25rem;
}
.section-title.white { color: var(--white); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; }
.section-sub.white { color: rgba(255,255,255,0.75); }

/* ===================== STATS ===================== */
.stats-bar {
  background: var(--green-deep);
  padding: 3rem 2rem;
}
.stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 900; color: var(--green-accent); line-height: 1;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.4rem; }

/* ===================== ABOUT SECTION ===================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-image-stack { position: relative; height: 450px; }
.about-image-stack img {
  position: absolute; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover;
}
.about-image-stack img:first-child { width: 70%; height: 75%; top: 0; left: 0; z-index: 2; }
.about-image-stack img:last-child { width: 60%; height: 65%; bottom: 0; right: 0; z-index: 1; border: 4px solid var(--white); }
.about-badge-img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 3; width: 80px; height: 80px;
  background: var(--white); border-radius: 50%; padding: 8px;
  box-shadow: 0 8px 30px rgba(13,51,32,0.2);
}

.mission-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1rem;
  border-left: 4px solid var(--green-accent);
  box-shadow: 0 2px 20px rgba(13,51,32,0.06);
  transition: var(--transition);
}
.mission-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.mission-card h4 { color: var(--green-deep); font-weight: 700; margin-bottom: 0.4rem; }
.mission-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ===================== PROGRAMS ===================== */
.programs-section { background: var(--green-deep); }
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.program-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(76,175,125,0.2);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.program-card:hover {
  background: rgba(76,175,125,0.1);
  border-color: var(--green-accent);
  transform: translateY(-6px);
}
.program-icon {
  width: 56px; height: 56px; background: rgba(76,175,125,0.15);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.program-card h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.program-card p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 3rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,51,32,0.1);
}
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:first-child img { height: 340px; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,51,32,0.8) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: white; font-size: 2rem; cursor: pointer;
  background: rgba(255,255,255,0.1); width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: none;
}

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info-card {
  background: var(--green-deep); color: var(--white);
  border-radius: var(--radius); padding: 2.5rem;
}
.contact-info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; margin-bottom: 2rem;
}
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(76,175,125,0.15); border: 1px solid rgba(76,175,125,0.3);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item-text { }
.contact-item-text strong { display: block; color: var(--green-accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { color: rgba(255,255,255,0.85); font-size: 0.95rem; text-decoration: none; }
.contact-item-text a:hover { color: var(--white); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--green-deep); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--green-dark); margin-bottom: 0.5rem; letter-spacing: 0.3px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem;
  border: 2px solid #e0ede6; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--text-dark);
  background: var(--cream); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green-accent); background: var(--white);
  box-shadow: 0 0 0 4px rgba(76,175,125,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===================== DONATE ===================== */
.donate-section { background: var(--green-deep); }
.donate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.bank-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(76,175,125,0.25);
  border-radius: var(--radius); padding: 2rem;
}
.bank-card h4 { color: var(--green-accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.bank-detail { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.bank-detail:last-child { border: none; }
.bank-detail span:first-child { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.bank-detail span:last-child { color: var(--white); font-weight: 600; }
.account-number { font-size: 1.4rem !important; letter-spacing: 2px; color: var(--green-accent) !important; }

/* ===================== WHATSAPP BUTTON ===================== */
.whatsapp-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 60px; height: 60px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 6px 25px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: bounceIn 1s ease 1s both;
}
.whatsapp-fab:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 10px 35px rgba(37,211,102,0.5); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: white; }
.whatsapp-tooltip {
  position: absolute; right: 70px; background: var(--text-dark);
  color: var(--white); font-size: 0.8rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; transform: translateX(10px); transition: var(--transition); pointer-events: none;
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--text-dark);
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--text-dark); color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { width: 60px; margin-bottom: 1rem; border-radius: 50%; border: 2px solid var(--green-mid); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-col h5 {
  color: var(--white); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 0.7rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  padding: 9rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); font-weight: 900; margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 1rem; }
.breadcrumb a { color: var(--green-accent); text-decoration: none; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-grid { max-width: 420px; margin: 0 auto; }
  .about-grid, .contact-grid, .donate-grid { grid-template-columns: 1fr; }
  .about-image-stack { height: 300px; }
  .programs-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--green-deep); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 100px 1.5rem 50px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
