/* ================================================================
   Bharatodayyaa Global Welfare Foundation — Design System
   Palette drawn from the foundation logo:
   ink navy · saffron · forest green · warm ivory
   Type: Fraunces (display serif) + Inter (UI/body)
   ================================================================ */

:root {
  --ink:          #16324F;
  --ink-deep:     #0E2438;
  --ink-soft:     #35516D;
  --saffron:      #E8590C;
  --saffron-deep: #C64A08;
  --saffron-soft: #FDEEE3;
  --marigold:     #F6AE2D;
  --forest:       #2D6A4F;
  --forest-soft:  #E7F2EC;
  --sky:          #2278B5;
  --ivory:        #FAF6F0;
  --paper:        #FFFFFF;
  --stone:        #5C6B7A;
  --line:         #E8E2D9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;

  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(22, 50, 79, .08);
  --shadow-md: 0 8px 28px rgba(22, 50, 79, .12);
  --shadow-lg: 0 20px 50px rgba(14, 36, 56, .18);

  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------
   Section rhythm & headings
   --------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-ivory { background: var(--ivory); }
.section-ink { background: var(--ink-deep); color: #E9EFF5; }
.section-ink h2 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--saffron);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--saffron);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--stone); font-size: 18px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px rgba(232, 89, 12, .3); }
.btn-primary:hover { background: var(--saffron-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 89, 12, .38); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--saffron-deep); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: #1F5138; }
.icon-heart { width: 16px; height: 16px; }

/* ---------------------------------------------------------------
   Top bar
   --------------------------------------------------------------- */
.topbar { background: var(--ink-deep); color: rgba(255,255,255,.85); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: var(--marigold); }
.topbar svg { width: 15px; height: 15px; }
.topbar-contact { display: flex; gap: 26px; }
.topbar-social { display: flex; gap: 16px; }

/* ---------------------------------------------------------------
   Header / navigation
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 106px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 15px; }
.brand-logo { width: 86px; height: 86px; object-fit: contain; flex-shrink: 0; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--ink-deep); }
.brand-text small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.btn) {
  font-weight: 500; font-size: 15.5px; color: var(--ink-soft);
  padding: 6px 2px; position: relative; transition: color .2s;
}
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2.5px; width: 0;
  background: var(--saffron); border-radius: 2px; transition: width .25s ease;
}
.main-nav > a:not(.btn):hover, .main-nav > a.is-active { color: var(--ink-deep); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.is-active::after { width: 100%; }
.btn-nav { padding: 11px 24px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background: var(--ink-deep); overflow: hidden;
}
/* Crossfading photo slideshow */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
  transform: scale(1.05);
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(14,36,56,.65) 20%, rgba(14,36,56,.45) 52%, rgba(14,36,56,.25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 90px 0; }

/* Slideshow dots */
.hero-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .25s;
}
.hero-dots button.is-active { background: var(--marigold); width: 28px; border-radius: 6px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #FCEBDD; font-size: 13.5px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.hero h1 {
  font-size: clamp(40px, 6vw, 66px); color: #fff; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--marigold); }
.hero p { font-size: 19px; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stripe {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--saffron) 0 33.4%, #fff 33.4% 66.7%, var(--forest) 66.7% 100%);
}

/* Inner page hero */
.page-hero {
  position: relative; background: var(--ink-deep); color: #fff;
  padding: 110px 0 90px; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(232,89,12,.22), transparent 65%),
    radial-gradient(500px 280px at 10% 90%, rgba(45,106,79,.28), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 54px); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 19px; max-width: 620px; }
.page-hero .hero-stripe { height: 5px; }

/* ---------------------------------------------------------------
   Stats band
   --------------------------------------------------------------- */
.stats-band { background: var(--ivory); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px; padding: 60px 0;
}
.stat { text-align: center; }
.stat-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--saffron-soft); color: var(--saffron);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 27px; height: 27px; }
.stat-value { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--ink-deep); line-height: 1; }
.stat-value span { color: var(--saffron); }
.stat-label { margin-top: 8px; color: var(--stone); font-weight: 500; font-size: 15px; }

/* ---------------------------------------------------------------
   Split (about + video) sections
   --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img, .split-media video {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2; object-fit: cover;
}
.split-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border-radius: var(--radius-lg); background: var(--saffron-soft); z-index: -1;
}
.split-media.tint-forest::before { background: var(--forest-soft); }
.split-body h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.split-body p { color: var(--stone); font-size: 17.5px; margin-bottom: 18px; }
.split-body .btn { margin-top: 14px; }

.checklist { list-style: none; margin: 26px 0 8px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0; color: var(--ink-soft); font-weight: 500;
}
.checklist svg { width: 22px; height: 22px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }

/* Video frame */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; border-radius: 0; box-shadow: none; }
.video-caption {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  color: var(--stone); font-size: 14.5px;
}
.video-caption img { width: 34px; height: 34px; border-radius: 50%; }

/* ---------------------------------------------------------------
   Program cards
   --------------------------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; transition: all .28s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--marigold));
  opacity: 0; transition: opacity .28s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--saffron-soft); color: var(--saffron);
}
.card:nth-child(3n+2) .card-icon { background: var(--forest-soft); color: var(--forest); }
.card:nth-child(3n) .card-icon { background: #E3EFF8; color: var(--sky); }
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--stone); font-size: 15.5px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  color: var(--saffron); font-weight: 600; font-size: 15px;
}
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------------------------------------------------------------
   Events
   --------------------------------------------------------------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.event-card {
  position: relative; scroll-margin-top: 120px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .28s ease;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Whole-card link (homepage live events → matching event on Events page) */
.event-card.clickable { cursor: pointer; }
.card-stretch { position: absolute; inset: 0; z-index: 3; }
.event-card.clickable .loc-chips { position: relative; z-index: 4; }

/* Briefly highlight the event you were sent to */
.event-card:target { box-shadow: 0 0 0 3px var(--saffron), var(--shadow-md); animation: targetPulse 2.4s ease; }
@keyframes targetPulse { 0%, 30% { box-shadow: 0 0 0 3px var(--saffron), var(--shadow-md); } 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0), var(--shadow-sm); } }
.event-media { position: relative; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); height: 190px; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-media .event-media-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.event-media-fallback img { width: 84px; height: 84px; border-radius: 50%; opacity: .9; object-fit: cover; }
.event-date-badge {
  position: absolute; top: 16px; left: 16px;
  background: #fff; border-radius: 14px; padding: 9px 14px; text-align: center;
  box-shadow: var(--shadow-md); line-height: 1.1;
}
.event-date-badge .d { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--saffron); display: block; }
.event-date-badge .m { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.event-live-chip {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--forest); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.event-live-chip .dot { width: 7px; height: 7px; background: #9EF0BE; border-radius: 50%; animation: pulse 1.6s infinite; }
.event-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { font-size: 21px; margin-bottom: 10px; }
.event-meta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.event-meta .meta-date,
.event-meta .meta-time { display: inline-flex; gap: 9px; align-items: center; color: var(--stone); font-size: 14.5px; font-weight: 500; }
.event-meta .meta-date svg,
.event-meta .meta-time svg { width: 16px; height: 16px; color: var(--saffron); flex-shrink: 0; }
.event-body p { color: var(--stone); font-size: 15px; flex: 1; }

/* Clickable location chips (multi-location aware) */
.loc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--saffron-soft); color: var(--saffron-deep);
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  transition: all .18s; border: 1px solid transparent;
}
.loc-chip:hover { background: var(--saffron); color: #fff; transform: translateY(-1px); }
.loc-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.loc-placeholder { color: var(--stone); font-size: 13.5px; font-style: italic; opacity: .8; }

/* Past-event album cards */
.event-card.past-event { cursor: pointer; }
.event-card.past-event:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.event-photos-chip {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,36,56,.82); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.event-photos-chip svg { width: 14px; height: 14px; }
.event-view-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 9px; background: rgba(14,36,56,.55); color: #fff; font-weight: 600; font-size: 15px;
  opacity: 0; transition: opacity .28s;
}
.event-view-overlay svg { width: 22px; height: 22px; }
.event-card.past-event:hover .event-view-overlay,
.event-card.past-event:focus-visible .event-view-overlay { opacity: 1; }

.empty-state {
  text-align: center; padding: 70px 30px; background: var(--ivory);
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--stone);
}
.empty-state h3 { margin-bottom: 8px; font-size: 22px; }

/* ---------------------------------------------------------------
   Album lightbox
   --------------------------------------------------------------- */
.album-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.album-modal.open { display: block; }
.album-overlay { position: absolute; inset: 0; background: rgba(9,22,36,.7); backdrop-filter: blur(4px); }
.album-dialog {
  position: absolute; inset: 4% 50% auto 50%; transform: translateX(-50%);
  width: min(1040px, 92vw); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 34px;
}
.album-close {
  position: absolute; top: 16px; right: 18px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--ivory); color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; transition: all .18s;
}
.album-close:hover { background: var(--saffron); color: #fff; }
.album-header { margin-bottom: 22px; padding-right: 44px; }
.album-header h3 { font-size: 26px; margin-bottom: 10px; }
.album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--stone); font-size: 14.5px; }
.album-meta .meta-date,
.album-meta .meta-time { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.album-meta .meta-date svg,
.album-meta .meta-time svg { width: 16px; height: 16px; color: var(--saffron); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.album-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--ivory); aspect-ratio: 4/3; }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-grid figure:hover img { transform: scale(1.06); }
.album-grid figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 22px 12px 10px;
  color: #fff; font-size: 13px; background: linear-gradient(to top, rgba(14,36,56,.88), transparent);
}

/* Full-screen single-photo zoom */
.photo-zoom { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; background: rgba(9,22,36,.92); padding: 30px; }
.photo-zoom.open { display: flex; }
.photo-zoom img { max-width: 94vw; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.photo-zoom .album-close { position: fixed; top: 22px; right: 26px; background: rgba(255,255,255,.15); color: #fff; }
.photo-zoom .album-close:hover { background: var(--saffron); }

/* ---------------------------------------------------------------
   Impact gallery
   --------------------------------------------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px; gap: 18px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin: 0;
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 30px 20px 16px; color: #fff; font-size: 14.5px; font-weight: 500;
  background: linear-gradient(to top, rgba(14,36,56,.9), transparent);
  transform: translateY(6px); opacity: 0; transition: all .3s ease;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------------------------------------------------------------
   Testimonial / quote
   --------------------------------------------------------------- */
.quote-wrap { max-width: 760px; margin-inline: auto; text-align: center; }
.quote-mark { font-family: var(--font-display); font-size: 90px; line-height: .5; color: var(--marigold); display: block; margin-bottom: 26px; }
.quote-text { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-style: italic; color: #fff; margin-bottom: 30px; line-height: 1.4; }
.quote-author { color: var(--marigold); font-weight: 600; }
.quote-role { color: rgba(255,255,255,.65); font-size: 14.5px; }

/* ---------------------------------------------------------------
   CTA band above footer
   --------------------------------------------------------------- */
.cta-band { background: linear-gradient(115deg, var(--saffron) 0%, #F07E2D 55%, var(--marigold) 100%); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; padding: 64px 0; flex-wrap: wrap;
}
.cta-title { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.cta-sub { color: rgba(255,255,255,.92); font-size: 17px; max-width: 560px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: rgba(233,239,245,.78); padding: 72px 0 0; font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1.4fr;
  gap: 44px; padding-bottom: 56px;
}
.footer-logo-row { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-logo-row img { width: 66px; height: 66px; object-fit: contain; }
.footer-logo-row strong { display: block; font-family: var(--font-display); font-size: 19px; color: #fff; }
.footer-logo-row small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,239,245,.6); }
.footer-brand p { font-size: 14.5px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.footer-social a:hover { background: var(--saffron); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body);
}
.footer-col a { display: block; padding: 5.5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--marigold); }
.footer-contact p { margin-bottom: 10px; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(233,239,245,.55);
}
.footer-admin-link { color: rgba(233,239,245,.45); }
.footer-admin-link:hover { color: var(--marigold); }
.footer-credit-link { color: rgba(233,239,245,.85); font-weight: 600; transition: color .2s; }
.footer-credit-link:hover { color: var(--marigold); }

/* ---------------------------------------------------------------
   Donate page
   --------------------------------------------------------------- */
.donate-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.donate-card {
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 44px; border-top: 6px solid var(--saffron);
}
.donate-card h2 { font-size: 26px; margin-bottom: 6px; }
.donate-card > p { color: var(--stone); margin-bottom: 26px; font-size: 15.5px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.amount-btn {
  padding: 16px 8px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; font-family: var(--font-body); font-size: 17px; font-weight: 700;
  color: var(--ink); cursor: pointer; transition: all .18s; text-align: center;
}
.amount-btn small { display: block; font-size: 12px; font-weight: 500; color: var(--stone); margin-top: 3px; }
.amount-btn:hover { border-color: var(--saffron); }
.amount-btn.selected { border-color: var(--saffron); background: var(--saffron-soft); color: var(--saffron-deep); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink-soft); }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232,89,12,.12); }
.donate-secure { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 16px; color: var(--stone); font-size: 13.5px; }
.donate-secure svg { width: 16px; height: 16px; color: var(--forest); }
.impact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.impact-list li {
  display: flex; gap: 16px; background: var(--paper); padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid var(--line); align-items: center;
}
.impact-amount { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--saffron); white-space: nowrap; }
.impact-list p { color: var(--stone); font-size: 15px; }

/* Donation result banners */
.notice { padding: 18px 22px; border-radius: 14px; margin-bottom: 28px; font-weight: 500; }
.notice-success { background: var(--forest-soft); color: var(--forest); border: 1px solid #BBDCC9; }
.notice-error { background: #FBEAEA; color: #B3372F; border: 1px solid #EFC7C4; }

/* ---------------------------------------------------------------
   Contact / get involved
   --------------------------------------------------------------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.contact-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; text-align: center; }
.contact-tile .card-icon { margin-inline: auto; }
.contact-tile h3 { font-size: 18px; margin-bottom: 8px; }
.contact-tile p, .contact-tile a { color: var(--stone); font-size: 15px; }
.contact-tile a:hover { color: var(--saffron); }

/* ---------------------------------------------------------------
   Values / team (about)
   --------------------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-tile {
  background: var(--paper); border-radius: var(--radius-lg); padding: 32px 26px;
  border: 1px solid var(--line); transition: all .25s;
}
.value-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-tile h3 { font-size: 19px; margin: 16px 0 8px; }
.value-tile p { color: var(--stone); font-size: 14.5px; }

/* Founding members */
.founders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.founder-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-align: center; transition: all .28s ease;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.founder-photo { aspect-ratio: 1 / 1; background: var(--ivory); overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.founder-card:hover .founder-photo img { transform: scale(1.05); }
.founder-body { padding: 26px 24px 30px; }
.founder-body h3 { font-size: 21px; margin-bottom: 4px; }
.founder-role {
  color: var(--saffron); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.founder-desc { color: var(--stone); font-size: 15px; line-height: 1.6; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card {
  border-radius: var(--radius-lg); padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.mv-card.mission { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%); }
.mv-card.vision { background: linear-gradient(135deg, var(--forest) 0%, #1E4A36 100%); }
.mv-card h3 { color: #fff; font-size: 26px; margin: 18px 0 14px; }
.mv-card p { color: rgba(255,255,255,.85); font-size: 16.5px; }
.mv-card .card-icon { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 0; }

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards-grid, .involve-grid, .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-layout { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-media::before { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero-content { padding: 70px 0; }

  /* Captions always visible on touch devices */
  .gallery-item figcaption { opacity: 1; transform: none; padding-top: 40px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 84vw); height: 100vh;
    background: var(--ink-deep); flex-direction: column; align-items: flex-start;
    padding: 100px 36px 40px; gap: 8px; transition: right .3s ease; z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { right: 0; }
  .main-nav > a:not(.btn) { color: rgba(255,255,255,.85); font-size: 18px; padding: 12px 0; }
  .main-nav > a:not(.btn):hover, .main-nav > a.is-active { color: var(--marigold); }
  .main-nav .btn { margin-top: 18px; }
  .nav-toggle { position: relative; z-index: 100; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: #fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: #fff; }
}

@media (max-width: 560px) {
  .cards-grid, .involve-grid, .contact-info-grid, .values-grid, .footer-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; max-width: 380px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-card { padding: 30px 22px; }
  .hide-sm { display: none !important; }
  .cta-band-inner { justify-content: center; text-align: center; }

  /* Header / brand */
  .header-inner { height: 74px; }
  .brand-logo { width: 54px; height: 54px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { display: none; }
  .topbar-inner { height: 38px; }
  .topbar { font-size: 12.5px; }

  /* Hero */
  .hero { min-height: 460px; }
  .hero-content { padding: 56px 0; }
  .hero p { font-size: 16.5px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-dots { bottom: 18px; }

  /* Gallery → single column, full-width tiles */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 14px; }
  .gallery-item.span-2 { grid-column: span 1; }

  /* Album lightbox on phones */
  .album-dialog { padding: 24px 18px; inset: 2% 50% auto 50%; width: 94vw; max-height: 96vh; }
  .album-header h3 { font-size: 21px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Typography / spacing */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .btn-lg { padding: 14px 28px; font-size: 16px; }
  .stats-grid { padding: 44px 0; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
