/* ═══════════════════════════════════════════════════════
   InAmigos Foundation — Stylesheet
   Theme: Earthy Warmth + Modern Nonprofit
   ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --forest:       #1a4731;
  --forest-mid:   #2d6a4f;
  --forest-light: #52b788;
  --moss:         #86c578;
  --sage:         #d8f3dc;
  --terra:        #c97e3b;
  --terra-light:  #f4a261;
  --cream:        #fefae0;
  --warm-white:   #fdfcf7;
  --charcoal:     #1c1c1c;
  --ink:          #2d2d2d;
  --muted:        #6b7280;
  --border:       rgba(26,71,49,0.12);
  --footer-bg:    #0f2d1f;
  --card-shadow:  0 20px 60px rgba(26,71,49,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Particle Canvas ── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section Tags ── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-light);
  background: rgba(82,183,136,0.12);
  border: 1px solid rgba(82,183,136,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.section-tag.light {
  color: var(--moss);
  background: rgba(134,197,120,0.15);
  border-color: rgba(134,197,120,0.3);
}

/* ── Typography ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--terra); }
.section-title.light { color: #fff; }
.section-title.light em { color: var(--moss); }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-sub { margin: 0 auto; }

.body-lg { font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; line-height: 1.7; }
.body-md { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,71,49,0.35);
}
.btn-primary:hover {
  background: var(--forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,71,49,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-ghost:hover {
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
}

.btn-cta {
  width: 100%;
  justify-content: center;
  background: var(--sage);
  color: var(--forest);
  border: 2px solid var(--forest-light);
}
.btn-cta:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,71,49,0.3);
}

.btn-cta-primary {
  width: 100%;
  justify-content: center;
  background: var(--terra);
  color: #fff;
  border: 2px solid var(--terra);
}
.btn-cta-primary:hover {
  background: #a86229;
  border-color: #a86229;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,126,59,0.4);
}

/* ── Reveal Animations ── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal        { transform: translateY(40px); }
.reveal-left   { transform: translateX(-50px); }
.reveal-right  { transform: translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(254,250,224,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(26,71,49,0.1);
  padding: 0.65rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo-img:hover { transform: scale(1.05); }
.nav-logo em { font-style: italic; color: var(--terra); }
.logo-leaf { font-size: 1.4rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  opacity: 0.8;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--forest-light);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  transform-origin: left;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--forest) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  opacity: 1 !important;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--forest-mid) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  transition: all 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}
.mobile-menu.open {
  max-height: 300px;
  padding: 1rem 0;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--forest);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--sage); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
/* ── Hero wrapper: full viewport, full width ── */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #e9f5e1 55%, #ceeacc 100%);
  display: flex;
  align-items: center;
  padding: 0;
}

/* ── Animated background blobs ── */
.hero-bg-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.layer1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(82,183,136,0.28), transparent 70%);
  top: -200px; right: -150px;
  animation: floatA 12s ease-in-out infinite;
}
.layer2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,126,59,0.13), transparent 70%);
  bottom: -100px; left: -100px;
  animation: floatB 15s ease-in-out infinite;
}
.layer3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(134,197,120,0.2), transparent 70%);
  top: 35%; right: 28%;
  animation: floatC 10s ease-in-out infinite;
}
@keyframes floatA { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(20px)} }
@keyframes floatC { 0%,100%{transform:translateX(0)} 50%{transform:translateX(20px)} }

/* ── Hero inner grid (constrained width, centered) ── */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Keep direct hero children (scroll indicator) in flow */
.hero > .scroll-indicator { z-index: 2; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--forest-mid);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--forest-mid);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--forest);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--terra);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: var(--terra-light);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 1s 0.8s var(--ease-out);
}
.hero-title em.visible::after,
.visible .hero-title em::after { transform: scaleX(1); }

.hero-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: rgba(26,71,49,0.08);
  border: 1px solid rgba(26,71,49,0.2);
  color: var(--forest);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

/* Hero 3D card */
.hero-image-wrap {
  position: relative;
}
.hero-3d-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 40px 80px rgba(26,71,49,0.2);
  position: relative;
  transition: transform 0.1s;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(3deg) rotateX(-2deg) translateY(-10px); }
}
.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(82,183,136,0.2) 0%, transparent 50%, rgba(201,126,59,0.15) 100%);
  pointer-events: none;
}

.floating-stat {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.4rem;
  box-shadow: 0 10px 40px rgba(26,71,49,0.2);
  text-align: center;
  animation: statFloat 5s ease-in-out infinite;
}
.stat-a { top: 10%; left: -50px; animation-delay: 0s; }
.stat-b { bottom: 15%; right: -40px; animation-delay: -2.5s; }
@keyframes statFloat {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)}
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--forest);
}
.stat-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--forest-mid);
  opacity: 0.6;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--forest-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.3)} }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about {
  padding: 7rem 0;
  background: var(--warm-white);
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-stack {
  position: relative;
  height: 500px;
}
.img-back {
  position: absolute;
  top: 0; right: 0;
  width: 80%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.img-front {
  position: absolute;
  bottom: 0; left: 0;
  width: 58%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26,71,49,0.25);
  border: 4px solid #fff;
}
.about-accent-box {
  position: absolute;
  bottom: 30px; right: -20px;
  background: var(--terra);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(201,126,59,0.4);
}
.accent-year {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.accent-text {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-top: 0.2rem;
}
.founder-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--sage);
  border: 1px solid rgba(82,183,136,0.3);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  margin-top: 2rem;
}
.founder-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.founder-info strong { display: block; color: var(--forest); font-size: 1rem; }
.founder-info span { font-size: 0.82rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   IMPACT STRIP
═══════════════════════════════════════════ */
.impact-strip {
  background: var(--forest);
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.impact-strip::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='%2386c578' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}
.metric {
  text-align: center;
  flex: 1;
  min-width: 160px;
}
.metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--moss);
  line-height: 1;
}
.metric-unit {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terra-light);
  margin-left: 2px;
}
.metric-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.metric-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects {
  padding: 7rem 0;
  background: var(--cream);
  position: relative;
  z-index: 1;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* 3D Flip Cards */
.project-card {
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}
.card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
  border-radius: 20px;
}
.project-card:hover .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-front {
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
}

/* Full-bleed image inside the front face */
.card-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.project-card:hover .card-bg-img { transform: scale(1.07); }

/* Gradient overlay so text stays readable */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.72) 100%
  );
  transition: background 0.4s;
}
.project-card:hover .card-img-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.22) 35%,
    rgba(0,0,0,0.82) 100%
  );
}

/* Text content sits above the image */
.card-front-content {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-front-content .project-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.card-front-content .project-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.card-front-content .project-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.card-front-content .project-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.card-back {
  background: var(--forest);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

/* Card front colored accent bars */
[data-color="seva"]     .card-front::before { background: var(--terra); }
[data-color="bachpan"]  .card-front::before { background: #3b82f6; }
[data-color="jeev"]     .card-front::before { background: #f59e0b; }
[data-color="udaan"]    .card-front::before { background: #ec4899; }
[data-color="prakriti"] .card-front::before { background: var(--forest-light); }
[data-color="vikas"]    .card-front::before { background: #8b5cf6; }

.card-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
}

/* (project-icon, label, name, tagline now scoped inside .card-front-content — see above) */
.card-back h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--moss);
}
.card-back p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}
.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(134,197,120,0.2);
  border: 1px solid rgba(134,197,120,0.4);
  color: var(--moss);
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-top: auto;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  transition: background 0.15s;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   SOCIAL IMPACT
═══════════════════════════════════════════ */
.social-impact {
  background: linear-gradient(135deg, var(--forest) 0%, #0e3320 60%, #0a2417 100%);
  padding: 7rem 0 5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.impact-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.impact-bg-art svg { width: 100%; height: 100%; }

.impact-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}
.pillar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: background 0.3s, transform 0.3s var(--ease-out);
  backdrop-filter: blur(4px);
}
.pillar:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.pillar-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--moss);
  margin-bottom: 0.7rem;
}
.pillar p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

.impact-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}
.impact-photo-row img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.4s, transform 0.4s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.impact-photo-row img:hover {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  background: var(--warm-white);
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-section .section-sub { margin: 0 auto 4rem; max-width: 560px; }
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.cta-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.cta-card.featured {
  background: linear-gradient(160deg, var(--forest) 0%, #0d3320 100%);
  color: #fff;
  border-color: var(--forest-light);
  transform: scale(1.04);
  box-shadow: 0 30px 80px rgba(26,71,49,0.3);
}
.featured-ribbon {
  position: absolute;
  top: 1rem; right: -2rem;
  background: var(--terra);
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 2.5rem;
  transform: rotate(35deg);
  box-shadow: 0 2px 10px rgba(201,126,59,0.4);
}
.cta-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: transform 0.3s var(--ease-spring);
}
.featured .cta-icon-wrap { background: rgba(255,255,255,0.12); }
.cta-card:hover .cta-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.8rem;
}
.featured h3 { color: var(--moss); }
.cta-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.featured p { color: rgba(255,255,255,0.75); }
.tax-note {
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.65rem !important;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5) !important;
}

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  background: var(--sage);
  border-top: 1px solid rgba(82,183,136,0.3);
  border-bottom: 1px solid rgba(82,183,136,0.3);
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}
.trust-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 2rem;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid rgba(82,183,136,0.25);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.trust-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,71,49,0.15); }
.trust-icon { font-size: 1.3rem; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}
.footer-wave {
  margin-bottom: -2px;
  overflow: hidden;
  line-height: 0;
}
.footer-wave svg { display: block; width: 100%; }
.footer > .container { padding: 4rem 2rem 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.3s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.7rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
  background: var(--forest-light);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--forest-light);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--moss); }

.footer-contact p {
  display: flex;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.footer-contact a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-contact a:hover { color: var(--moss); }
.contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-love { color: rgba(255,255,255,0.5) !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-pillars { grid-template-columns: repeat(2, 1fr); }
  .impact-photo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 680px; margin: 0 auto; }
  .hero-image-wrap { display: none; }
  .scroll-indicator { display: none; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 7rem 2rem 4rem; gap: 2.5rem; }
  .hero-content { max-width: 680px; margin: 0 auto; }
  .hero-image-wrap { display: none; }
  .scroll-indicator { display: none; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-stack { height: 320px; }
  .img-back { width: 90%; height: 260px; }
  .img-front { width: 55%; height: 200px; }
  .cta-cards { grid-template-columns: 1fr; max-width: 480px; }
  .cta-card.featured { transform: none; }
  .metrics-row { gap: 1.5rem; }
  .metric-divider { display: none; }
  .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .impact-pillars { grid-template-columns: 1fr; }
  .impact-photo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-inner { padding: 6rem 1.2rem 3rem; }
  .impact-photo-row { grid-template-columns: 1fr; }
  .trust-logos { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }

/* ── Selection ── */
::selection { background: var(--sage); color: var(--forest); }
