/* ============================================================
   Sree Bagalamukhi Devi Temple — Master stylesheet
   Aakaar-inspired sacred aesthetic · warm ivory + layered gold
   Single source of truth for tokens, components, layout, type.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS -------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary:       #FFF9EC;
  --bg-secondary:     #FFF4D8;
  --bg-deep:          #2C2205;

  /* Surface */
  --surface-sacred:   #FFF8E8;
  --surface-premium:  #F9E9BE;
  --surface-card:     #FFFDF5;

  /* Gold scale */
  --gold-50:          #FFF7DA;
  --gold-100:         #FFF0B3;
  --gold-200:         #FFE27A;
  --gold-300:         #FFD447;
  --gold-main:        #D9A520;
  --gold-deep:        #B8860B;
  --mustard:          #9C6D00;
  --maroon:           #7A1A1A;

  /* Text */
  --text-primary:     #2C2205;
  --text-secondary:   #5A4A16;
  --text-muted:       #87764A;
  --accent-divine:    #7A5200;

  /* Interactive */
  --cta:              #D59B00;
  --cta-hover:        #B8860B;
  --success:          #607A34;

  /* Type */
  --font-heading:     'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:        'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-script:      'Cormorant Garamond', Georgia, serif;
  --leading-tight:    1.25;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;

  /* Elevation */
  --elevation-1:      0 4px 16px rgba(122, 82, 0, 0.06);
  --elevation-2:      0 12px 40px rgba(122, 82, 0, 0.10);
  --elevation-3:      0 24px 64px rgba(44, 34, 5, 0.16);

  /* Radius */
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-pill:      999px;

  /* Layout */
  --max-w:            1240px;
  --max-w-narrow:     960px;
  --section-y:        clamp(64px, 9vw, 112px);
}

/* ---------- 2. RESET & BASE --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mustard); }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold-main);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. TYPOGRAPHY ----------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-divine);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main));
}
.eyebrow.center::before { background: linear-gradient(90deg, transparent, var(--gold-main)); }
.eyebrow.center::after  { background: linear-gradient(90deg, var(--gold-main), transparent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--leading-tight);
  letter-spacing: 0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.04em; }

.script {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--accent-divine);
}

p { margin: 0 0 1em; color: var(--text-secondary); line-height: var(--leading-relaxed); }
p.lede { font-size: 1.13rem; color: var(--text-primary); max-width: 64ch; }

/* Devotee-language helpers */
/* ============================================================
   MULTILINGUAL FONT STACKS — Tamil, Telugu, Kannada, Malayalam, Hindi
   Body uses sans for readability; headings use serif/display for elegance.
   All weights 400/500/600/700 available via Google Fonts import.
   ============================================================ */

/* === INDIC SCRIPT GROUP — shared rendering defaults ===
   Applied first via grouped selectors, then per-language font-family overrides.
   These rules normalise line-height, letter-spacing, and text-transform —
   which are all OPTIMISED FOR LATIN by the default site styles and break
   Indic glyphs (which have no case, no inter-letter padding tolerance,
   and need more vertical breathing room). */

:lang(ta), [lang="ta"],
:lang(te), [lang="te"],
:lang(kn), [lang="kn"],
:lang(ml), [lang="ml"],
:lang(hi), [lang="hi"] {
  line-height: 1.8;                /* heavier glyphs need more leading than 1.6 Latin default */
  letter-spacing: 0 !important;    /* Indic scripts must NOT be letter-spaced — breaks conjuncts */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Headings: looser line-height for tall Indic glyphs (1.4 vs 1.25 Latin default), no case, no spacing */
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(ta) h4,
[lang="ta"] h1, [lang="ta"] h2, [lang="ta"] h3, [lang="ta"] h4,
:lang(te) h1, :lang(te) h2, :lang(te) h3, :lang(te) h4,
[lang="te"] h1, [lang="te"] h2, [lang="te"] h3, [lang="te"] h4,
:lang(kn) h1, :lang(kn) h2, :lang(kn) h3, :lang(kn) h4,
[lang="kn"] h1, [lang="kn"] h2, [lang="kn"] h3, [lang="kn"] h4,
:lang(ml) h1, :lang(ml) h2, :lang(ml) h3, :lang(ml) h4,
[lang="ml"] h1, [lang="ml"] h2, [lang="ml"] h3, [lang="ml"] h4,
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4,
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3, [lang="hi"] h4 {
  font-weight: 700;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Paragraphs: ample leading (1.85), proper word-break handling for Indic */
:lang(ta) p, [lang="ta"] p,
:lang(te) p, [lang="te"] p,
:lang(kn) p, [lang="kn"] p,
:lang(ml) p, [lang="ml"] p,
:lang(hi) p, [lang="hi"] p {
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: break-word;
  hanging-punctuation: first;
}

/* Lede / large copy: tighten slightly from 1.85 → 1.7 since lede uses bigger type */
:lang(ta) .lede, [lang="ta"] .lede,
:lang(te) .lede, [lang="te"] .lede,
:lang(kn) .lede, [lang="kn"] .lede,
:lang(ml) .lede, [lang="ml"] .lede,
:lang(hi) .lede, [lang="hi"] .lede {
  line-height: 1.7;
}

/* Eyebrow + uppercase elements: kill the uppercase + spacing, treat as normal-case label */
:lang(ta) .eyebrow, [lang="ta"] .eyebrow,
:lang(te) .eyebrow, [lang="te"] .eyebrow,
:lang(kn) .eyebrow, [lang="kn"] .eyebrow,
:lang(ml) .eyebrow, [lang="ml"] .eyebrow,
:lang(hi) .eyebrow, [lang="hi"] .eyebrow,
[lang="ta"] [style*="text-transform: uppercase"],
[lang="te"] [style*="text-transform: uppercase"],
[lang="kn"] [style*="text-transform: uppercase"],
[lang="ml"] [style*="text-transform: uppercase"],
[lang="hi"] [style*="text-transform: uppercase"] {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600;
}

/* Stats numbers + display numbers: increase line-height to handle tall Indic numerals */
:lang(ta) .stat-num, [lang="ta"] .stat-num,
:lang(te) .stat-num, [lang="te"] .stat-num,
:lang(kn) .stat-num, [lang="kn"] .stat-num,
:lang(ml) .stat-num, [lang="ml"] .stat-num,
:lang(hi) .stat-num, [lang="hi"] .stat-num {
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

/* Button + CTA labels: kill uppercase + tracking */
:lang(ta) .btn, [lang="ta"] .btn,
:lang(te) .btn, [lang="te"] .btn,
:lang(kn) .btn, [lang="kn"] .btn,
:lang(ml) .btn, [lang="ml"] .btn,
:lang(hi) .btn, [lang="hi"] /* Native form controls (time/date pickers, radios, checkboxes) use brand gold */
html { accent-color: var(--gold-main); }
.btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.3;
}

/* === PER-LANGUAGE FONT-FAMILIES === */

/* TAMIL */
:lang(ta), [lang="ta"] {
  font-family: 'Noto Sans Tamil', 'Inter', 'Latha', sans-serif;
}
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(ta) h4,
[lang="ta"] h1, [lang="ta"] h2, [lang="ta"] h3, [lang="ta"] h4 {
  font-family: 'Noto Serif Tamil', 'Cinzel', Georgia, serif;
}

/* TELUGU */
:lang(te), [lang="te"] {
  font-family: 'Noto Sans Telugu', 'Inter', 'Gautami', sans-serif;
}
:lang(te) h1, :lang(te) h2, :lang(te) h3, :lang(te) h4,
[lang="te"] h1, [lang="te"] h2, [lang="te"] h3, [lang="te"] h4 {
  font-family: 'Noto Serif Telugu', 'Cinzel', Georgia, serif;
}

/* KANNADA */
:lang(kn), [lang="kn"] {
  font-family: 'Noto Sans Kannada', 'Inter', 'Tunga', sans-serif;
}
:lang(kn) h1, :lang(kn) h2, :lang(kn) h3, :lang(kn) h4,
[lang="kn"] h1, [lang="kn"] h2, [lang="kn"] h3, [lang="kn"] h4 {
  font-family: 'Noto Serif Kannada', 'Cinzel', Georgia, serif;
}

/* MALAYALAM — Manjari is Kerala's preferred modern face */
:lang(ml), [lang="ml"] {
  font-family: 'Manjari', 'Noto Sans Malayalam', 'Inter', 'Kartika', sans-serif;
}
:lang(ml) h1, :lang(ml) h2, :lang(ml) h3, :lang(ml) h4,
[lang="ml"] h1, [lang="ml"] h2, [lang="ml"] h3, [lang="ml"] h4 {
  font-family: 'Noto Serif Malayalam', 'Manjari', 'Cinzel', Georgia, serif;
}

/* HINDI / DEVANAGARI */
:lang(hi), [lang="hi"] {
  font-family: 'Noto Sans Devanagari', 'Inter', 'Mangal', 'Devanagari Sangam MN', sans-serif;
}
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4,
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3, [lang="hi"] h4 {
  font-family: 'Noto Serif Devanagari', 'Tiro Devanagari Sanskrit', 'Cinzel', Georgia, serif;
}

/* SANSKRIT (mantra blocks) — Tiro Devanagari Sanskrit primary regardless of page lang */
:lang(sa), .sanskrit:lang(sa) {
  font-family: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
  letter-spacing: 0 !important;
  line-height: 1.85;
}

.sanskrit {
  font-family: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
  color: var(--accent-divine);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* ---------- 4. LAYOUT --------------------------------------- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-y) 0; position: relative; }
section.alt-bg { background: var(--bg-secondary); }
section.sacred-bg { background: var(--surface-sacred); }
section.deep-bg { background: var(--bg-deep); color: var(--bg-primary); }
section.deep-bg h2, section.deep-bg h3 { color: var(--gold-200); }
section.deep-bg p { color: rgba(255, 249, 236, 0.78); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto;
}

/* Ornamental divider */
.divider-sacred {
  border: 0;
  height: 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-main) 0 4px, transparent 5px) no-repeat center,
    linear-gradient(90deg, transparent, var(--gold-main) 30%, var(--gold-main) 70%, transparent);
  background-size: 18px 18px, 100% 1px;
  background-position: center, 0 50%;
  margin: 24px auto;
  max-width: 220px;
}

/* ---------- 5. BUTTONS / CTA -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-main));
  color: var(--text-primary);
  border: 1.5px solid var(--gold-main);
  box-shadow: 0 4px 16px rgba(213, 155, 0, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  color: var(--maroon);
  box-shadow: 0 10px 30px rgba(184, 134, 11, 0.40);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--gold-main);
}
.btn-secondary:hover {
  background: rgba(217, 165, 32, 0.10);
  color: var(--mustard);
}
.btn-ghost-light {
  background: rgba(255, 249, 236, 0.12);
  color: var(--bg-primary);
  border: 1.5px solid rgba(255, 249, 236, 0.5);
}
.btn-ghost-light:hover {
  background: var(--gold-main);
  color: var(--bg-deep);
  border-color: var(--gold-main);
  box-shadow: 0 8px 24px rgba(217, 165, 32, 0.4);
}
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

/* ---------- 6. SACRED CARD ---------------------------------- */
.sacred-card {
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.20);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--elevation-1);
  transition: box-shadow .3s, transform .2s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.sacred-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 220, 100, 0.06), transparent 40%);
  pointer-events: none;
}
.sacred-card:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-3px);
  border-color: rgba(217, 165, 32, 0.40);
}
.sacred-card .card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-main));
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--text-primary);
  box-shadow: inset 0 -3px 6px rgba(122, 82, 0, 0.18);
}
.sacred-card h3 { margin-bottom: 10px; }
.sacred-card p  { margin-bottom: 0; }
#about-devi .sacred-card,
#mantras .sacred-card { text-align: center; }
#about-devi .sacred-card .card-icon,
#mantras .sacred-card .card-icon { margin-left: auto; margin-right: auto; }

/* ---------- 7. HEADER --------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 249, 236, 0.94);
  border-bottom: 1px solid rgba(217, 165, 32, 0.18);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255, 249, 236, 0.98);
  box-shadow: var(--elevation-1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--gold-main);
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(122, 82, 0, 0.18);
  flex-shrink: 0;
}
.site-footer .brand-mark {
  background: rgba(255, 249, 236, 0.96);
  border-color: var(--gold-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--accent-divine);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a, .site-nav > .nav-dd > button {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, background .2s;
}
.site-nav > a:hover, .site-nav > .nav-dd > button:hover {
  color: var(--maroon);
  background: var(--gold-50);
}
.site-nav > a.active {
  color: var(--gold-deep);
  position: relative;
}
.site-nav > a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
}

.nav-dd { position: relative; }
.nav-dd > button::after {
  content: "▾";
  font-size: 0.7rem;
  color: var(--gold-deep);
}
.nav-dd-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-primary);
  border: 1px solid rgba(217, 165, 32, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-panel a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-primary);
}
.nav-dd-panel a:hover { background: var(--gold-50); color: var(--maroon); }

.lang-pill {
  background: transparent;
  border: 1px solid rgba(217, 165, 32, 0.4);
  color: var(--accent-divine);
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.lang-pill:hover { background: var(--gold-50); color: var(--maroon); border-color: rgba(122, 26, 26, 0.3); }

.lang-dd { position: relative; }
.lang-dd .lang-pill::after {
  content: "▾";
  font-size: 0.65rem;
  margin-left: 2px;
}
.lang-dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-primary);
  border: 1px solid rgba(217, 165, 32, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 110;
}
.lang-dd:hover .lang-dd-panel,
.lang-dd:focus-within .lang-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dd-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
}
.lang-dd-panel a:hover {
  background: rgba(122, 26, 26, 0.06);
  color: var(--maroon);
}
.lang-dd-panel a.current { background: var(--gold-50); color: var(--gold-deep); font-weight: 600; }
.lang-dd-panel a .iso {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* mobile menu trigger */
.menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid rgba(217, 165, 32, 0.4);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu-trigger { display: inline-flex; }
  .lang-pill { display: none; }
  /* Hide the lang dropdown wrapper too (lang switch lives inside the mobile drawer) */
  .lang-dd { display: none; }
  /* Hide the Book Homam header CTA on mobile — the sticky mobile-bar at bottom already has Book/Call/Chat */
  .site-header .header-cta .btn-primary { display: none; }
  /* Tighten brand name so logo + text + trigger fit cleanly */
  .brand-name strong { font-size: 0.98rem; line-height: 1.15; }
  .brand-name small  { font-size: 0.6rem;  letter-spacing: 0.14em; }
  .site-header .wrap { gap: 12px; min-height: 68px; }
  .brand-mark { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  /* Very narrow phones — drop the subtitle line and shrink the mark */
  .brand-name small { display: none; }
  .brand-name strong { font-size: 0.92rem; }
  .brand-mark { width: 42px; height: 42px; padding: 2px; }
  .site-header .wrap { padding: 0 14px; min-height: 60px; }
}

/* ---------- 8. HERO ----------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 140px 0 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 220, 100, 0.35), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(217, 165, 32, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g fill='none' stroke='%23D9A520' stroke-width='0.5' opacity='0.10'><circle cx='90' cy='90' r='70'/><circle cx='90' cy='90' r='52'/><polygon points='90,28 145,118 35,118'/><polygon points='90,152 35,62 145,62'/></g></svg>");
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: 0.7;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(217, 165, 32, 0.35);
  color: var(--accent-divine);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-main);
  box-shadow: 0 0 0 4px rgba(217, 165, 32, 0.25);
}
.hero h1 {
  font-size: clamp(2.23rem, 5.4vw, 3.81rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  color: #E2A829;
  text-shadow: 0 2px 10px rgba(122, 82, 0, 0.22), 0 1px 0 rgba(255, 220, 100, 0.5);
}
.hero h1 .em { color: var(--maroon); font-style: italic; font-family: var(--font-script); font-weight: 700; }
/* Dark-turmeric deity name in hero H1 — both gradient stops kept dark so it stays legible on the cream hero */
.hero-gold { color: var(--gold-deep); background: linear-gradient(135deg, #C8890C, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sanskrit {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 14px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 56ch;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed rgba(217, 165, 32, 0.35);
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.hero-meta .ic {
  color: var(--gold-deep);
  width: 18px; text-align: center;
}

/* hero medallion (right column) */
.hero-medallion {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 480px;
  margin: 0 auto;
}
.hero-medallion .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(217, 165, 32, 0.45);
  box-shadow:
    inset 0 0 0 22px rgba(255, 249, 236, 0.6),
    inset 0 0 0 23px rgba(217, 165, 32, 0.25),
    0 30px 80px rgba(122, 82, 0, 0.15);
}
.hero-medallion .ring.outer { transform: scale(1); }
.hero-medallion .ring.inner {
  inset: 24px;
  border-color: rgba(217, 165, 32, 0.35);
  box-shadow: none;
  border-style: dashed;
}
.hero-medallion .photo {
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, var(--gold-100), transparent 60%),
    linear-gradient(160deg, var(--gold-200), var(--surface-premium), var(--gold-100));
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-medallion .photo-inner {
  font-family: var(--font-script);
  font-size: 4.6rem;
  font-style: italic;
  color: var(--accent-divine);
  text-align: center;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 18px rgba(122,82,0,0.18);
}
.hero-medallion .photo-inner small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--mustard);
  margin-top: 18px;
  text-transform: uppercase;
}
.hero-medallion .badge {
  position: absolute;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--gold-main);
  display: grid; place-items: center;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-divine);
  box-shadow: var(--elevation-2);
  line-height: 1.2;
}
.hero-medallion .badge.b1 { top: 6%; right: -8px; }
.hero-medallion .badge.b2 { bottom: 4%;  left: -10px; }
.hero-medallion .badge strong { color: var(--gold-deep); font-size: 1.1rem; display: block; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-medallion { max-width: 320px; }
}

/* ---------- 8b. HERO SLIDER (3-image carousel) ------------- */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--gold-main);
  background: var(--bg-deep);
  animation: hero-gold-wave 2.4s ease-out infinite;
}
@keyframes hero-gold-wave {
  0% {
    box-shadow:
      0 30px 80px rgba(122, 82, 0, 0.22),
      0 0 0 0   rgba(255, 220, 100, 0.70),
      0 0 0 0   rgba(255, 220, 100, 0.45),
      0 0 0 0   rgba(255, 220, 100, 0.25),
      inset 0 0 0 6px rgba(255, 249, 236, 0.6),
      inset 0 0 0 7px rgba(217, 165, 32, 0.45);
  }
  100% {
    box-shadow:
      0 30px 80px rgba(122, 82, 0, 0.22),
      0 0 0 24px rgba(255, 220, 100, 0),
      0 0 0 48px rgba(255, 220, 100, 0),
      0 0 0 72px rgba(255, 220, 100, 0),
      inset 0 0 0 6px rgba(255, 249, 236, 0.6),
      inset 0 0 0 7px rgba(217, 165, 32, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider { animation: none; }
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .9s ease, transform 6s ease;
  pointer-events: none;
}
.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(44, 34, 5, 0) 55%,
    rgba(44, 34, 5, 0.55) 100%);
  pointer-events: none;
}
.hero-slider .slide-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 64px;
  z-index: 3;
  color: var(--bg-primary);
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease .3s, transform .6s ease .3s;
}
.hero-slider .slide.active .slide-caption {
  opacity: 1;
  transform: none;
}
.hero-slider .slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-slider .slider-dots button {
  width: 32px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 249, 236, 0.4);
  cursor: pointer;
  transition: background .25s, width .25s;
  padding: 0;
}
.hero-slider .slider-dots button.active {
  background: var(--gold-300);
  width: 48px;
}
.hero-slider .slider-dots button:hover { background: var(--gold-200); }
.hero-slider .ornament-badge {
  position: absolute;
  z-index: 4;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1.5px solid var(--gold-main);
  display: grid; place-items: center;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-divine);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  line-height: 1.2;
}
.hero-slider .ornament-badge strong {
  color: var(--gold-deep);
  font-size: 1.1rem;
  display: block;
  font-family: var(--font-heading);
}
.hero-slider .ornament-badge.b1 { top: 18px; right: -16px; }
.hero-slider .ornament-badge.b2 { bottom: 64px; left: -18px; }

@media (max-width: 900px) {
  .hero-slider { max-width: 460px; aspect-ratio: 5 / 4; }
  .hero-slider .ornament-badge.b1 { top: 12px; right: 12px; }
  .hero-slider .ornament-badge.b2 { display: none; }
}

/* ---------- 9. STATS / TRUST -------------------------------- */
/* Dark Maroon #5A0F14 + Turmeric #FFBE0B (locked 2026-06-29 — swapped
   in from Malt for stronger brand alignment with --maroon #7A1A1A). */
.stats-strip {
  background: #5A0F14;
  border-top: 1px solid rgba(255, 190, 11, 0.22);
  border-bottom: 1px solid rgba(255, 190, 11, 0.22);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFBE0B;
  display: block;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 190, 11, 0.9);
  margin-top: 4px;
  display: block;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------- 10. WHY-BAGALAMUKHI GRID ------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 11. HOMAM BOOKING CARDS ------------------------- */
.homam-card {
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.20);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .25s, transform .2s, border-color .25s;
  box-shadow: var(--elevation-1);
}
.homam-card:hover {
  box-shadow: var(--elevation-2);
  border-color: rgba(217, 165, 32, 0.45);
  transform: translateY(-3px);
}
.homam-card .top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.homam-card .yantra {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  display: grid; place-items: center;
  color: var(--accent-divine);
  font-size: 1.4rem;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.badge-pill.popular { background: rgba(213, 155, 0, 0.16); color: var(--mustard); border: 1px solid rgba(217, 165, 32, 0.4); }
.badge-pill.next    { background: rgba(96, 122, 52, 0.16); color: var(--success); border: 1px solid rgba(96, 122, 52, 0.4); }
.badge-pill.live    { background: rgba(122, 26, 26, 0.10); color: var(--maroon); border: 1px solid rgba(122, 26, 26, 0.3); }
.badge-pill.live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 4px rgba(122,26,26,0.25);
}

.homam-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.homam-card .purpose {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}
.homam-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 22px;
  padding: 14px 0;
  border-top: 1px dashed rgba(217, 165, 32, 0.3);
  border-bottom: 1px dashed rgba(217, 165, 32, 0.3);
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.homam-meta div { display: flex; align-items: center; gap: 6px; }
.homam-meta .lbl {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}
.homam-meta .val { font-weight: 600; color: var(--text-primary); font-size: 0.96rem; }
.homam-card .price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.homam-card .price small { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; }
.homam-card .cta-row { display: flex; gap: 10px; margin-top: 18px; }
.homam-card .cta-row .btn { flex: 1; justify-content: center; padding: 12px 14px; }

/* ---------- 12. REVIEWS ------------------------------------- */
.review-card {
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.18);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--elevation-1);
  position: relative;
}
.review-card .quote-mark {
  position: absolute;
  top: 16px; right: 22px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(217, 165, 32, 0.18);
  line-height: 0.6;
}
.stars { color: var(--gold-main); letter-spacing: 0.04em; font-size: 1rem; margin-bottom: 12px; }
.review-card p { font-style: italic; color: var(--text-primary); margin-bottom: 18px; }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-main));
  display: grid; place-items: center;
  font-weight: 700; color: var(--bg-deep);
  font-family: var(--font-heading);
}
.reviewer .meta { line-height: 1.3; }
.reviewer .meta strong { display: block; color: var(--text-primary); font-size: 0.95rem; }
.reviewer .meta small { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- 13. CALENDAR / EVENTS --------------------------- */
.event-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.18);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--elevation-1);
  transition: box-shadow .25s, border-color .25s;
}
.event-row:hover { box-shadow: var(--elevation-2); border-color: rgba(217, 165, 32, 0.4); }
.event-date {
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  border: 1px solid rgba(217, 165, 32, 0.25);
}
.event-date .d { font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; color: var(--gold-deep); line-height: 1; display: block; }
.event-date .m { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-secondary); text-transform: uppercase; display: block; margin-top: 4px; }
.event-info h4 { margin-bottom: 4px; font-family: var(--font-heading); }
.event-info p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }
@media (max-width: 700px) {
  .event-row { grid-template-columns: 80px 1fr; }
  .event-row .btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- 14. LIVE DARSHAN -------------------------------- */
.darshan-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.darshan-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gold-main);
  box-shadow: var(--elevation-2);
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 165, 32, 0.4), transparent 60%),
    linear-gradient(135deg, var(--bg-deep), #4a3a0b);
  display: grid; place-items: center;
  color: var(--bg-primary);
  text-align: center;
}
.darshan-video .play {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--gold-main);
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: var(--bg-deep);
  box-shadow: 0 0 0 12px rgba(217,165,32,0.18);
  margin: 0 auto 18px;
}
.darshan-video .play::after {
  content: "▶";
  margin-left: 4px;
}
.darshan-video h3 { color: var(--gold-200); margin-bottom: 8px; }
.darshan-video p  { color: rgba(255, 249, 236, 0.78); margin: 0; }
.darshan-schedule {
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.darshan-schedule h3 { margin-bottom: 18px; }
.schedule-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(217, 165, 32, 0.3);
  font-size: 0.94rem;
}
.schedule-row:last-child { border-bottom: none; }
/* Morning / Evening dividers in the darshan schedule. Maroon, not gold —
   gold-deep on the cream card is ~3.4:1 and fails AA at this size. */
.schedule-sub {
  font-family: var(--font-heading); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--maroon);
  margin: 20px 0 2px; padding-top: 4px;
}
.darshan-schedule .schedule-sub:first-of-type { margin-top: 2px; padding-top: 0; }
/* Two columns: Morning | Evening. Layout only (no colours) so the same class
   serves the light homepage card and the dark sree-suryamangalam panel.
   Stacks below 700px, where two columns would squeeze the longer ritual names. */
.schedule-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.schedule-cols > div > .schedule-sub:first-child { margin-top: 2px; padding-top: 0; }
.schedule-cols .schedule-row { align-items: baseline; gap: 12px; }
.schedule-cols .schedule-row strong { flex: 1 1 auto; line-height: 1.35; }
.schedule-cols .schedule-row span { flex: 0 0 auto; white-space: nowrap; }
@media (min-width: 701px) {
  .schedule-cols > div + div { border-left: 1px dashed rgba(217,165,32,0.3); padding-left: 30px; }
}
@media (max-width: 700px) {
  .schedule-cols { grid-template-columns: 1fr; gap: 0; }
  .schedule-cols > div + div > .schedule-sub:first-child { margin-top: 20px; }
}
.schedule-row strong { font-family: var(--font-heading); color: var(--text-primary); }
.schedule-row span { color: var(--text-secondary); }
.schedule-row .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--maroon);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(122,26,26,0.2);
}
/* Live-stream iframe fills the .darshan-video container (16:9). The
   gradient + play-button background stays as a loading fallback that
   shows through before the iframe paints, and behind YouTube's "Channel
   is not currently live" placeholder when no stream is active. */
.darshan-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.darshan-video .darshan-link {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(10, 8, 4, 0.78);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, color .2s;
}
.darshan-video .darshan-link i { color: #ff0000; font-size: 0.92rem; }
.darshan-video .darshan-link:hover { background: rgba(122, 26, 26, 0.92); color: #fff; }

@media (max-width: 900px) {
  .darshan-wrap { grid-template-columns: 1fr; }
}

/* ---------- 15. TRUST BAR ----------------------------------- */
.trust-bar {
  background: var(--surface-premium);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
  justify-items: center;
}
.trust-grid:has(> .trust-item:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.trust-grid:has(> .trust-item:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.trust-grid:has(> .trust-item:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
}
.trust-item .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--gold-main);
  display: grid; place-items: center;
  color: var(--gold-deep);
  font-size: 1rem;
}
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* ---------- 16. FAQ ACCORDION ------------------------------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid rgba(217, 165, 32, 0.18);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--elevation-1);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item[open] {
  border-color: var(--gold-main);
  box-shadow: var(--elevation-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-deep);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: var(--leading-relaxed);
}

/* ---------- 17. ASTROLOGER STRIP --------------------------- */
.acharya-strip {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--surface-sacred);
  border-radius: 32px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 32, 0.25);
}
.acharya-strip::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,165,32,0.18), transparent 70%);
}
.acharya-photo {
  aspect-ratio: 4/5;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,249,236,0.0), rgba(122,82,0,0.10)),
    radial-gradient(circle at 50% 40%, var(--gold-100), var(--surface-premium));
  display: grid; place-items: center;
  border: 2px solid var(--gold-main);
  box-shadow: 0 30px 60px rgba(122,82,0,0.18);
  position: relative;
  overflow: hidden;
  font-family: var(--font-script);
  font-style: italic;
  color: var(--accent-divine);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.acharya-photo:not(:has(img))::after {
  content: "🕉";
  position: absolute;
  font-size: 7rem;
  color: rgba(184,134,11,0.45);
  font-style: normal;
}
.acharya-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: 22px;
}
.acharya-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44,34,5,0.25));
  pointer-events: none;
  z-index: 2;
  border-radius: 22px;
}
.acharya-strip .eyebrow { margin-bottom: 16px; }
.acharya-strip h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
.acharya-strip .credentials {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 22px 0 28px;
}
.credential {
  background: var(--bg-primary);
  border: 1px solid rgba(217, 165, 32, 0.3);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--accent-divine);
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .acharya-strip { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .acharya-photo { max-width: 340px; margin: 0 auto; }
}

/* ---------- 18. FOOTER -------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 249, 236, 0.85);
  padding: 80px 0 0;
  border-top: 3px solid var(--gold-main);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .brand { color: var(--gold-200); margin-bottom: 18px; }
.footer-brand .brand-name strong { color: var(--gold-200); }
.footer-brand .brand-name small  { color: var(--gold-300); }
.footer-brand p { color: rgba(255, 249, 236, 0.7); font-size: 0.92rem; max-width: 30ch; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 249, 236, 0.06);
  border: 1px solid rgba(255, 220, 122, 0.35);
  color: var(--gold-200);
  font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover {
  background: var(--gold-main);
  color: var(--bg-deep);
  border-color: var(--gold-main);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--gold-200);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 249, 236, 0.78); font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-contact .row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: rgba(255, 249, 236, 0.82);
}
.footer-contact .ic {
  color: var(--gold-300);
  margin-top: 3px;
  width: 18px;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 249, 236, 0.12);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 249, 236, 0.6);
}
.footer-bottom .langs { display: flex; gap: 14px; }
.footer-bottom .langs a { color: var(--gold-200); font-size: 0.84rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .site-footer { padding: 56px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
  .footer-brand p { max-width: none; }
  .footer-col h4 { margin-bottom: 12px; font-size: 0.88rem; }
  .footer-col li { margin-bottom: 8px; }
  .footer-contact .row { font-size: 0.88rem; }
  .footer-bottom {
    padding: 18px 0 22px;
    font-size: 0.76rem;
    gap: 14px;
  }
  .footer-bottom .langs { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ---------- 19. PAGE HEAD STRIP (sub-pages) ----------------- */
.page-head {
  padding: 150px 0 70px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 220, 100, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(217, 165, 32, 0.18);
}
.page-head::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-main) 0 4px, transparent 5px) no-repeat center,
    linear-gradient(90deg, transparent, var(--gold-main) 30%, var(--gold-main) 70%, transparent);
  background-size: 18px 18px, 100% 1px;
  background-position: center, 0 50%;
}
.page-head h1 { margin-bottom: 14px; }
.page-head .lede { margin: 0 auto; }
.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold-deep); }
.breadcrumb span { margin: 0 8px; color: var(--gold-main); }

/* ---------- 20. STICKY MOBILE BOOK BAR --------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bg-primary);
  border-top: 1px solid rgba(217, 165, 32, 0.3);
  box-shadow: 0 -8px 24px rgba(44,34,5,0.12);
  padding: 10px 14px;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.mobile-bar .btn { flex: 1; justify-content: center; padding: 12px 8px; font-size: 0.78rem; letter-spacing: 0.06em; }
/* Two-tier: Call · Chat on top, Book (primary) full-width below */
.mobile-bar .btn.btn-secondary { order: 1; flex: 1 1 0; }
.mobile-bar .btn.btn-primary { order: 2; flex: 1 1 100%; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 128px; }
}

/* ---------- 21. WHATSAPP FAB -------------------------------- */
.fab {
  position: fixed;
  bottom: 100px;
  right: 22px;
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); color: white; }
@media (min-width: 761px) { .fab { bottom: 32px; } }
/* Mobile already has a WhatsApp Chat button in the sticky mobile-bar — hide the floating FAB to avoid duplicate */
@media (max-width: 760px) { .fab { display: none; } }

/* ---------- 21b. LIVE TEMPLE STATUS PILL ------------------- */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}
.live-status .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  position: relative;
  flex-shrink: 0;
}
.live-status.open {
  background: rgba(96, 122, 52, 0.14);
  color: var(--success);
  border-color: rgba(96, 122, 52, 0.35);
}
.live-status.open .pulse-dot {
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}
.live-status.closed {
  background: rgba(122, 26, 26, 0.10);
  color: var(--maroon);
  border-color: rgba(122, 26, 26, 0.25);
}
.live-status.closed .pulse-dot {
  background: var(--maroon);
  opacity: 0.7;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(76, 175, 80, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(76, 175, 80, 0);   }
}

/* Footer variant — adapt to dark bg */
.site-footer .live-status.open {
  background: rgba(96, 122, 52, 0.22);
  color: #b3d77a;
  border-color: rgba(180, 220, 130, 0.4);
}
.site-footer .live-status.closed {
  background: rgba(255, 200, 200, 0.10);
  color: #e9b3b3;
  border-color: rgba(255, 200, 200, 0.25);
}

/* ============================================================
   DATE & TIME PICKER STYLING
   For <input type="date"> and <input type="time"> inputs sitewide
   ============================================================ */

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 11px 14px;
  border: 1.5px solid var(--gold-main);
  border-radius: var(--radius-sm);
  background: #fffef6;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
  /* Prevent iOS default styling */
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  min-height: 46px;
  letter-spacing: 0.02em;
}

input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover {
  border-color: var(--gold-deep);
  background: var(--gold-50);
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(217, 165, 32, 0.22);
  background: #fff;
}

input[type="date"]:invalid,
input[type="time"]:invalid,
input[type="datetime-local"]:invalid {
  color: var(--text-muted);
}

/* Calendar / clock picker indicator icon (the small icon at the right edge) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  /* Use a custom gold-tinted SVG icon that matches the brand palette */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  opacity: 0.85;
  transition: opacity .2s, transform .15s;
  border-radius: 4px;
  filter: drop-shadow(0 1px 2px rgba(122, 82, 0, 0.15));
}

input[type="time"]::-webkit-calendar-picker-indicator {
  /* Clock icon variant for time inputs */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(217, 165, 32, 0.12);
}

/* Style the inner editable text portions of the input
   (date/time fields shown as MM / DD / YYYY etc.) */
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: 2px 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text {
  color: var(--gold-deep);
  padding: 0 4px;
  font-weight: 600;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-ampm-field {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0 2px;
  border-radius: 3px;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-ampm-field:focus {
  background: var(--gold-100);
  color: var(--gold-deep);
  outline: none;
}

/* Hide ugly default spinner buttons */
input[type="date"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  display: none;
}

/* Firefox doesn't expose pseudo-elements, but the base input styling above
   still applies — Firefox will render its own native picker but with our
   border/background. */

/* Date/time field grouping — when displayed side by side */
.date-time-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .date-time-group { grid-template-columns: 1fr; }
}

/* Decorative leading icon (optional usage — wrap input in label.has-icon) */
.dt-field {
  position: relative;
}
.dt-field label.dt-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}
.dt-field label.dt-label::before {
  content: "📅";
  margin-right: 6px;
  font-size: 0.9rem;
}
.dt-field.time-field label.dt-label::before {
  content: "🕐";
}

/* ---------- 22. SPACING UTILS ------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.center { text-align: center; }
.maxw-prose { max-width: 68ch; margin-left: auto; margin-right: auto; }

/* ---------- 23. MOBILE DRAWER ------------------------------ */
/* Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(44, 34, 5, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 280ms ease-out;
  pointer-events: none;
}

/* Drawer container (wraps backdrop + panel) */
.mobile-drawer {
  display: none; /* hidden until opened */
}
.mobile-drawer.is-open {
  display: block;
}
.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel */
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(88vw, 360px);
  background: var(--bg-primary);
  border-left: 1px solid rgba(217, 165, 32, 0.25);
  box-shadow: -12px 0 48px rgba(44, 34, 5, 0.20);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 280ms ease-out;
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

/* Panel header row */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(217, 165, 32, 0.18);
  flex-shrink: 0;
}
.mobile-drawer-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-divine);
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(217, 165, 32, 0.35);
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-close:hover {
  background: var(--gold-50);
  color: var(--maroon);
}

/* Nav body */
.mobile-drawer-nav {
  padding: 12px 0 24px;
  flex: 1;
  overflow-y: auto;
}

/* Top-level link */
.mobile-drawer-nav .mdnav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-nav .mdnav-link:hover {
  background: var(--gold-50);
  color: var(--maroon);
}

/* Dropdown group heading */
.mobile-drawer-nav .mdnav-group-label {
  display: block;
  padding: 16px 22px 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-divine);
  border-top: 1px solid rgba(217, 165, 32, 0.18);
  margin-top: 4px;
}
/* Remove top border on very first group-label */
.mobile-drawer-nav .mdnav-group-label:first-child {
  border-top: none;
  margin-top: 0;
}

/* Child links inside a dropdown group */
.mobile-drawer-nav .mdnav-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 36px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-nav .mdnav-child::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-main);
  flex-shrink: 0;
}
.mobile-drawer-nav .mdnav-child:hover {
  background: var(--gold-50);
  color: var(--maroon);
}

/* Divider */
.mobile-drawer-nav .mdnav-divider {
  height: 1px;
  background: rgba(217, 165, 32, 0.18);
  margin: 8px 22px;
}

/* Language group inside drawer */
.mobile-drawer-nav .mdnav-lang-group {
  padding: 12px 22px;
  border-top: 1px solid rgba(217, 165, 32, 0.18);
  margin-top: 4px;
}
.mobile-drawer-nav .mdnav-lang-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-divine);
  display: block;
  margin-bottom: 10px;
}
.mobile-drawer-nav .mdnav-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mobile-drawer-nav .mdnav-lang-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 165, 32, 0.25);
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mobile-drawer-nav .mdnav-lang-grid a .iso {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mobile-drawer-nav .mdnav-lang-grid a:hover,
.mobile-drawer-nav .mdnav-lang-grid a.current {
  background: var(--gold-50);
  border-color: rgba(217, 165, 32, 0.5);
  color: var(--gold-deep);
}
.mobile-drawer-nav .mdnav-lang-grid a.current {
  font-weight: 600;
}

/* Book Homam CTA at drawer bottom */
.mobile-drawer-cta {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(217, 165, 32, 0.18);
  flex-shrink: 0;
}
.mobile-drawer-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Body scroll-lock when drawer is open */
body.drawer-open {
  overflow: hidden;
  /* iOS Safari fix */
  position: fixed;
  width: 100%;
}

/* Only render drawer at mobile breakpoint (guard — drawer is hidden by JS at larger widths) */
@media (min-width: 1081px) {
  .mobile-drawer { display: none !important; }
}


/* ===== Top-level Donate CTA in nav ===== */
.site-nav .nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-left: 6px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-main));
  color: var(--text-primary) !important;
  border-radius: 100px;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--gold-main);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.site-nav .nav-donate i {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.site-nav .nav-donate:hover {
  color: var(--maroon) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.34);
}
.site-nav .nav-donate:hover i { color: var(--maroon) !important; }
@media (max-width: 900px) {
  .site-nav .nav-donate { display: none; }
}


/* ===== Font Awesome icon-font protection ===== */
/* :lang() rules above cascade font-family down to <i class="fa-..."> elements,
   causing icons to render as empty boxes (tofu) under any non-Latin language.
   These overrides keep Font Awesome's own font on icon elements regardless of language. */
.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone {
  font-family: "Font Awesome 6 Free" !important;
}
.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
}
.fa-regular, .far {
  font-weight: 400 !important;
}
.fa-solid, .fas {
  font-weight: 900 !important;
}


/* ===== SVG mask-icon variant for .yantra (custom Ganesha SVGs) ===== */
/* Usage: <div class="yantra yantra-svg-mask" style="--mask-url:url(...); --mask-color:var(--gold-deep)"></div> */
.yantra.yantra-svg-mask {
  position: relative;
  /* Hide any text content/badges from default .yantra */
}
.yantra.yantra-svg-mask::before {
  content: "";
  display: block;
  width: 70%;
  height: 70%;
  background-color: var(--mask-color, var(--gold-deep));
  -webkit-mask: var(--mask-url) no-repeat center / contain;
          mask: var(--mask-url) no-repeat center / contain;
}

/* ---------- SELECT DROPDOWN CHEVRON (sitewide) ------------- */
/* Kill the browser-default arrow and draw our own SVG chevron anchored
   to the right edge of every <select>. The default UA arrow renders at
   different positions per browser (Chromium leaves a visible gap between
   the arrow and the border) — this rule normalizes it everywhere and
   keeps the chevron flush with the field's right edge. Locked 2026-07-01. */
select {
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%237a5a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
/* IE / legacy Edge — remove the native dropdown expand button */
select::-ms-expand { display: none; }
/* Focus keeps the chevron visible (no shift) */
select:focus { background-position: right 14px center; }
