/* =========================================================
   PANCHGAVYA SE PANCHPARIVARTAN 2026
   Main Stylesheet
   Palette: Green & Cream (nature-inspired)
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --green-900: #0d2e1d;
  --green-800: #1a5c3a;
  --green-700: #2e7d4f;
  --green-600: #43a047;
  --green-500: #4caf50;
  --green-100: #e8f5e9;
  --green-50: #f1f8e9;
  --cream: #f8f3e6;
  --cream-dark: #efe6cf;
  --gold: #f5c542;
  --dark: #1f2933;
  --text: #3d4a3f;
  --white: #ffffff;
  --shadow: rgba(13, 46, 29, 0.12);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--green-900);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-600);
  border-radius: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(67, 160, 71, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(67, 160, 71, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-800);
  transform: translateY(-3px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-700);
  padding: 11px 26px;
  font-size: 0.92rem;
}

.btn-outline-dark:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--green-800);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--green-800);
}

.btn-block {
  width: 100%;
}

.arrow {
  transition: transform 0.3s;
  display: inline-block;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(248, 243, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-800);
}

.logo-text small {
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: var(--text);
  opacity: 0.85;
}

.navbar:not(.scrolled) .logo-text strong {
  color: var(--white);
}

.navbar:not(.scrolled) .logo-text small {
  color: var(--cream);
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--green-100);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar:not(.scrolled) .nav-link {
  color: var(--cream);
}

.navbar.scrolled .nav-link {
  color: var(--green-800);
}

.nav-link.btn-donate {
  background: linear-gradient(135deg, var(--gold), #e6a800);
  color: var(--green-900);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
}

.nav-link.btn-donate::after {
  display: none;
}

.nav-link.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 197, 66, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--green-800);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar:not(.scrolled) .hamburger span {
  background: var(--white);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay via gradient layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 46, 29, 0.55), rgba(13, 46, 29, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.18);
  border: 1px solid rgba(245, 197, 66, 0.5);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold), #fff3c4, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 300;
}

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

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--cream);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* =========================================================
   SECTIONS (reusable)
   ========================================================= */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  color: var(--green-600);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text);
  opacity: 0.9;
}

.dark-head .section-title {
  color: var(--white);
}

.dark-head .section-lead {
  color: var(--green-50);
}

.dark-head .section-tag {
  color: var(--gold);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow);
  border: 6px solid var(--white);
  background: var(--green-50);
}

.img-frame .illustration {
  width: 100%;
  height: auto;
}

.about-badge {
  position: absolute;
  bottom: -22px;
  right: -10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 35px rgba(67, 160, 71, 0.4);
}

.badge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.badge-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 4px;
}

.about-text .section-title {
  margin-bottom: 14px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-points {
  margin: 24px 0 30px;
  display: grid;
  gap: 12px;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tick {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  font-weight: 700;
}

/* =========================================================
   PANCHGAVYA CARDS
   ========================================================= */
.panchgavya {
  background: linear-gradient(180deg, var(--green-50), var(--cream));
}

.panchgavya-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.gavya-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(13, 46, 29, 0.05);
  position: relative;
  overflow: hidden;
}

.gavya-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}

.gavya-card:hover::before {
  transform: scaleX(1);
}

.gavya-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px var(--shadow);
}

.gavya-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(67, 160, 71, 0.3);
}

.gavya-icon svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.gavya-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.gavya-card p {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* =========================================================
   TRANSFORMATIONS
   ========================================================= */
.transformations {
  background: var(--cream);
}

.transform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.transform-row:last-child {
  margin-bottom: 0;
}

.transform-row.reverse .transform-img {
  order: 2;
}

.transform-row.reverse .transform-text {
  order: 1;
}

.transform-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow);
  border: 6px solid var(--white);
  background: var(--green-50);
}

.transform-img .illustration {
  width: 100%;
  height: auto;
}

.transform-text {
  position: relative;
}

.transform-num {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--green-100);
  position: absolute;
  top: -45px;
  left: -8px;
  z-index: 0;
  line-height: 1;
}

.transform-text h3 {
  font-size: 2rem;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.transform-text p {
  margin-bottom: 18px;
}

.transform-text ul {
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.transform-text ul li {
  position: relative;
  padding-left: 26px;
}

.transform-text ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* =========================================================
   VISION & IMPACT
   ========================================================= */
.vision {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  position: relative;
}

.vision::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 197, 66, 0.08), transparent 50%);
  pointer-events: none;
}

.vision .container {
  position: relative;
  z-index: 1;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.mv-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
}

.mv-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.mv-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.mv-card p {
  color: var(--green-50);
  font-size: 0.92rem;
}

/* Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.counter-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.counter-box:hover {
  transform: scale(1.04);
}

.counter {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
}

.suffix {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.counter-box p {
  color: var(--green-50);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Timeline */
.timeline {
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-title {
  color: var(--white);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6rem;
}

.timeline-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--green-600));
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 26px;
}

.tl-dot {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--green-900);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.3);
}

.tl-content h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.tl-content p {
  color: var(--green-50);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Progress */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.progress-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--green-50);
  font-size: 0.9rem;
  font-weight: 500;
}

.pct {
  color: var(--gold);
  font-weight: 700;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--green-500));
  border-radius: 10px;
  transition: width 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  background: var(--cream);
}

.masonry {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  background: var(--green-50);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px var(--shadow);
}

.gallery-item .gimg {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gimg {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '⤢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--white);
  font-size: 2rem;
  background: rgba(13, 46, 29, 0.6);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition);
  opacity: 0;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 16, 0.92);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-media .gimg {
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: var(--cream);
  margin-top: 16px;
  font-size: 1.05rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--green-900);
  transform: rotate(90deg);
}

/* =========================================================
   WHY SECTION
   ========================================================= */
.why {
  background: linear-gradient(180deg, var(--cream), var(--green-50));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.why-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--green-600);
}

.why-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  transform: scale(1.15) rotate(-6deg);
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px var(--shadow);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--green-600);
  opacity: 0.3;
  line-height: 0.6;
  height: 40px;
  margin-bottom: 10px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--cream-dark);
  padding-top: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-person h4 {
  font-size: 1.05rem;
}

.testimonial-person span {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: var(--green-50);
}

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  border: 1px solid rgba(13, 46, 29, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green-900);
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--green-600);
}

.faq-icon {
  font-size: 1.6rem;
  color: var(--green-600);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--green-600);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* =========================================================
   CALL TO ACTION
   ========================================================= */
.cta {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  z-index: 0;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 197, 66, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1), transparent 40%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
}

.cta-content p {
  color: var(--green-50);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
}

.contact-info {
  display: grid;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: 0 8px 24px var(--shadow);
  transition: var(--transition);
}

.info-item:hover {
  transform: translateX(6px);
}

.info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--green-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.info-item h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.info-item p,
.info-item a {
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.9;
}

.info-item a:hover {
  color: var(--green-600);
}

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 16px 45px var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--green-50);
  transition: var(--transition);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  color: var(--green-600);
}

.form-status.error {
  color: #d32f2f;
}

/* Map */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 45px var(--shadow);
  border: 6px solid var(--white);
}

.map-placeholder {
  background:
    linear-gradient(135deg, rgba(13, 46, 29, 0.9), rgba(26, 92, 58, 0.85)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
}

.map-pin {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.map-placeholder p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
}

.map-placeholder span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--green-900);
  color: var(--green-50);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo .logo-text strong {
  color: var(--white);
}

.footer-logo .logo-text small {
  color: var(--green-50);
}

.footer-brand p {
  margin: 16px 0 20px;
  font-size: 0.92rem;
  opacity: 0.85;
  max-width: 300px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
  fill: var(--cream);
  transition: var(--transition);
}

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

.social-icons a:hover svg {
  fill: var(--green-900);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col ul a {
  color: var(--green-50);
  opacity: 0.85;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 14px;
}

.newsletter {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 5px;
}

.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--white);
  font-family: inherit;
  outline: none;
  font-size: 0.9rem;
}

.newsletter input::placeholder {
  color: var(--green-50);
  opacity: 0.6;
}

.newsletter button {
  width: 44px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-900);
  font-size: 1.2rem;
  transition: var(--transition);
}

.newsletter button:hover {
  background: var(--white);
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.panchgavya-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.panchgavya-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.panchgavya-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.panchgavya-grid .reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.why-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.why-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.why-grid .reveal:nth-child(4) {
  transition-delay: 0.1s;
}

.why-grid .reveal:nth-child(5) {
  transition-delay: 0.2s;
}

.why-grid .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

.testimonial-grid .reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.testimonial-grid .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.mv-grid .reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.mv-grid .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

/* =========================================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .panchgavya-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry {
    columns: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small tablet / large mobile */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Nav */
  .hamburger {
    display: flex;
  }

  /* Ensure hamburger bars are always visible against the light drawer
     when the menu is open (close X button). */
  .hamburger.active span {
    background: var(--green-900);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    box-shadow: -10px 0 30px var(--shadow);
    transform: translateX(100%);
    transition: transform 0.4s ease, visibility 0.4s ease;
    padding: 100px 30px 30px;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Always use dark text on the light cream drawer regardless of scroll
     state. High specificity overrides .navbar:not(.scrolled) .nav-link. */
  .nav-menu .nav-link,
  .navbar .nav-menu .nav-link,
  .navbar:not(.scrolled) .nav-menu .nav-link,
  .navbar.scrolled .nav-menu .nav-link {
    color: var(--green-800);
    font-size: 1.1rem;
  }

  /* CTA button stays visible with dark text on the gold gradient */
  .nav-menu .nav-link.btn-donate,
  .navbar:not(.scrolled) .nav-menu .nav-link.btn-donate {
    display: inline-block;
    color: var(--green-900);
    background: linear-gradient(135deg, var(--gold), #e6a800);
  }

  /* Hover / active underline stays gold and visible on cream */
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--green-600);
  }

  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link.active::after {
    width: 100%;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-badge {
    right: 10px;
  }

  /* Panchgavya */
  .panchgavya-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Transformations */
  .transform-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .transform-row.reverse .transform-img {
    order: 1;
  }

  .transform-row.reverse .transform-text {
    order: 2;
  }

  /* Vision */
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-grid {
    grid-template-columns: 1fr;
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .panchgavya-grid {
    grid-template-columns: 1fr;
  }

  .counters {
    grid-template-columns: 1fr 1fr;
  }

  .masonry {
    columns: 1;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .about-badge {
    padding: 14px 18px;
  }

  .badge-num {
    font-size: 1.5rem;
  }
}

/* ---------- Reduced motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}