:root {
  --bg: #f4f9f6;
  --surface: #ffffff;
  --primary: #1a3c34;
  --secondary: #2d6a4f;
  --accent: #40916c;
  --accent-light: #74c69d;
  --accent-warm: #d4a017;
  --text: #1a2e26;
  --muted: #52796f;
  --border: rgba(45, 106, 79, 0.14);
  --shadow-sm: 0 4px 20px rgba(26, 60, 52, 0.06);
  --shadow-md: 0 12px 40px rgba(26, 60, 52, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 60, 52, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, rgba(64, 145, 108, 0.1), transparent 24%),
    linear-gradient(180deg, #e8f3ec 0%, var(--bg) 40%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

::selection {
  background: rgba(64, 145, 108, 0.3);
  color: var(--primary);
}

/* —— Nav —— */
.nav {
  width: 100%;
  background: rgba(26, 60, 52, 0.96);
  padding: 14px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-color: rgba(116, 198, 157, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(116, 198, 157, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(116, 198, 157, 0.4);
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(64, 145, 108, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(116, 198, 157, 0.55);
  box-shadow: 0 4px 14px rgba(64, 145, 108, 0.25);
  line-height: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.35);
}

.logo-text {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  color: #ffffff;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(116, 198, 157, 0.22);
  color: #ffffff;
}

/* —— Hero —— */
.hero {
  min-height: calc(100vh - var(--nav-height));
  position: relative;
  background: linear-gradient(135deg, rgba(26, 60, 52, 0.88) 0%, rgba(45, 106, 79, 0.7) 100%),
    url('https://images.unsplash.com/photo-1469571486292-b53601020f8a?q=80&w=1400&auto=format&fit=crop')
      center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 6%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(116, 198, 157, 0.15), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  color: white;
  max-width: 820px;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-content > p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #b8860b 100%);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(212, 160, 23, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(212, 160, 23, 0.42);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* —— Sections —— */
.section {
  padding: clamp(64px, 10vw, 100px) 6%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
}

.section-lead {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.light-bg {
  background: #e8f3ec;
  max-width: none;
  width: 100%;
}

.light-bg .section-header,
.light-bg .card-container,
.light-bg .gallery {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* —— About —— */
.about-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 3px solid var(--accent-light);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 1.02rem;
  color: var(--muted);
}

.about-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 1.75rem;
}

.about-highlights li {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* —— Cards —— */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(64, 145, 108, 0.3);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #e8f3ec, #d8ede3);
  border-radius: 14px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* —— Impact —— */
.impact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.impact-box {
  background: linear-gradient(160deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.impact-box:hover {
  transform: translateY(-6px);
}

.impact-box h1 {
  color: var(--accent-warm);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1;
}

.impact-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* —— Form —— */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(232, 243, 236, 0.6));
}

form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

form label {
  display: block;
  margin-bottom: 18px;
}

form label span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(45, 106, 79, 0.2);
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--primary);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
  background: #ffffff;
}

form button {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(64, 145, 108, 0.28);
}

/* —— Footer —— */
footer {
  background: var(--primary);
  color: #e8f3ec;
  padding: 56px 6% 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(232, 243, 236, 0.85);
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.footer-links a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-owner {
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent-warm);
  font-size: 0.95rem;
}

/* —— Back to top —— */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.back-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.back-top:not([hidden]) {
  animation: fadeUp 0.3s ease;
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-end {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 20px;
    padding: 24px 6% 32px;
    background: rgba(26, 60, 52, 0.98);
    border-bottom: 1px solid rgba(116, 198, 157, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav-end.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 4px;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image::after {
    display: none;
  }

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

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  form {
    padding: 28px 22px;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* —— Donate Nav Button —— */
.nav-donate-btn {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #b8860b 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.48);
}

/* —— Donate Modal Overlay —— */
.donate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 24, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.donate-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.donate-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: slideUp 0.28s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.donate-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(26, 60, 52, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.donate-close:hover {
  background: rgba(26, 60, 52, 0.16);
}

.donate-header {
  text-align: center;
  margin-bottom: 24px;
}

.donate-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.donate-lead {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* —— QR Card —— */
.donate-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.donate-qr-card {
  background: #f8fbf9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 18px;
  text-align: center;
  width: 100%;
}

.donate-scan-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.donate-bharat-badge {
  margin-bottom: 14px;
}

.bharat-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.donate-qr-img {
  width: 180px;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(26, 60, 52, 0.1);
}

.donate-org-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.donate-mid {
  font-size: 0.78rem;
  color: var(--muted);
}

/* —— Payment Methods —— */
.donate-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.donate-pm-item {
  background: linear-gradient(135deg, #e8f3ec, #d4ede0);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  text-align: center;
  flex: 1 1 130px;
}

.donate-pm-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.donate-pm-num {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.donate-helpdesk {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
}

.donate-bank {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.donate-bank strong {
  color: #c00;
}

/* Responsive donate modal */
@media (max-width: 520px) {
  .donate-modal {
    padding: 32px 20px 24px;
  }

  .donate-qr-img {
    width: 150px;
    height: 220px;
  }
}
