/* =========================================================
   Bhoomi Foundation — Site Styles
   Peaceful · Natural · Spiritual · Premium
   ========================================================= */

:root {
  --saffron: #C45C26;
  --saffron-deep: #A3481C;
  --saffron-soft: #E8A06A;
  --forest: #2F5D3A;
  --forest-deep: #23462C;
  --forest-soft: #E7F0EA;
  --cream: #F7F3EB;
  --cream-dark: #EFE7D8;
  --white: #FFFFFF;
  --ink: #2A2420;
  --ink-soft: #5C534C;
  --muted: #8A8178;
  --border: #E5DCCE;
  --shadow: 0 10px 30px rgba(42, 36, 32, 0.08);
  --shadow-soft: 0 6px 18px rgba(42, 36, 32, 0.06);
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--saffron); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--saffron);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

/* Typography */
h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.section-pad {
  padding: 5rem 0;
}

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-forest-soft { background: var(--forest-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 220, 206, 0.8);
}

.navbar { min-height: var(--header-h); padding-top: .65rem; padding-bottom: .65rem; }

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.1;
}

.brand-tagline {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.2;
}

.navbar-nav .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: .5rem 1rem !important;
  border-radius: 999px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--saffron-deep);
  background: rgba(196, 92, 38, 0.08);
}

.navbar-toggler {
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .7rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-saffron {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 92, 38, 0.25);
}
.btn-saffron:hover,
.btn-saffron:focus {
  background: var(--saffron-deep);
  border-color: var(--saffron-deep);
  color: #fff;
}

.btn-forest {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.btn-forest:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: #fff;
}

.btn-outline-saffron {
  border: 1.5px solid var(--saffron);
  color: var(--saffron-deep);
  background: transparent;
}
.btn-outline-saffron:hover {
  background: var(--saffron);
  color: #fff;
}

.btn-outline-forest {
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: transparent;
}
.btn-outline-forest:hover {
  background: var(--forest);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(35, 70, 44, 0.25) 0%,
    rgba(42, 36, 32, 0.35) 40%,
    rgba(42, 36, 32, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4.5rem;
  max-width: 46rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: .75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,.92);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.page-hero .hero-media { animation: none; }

.page-hero .hero-content {
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: .5rem;
}

/* Cards */
.card-soft {
  background: var(--white);
  border: 1px solid rgba(229, 220, 206, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-soft .card-img-top {
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.icon-badge.saffron {
  background: rgba(196, 92, 38, 0.12);
  color: var(--saffron-deep);
}

/* Stats */
.stats-strip {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #fff;
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item { text-align: center; padding: 1.5rem .5rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  opacity: .9;
  font-size: .95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}

.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { min-height: 320px; }

.gallery-item img,
.gallery-item .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform .5s ease;
}

.gallery-item:hover img,
.gallery-item:hover .video-thumb { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(42,36,32,.75));
  color: #fff;
  transform: translateY(8px);
  opacity: .95;
  transition: .3s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-filters .btn {
  margin: .25rem;
  padding: .45rem 1.1rem;
  font-size: .9rem;
}

.gallery-filters .btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* Donate */
.amount-chip {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
}

.amount-chip:hover,
.amount-chip.active {
  border-color: var(--saffron);
  background: rgba(196, 92, 38, 0.08);
  color: var(--saffron-deep);
  box-shadow: var(--shadow-soft);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: .75rem 1rem;
  background: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--saffron-soft);
  box-shadow: 0 0 0 .2rem rgba(196, 92, 38, 0.15);
}

.form-label { font-weight: 600; color: var(--ink-soft); }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229,220,206,.7);
  height: 100%;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(47,93,58,.88), rgba(196,92,38,.78)),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  border-radius: calc(var(--radius) + .25rem);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 36rem; margin: 0 auto 1.5rem; }

/* Footer */
.site-footer {
  background: #243528;
  color: rgba(255,255,255,.85);
  margin-top: 0;
}

.footer-top { padding: 4.5rem 0 3rem; }

.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.footer-text { color: rgba(255,255,255,.75); }

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-contact li { margin-bottom: .65rem; }

.footer-links a, .footer-contact a {
  color: rgba(255,255,255,.78);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--saffron-soft); }

.footer-contact li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: .4rem;
}
.social-links a:hover {
  background: var(--saffron);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .92rem;
  color: rgba(255,255,255,.65);
}

/* Policy / content pages */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229,220,206,.7);
  white-space: pre-line;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox-backdrop.show { display: flex; }
.lightbox-inner {
  max-width: min(960px, 100%);
  max-height: 90vh;
  position: relative;
}
.lightbox-inner img,
.lightbox-inner iframe {
  max-width: 100%;
  max-height: 85vh;
  border-radius: .75rem;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.75rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

/* Admin shared bits used on thank-you etc */
.alert-soft {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--forest-soft);
  color: var(--forest-deep);
}

/* Responsive */
@media (max-width: 991.98px) {
  .gallery-item,
  .gallery-item.wide { grid-column: span 6; }
  .hero { min-height: 78vh; align-items: center; }
  .hero-content { padding-top: 3rem; }
}

@media (max-width: 575.98px) {
  .gallery-item,
  .gallery-item.wide { grid-column: span 12; }
  .section-pad { padding: 3.5rem 0; }
  .content-card { padding: 1.5rem; }
}
