/* =============================================================
   Maa Durga Mandir, Golma — stylesheet
   Order: tokens → reset → typography → layout → components
          → sections → responsive → motion/print
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* palette */
  --maroon:        #8B1A1A;
  --maroon-dark:   #6B1212;
  --maroon-deep:   #4A0D0D;
  --saffron:       #E86A17;
  --saffron-dark:  #C5540C;
  /* #E86A17 is the brand saffron and stays the accent colour, but it only
     reaches 3.2:1 behind white text and 4.3:1 as small text on cream. These
     two darker steps carry anything that has to be *read*. */
  --saffron-text:  #AE4A0A;   /* small text on cream / cream-deep — 5.3:1 */
  --saffron-deep:  #BE500B;   /* filled buttons behind white text — 4.8:1 */
  --saffron-deeper: #A24408;  /* button hover — 6.2:1 */
  --gold:          #C9A227;
  --gold-soft:     #E4CE7F;
  --cream:         #FFF8EE;
  --cream-deep:    #FBEFDD;
  --white:         #FFFFFF;
  --ink:           #2B1B12;
  --ink-soft:      #5A4436;
  --ink-faint:     #74604E;   /* darkened from #8A7461: that failed AA at 4.2:1 */
  --line:          rgba(139, 26, 26, 0.14);

  /* typography */
  --font-body:    'Mukta', 'Segoe UI', system-ui, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;   /* Hindi overrides to --font-deva; English to Arial */
  --font-deva:    'Tiro Devanagari Hindi', 'Mukta', serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.5rem;
  --fs-3xl:  3.25rem;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* form */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(43, 27, 18, 0.07);
  --shadow:    0 6px 22px rgba(43, 27, 18, 0.10);
  --shadow-lg: 0 18px 48px rgba(43, 27, 18, 0.20);

  --wrap:      1200px;
  --wrap-text: 72ch;

  --header-h:  76px;
  --util-h:    38px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* sticky header + utility bar must not cover anchor targets */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
picture { display: contents; }   /* the <img> inside keeps the layout role */
img { height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

a { color: var(--maroon); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--saffron-text); }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* One visible focus treatment everywhere, keyboard-only. */
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--maroon);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   Devanagari and Latin need different vertical rhythm from the
   same markup, so headings switch family + line-height by lang.
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--maroon-dark);
  text-wrap: balance;
}

/* English switches to a plain sans stack. Overriding the two tokens flips
   every rule at once, since nothing hard-codes a family. Hindi is untouched
   and keeps Tiro Devanagari Hindi + Mukta. */
html[lang="en"] {
  --font-body: Arial, 'Helvetica Neue', sans-serif;
  --font-display: Arial, 'Helvetica Neue', sans-serif;
}
/* the language toggle shows "हिं" even in English — keep it in a Devanagari face */
html[lang="en"] .langtoggle__btn[lang="hi"] { font-family: 'Mukta', sans-serif; }

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] .display,
html[lang="hi"] .mantra {
  font-family: var(--font-deva);
  line-height: 1.5;          /* Devanagari matras need the room */
  font-weight: 400;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-md); color: var(--ink-soft); }

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-8); position: relative; overflow: hidden; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--deep {
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon));
  color: var(--cream);
}
.section--deep h2, .section--deep h3 { color: var(--gold-soft); }
.section--deep .lead, .section--deep p { color: rgba(255, 248, 238, 0.88); }
.section--deep .section-head__eyebrow { color: var(--gold-soft); }  /* --gold is only
   3.8:1 against the light end of this section's gradient; --gold-soft is 5.9:1 */
.section--deep .divider__line { background: rgba(201, 162, 39, 0.5); }

/* Faint mandala watermark in a section corner. */
.section--watermark::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px; height: 320px;
  background: url('../assets/img/mandala.svg') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.section-head { max-width: var(--wrap-text); margin: 0 auto var(--sp-7); text-align: center; }
.section-head__eyebrow {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--saffron-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[lang="hi"] .section-head__eyebrow { letter-spacing: 0.06em; text-transform: none; }

/* — ✦ — divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-4) auto 0;
  max-width: 260px;
}
.divider__line { flex: 1; height: 1px; background: var(--line); }
.divider__mark { color: var(--gold); font-size: var(--fs-sm); line-height: 1; }

/* -------------------------------------------------------------
   5. COMPONENTS
   ------------------------------------------------------------- */

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;                 /* thumb-sized tap target */
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  background: var(--saffron-deep);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--saffron-deeper); color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255, 248, 238, 0.6);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 248, 238, 0.14); color: var(--white); border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
  box-shadow: none;
}
.btn--outline:hover { background: var(--maroon); color: var(--white); }

/* gold-framed image */
.framed {
  position: relative;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft) 45%, var(--gold));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.framed img { border-radius: calc(var(--radius) - 5px); width: 100%; height: auto; display: block; }

/* cards */
.card {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------
   6. UTILITY BAR
   ------------------------------------------------------------- */
.utilbar {
  background: var(--maroon-deep);
  color: var(--cream);
  font-size: var(--fs-xs);
}
.utilbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--util-h);
  padding-block: var(--sp-1);
}
.utilbar__contacts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.utilbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  color: var(--cream);
}
.utilbar__link:hover { color: var(--gold-soft); }
.utilbar__link svg { width: 14px; height: 14px; flex: none; fill: currentColor; }

/* language toggle */
.langtoggle { display: flex; align-items: center; gap: 2px; }
.langtoggle__btn {
  min-width: 44px;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  color: rgba(255, 248, 238, 0.72);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.langtoggle__btn:hover { color: var(--white); background: rgba(255, 248, 238, 0.12); }
.langtoggle__btn.is-active { background: var(--gold); color: var(--maroon-deep); }
.langtoggle__sep { color: rgba(255, 248, 238, 0.3); }

/* -------------------------------------------------------------
   7. HEADER + NAV
   ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.header.is-scrolled .header__inner { min-height: 62px; }

.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--maroon-dark); }
.brand:hover { color: var(--maroon-dark); }
.brand__mark {
  width: 46px; height: 46px;
  flex: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.header.is-scrolled .brand__mark { width: 38px; height: 38px; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.15;
}
html[lang="hi"] .brand__name { font-family: var(--font-deva); line-height: 1.35; font-weight: 400; }
.brand__place { display: block; color: var(--ink-faint); font-size: var(--fs-xs); line-height: 1.3; }

.nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  display: block;
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}
.nav__link:hover { color: var(--maroon); background: rgba(139, 26, 26, 0.06); }
.nav__link.is-current { color: var(--maroon); font-weight: 600; }
.nav__link.is-current::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.navtoggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--maroon);
}
.navtoggle__bars { position: relative; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.navtoggle__bars::before,
.navtoggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.navtoggle__bars::before { top: -7px; }
.navtoggle__bars::after { top: 7px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { top: 0; transform: rotate(-45deg); }

/* -------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding-block: var(--sp-9);
  text-align: center;
  color: var(--cream);
  isolation: isolate;
}
/* --- background carousel --- */
.hero__carousel { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--maroon-deep);   /* no flash before a deferred slide arrives */
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* anchored to the top: these are portrait images and a centred crop
     was cutting off the Mother's face */
  object-position: center top;
}

/* One overlay above all slides — keeps the greeting legible on every
   photograph, including any swapped in later. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* flat dark layer behind the hero text, for contrast */
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    /* warm tint that ties the photograph to the palette */
    linear-gradient(180deg, rgba(74, 13, 13, 0.62), rgba(74, 13, 13, 0.42) 45%, rgba(43, 27, 18, 0.72));
}

.hero__inner { max-width: 60ch; }
.hero__mantra {
  display: block;
  margin-bottom: var(--sp-4);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.06em;
}
html[lang="hi"] .hero__mantra { font-family: var(--font-deva); font-weight: 400; }
.hero__title { margin-bottom: var(--sp-4); color: var(--white); font-size: var(--fs-3xl); }
.hero__subtitle {
  margin-bottom: var(--sp-6);
  color: rgba(255, 248, 238, 0.92);
  font-size: var(--fs-md);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 248, 238, 0.7);
  font-size: var(--fs-xs);
}
.hero__scroll svg { width: 20px; height: 20px; margin: var(--sp-1) auto 0; fill: currentColor; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* -------------------------------------------------------------
   9. ABOUT
   ------------------------------------------------------------- */
.about__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items: start; }
.about__block + .about__block { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.about__block h3 { display: flex; align-items: baseline; gap: var(--sp-3); }
.about__block h3::before { content: '✦'; color: var(--gold); font-size: var(--fs-sm); }
.about__images { display: grid; gap: var(--sp-4); }
.about__images img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%;object-fit: contain !important;  }

/* -------------------------------------------------------------
   10. DEITY
   ------------------------------------------------------------- */
.deity__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: center; }
.mantra {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-soft);
  text-wrap: balance;
}
.mantra__meaning {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  font-size: var(--fs-sm);
  font-style: italic;
  color: rgba(255, 248, 238, 0.72) !important;
}
html[lang="hi"] .mantra__meaning { font-style: normal; }

/* -------------------------------------------------------------
   11. PILLARS
   ------------------------------------------------------------- */
.pillar { text-align: center; }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto var(--sp-4);
  background: var(--cream-deep);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 50%;
}
.pillar__icon svg { width: 40px; height: 40px; fill: none; stroke: var(--maroon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-bottom: var(--sp-2); }
.pillar p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* -------------------------------------------------------------
   12. GALLERY
   ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery__item:hover img { transform: scale(1.06); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  background: linear-gradient(transparent, rgba(43, 27, 18, 0.88));
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--sp-4);
  background: rgba(26, 12, 8, 0.95);
  opacity: 0;
  visibility: hidden;
  /* visibility is stepped, never interpolated: delay it on the way out so the
     fade is visible, and apply it instantly on the way in so the dialog is
     focusable in the same task that opens it. */
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease), visibility 0s;
}
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; color: var(--cream); }
.lightbox__counter { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: var(--sp-3); }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox__caption { padding: var(--sp-3); color: rgba(255, 248, 238, 0.85); font-size: var(--fs-sm); text-align: center; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 248, 238, 0.12);
  color: var(--cream);
  transition: background 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 248, 238, 0.26); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }

/* -------------------------------------------------------------
   13. EVENTS
   ------------------------------------------------------------- */
.event__month {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  color: var(--saffron-text);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.event h3 { margin-bottom: var(--sp-2); }
.event p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* -------------------------------------------------------------
   13b. KANWAR YATRA
   Sits on the deep maroon ground, so everything here is light-on-dark.
   ------------------------------------------------------------- */
.yatra__mantra {
  margin: var(--sp-4) 0 0;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
}
html[lang="hi"] .yatra__mantra { font-family: var(--font-deva); font-weight: 400; }

.yatra__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-7);
  align-items: start;
}
/* Two posters stacked; the column is now nearly as tall as the schedule
   beside it, so it is no longer sticky. */
.yatra__posters { display: grid; gap: var(--sp-5); align-content: start; }

.yatra__notice {
  margin: var(--sp-5) 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.yatra__notice strong {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.yatra__schedule-heading { margin-bottom: var(--sp-2); }
.yatra__schedule-note {
  margin-bottom: var(--sp-5);
  color: rgba(255, 248, 238, 0.72) !important;
  font-size: var(--fs-sm);
}

/* Timeline: a gold rule down the left with a marker per day. */
.yatra__days {
  position: relative;
  padding-left: var(--sp-6);
  counter-reset: yatra-day;
}
.yatra__days::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(rgba(201, 162, 39, 0.7), rgba(201, 162, 39, 0.15));
}
.yatra__day { position: relative; padding-bottom: var(--sp-6); }
.yatra__day:last-child { padding-bottom: 0; }
.yatra__day::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-6) + 1px);
  top: 7px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 13, 13, 0.9);
}

.yatra__date {
  margin: 0 0 var(--sp-3);
  color: var(--gold-soft) !important;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.03em;
}
html[lang="hi"] .yatra__date { font-family: var(--font-deva); font-weight: 400; }

.yatra__meals { display: grid; gap: var(--sp-3); }
.yatra__meal {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: var(--sp-1) var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 248, 238, 0.07);
  border-left: 3px solid rgba(201, 162, 39, 0.55);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.yatra__type {
  /* --gold is only 3.3:1 against the light end of this section's gradient */
  color: var(--gold-soft);
  font-weight: 600;
}
.yatra__place { font-weight: 600; color: var(--cream); }
.yatra__host {
  grid-column: 1 / -1;
  color: rgba(255, 248, 238, 0.82);
}
.yatra__host-label {
  color: rgba(255, 248, 238, 0.78);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang="hi"] .yatra__host-label { letter-spacing: 0; text-transform: none; }
.yatra__host-label::after { content: ' · '; }

/* -------------------------------------------------------------
   14. VIDEOS
   YouTube facade: poster now, iframe only on click. Three eager
   embeds cost ~1.5 MB and sink mobile performance.
   ------------------------------------------------------------- */
.video { overflow: hidden; padding: 0; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
}
.video__frame img, .video__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  background: rgba(74, 13, 13, 0.35);
  transition: background 0.25s var(--ease);
}
.video__play:hover { background: rgba(74, 13, 13, 0.2); }
.video__play-icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  background: var(--saffron);   /* icon only, no text — bright saffron is fine */
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}
.video__play:hover .video__play-icon { transform: scale(1.08); }
.video__play-icon svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--white); }
.video__pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(74, 13, 13, 0.72);
  color: var(--gold-soft);
  font-size: var(--fs-sm);
  text-align: center;
}
.video__title { margin: 0; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-md); }

/* -------------------------------------------------------------
   15. CONTACT
   ------------------------------------------------------------- */
.contact__layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-7); align-items: start; }
.contact__rows { margin-bottom: var(--sp-6); }
.contact__row { display: flex; gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.contact__row:first-child { padding-top: 0; }
.contact__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--cream-deep); border-radius: 50%; }
.contact__icon svg { width: 20px; height: 20px; fill: var(--maroon); }
.contact__label { display: block; color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="hi"] .contact__label { letter-spacing: 0; text-transform: none; }
.contact__value { font-size: var(--fs-base); font-weight: 500; line-height: 1.5; }
.contact__map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 420px; border: 0; }

/* -------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------- */
.footer { background: var(--maroon-deep); color: rgba(255, 248, 238, 0.8); }
.footer a { color: rgba(255, 248, 238, 0.8); }
.footer a:hover { color: var(--gold-soft); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--sp-7); padding-block: var(--sp-8) var(--sp-7); }
.footer h3 {
  margin-bottom: var(--sp-4);
  color: var(--gold-soft);
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
}
.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__brand svg { width: 44px; height: 44px; flex: none; }
.footer__brandname {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.2;
}
html[lang="hi"] .footer__brandname { font-family: var(--font-deva); line-height: 1.4; font-weight: 400; }
.footer__links li + li { margin-top: var(--sp-2); }
.footer__links a { display: inline-block; padding-block: var(--sp-1); font-size: var(--fs-sm); }
.footer__contact li { margin-bottom: var(--sp-3); font-size: var(--fs-sm); line-height: 1.6; }
.footer__mantra { margin-top: var(--sp-5); color: var(--gold); font-family: var(--font-display); font-size: var(--fs-md); }
html[lang="hi"] .footer__mantra { font-family: var(--font-deva); font-weight: 400; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255, 248, 238, 0.14);
  font-size: var(--fs-xs);
}
.footer__bottom-links { display: flex; gap: var(--sp-5); }

/* -------------------------------------------------------------
   16b. ABOUT PAGE
   ------------------------------------------------------------- */
.abhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(58vh, 460px);
  padding-block: var(--sp-8) var(--sp-7);
  color: var(--cream);
  isolation: isolate;
}
.abhero__media { position: absolute; inset: 0; z-index: -2; }
.abhero__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* contained image sits right, clear of the left-aligned heading */
  object-position: right center;
}
.abhero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(74, 13, 13, 0.62), rgba(43, 27, 18, 0.9));
}
.abhero__eyebrow {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--gold-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[lang="hi"] .abhero__eyebrow { letter-spacing: 0.06em; text-transform: none; }
.abhero__title { margin-bottom: var(--sp-3); color: var(--white); font-size: var(--fs-3xl); }
.abhero__subtitle { max-width: 46ch; margin: 0; color: rgba(255, 248, 238, 0.92); font-size: var(--fs-md); }

.crumbs {
  margin-bottom: var(--sp-5);
  color: rgba(255, 248, 238, 0.78);
  font-size: var(--fs-sm);
}
.crumbs a { color: rgba(255, 248, 238, 0.78); }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { margin-inline: var(--sp-2); }
.crumbs [aria-current] { color: var(--gold-soft); margin-inline: 0; }

/* readable measure for long-form copy */
.prose { max-width: 68ch; margin-inline: auto; }
.prose + .prose { margin-top: var(--sp-7); }
.prose h2 { margin-bottom: var(--sp-4); }
.prose h2::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  margin-top: var(--sp-3);
  background: var(--gold);
  border-radius: 2px;
}

/* a claim that rests on local belief or local reporting, never presented as verified */
.notewell {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.notewell--dark {
  background: rgba(255, 248, 238, 0.09);
  border-left-color: var(--gold-soft);
  color: rgba(255, 248, 238, 0.82) !important;
}

/* the 111 foot figure */
.figblock { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-7); align-items: center; }
.figblock__figure {
  display: grid;
  place-content: center;
  gap: var(--sp-2);
  min-width: 220px;
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.06);
}
.figblock__number {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
}
html[lang="hi"] .figblock__number { font-family: var(--font-deva); font-weight: 400; line-height: 1.35; }
.figblock__label {
  color: rgba(255, 248, 238, 0.8);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[lang="hi"] .figblock__label { letter-spacing: 0; text-transform: none; }
.figblock__text { max-width: 60ch; }

/* chip lists: festival activities, village names */
.chips__heading { margin-top: var(--sp-6); margin-bottom: var(--sp-4); font-size: var(--fs-md); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4) var(--sp-5); }
.chip {
  padding: var(--sp-2) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--maroon-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.chip--soft { background: var(--cream-deep); border-color: rgba(201, 162, 39, 0.4); }

/* three-photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.strip img { width: 100%; height: auto; }   /* natural proportions */

.visitline { margin-top: var(--sp-5); }
.visitline strong { display: block; color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="hi"] .visitline strong { letter-spacing: 0; text-transform: none; }

/* quick facts table */
.tablewrap { overflow-x: auto; margin-top: var(--sp-5); }
.facts { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.facts th, .facts td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
.facts thead th {
  color: var(--ink-faint);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}
html[lang="hi"] .facts thead th { letter-spacing: 0; text-transform: none; }
.facts tbody th { width: 40%; color: var(--ink-soft); font-weight: 500; }
.facts tbody td { color: var(--ink); font-weight: 600; }
.facts tbody tr:last-child th, .facts tbody tr:last-child td { border-bottom: 0; }

/* faq */
.faq { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.faq__item { padding: var(--sp-5); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__q { margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.faq__q::after { content: none; }
.faq__a { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

.ctarow { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.sourcenote {
  max-width: 70ch;
  margin: var(--sp-7) auto 0;
  color: rgba(255, 248, 238, 0.7) !important;
  font-size: var(--fs-xs);
  text-align: center;
}

/* home: key facts lifted from the about page */
.about__facts { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.factlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.factlist__label { display: block; color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="hi"] .factlist__label { letter-spacing: 0; text-transform: none; }
.factlist__value { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }

/* -------------------------------------------------------------
   17. SIMPLE PAGE (privacy)
   ------------------------------------------------------------- */
.page { padding-block: var(--sp-8); }
.page__inner { max-width: var(--wrap-text); margin-inline: auto; }
.page h2 { margin-top: var(--sp-7); font-size: var(--fs-lg); }
.page__back { display: inline-block; margin-top: var(--sp-7); font-weight: 600; }

/* -------------------------------------------------------------
   18. SCROLL REVEAL
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* -------------------------------------------------------------
   19. RESPONSIVE — 1200 / 768 / 360
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__link { padding-inline: var(--sp-2); font-size: var(--fs-xs); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --fs-3xl: 2.4rem; --fs-2xl: 2rem; --fs-xl: 1.65rem; }

  .navtoggle { display: flex; }

  /* off-canvas drawer */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    width: min(320px, 84vw);
    padding: var(--sp-8) var(--sp-5) var(--sp-5);
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: var(--sp-4); font-size: var(--fs-base); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-current::after { display: none; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(43, 27, 18, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), visibility 0s;
  }
  body.nav-locked { overflow: hidden; }

  .about__layout,
  .deity__layout,
  .yatra__layout,
  .contact__layout { grid-template-columns: 1fr; }
  .about__images { grid-template-columns: repeat(3, 1fr);}
  .yatra__posters { max-width: 520px; margin-inline: auto; }
  .figblock { grid-template-columns: 1fr; gap: var(--sp-5); }
  .figblock__figure { min-width: 0; padding: var(--sp-5); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --fs-3xl: 2rem; --sp-8: 3rem; --sp-9: 4rem; }

  .wrap { padding-inline: var(--sp-4); }
  .utilbar__inner { flex-direction: column; gap: var(--sp-1); padding-block: var(--sp-2); }
  .utilbar__contacts { justify-content: center; gap: var(--sp-4); }
  .brand__place { display: none; }
  .hero { min-height: 100vh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .about__images { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .factlist { grid-template-columns: 1fr; gap: var(--sp-3); }
  .facts tbody th { width: 45%; }
  .footer__top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .contact__map iframe { height: 300px; }
  .yatra__days { padding-left: var(--sp-5); }
  .yatra__day::before { left: calc(-1 * var(--sp-5) + 1px); }
  .yatra__meal { grid-template-columns: 1fr; gap: var(--sp-1); }
  .lightbox__nav--prev { left: var(--sp-2); }
  .lightbox__nav--next { right: var(--sp-2); }
  .section--watermark::after { width: 200px; height: 200px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: var(--fs-md); }
  .gallery { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   20. MOTION + PRINT
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { transition: none; }
}

@media print {
  .utilbar, .header, .hero__scroll, .lightbox, .video__play, .footer__bottom-links { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
}
