/* =======================================================================
   ISKCON REWARI — style.css
   Mobile-first stylesheet. Design system: "Devotional Editorial"
   Palette: cream / navy / saffron / gold
   Fonts: Cormorant Garamond (headings) + Source Sans 3 (body)
   ======================================================================= */

/* -----------------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------------- */
:root {
  /* Brand accent — constant across light/dark */
  --color-saffron: #C1682B;
  --color-saffron-deep: #A6531E;
  --color-gold: #A6791E;
  --color-gold-deep: #8C6417;        /* rich bronze-gold — pairs with saffron for a premium orange-gold gradient */
  --color-navy: #1B2A4A;
  --color-navy-deep: #101B31;

  /* Raw surface/text values — light */
  --color-cream-light: #FBF6EC;
  --color-cream-deep-light: #F2E9D8;
  --color-ink-light: #2B2B2B;
  --color-mute-light: #5A5145;      /* darkened from #6A6459 for AA-compliant contrast */
  --color-white-light: #FFFFFF;
  --color-border-light: #E4D9C2;
  --color-heading-light: #1B2A4A;
  --color-gold-bright: #E8C877;     /* for text over navy/photo backgrounds — brighter than the --color-gold brand swatch used for fills */

  /* Semantic tokens — light only, no dark mode */
  --color-cream: var(--color-cream-light);
  --color-cream-deep: var(--color-cream-deep-light);
  --color-ink: var(--color-ink-light);
  --color-mute: var(--color-mute-light);
  --color-white: var(--color-white-light);
  --color-border: var(--color-border-light);
  --color-heading: var(--color-heading-light);
  color-scheme: light;
}
:root {
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-devanagari: "Noto Sans Devanagari", "Nirmala UI", sans-serif;

  /* Radii / shadows */
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 8px 28px rgba(27, 42, 74, 0.14);
  --shadow-lg: 0 16px 40px rgba(27, 42, 74, 0.20);

  /* Layout */
  --container-max: 1340px;
  --gutter: 20px;
  --header-height: 68px;
}

/* -----------------------------------------------------------------------
   2. RESET
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-ink); }
button { font-family: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-saffron);
  outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   3. UTILITIES
   ----------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-saffron);
  margin: 0 0 0.6em;
}
.eyebrow--light { color: var(--color-gold-bright); }
.eyebrow--onlight { color: var(--color-cream); }

.section { padding: 56px 0; }
.section-intro {
  max-width: 640px;
  color: var(--color-mute);
  font-size: 1.05rem;
}
.section-intro--onlight { color: rgba(251, 246, 236, 0.85); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.link-arrow {
  color: var(--color-saffron);
  font-weight: 700;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--color-saffron-deep); }

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-saffron);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-saffron-deep); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-heading);
}
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--navy:hover { background: var(--color-navy-deep); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn--large { padding: 16px 32px; font-size: 1rem; }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--color-border);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.chip--more { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-white); }
.chip--more:hover { background: var(--color-saffron-deep); border-color: var(--color-saffron-deep); }

/* -----------------------------------------------------------------------
   4. HEADER + NAVIGATION
   ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--color-border);
  /* No backdrop-filter/filter/transform on this element itself: any of those
     would make it a positioning containing block for its position:fixed
     descendants (the mobile nav drawer), which breaks the drawer's
     full-viewport sizing. The frosted-glass effect lives on ::before instead. */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-white);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-height);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 60px; height: 60px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-heading);
}
.brand__tagline {
  font-size: 0.68rem;
  color: var(--color-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 501;
  margin-inline-start: auto;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-navy);
  margin-inline: auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) 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(-7.5px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-cream);
  padding: 24px var(--gutter) 100px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.primary-nav.is-open { transform: translateX(0); }

.primary-nav__list { display: flex; flex-direction: column; }
.primary-nav__list li { border-bottom: 1px solid var(--color-border); }
.primary-nav__list a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
}
.primary-nav__list a.is-active,
.primary-nav__list a:hover { color: var(--color-saffron); }

.nav-donate { align-self: flex-start; }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    overflow: visible;
    margin-inline-start: auto;
  }
  .primary-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
  }
  .primary-nav__list li { border-bottom: none; }
  .primary-nav__list a {
    padding: 8px 9px;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-sm);
  }
  .primary-nav__list a:hover { background: var(--color-cream-deep); }
  .primary-nav__list a.is-active { color: var(--color-saffron); }
}

/* -----------------------------------------------------------------------
   5. HERO
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy);
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* Carousel: slides stack in the same spot; only the active one shows. Without JS the first slide simply shows. No animation: it changes only when the visitor asks. */
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-active { opacity: 1; }
/* Poster slides (finished banners with their own text): show the whole picture, never crop it. */
/* The poster is sized to its own shape and centred; a blurred copy (.hero__fill, added by js/hero-slider.js) fills the rest. */
.hero__slide.hero__slide--poster {
  inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
}
.hero__fill {
  position: absolute; inset: -25%; background-size: cover; background-position: center;
  filter: blur(90px) saturate(1.35) brightness(1.1); opacity: 0; background-color: #f2dfae;
}
.hero__fill.is-active { opacity: 1; }
.hero__fill::after { content: ''; position: absolute; inset: 0; background: rgba(255, 233, 180, 0.42); } /* warms the blur so dark text in the poster doesn't turn it grey */
/* Feather only the sides that touch the fill: left/right on wide screens, top/bottom on tall ones. */
@media (min-aspect-ratio: 1/1) {
  .hero__slide--poster { -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); }
}
@media (max-aspect-ratio: 1/1) {
  .hero__slide--poster { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); }
}
.hero--poster .hero__scrim { opacity: 0; }
/* PHONES AND TABLETS (up to 899px wide). Every slide follows the same layout, so slides you add later need no extra CSS:
   - the top of the hero is a fixed 5:4 picture area (80vw tall) holding the slide;
   - photos fill it (a tall phone would otherwise crop a wide photo in half, see the phone crop note in index.html);
   - posters sit inside it whole on their blurred, blended background, never cropped;
   - the headline and Donate buttons always sit below it, on the dark panel. */
@media (max-width: 899px) {
  .hero__media { inset: 0 0 auto 0; height: 80vw; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); mask-image: linear-gradient(to bottom, #000 90%, transparent); }
  .hero__slide:not(.hero__slide--poster) {
    object-fit: cover; object-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .hero__scrim { display: none; } /* text sits on the plain dark panel, so no gradient is needed */
  .hero .hero__content { padding-top: calc(80vw - 4px); }
  .hero .hero__arrow { top: 40vw; width: 34px; height: 34px; background: rgba(16, 27, 49, 0.42); } /* centre the arrows on the picture, not on the whole hero */
}
/* DESKTOP (900px and up): the headline and both buttons stay on the left for every slide. Photos fill the hero behind them;
   posters (which carry their own text) sit whole on the right and fade into the dark panel, so the two never overlap. */
@media (min-width: 900px) {
  .hero__slide.hero__slide--poster {
    inset: auto; top: 50%; right: 0; left: auto; transform: translateY(-50%);
    width: auto; height: auto; max-height: 100%; max-width: calc(100% - 520px);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%); mask-image: linear-gradient(to right, transparent, #000 14%);
  }
  .hero--poster .hero__fill { display: none; } /* the dark panel is the backdrop here */
}
/* Carousel controls */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--color-white); background: rgba(16, 27, 49, 0.55);
  border: 1px solid rgba(251, 246, 236, 0.6); border-radius: 50%;
}
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }
.hero__arrow:hover { background: rgba(16, 27, 49, 0.82); }
.hero__arrow:focus-visible, .hero__dot:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.hero__arrow[hidden], .hero__dots[hidden] { display: none; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
/* 24px tap area around a 10px dot */
.hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(251, 246, 236, 0.55); border: 1px solid rgba(16, 27, 49, 0.55); }
.hero__dot[aria-current='true']::before { background: var(--color-white); transform: scale(1.25); }
@media (max-width: 600px) { .hero__arrow { left: 6px; } .hero__arrow--next { left: auto; right: 6px; } }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 27, 49, 0.15) 0%, rgba(16, 27, 49, 0.55) 55%, rgba(16, 27, 49, 0.92) 100%);
}
.hero__content {
  position: relative;
  color: var(--color-white);
  padding-bottom: 48px;
  padding-top: 120px;
}
@media (min-width: 900px) {
  /* Anchor hero text to the left edge instead of the centered .container
     column — on wide screens that column sits far from the left edge,
     which reads as the text floating in the middle of the banner. */
  .hero__content {
    max-width: none;
    margin-inline: 0;
    padding-inline-start: 64px;
  }
}
.hero__title {
  color: var(--color-white);
  max-width: 16ch;
}
.hero__subtitle {
  max-width: 46ch;
  color: rgba(251, 246, 236, 0.9);
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* -----------------------------------------------------------------------
   6. ABOUT TEASER
   ----------------------------------------------------------------------- */
.about-teaser__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-teaser__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

@media (min-width: 800px) {
  .about-teaser__grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}

/* -----------------------------------------------------------------------
   7. CONSTRUCTION PROGRESS
   ----------------------------------------------------------------------- */
.construction { background: var(--color-cream-deep); }
.construction__grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  align-items: center;
}
.construction__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.stat-list { display: flex; flex-direction: column; gap: 18px; }
.stat-list__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat-list__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-saffron);
}
.stat-list__label { display: block; color: var(--color-mute); font-size: 0.92rem; margin-top: 2px; }

.construction__cta { margin-top: 32px; }

@media (min-width: 800px) {
  .construction__grid { grid-template-columns: 1.2fr 0.8fr; }
}

/* -----------------------------------------------------------------------
   8. SCHEDULE — professional, brand-blue (navy) card treatment
   ----------------------------------------------------------------------- */
.schedule {
  background: var(--color-cream-deep);
}
.schedule__grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.schedule-card {
  background: var(--color-navy);
  border: 1px solid var(--color-navy-deep);
  border-radius: var(--radius-md);
  padding: 30px 24px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.schedule-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-saffron), var(--color-gold-bright), var(--color-saffron));
  background-size: 300% 100%;
  animation: schedule-shimmer 4s linear infinite;
}
@keyframes schedule-shimmer {
  from { background-position: 0% 0; }
  to { background-position: -300% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-card::before { animation: none; }
}
.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-bright);
}
.schedule-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  color: var(--color-navy);
  margin-bottom: 14px;
}
.schedule-card__icon .icon { width: 24px; height: 24px; }
.schedule-card h3 { margin-bottom: 8px; color: var(--color-cream); }
.schedule-card__days { font-family: var(--font-body); font-size: 0.85rem; color: rgba(251, 246, 236, 0.65); font-weight: 400; }
.schedule-card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.schedule-card li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(251, 246, 236, 0.9);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(251, 246, 236, 0.2);
}
.schedule-card li:last-child { border-bottom: none; padding-bottom: 0; }
.schedule-card li span {
  flex-shrink: 0;
  min-width: 78px;
  font-weight: 700;
  color: var(--color-gold-bright);
}

@media (min-width: 760px) {
  .schedule__grid { grid-template-columns: repeat(3, 1fr); }
}

/* -----------------------------------------------------------------------
   9. DONATION CAUSES
   ----------------------------------------------------------------------- */
.causes {
  background: var(--color-navy);
  background-image: radial-gradient(circle at 20% 20%, rgba(166, 121, 30, 0.25), transparent 50%);
}
.causes__heading { color: var(--color-white); }

.cause-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.cause-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cause-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cause-card__body { padding: 20px; }
.cause-card__body p { color: var(--color-mute); font-size: 0.92rem; }

.brick-strip {
  margin-top: 36px;
  background: var(--color-navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brick-strip__text h3 { color: var(--color-white); margin-bottom: 2px; }
.brick-strip__text p { color: rgba(251, 246, 236, 0.75); margin: 0; }
.brick-strip__amounts { display: flex; flex-wrap: wrap; gap: 10px; }

.causes__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: rgba(251, 246, 236, 0.65);
  max-width: 60ch;
}

@media (min-width: 760px) {
  .cause-grid { grid-template-columns: repeat(3, 1fr); }
  .brick-strip { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* -----------------------------------------------------------------------
   10. GET INVOLVED
   ----------------------------------------------------------------------- */
.involve__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.involve__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-width: 520px; width: 100%; height: auto; display: block; margin-inline: auto; }

@media (min-width: 800px) {
  .involve__grid { grid-template-columns: 1fr 1fr; }
  .involve__grid .involve__media { order: 2; }
}

/* -----------------------------------------------------------------------
   11. GALLERY PREVIEW
   ----------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid__item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid__item:hover img { transform: scale(1.06); }

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

/* -----------------------------------------------------------------------
   12. VISIT US
   ----------------------------------------------------------------------- */
.visit__grid {
  display: grid;
  gap: 28px;
}
.visit-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 26px;
}
.visit-details li { display: flex; flex-direction: column; gap: 2px; }
.visit-details strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-mute); }
.visit-details a { color: var(--color-saffron); font-weight: 700; }

.visit__map {
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 280px; }

@media (min-width: 800px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------------------------------------
   13. FOOTER
   ----------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(251, 246, 236, 0.85);
  padding-top: 56px;
}
.site-footer__grid {
  display: grid;
  gap: 36px;
}
.footer-logo-badge {
  display: inline-flex;
  background: var(--color-white);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.footer-logo-badge img { width: 56px; height: 56px; object-fit: contain; display: block; border-radius: calc(var(--radius-md) - 6px); }
.site-footer h3 {
  color: var(--color-white);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a:hover { color: var(--color-gold); }

.site-footer__name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-white); margin: 10px 0 2px; }
.site-footer__tagline { font-size: 0.85rem; color: rgba(251, 246, 236, 0.6); margin-bottom: 16px; }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s ease;
}
.social-row a:hover { background: var(--color-saffron); }
.social-row .icon { width: 17px; height: 17px; }

.footer-contact a { color: rgba(251, 246, 236, 0.85); }

.site-footer__bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 90px;
}
.site-footer__bottom-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(251, 246, 236, 0.55);
}
.site-footer__bottom-row > p:first-child {
  color: var(--color-gold-bright);
  font-weight: 600;
}
.site-footer__hare-krishna--deva {
  font-family: var(--font-devanagari);
  font-weight: 700;
  font-size: 1.05rem;
  font-style: normal;
  color: var(--color-white);
  margin-bottom: 4px;
}
.site-footer__hare-krishna--translit {
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(251, 246, 236, 0.65);
}
@media (min-width: 700px) {
  .site-footer__mantra { text-align: right; }
}

@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__bottom-row { flex-direction: row; justify-content: space-between; }
}

/* -----------------------------------------------------------------------
   14. FLOATING DONATE BUTTON (persistent, every page)
   ----------------------------------------------------------------------- */
.floating-donate {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  color: var(--color-white);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 14px 14px 20px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  animation: floating-donate-pulse 2s ease-in-out infinite;
}
.floating-donate:hover {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(27, 42, 74, 0.28);
  animation: none;
  padding-inline-end: 22px;
}
.floating-donate .icon { width: 18px; height: 18px; flex-shrink: 0; }
.floating-donate span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: floating-donate-label 2s ease-in-out infinite;
}
.floating-donate:hover span { animation: none; max-width: 100px; opacity: 1; }

@keyframes floating-donate-pulse {
  0%, 100% { padding-inline-end: 14px; }
  40%, 60% { padding-inline-end: 22px; }
}
@keyframes floating-donate-label {
  0%, 100% { max-width: 0; opacity: 0; }
  40%, 60% { max-width: 100px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-donate { animation: none; padding-inline-end: 22px; }
  .floating-donate span { animation: none; max-width: 100px; opacity: 1; }
}

/* Keep it clear of the mobile nav overlay when menu is open */
.primary-nav.is-open ~ .floating-donate { display: none; }

@media (min-width: 900px) {
  .floating-donate { right: 28px; bottom: 28px; padding: 15px 15px 15px 24px; }
}

/* -----------------------------------------------------------------------
   14b. NOTIFICATION POPUPS (see main.js — centered, one-at-a-time sequence
        on the home page: Donate first, then Get Involved 30s later)
   ----------------------------------------------------------------------- */
.notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 27, 49, 0.55);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease-out;
}
.notify-overlay[hidden] { display: none; }
.notify-overlay.is-visible { opacity: 1; pointer-events: auto; }

.notify-popup {
  position: relative;
  width: 440px;
  max-width: 100%;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  border: 1px solid rgba(166, 121, 30, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(16, 27, 49, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 44px 40px 36px;
  text-align: center;
  transform: scale(0.82) translateY(14px);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--dur-base) ease-out;
}
.notify-overlay.is-visible .notify-popup { transform: scale(1) translateY(0); }

.notify-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cream-deep);
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-mute);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.notify-popup__close:hover { background: var(--color-gold-deep); color: var(--color-white); }

.notify-popup__icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  color: var(--color-white);
  box-shadow: 0 10px 26px rgba(166, 121, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.notify-popup__icon svg { width: 36px; height: 36px; fill: currentColor; }

.notify-popup__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-deep);
  margin: 0 0 8px;
}
.notify-popup__title {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.notify-popup__text {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--color-mute);
  max-width: 34ch;
  margin-inline: auto;
}
.notify-popup__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notify-popup__dismiss {
  background: none;
  border: none;
  padding: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.notify-popup__dismiss:hover { color: var(--color-gold-deep); }

@media (max-width: 480px) {
  .notify-popup { padding: 36px 24px 28px; }
  .notify-popup__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .notify-overlay, .notify-popup { transition: none; }
}

/* -----------------------------------------------------------------------
   15b. PAGE HERO (compact header band used by every inner page)
   ----------------------------------------------------------------------- */
.page-hero {
  background-color: var(--color-navy);
  background-image:
    linear-gradient(180deg, var(--color-navy) calc(100% - 40px), rgba(16, 27, 49, 0) 100%),
    radial-gradient(circle at 80% 15%, rgba(166, 121, 30, 0.28), transparent 55%);
  padding: 72px 0 56px;
}
.page-hero h1 { color: var(--color-white); max-width: 20ch; }
.page-hero__subtitle { color: rgba(251, 246, 236, 0.85); max-width: 62ch; font-size: 1.05rem; margin: 0; }
.page-hero--compact { padding: 40px 0 32px; }
.page-hero--compact h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* -----------------------------------------------------------------------
   16. SCHEDULE V2 (class cards with join links)
   ----------------------------------------------------------------------- */
.schedule-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-cream-deep);
  color: var(--color-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin: 4px 0 12px;
}
.schedule-card__badge--live {
  background: var(--color-saffron);
  color: var(--color-white);
}
.schedule-card__pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
}
.schedule-card__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #4ADE80;
  opacity: 0.5;
  animation: schedule-pulse 1.8s ease-out infinite;
}
@keyframes schedule-pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-card__pulse::after { animation: none; opacity: 0.3; }
}
.schedule-card__desc { color: rgba(251, 246, 236, 0.85); font-size: 0.9rem; margin: 0 0 14px; }
.schedule-card__desc strong { color: var(--color-gold-bright); }
.schedule-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
/* Outline buttons need light text/border on these navy cards — the default
   saffron-deep is tuned for light backgrounds and loses contrast here. */
.schedule-card .btn--outline {
  border-color: rgba(251, 246, 236, 0.5);
  color: var(--color-cream);
}
.schedule-card .btn--outline:hover {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--color-navy);
}

/* -----------------------------------------------------------------------
   17. HOME TEASER STRIPS (Balram + Blog + Donate banner)
   ----------------------------------------------------------------------- */
.about-teaser__grid,
.balram-teaser__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-teaser__media img,
.balram-teaser__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 800px) {
  .about-teaser__grid,
  .balram-teaser__grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .balram-teaser__grid .balram-teaser__media { order: 2; }
}

.donate-banner {
  background-color: var(--color-navy);
  background-image:
    linear-gradient(180deg, rgba(16, 27, 49, 0) 0, var(--color-navy) 56px, var(--color-navy) calc(100% - 56px), rgba(16, 27, 49, 0) 100%),
    radial-gradient(circle at 20% 20%, rgba(166, 121, 30, 0.25), transparent 50%);
  text-align: center;
}
.donate-banner h2 { color: var(--color-white); }
.donate-banner p { color: rgba(251, 246, 236, 0.85); max-width: 56ch; margin: 0 auto 24px; }

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.blog-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card__date { font-size: 0.78rem; color: var(--color-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { margin: 0; font-size: 1.1rem; }
.blog-card p { color: var(--color-mute); font-size: 0.9rem; margin: 0 0 4px; flex: 1; }

.blog-teaser-grid, .blog-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) {
  .blog-teaser-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 759px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------
   18. BALRAM PAGE COMPONENTS
   ----------------------------------------------------------------------- */
.pull-quote {
  border-left: 4px solid var(--color-saffron);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-heading);
}
.info-callout {
  background: var(--color-cream-deep);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 28px 0;
}
.info-callout h3 { margin-bottom: 8px; }
.info-callout p:last-child { margin-bottom: 0; }

.story-timeline { display: grid; gap: 16px; margin: 32px 0; }
.story-timeline__step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.story-timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-saffron);
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}
.story-timeline__step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.story-timeline__step p { color: var(--color-mute); font-size: 0.9rem; margin: 0; }
@media (min-width: 760px) {
  .story-timeline { grid-template-columns: repeat(4, 1fr); }
}

.source-note a {
  color: var(--color-gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-note a:hover { color: var(--color-saffron-deep); }
.source-note {
  font-size: 0.85rem;
  color: var(--color-mute);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 32px;
}

.cta-banner {
  background: var(--color-navy);
  background-image: radial-gradient(circle at 80% 20%, rgba(166, 121, 30, 0.25), transparent 50%);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  margin-top: 44px;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(251, 246, 236, 0.85); max-width: 56ch; margin: 0 auto 22px; }
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------------------
   19. GALLERY & DEITIES PAGE
   ----------------------------------------------------------------------- */
.deity-grid { display: grid; gap: 20px; margin-top: 28px; }
.deity-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.deity-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.deity-card__body { padding: 18px 20px; }
.deity-card__body p { color: var(--color-mute); font-size: 0.92rem; margin: 0; }
@media (min-width: 760px) {
  .deity-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Justified rows: each photo grows in proportion to its own aspect ratio (--ar set on the link), so every row fills the width at one shared
   height with no crop and no gaps. */
.full-gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.full-gallery-grid .gallery-grid__item { aspect-ratio: var(--ar, 1.33); flex: calc(var(--ar, 1.33) * 100) 1 calc(var(--ar, 1.33) * 130px); min-width: 0; }
@media (min-width: 600px) { .full-gallery-grid { gap: 10px; } .full-gallery-grid .gallery-grid__item { flex-basis: calc(var(--ar, 1.33) * 180px); } }
@media (min-width: 900px) { .full-gallery-grid { gap: 12px; } .full-gallery-grid .gallery-grid__item { flex-basis: calc(var(--ar, 1.33) * 230px); } }

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 16px;
  max-width: 720px; /* a full-width player is oversized on desktop; phones still get the full width */
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -----------------------------------------------------------------------
   20. GET INVOLVED PAGE
   ----------------------------------------------------------------------- */
.involve-grid { display: grid; gap: 20px; margin-top: 32px; }
.involve-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; }
.involve-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-cream-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.involve-card__icon .icon { width: 22px; height: 22px; color: var(--color-saffron); }
.involve-card h3 { margin-bottom: 6px; }
.involve-card p { color: var(--color-mute); font-size: 0.92rem; margin: 0; }
@media (min-width: 760px) { .involve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .involve-grid { grid-template-columns: repeat(3, 1fr); } }

/* -----------------------------------------------------------------------
   21. ABOUT PAGE
   ----------------------------------------------------------------------- */
.philosophy-grid { display: grid; gap: 18px; margin-top: 28px; }
.philosophy-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 22px; }
.philosophy-card h3 { margin-bottom: 6px; }
.philosophy-card p { color: var(--color-mute); font-size: 0.92rem; margin: 0; }
@media (min-width: 760px) { .philosophy-grid { grid-template-columns: repeat(2, 1fr); } }

/* -----------------------------------------------------------------------
   22. TEMPLE CONSTRUCTION PAGE
   ----------------------------------------------------------------------- */
.progress-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.progress-gallery img { border-radius: var(--radius-md); aspect-ratio: 4 / 3; object-fit: cover; }

/* -----------------------------------------------------------------------
   23. FORMS (Contact + Donor info)
   ----------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.form-grid > .form-field { min-width: 0; }
@media (min-width: 640px) {
  .form-grid--2col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form-grid--3col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.form-section-title {
  margin: 28px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.donor-form > .form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--color-cream-deep);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-mute);
}
.form-trust-note .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-gold-deep); margin-top: 1px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--color-heading); }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
  width: 100%;
  min-width: 0;
}
.form-field select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--color-saffron); outline: none; }
.form-hint { font-size: 0.8rem; color: var(--color-mute); margin: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--color-mute); margin: 10px 0 20px; }
.consent-row input { margin-top: 3px; }

.contact-grid { display: grid; gap: 32px; margin-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-card {
  max-width: 640px;
  margin: 32px auto 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
}
.form-card .contact-form { gap: 18px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status--success { background: #DFF3E4; color: #2E7D46; }
.form-status--error { background: #FBE2DE; color: #B3402C; }
.form-status[hidden] { display: none; }

/* -----------------------------------------------------------------------
   24. DONATION FLOW — seva cards, cart drawer, floating cart
   ----------------------------------------------------------------------- */
.seva-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  align-items: stretch;
}
.seva-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.seva-card.is-in-cart { border-color: var(--color-gold) !important; }
.seva-card__min-msg { color: #b3261e; font-size: 0.85rem; margin: 8px 0 0; }
.seva-card__media { position: relative; }
.seva-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.seva-card__media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(16, 27, 49, 0.35), transparent);
  pointer-events: none;
}
.seva-card__tag,
.seva-card__incart {
  position: absolute;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.seva-card__tag {
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  color: var(--color-white);
}
.seva-card__incart {
  bottom: 12px; left: 12px;
  background: var(--color-white);
  color: #2E7D46;
}
.seva-card__incart[hidden] { display: none; }
.seva-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.seva-card__body h3 { margin: 0; font-size: 1.4rem; }
.seva-card__price { font-family: var(--font-heading); font-weight: 700; color: var(--color-saffron); font-size: 1.45rem; line-height: 1.1; margin-top: -4px; }
.seva-card__unit { font-size: 0.8rem; color: var(--color-mute); font-weight: 400; font-family: var(--font-body); }
.seva-card p.seva-card__desc { color: var(--color-mute); font-size: 0.9rem; margin: 0; }
.seva-card p.seva-card__label {
  margin: 4px 0 -4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* ---- Option chips: always visible, tap to pick ---- */
.seva-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.seva-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 6px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.seva-chips--amount { grid-template-columns: repeat(2, 1fr); }
.seva-chip b { font-weight: 700; }
.seva-chip small { font-weight: 600; font-size: 0.72rem; color: var(--color-mute); }
@media (hover: hover) and (pointer: fine) {
  .seva-chip:hover { border-color: var(--color-gold); transform: translateY(-1px); }
}
.seva-chip.is-selected {
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-deep) 100%);
  border-color: var(--color-saffron-deep);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(193, 104, 43, 0.3);
}
.seva-chip.is-selected small { color: rgba(255, 255, 255, 0.9); }
.seva-chip:active { transform: scale(0.97); transition-duration: 0s; }
.seva-chip:focus-visible { outline: 3px solid var(--color-saffron); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .seva-chip { transition: none; }
}

/* ---- Fine-tune stepper (qty sevas) + custom amount field ---- */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.qty-stepper button {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--color-cream-deep);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-heading);
  line-height: 1;
}
.qty-stepper button:hover { background: var(--color-border); }
.qty-stepper button:focus-visible { outline: 3px solid var(--color-saffron); outline-offset: 1px; }
.qty-stepper input {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-heading);
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seva-card__custom-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: var(--color-white);
}
.seva-card__custom-amount:focus-within { border-color: var(--color-saffron); }
.seva-card__custom-amount span { color: var(--color-mute); font-weight: 700; }
.seva-card__custom-amount input { border: none; outline: none; padding: 12px 0; font-size: 1rem; width: 100%; background: transparent; color: var(--color-ink); font-family: var(--font-body); }

/* ---- Card footer: live total + Add to Cart ---- */
.seva-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seva-card__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 1.6em; }
.seva-card__total span { font-size: 0.85rem; color: var(--color-mute); }
.seva-card__total strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-heading); line-height: 1; }
.seva-card__add { width: 100%; position: relative; overflow: hidden; }
.seva-card__add .icon { width: 18px; height: 18px; fill: currentColor; }
.seva-card__add.is-added { background: #2E7D46; }

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.floating-cart:hover { transform: translateY(-2px); }
.floating-cart.is-bouncing { animation: floating-cart-bounce 500ms ease-out; }
@keyframes floating-cart-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  55% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cart.is-bouncing { animation: none; }
}
.floating-cart__count {
  background: var(--color-saffron);
  color: var(--color-white);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
@media (min-width: 900px) { .floating-cart { right: 28px; bottom: 98px; } }

/* ---- Checkout bar — bottom-centre, slides up once the cart has an item.
   Shows the running total, opens the cart, and leads to checkout. ---- */
.checkout-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 650;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  background: var(--color-navy);
  border: 1px solid var(--color-navy-deep);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 44px rgba(16, 27, 49, 0.35);
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out);
}
.checkout-bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.checkout-bar.is-visible.is-bumping { animation: checkout-bar-bump 450ms ease-out; }
@keyframes checkout-bar-bump {
  0% { transform: translate(-50%, 0) scale(1); }
  35% { transform: translate(-50%, -4px) scale(1.03); }
  100% { transform: translate(-50%, 0) scale(1); }
}
.checkout-bar__cart {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--color-white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
}
.checkout-bar__cart:focus-visible { outline: 3px solid var(--color-gold-bright); outline-offset: 2px; }
.checkout-bar__icon {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.checkout-bar__icon .icon { width: 22px; height: 22px; fill: currentColor; }
.checkout-bar__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-saffron);
  color: var(--color-white);
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.checkout-bar__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.checkout-bar__total { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }
.checkout-bar__hint { font-size: 0.78rem; color: var(--color-gold-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.checkout-bar__cta { position: relative; overflow: hidden; flex-shrink: 0; padding: 13px 24px; font-size: 1rem; }
.checkout-bar__cta.is-announcing::after { animation: btn-shine 700ms ease-out 380ms; }
@media (prefers-reduced-motion: reduce) {
  .checkout-bar { transition: opacity 200ms ease-out; }
  .checkout-bar.is-visible.is-bumping,
  .checkout-bar__cta.is-announcing::after { animation: none; }
}

.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(16, 27, 49, 0.5);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--color-cream);
  z-index: 701;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--color-border); }
.cart-drawer__header h2 { margin: 0; font-size: 1.3rem; }
.cart-drawer__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-heading); line-height: 1; padding: 4px; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px; }
.cart-item__thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 700; color: var(--color-heading); font-size: 0.95rem; }
.cart-item__meta { font-size: 0.8rem; color: var(--color-mute); margin-top: 2px; }
.cart-item__controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cart-item__amount { color: var(--color-heading); white-space: nowrap; }
.qty-stepper--small { padding: 2px; gap: 6px; border-width: 1px; }
.qty-stepper--small button { width: 28px; height: 28px; font-size: 1rem; }
.qty-stepper--small span { min-width: 28px; text-align: center; font-weight: 700; font-size: 0.9rem; color: var(--color-heading); }
.cart-item__remove { background: none; border: none; color: var(--color-saffron-deep); font-size: 0.8rem; font-weight: 700; cursor: pointer; padding: 0; }
.cart-drawer__empty { color: var(--color-mute); text-align: center; padding: 40px 0; }
.cart-drawer__footer { padding: 18px 22px 24px; border-top: 1px solid var(--color-border); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; color: var(--color-heading); margin-bottom: 14px; font-size: 1.05rem; }
.cart-drawer__footer .btn { width: 100%; }

.order-summary { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 28px; }
.order-summary__row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.order-summary__row:last-child { border-bottom: none; }
.order-summary__total { font-weight: 700; color: var(--color-heading); font-size: 1.05rem; }
.donor-form { max-width: 640px; }

/* -----------------------------------------------------------------------
   25. STATUS PAGES (thank-you / failed)
   ----------------------------------------------------------------------- */
.status-page { min-height: 56vh; display: flex; align-items: center; justify-content: center; padding: 72px 0 60px; text-align: center; }
.status-card { max-width: 560px; margin: 0 auto; }
.status-card__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.status-card__icon--success { background: #DFF3E4; color: #2E7D46; }
.status-card__icon--failed { background: #FBE2DE; color: #B3402C; }
.status-card__icon svg { width: 36px; height: 36px; fill: currentColor; }
.status-card .receipt-id {
  display: inline-block;
  background: var(--color-cream-deep);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 12px 0 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.status-card__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* -----------------------------------------------------------------------
   15. MOTION PREFERENCE
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* -----------------------------------------------------------------------
   26. HOVER POLISH — cards lift + border glow, buttons scale
   ----------------------------------------------------------------------- */
.btn:hover { transform: translateY(-1px) scale(1.03); }
.seva-card, .deity-card, .blog-card, .involve-card, .philosophy-card,
.story-timeline__step, .cause-card {
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border: 1px solid transparent;
}
.seva-card:hover, .deity-card:hover, .blog-card:hover, .involve-card:hover,
.philosophy-card:hover, .story-timeline__step:hover, .cause-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-saffron);
}
.seva-card:hover { transform: translateY(-3px); }

/* -----------------------------------------------------------------------
   27. SCROLL REVEAL + STAGGER (IntersectionObserver-driven, see main.js)
   ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------------------
   28. HEADER SCROLL STATE (shrink + stronger blur, see main.js)
   ----------------------------------------------------------------------- */
.site-header__row { transition: height var(--dur-base) var(--ease-out); }
.site-header { transition: box-shadow var(--dur-base) var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .site-header__row { height: calc(var(--header-height) - 12px); }
.site-header.is-scrolled::before { background: var(--color-white); }

/* -----------------------------------------------------------------------
   28c. FOUNDER HEADER BADGE — grouped with the logo (not pushed past nav);
   full name is mandatory copy, so it wraps in a controlled width rather
   than being truncated or swapped for a shorter version.
   ----------------------------------------------------------------------- */
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-inline-start: 6px;
  padding-inline-start: 11px;
  border-left: 1px solid var(--color-border);
}
.founder-badge img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.founder-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  max-width: 168px;
}
.founder-badge__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-saffron-deep);
  white-space: nowrap;
  margin-bottom: 2px;
}
.founder-badge__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--color-heading);
  white-space: normal;
  transition: color var(--dur-fast) ease-out;
}
.founder-badge__honorific {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85em;
  color: var(--color-mute);
  margin-bottom: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .founder-badge:hover img { border-color: var(--color-saffron); transform: scale(1.06); box-shadow: var(--shadow-md); }
  .founder-badge:hover .founder-badge__name { color: var(--color-saffron-deep); }
}
@media (min-width: 900px) {
  .founder-badge img { width: 42px; height: 42px; }
  .founder-badge__text { max-width: 225px; }
  .founder-badge__name { font-size: 0.8rem; }
}

/* -----------------------------------------------------------------------
   29. TOAST (see donation.js)
   ----------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  z-index: 800;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -----------------------------------------------------------------------
   30. FLOATING LABELS (CSS-only via :has(), no DOM reorder)
   ----------------------------------------------------------------------- */
.form-field { position: relative; }
.form-field label {
  position: absolute;
  left: 14px;
  top: 13px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-mute);
  background: var(--color-white);
  padding: 0 4px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  z-index: 1;
}
.form-field input, .form-field textarea { padding-top: 18px; padding-bottom: 10px; }
.form-field:has(input:focus) label,
.form-field:has(textarea:focus) label,
.form-field:has(input:not(:placeholder-shown)) label,
.form-field:has(textarea:not(:placeholder-shown)) label {
  transform: translateY(-21px) scale(0.82);
  color: var(--color-saffron-deep);
  font-weight: 700;
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #B3402C;
}
/* Selects have no placeholder concept — keep a static label above */
.form-field:has(select) { display: flex; flex-direction: column; gap: 6px; }
.form-field:has(select) label {
  position: static; background: none; padding: 0; transform: none;
  font-size: 0.85rem; font-weight: 700; color: var(--color-heading);
}

/* -----------------------------------------------------------------------
   31. CONSTRUCTION JOURNEY — comprehensive vertical timeline + expandable
   checklist per phase (see js/construction-progress.js)
   ----------------------------------------------------------------------- */
.journey-progress {
  max-width: 520px;
  margin: 0 auto 48px;
  text-align: center;
}
.journey-progress__label { font-weight: 700; color: var(--color-heading); margin-bottom: 12px; }
.journey-progress__label strong { color: var(--color-saffron-deep); }
.journey-progress__bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.journey-progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-saffron));
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

.journey { position: relative; max-width: 900px; margin: 0 auto; }
.journey::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px;
  left: 23px;
  width: 2px;
  background: var(--color-border);
}
.journey__phase {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
}
.journey__phase:last-child { padding-bottom: 0; }
.journey__marker {
  position: relative;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-mute);
  z-index: 1;
}
.journey__marker svg { width: 22px; height: 22px; fill: currentColor; }
.journey__phase--complete .journey__marker { background: var(--color-saffron); border-color: var(--color-saffron); color: var(--color-white); }
.journey__phase--progress .journey__marker { background: #FCEFD9; border-color: var(--color-gold); color: #92650F; }
.journey__marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  animation: journey-pulse 1.8s ease-out infinite;
}
@keyframes journey-pulse { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.3); opacity: 0; } }

.journey__card {
  flex: 1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.journey__phase--complete .journey__card { border-color: rgba(193, 104, 43, 0.3); }
.journey__phase--progress .journey__card { border-color: var(--color-gold); box-shadow: var(--shadow-md); }

.journey__summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.journey__summary::-webkit-details-marker { display: none; }
.journey__summary-main { flex: 1; }
.journey__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.journey__head h3 { margin: 0; font-size: 1.05rem; }
.journey__status {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.journey__status--complete { background: #DFF3E4; color: #2E7D46; }
.journey__status--progress { background: #FCEFD9; color: #92650F; }
.journey__status--upcoming { background: var(--color-cream-deep); color: var(--color-mute); }
.journey__date { font-size: 0.8rem; color: var(--color-mute); margin: 0; }
.journey__chevron {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 8px;
  border-right: 1.5px solid var(--color-mute);
  border-bottom: 1.5px solid var(--color-mute);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.journey__card[open] .journey__chevron { transform: rotate(225deg); }

.journey__body { padding: 0 20px 20px; }
.journey__desc { color: var(--color-mute); font-size: 0.9rem; margin: 0 0 14px; }
.journey__items { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--color-border); display: flex; flex-direction: column; gap: 9px; }
.journey__item { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; }
.journey__item-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.journey__item--done .journey__item-icon { background: var(--color-saffron); color: var(--color-white); }
.journey__item--pending .journey__item-icon { border: 1.5px solid var(--color-border); }
.journey__item-icon svg { width: 10px; height: 10px; fill: currentColor; }
.journey__item--pending span:last-child { color: var(--color-mute); }

@media (min-width: 760px) {
  .journey::before { left: 50%; margin-left: -1px; }
  .journey__marker { position: absolute; left: 50%; margin-left: -24px; }
  .journey__phase { display: block; padding-bottom: 44px; }
  .journey__card { width: calc(50% - 48px); }
  .journey__phase:nth-child(odd) .journey__card { margin-right: auto; }
  .journey__phase:nth-child(even) .journey__card { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .journey__marker-pulse { animation: none; }
  .journey-progress__fill { transition: none; }
}

/* -----------------------------------------------------------------------
   33. BUTTON SYSTEM — btn, btn--primary, btn--outline, btn--ghost, chip,
   link-arrow, floating-donate, floating-cart. Light only. Saffron accent.
   Signature hover animation: shine sweep.
   ----------------------------------------------------------------------- */

/* ---- Base reset: shape, tap target, timing ---- */
.btn,
.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: transform var(--dur-fast) ease-out,
              box-shadow var(--dur-fast) ease-out,
              background-color var(--dur-fast) ease-out,
              border-color var(--dur-fast) ease-out,
              color var(--dur-fast) ease-out;
}

/* ---- Shine sweep (shared mechanism for .btn and .chip) ---- */
.btn::after,
.chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after,
  .chip:hover:not(.chip--more)::after {
    animation: btn-shine 650ms ease-out;
  }
}
@keyframes btn-shine {
  from { left: -75%; }
  to   { left: 125%; }
}

/* ---- Hover lift + shadow — touch devices excluded ---- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .chip:hover:not(.chip--more) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* ---- Active: instant, no lift ---- */
.btn:active,
.chip:active {
  transform: none;
  transition-duration: 0s;
}

/* ---- Focus ring ---- */
.btn:focus-visible,
.chip:focus-visible,
.link-arrow:focus-visible,
.floating-donate:focus-visible,
.floating-cart:focus-visible {
  outline: 3px solid var(--color-saffron);
  outline-offset: 2px;
}

/* ---- Disabled ---- */
.btn:disabled,
.btn[aria-disabled="true"],
.chip[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Variants: premium orange-gold accent (saffron blended into a rich
   bronze-gold) instead of a flat single hue ---- */
.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  border-color: var(--color-gold-deep);
  color: var(--color-white);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--shadow-sm);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-deep) 100%);
  border-color: var(--color-saffron-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-md), 0 0 22px rgba(166, 121, 30, 0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-gold-deep);
  color: var(--color-gold-deep);
}
.btn--outline:hover {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  border-color: var(--color-gold-deep);
  color: var(--color-white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  border-color: var(--color-gold-deep);
}

.chip {
  padding: 9px 18px;
  background: var(--color-white);
  border-color: var(--color-gold-deep);
  color: var(--color-gold-deep);
  font-size: 0.9rem;
}
.chip:hover:not(.chip--more) {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  color: var(--color-white);
}

/* ---- link-arrow: text link, not a pill — lift + arrow nudge only ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover {
    color: var(--color-saffron-deep);
    transform: translateY(-2px);
  }
}
.link-arrow:active { transform: none; transition-duration: 0s; }

/* ---- Floating CTAs: safe-area aware, same interaction language ---- */
.floating-donate,
.floating-cart {
  min-height: 44px;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out;
}
.floating-donate {
  border-color: var(--color-saffron-deep);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.floating-cart {
  border-color: var(--color-navy-deep);
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  .floating-donate { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .floating-cart { bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: hover) and (pointer: fine) {
  .floating-donate:hover,
  .floating-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(27, 42, 74, 0.28);
  }
}
.floating-donate:active,
.floating-cart:active {
  transform: none;
  transition-duration: 0s;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .link-arrow, .floating-donate, .floating-cart,
  .btn::after, .chip::after {
    transition: none !important;
    animation: none !important;
  }
}

/* -----------------------------------------------------------------------
   34. NAV DROPDOWNS — desktop only (hover + keyboard focus), formal style.
   Mobile menu is untouched: the dropdown markup stays hidden there and
   every linked page remains reachable through the existing mobile list.
   ----------------------------------------------------------------------- */
@media (min-width: 900px) {
  .has-dropdown { position: relative; }

  .has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
  .has-dropdown > a::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform var(--dur-fast) ease-out;
  }
  .has-dropdown:hover > a::after,
  .has-dropdown:focus-within > a::after {
    transform: rotate(225deg);
    opacity: 0.85;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    min-width: 230px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur-fast) ease-out, transform var(--dur-fast) ease-out, visibility var(--dur-fast) ease-out;
    z-index: 550;
  }
  .nav-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px; height: 12px;
    background: var(--color-white);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
  }
  .nav-dropdown li { border-bottom: none; }
  .nav-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
  }
  .nav-dropdown a:hover { background: var(--color-cream-deep); color: var(--color-saffron-deep); }

  .has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .has-dropdown > a::after { transition: none; }
}

/* -----------------------------------------------------------------------
   35. CHECKOUT — distraction-free donor-details page (donate-info.html)
   Single centered column: order summary card, then Contact / Payment /
   Billing address form.
   ----------------------------------------------------------------------- */
.checkout-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 20px;
  text-align: center;
}
.checkout-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.checkout-header__logo img { width: 84px; height: 84px; border-radius: 0; object-fit: contain; display: block; }
.checkout-header__step {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mute);
}

.checkout {
  display: flex;
  flex-direction: column;
}

.checkout__form-col {
  background: var(--color-cream);
  padding: 28px 20px 56px;
}
@media (min-width: 960px) {
  .checkout__form-col { padding: 48px clamp(24px, 6vw, 72px) 72px; }
}
.checkout__form-inner { max-width: 560px; margin: 0 auto; }

.checkout-empty { padding: 32px 0; text-align: center; }
.checkout-empty p { color: var(--color-mute); margin: 0 0 16px; }

.checkout-section { margin-bottom: 34px; }
.checkout-section + .checkout-section { padding-top: 30px; border-top: 1px solid var(--color-border); }
.checkout-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.checkout-section h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-heading);
  margin: 0;
}
.checkout-section__subtext { font-size: 0.85rem; color: var(--color-mute); margin: 4px 0 16px; }
.checkout-section .form-field,
.checkout-section .form-grid { margin-top: 16px; }
.checkout-section .form-field:first-of-type,
.checkout-section .form-grid:first-of-type { margin-top: 16px; }

.optional-tag { font-weight: 400; color: var(--color-mute); font-size: 0.78rem; }

/* ---- Secondary / conditional field (e.g. PAN) — the label text alone
   signals it's a lighter-weight ask, without altering the input's box ---- */
.form-field--secondary label {
  opacity: 0.6;
  font-weight: 600;
  font-style: italic;
}
.form-field--secondary input::placeholder { opacity: 0.6; }

/* ---- Payment method box ---- */
.payment-method {
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  margin-top: 14px;
}
.payment-method__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.payment-method__name { font-weight: 800; color: var(--color-heading); }
.payment-method__badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--color-mute);
  white-space: nowrap;
}
.payment-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.payment-method__info {
  padding: 12px 16px;
  background: var(--color-cream-deep);
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-mute);
}

/* ---- Fields with an inline icon (help tooltip / search / geolocation) ---- */
.form-field--icon input { padding-right: 42px; }
.field-icon,
.field-help,
.field-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mute);
  z-index: 2;
}
.field-icon svg { width: 16px; height: 16px; }
.field-help {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.field-help svg { width: 11px; height: 11px; }
.field-icon-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: var(--color-saffron-deep);
  transition: background-color var(--dur-fast) ease-out;
}
.field-icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .field-icon-btn:hover { background: var(--color-cream-deep); }
}
.field-icon-btn:focus-visible { outline: 2px solid var(--color-saffron); outline-offset: 2px; }
.field-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.field-icon-btn.is-loading svg { animation: field-icon-spin 900ms linear infinite; }
@keyframes field-icon-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .field-icon-btn.is-loading svg { animation: none; }
}
.field-help[data-tooltip]:hover::after,
.field-help[data-tooltip]:focus-visible::after,
.field-icon-btn[data-tooltip]:hover::after,
.field-icon-btn[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: 30px;
  width: 200px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-align: left;
  z-index: 5;
}

.checkout-submit { width: 100%; }

.pay-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--color-cream-deep);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-saffron);
  border-radius: var(--radius-sm);
}
.pay-notice[hidden] { display: none; }
.pay-notice .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: var(--color-saffron-deep); }
.pay-notice strong { color: var(--color-heading); }
.pay-notice p { margin: 4px 0 0; color: var(--color-ink); }

.checkout-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.checkout-footer-links a { font-size: 0.78rem; color: var(--color-mute); }
.checkout-footer-links a:hover { color: var(--color-saffron-deep); }

/* ---- Order summary card (sits above the form via .order-summary) ---- */
.checkout-summary { display: flex; flex-direction: column; gap: 18px; }
.checkout-summary--empty { text-align: center; padding: 12px 0; }
.checkout-summary__items { display: flex; flex-direction: column; gap: 16px; }
.checkout-summary__item { display: flex; align-items: flex-start; gap: 14px; }
.checkout-summary__thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-cream-deep);
  color: var(--color-gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkout-summary__info { flex: 1; min-width: 0; }
.checkout-summary__title { margin: 0; font-weight: 700; font-size: 0.92rem; color: var(--color-heading); }
.checkout-summary__subtitle { margin: 2px 0 0; font-size: 0.78rem; color: var(--color-mute); }
.checkout-summary__price { font-weight: 700; font-size: 0.9rem; color: var(--color-saffron-deep); white-space: nowrap; }
.checkout-summary__divider { height: 1px; background: var(--color-border); }
.checkout-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
}
.checkout-summary__total-row span:last-child { color: var(--color-saffron-deep); }

/* -----------------------------------------------------------------------
   36. LEGAL / POLICY PAGES — placeholder-content notice
   ----------------------------------------------------------------------- */
.legal-page { max-width: 760px; }
.content-placeholder-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 32px;
  padding: 14px 16px;
  background: #FBE9D8;
  border: 1px solid var(--color-gold-deep);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-ink);
}
.content-placeholder-notice svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-saffron-deep); margin-top: 1px; }
.legal-page h2 { margin-top: 32px; }
.legal-page p { color: var(--color-mute); }

/* Keep the add-to-cart toast clear of the donate page's checkout bar */
.checkout-bar.is-visible ~ .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* -----------------------------------------------------------------------
   PHONES: founder portrait blends into the page, like the home hero.
   The picture runs edge to edge at the top of its section and fades into the
   page background; the heading rises up into the fade. Desktop keeps the framed photo.
   ----------------------------------------------------------------------- */
@media (max-width: 700px) {
  .about-teaser { padding-top: 0; }
  .about-teaser__media { width: 100vw; margin-inline: calc(50% - 50vw); }
  .about-teaser__media img {
    display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent); mask-image: linear-gradient(to bottom, #000 66%, transparent);
  }
  .about-teaser__text { position: relative; margin-top: -72px; }
  /* Home page only: the portrait sits right under the dark hero, so its top rises out of the hero's navy instead of starting with a hard edge. */
  .about-teaser--after-hero .about-teaser__media { position: relative; }
  .about-teaser--after-hero .about-teaser__media::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 45%; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, var(--color-navy) 0%, color-mix(in srgb, var(--color-navy) 55%, transparent) 40%, color-mix(in srgb, var(--color-navy) 0%, transparent) 100%);
  }
  /* Founder page: its image carries inline styles, hence !important. */
  .founder-photo {
    display: block; width: 100vw !important; max-width: none !important; height: auto;
    margin: -56px 0 -64px calc(50% - 50vw) !important; border-radius: 0 !important; box-shadow: none !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent); mask-image: linear-gradient(to bottom, #000 66%, transparent);
  }
}

/* -----------------------------------------------------------------------
   HOME: construction illustration blended into the section instead of framed.
   "multiply" turns the picture's white sky into the section's beige; the edges are feathered so no box shows.
   On phones it also runs edge to edge.
   ----------------------------------------------------------------------- */
.construction--blend .construction__media img {
  border-radius: 0; box-shadow: none; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 700px) {
  .construction--blend .construction__media { width: 100vw; margin-inline: calc(50% - 50vw); }
  .construction--blend .construction__media img { display: block; width: 100%; height: auto; }
}

