/* ---------- RESET & VARIABLES ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-white: #ffffff;
  --bg-soft: #fafcfc;
  --accent: #1f6e6b;
  --accent-dark: #155856;
  --accent-light: #e6f3f2;
  --ink: #1a282c;
  --ink-light: #2d4a4f;
  --muted: #5a777c;
  --muted-soft: #8ea5a9;
  --border: #e2eceb;
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  --radius-card: 28px;
  --radius-btn: 60px;
  --footer-dark: #0f2629;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-white);
  color: var(--ink);
  line-height: 1.5;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, .serif-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 1.2rem;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 2.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(31, 110, 107, 0.06);
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ----- NAVBAR ----- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.donate-nav {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
}

.donate-nav:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* ----- HERO ----- */
.hero {
  background: linear-gradient(135deg, rgba(15,38,41,0.65) 0%, rgba(21,88,86,0.75) 100%), url('https://images.pexels.com/photos/30415852/pexels-photo-30415852.jpeg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: 100px 0 120px;
  position: relative;
  color: white;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.hero-content h1,
.hero-content p {
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-content p {
  color: rgba(255,255,240,0.95);
}

.hero-stat {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1.2;
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 550px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-stat {
  flex: 0.8;
  padding: 28px 32px;
  border-radius: 32px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-weight: 500;
  color: var(--ink-light);
  margin-top: 10px;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--muted-soft);
  margin-top: 8px;
}

/* ----- DECORATIVE ILLUSTRATIONS (subtle organic shapes & patterns) ----- */
.bg-blob-1 {
  position: absolute;
  top: 20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(31,110,107,0.03) 0%, rgba(31,110,107,0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.bg-blob-2 {
  position: absolute;
  bottom: 10%;
  right: -2%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31,110,107,0.04) 0%, rgba(31,110,107,0) 70%);
  border-radius: 60% 40% 50% 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.bg-blob-3 {
  position: absolute;
  top: 40%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(230,243,242,0.5) 0%, rgba(230,243,242,0) 80%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23fafcfc" opacity="0.6"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* approach section subtle pattern */
.approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--accent-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Programs section leaf / abstract illustration */
.programs::after {
  content: '🌱';
  font-size: 140px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(-10deg);
  font-family: monospace;
}

/* Impact section small floating circles */
.impact-stats {
  position: relative;
}
.impact-stats::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(31,110,107,0.02) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* gallery section soft brush stroke */
.gallery::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.05"><path fill="%231f6e6b" d="M42.5,58.3c8.5-11,19.2-18.4,32.5-22.6c13.2-4.2,27.1-4.8,40.5-1.4c13.4,3.4,25.5,10.5,35.1,20.5c9.6,10,16.8,22.4,20.5,36c3.7,13.6,3.5,28.4-0.5,41.8c-4,13.4-11.5,25.2-21.5,34.5c-10,9.3-22.2,16.2-35.9,19.5c-13.7,3.3-28.7,3-42.5-0.8c-13.8-3.8-26-11.2-36-21.5c-10-10.3-17.3-23.2-21-37.5c-3.7-14.3-3.7-30,0-44c3.7-14,11-26.4,21.5-36C32,68,36.5,62.5,42.5,58.3z"/></svg>') repeat;
  background-size: 45px;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

/* Approach Section (4 pillars) */
.approach {
  background: var(--bg-white);
  position: relative;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.approach-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-soft);
  border-radius: 28px;
  transition: all 0.25s;
  backdrop-filter: blur(2px);
}

/* Programs Section */
.programs {
  background: var(--bg-soft);
  position: relative;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.program-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

/* Impact Metrics */
.impact-stats {
  background: white;
  position: relative;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
  z-index: 2;
}

.stat-block {
  padding: 20px;
}

.stat-main {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
}

.impact-note {
  background: var(--bg-soft);
  border-radius: 48px;
  padding: 40px;
  margin-top: 48px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* GALLERY CAROUSEL */
.gallery {
  background: var(--bg-soft);
  position: relative;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #f0f3f3;
  margin-top: 20px;
  z-index: 2;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1);
  gap: 24px;
}

.carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 60px;
  transition: all 0.2s;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--accent);
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  z-index: 2;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbdcdd;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 12px;
}

/* Responsive carousel */
@media (max-width: 1000px) {
  .carousel-slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .carousel-slide { flex: 0 0 100%; }
  .carousel-btn { font-size: 1.2rem; padding: 8px 12px; }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(115deg, #ffffff 0%, #f2f7f6 100%);
  text-align: center;
  position: relative;
}
.cta-section::after {
  content: '✦';
  font-size: 180px;
  position: absolute;
  bottom: 0;
  left: 10%;
  opacity: 0.03;
  pointer-events: none;
  font-weight: 100;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* FOOTER */
.site-footer {
  background: var(--footer-dark);
  color: #e0efef;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid-modern {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 55px;
}

.footer-brand img {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 24px;
  color: #cbdfe0;
  font-size: 0.9rem;
  max-width: 280px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #cbdfe0;
}

.contact-info i {
  width: 24px;
  color: var(--accent-light);
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.footer-col a {
  display: block;
  color: #cbdfe0;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-col a:hover { color: white; transform: translateX(3px); display: inline-block; }

.footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: white;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 60px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  padding: 12px 24px;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-icons a {
  background: rgba(255, 255, 255, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: #9fc2c6;
}

/* Responsive */
@media (max-width: 1100px) { .footer-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 760px) { .footer-grid-modern { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    padding: 24px;
    border-radius: 28px;
    margin-top: 20px;
  }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: block; }
  .hero-grid { flex-direction: column; }
  .section-title { font-size: 2rem; }
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed { opacity: 1; transform: translateY(0); }
