:root {
  --blue-900: #0f2559;
  --blue-800: #1a3a7a;
  --blue-700: #2a4d94;
  --orange-500: #e08423;
  --orange-600: #c96f13;
  --cream: #faf6ee;
  --cream-deep: #f3ecdd;
  --paper: #fffdf9;
  --ink: #21262f;
  --ink-soft: #565f70;
  --line: #e3dccb;
  --radius: 10px;
}

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

.lazy-fade { opacity: 0; transition: opacity 0.5s ease; }
.lazy-fade-loaded { opacity: 1; }

html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 88px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.22;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

.section { padding: 100px 0; }
.section-alt { background: var(--paper); }

.kicker {
  display: inline-block;
  color: var(--orange-600);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.kicker-light { color: #e9c185; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 22px;
  max-width: 680px;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 44px;
}

.lead-light {
  font-size: 1.08rem;
  color: #cfd8ec;
  max-width: 600px;
  margin: 0 auto 34px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--blue-900);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-600); }
.btn-outline {
  border-color: var(--blue-900);
  color: var(--blue-900);
  background: transparent;
}
.btn-outline:hover { background: var(--blue-900); color: #fff; }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.brand-name { font-size: 1.08rem; font-weight: 600; font-family: 'Fraunces', serif; }
.brand-name-accent { color: var(--orange-600); }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue-800); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--blue-900); }

/* Floating donate button */
.floating-donate {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  padding: 10px 20px;
  font-size: 0.86rem;
  border-radius: 999px;
  background: var(--orange-600);
  box-shadow: 0 10px 28px rgba(201, 111, 19, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease;
}
.floating-donate.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-donate:hover { background: var(--orange-500); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 55%);
  padding: 76px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow {
  color: var(--orange-600);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 22px;
}
.hero-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--blue-800);
  margin-bottom: 22px;
}
.hero-quote span { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--ink-soft); margin-top: 5px; }
.hero-sub { color: var(--ink-soft); font-size: 1.03rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  height: 460px;
}
.hero-photo-back, .hero-photo-front {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 37, 89, 0.16);
  border: 6px solid var(--paper);
}
.hero-photo-back {
  top: 0; left: 0;
  width: 78%;
  height: 78%;
}
.hero-photo-front {
  bottom: 0; right: 0;
  width: 52%;
  height: 52%;
}
.hero-photo-back img, .hero-photo-front img {
  width: 100%; height: 100%; object-fit: cover;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.about-card {
  background: var(--paper);
  padding: 32px 28px;
  transition: background 0.2s ease;
}
.about-card:hover { background: var(--cream); }
.about-card h3 { font-size: 1.08rem; margin-bottom: 12px; color: var(--blue-800); }
.about-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card {
  background: var(--cream);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.work-card:hover { background: var(--paper); }
.work-icon {
  display: inline-flex;
  width: 42px; height: 42px;
  color: var(--blue-800);
  margin-bottom: 18px;
}
.work-icon svg { width: 100%; height: 100%; }
.work-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.work-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Action */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 4px;
}
.action-photo {
  overflow: hidden;
}
.action-photo img { width: 100%; height: 100%; object-fit: cover; }
.action-photo.tall { grid-row: span 2; }
.action-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
.action-grid > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.action-grid > :nth-child(3) { grid-column: 3; grid-row: 1; }
.action-grid > :nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-view-all { text-align: center; margin-top: 28px; }
.gallery-view-all .btn { display: inline-flex; }

/* Policy pages */
.policy-body h3 { font-size: 1.05rem; margin: 32px 0 10px; color: var(--blue-800); }
.policy-body h3:first-child { margin-top: 0; }
.policy-body p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 4px; }

/* Trust / Team */
.team-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.team-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.team-row h4 { font-size: 1.1rem; font-weight: 600; }
.team-row span { color: var(--ink-soft); font-size: 0.9rem; }

/* Donate */
.donate-section {
  background: var(--blue-900);
  color: #fff;
}
.donate-section h2 { color: #fff; margin-bottom: 14px; }
.donate-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  padding: 44px 48px;
}
.donate-panel-text { max-width: 560px; }
.donate-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.donate-section .btn-primary {
  background: var(--orange-600);
}
.donate-section .btn-primary:hover {
  background: var(--orange-500);
}

/* Donate page */
.donate-hero {
  position: relative;
  padding: 70px 0 20px;
  background: var(--cream-deep);
  overflow: hidden;
}
.donate-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.donate-hero-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: hero-scroll 36s linear infinite;
}
.donate-hero-track img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  filter: blur(2px) saturate(0.95);
  transform: scale(1.1);
  margin-right: 2px;
}
@keyframes hero-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .donate-hero-track { animation: none; }
}
.donate-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243,236,221,0.5) 0%, rgba(250,246,238,0.65) 75%);
}
.donate-hero-content { position: relative; z-index: 1; }
.donate-hero .eyebrow {
  color: var(--orange-600);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.donate-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.donate-hero-sub { color: var(--ink-soft); font-size: 1.05rem; }

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.pay-card {
  background: var(--paper);
  padding: 36px 32px;
}
.pay-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pay-card-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.pay-pending {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--cream);
}
.pay-pending p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.pay-pending p:last-child { margin-bottom: 0; }
.pay-pending strong { color: var(--orange-600); }

/* Amount selector */
.amount-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.amount-chip {
  padding: 9px 18px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.amount-chip:hover { border-color: var(--blue-800); }
.amount-chip.active {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}
.amount-custom {
  width: 100%;
  padding: 11px 14px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  margin-bottom: 22px;
}
.amount-custom:focus { outline: none; border-color: var(--blue-800); }

.pay-reveal-btn { width: 100%; justify-content: center; }
.pay-reveal { margin-top: 20px; }

.upi-app-logos {
  text-align: center;
  margin-top: 14px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.upi-app-logos img {
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

.receipt-confirm {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.receipt-confirm p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 16px; }
.receipt-btn { width: 100%; justify-content: center; }
.ref-id-text {
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.ref-id-text strong { color: var(--blue-800); }

.pay-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--cream);
  text-align: center;
}
.pay-qr { margin: 0 auto 16px; border-radius: 6px; }
.pay-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.copy-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-800);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue-800); }
.pay-app-btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.pay-amount-note { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0; }

.bank-details-grid { text-align: left; }
.bank-details-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.bank-details-grid > div:last-child { border-bottom: none; }
.bank-label {
  min-width: 130px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assist-card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 36px;
}
.assist-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.assist-card p { color: var(--ink-soft); margin-bottom: 22px; max-width: 460px; margin-left: auto; margin-right: auto; }

.trust-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8px;
}

/* Footer */
.site-footer { background: var(--blue-900); color: #cdd8f2; padding: 0; }
.footer-grid {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 46px; height: 46px; border-radius: 8px; margin-bottom: 14px; object-fit: cover; }
.footer-brand p { font-size: 0.92rem; color: #9aa8c9; font-family: 'Fraunces', serif; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: #9aa8c9; margin-bottom: 8px; }
.footer-col a:hover { color: var(--orange-500); }
.footer-bottom { padding: 22px 24px; text-align: center; font-size: 0.83rem; color: #7284ab; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.94);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { height: 320px; order: -1; margin-bottom: 8px; }
  .about-grid, .work-grid, .pay-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .action-grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .action-grid > :nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .action-grid > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .action-grid > :nth-child(4) { grid-column: 1 / span 2; grid-row: 3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .team-row { flex-direction: column; gap: 4px; }
  .donate-panel { flex-direction: column; text-align: center; padding: 36px 28px; }
  .donate-panel-text { max-width: none; }
  .donate-actions { justify-content: center; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  .header-inner { gap: 10px; }
}

@media (max-width: 340px) {
  .brand-name { display: none; }
}
