/* =========================================================================
   East Bay Hindu Temple — Design System
   A modern, accessible redesign that keeps a traditional devotional feel.
   Palette is built around the two colours the head priest asked to lead with:
   temple red (maroon/sindoor) and gold, warmed by saffron and cream.

   Sections:
     1.  Design tokens (colour, type, spacing)
     2.  Reset & base
     3.  Accessibility helpers
     4.  Layout primitives (container, section, grid)
     5.  Ornament (mandala, lotus divider, om, diya)
     6.  Typography helpers (eyebrow, titles, Sanskrit)
     7.  Buttons
     8.  Top bar & header / navigation
     9.  Hero
     10. Welcome / about
     11. Deity niches (darshan)
     12. Timings (aarti & darshan)
     13. Sevas & poojas
     14. Festivals
     15. Head priest
     16. Seva / donation band
     17. Visit & contact
     18. Footer
     19. Reveal-on-scroll & motion
     20. Reduced motion
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Temple red — the lead colour */
  --red: #8a1220;
  --red-deep: #5e0a13;
  --red-soft: #a8323f;

  /* Gold — the second lead colour.
     --gold-deep doubles as small-text gold: #80601a holds 4.5:1+ (WCAG AA)
     on both cream surfaces, where the old #9a7322 sat at ~4.0:1. */
  --gold: #c89b3c;
  --gold-bright: #f1cf7a;
  --gold-deep: #80601a;

  /* Saffron / marigold warmth */
  --saffron: #e8861e;
  --marigold: #f4a623;

  /* Cream surfaces & warm ink */
  --cream: #fdf6e8;
  --cream-2: #f7ead0;
  --cream-3: #f1dcb6;
  --ink: #33160f;
  --ink-soft: #6a4536;
  --ink-faint: #7d5f51; /* 5.4:1 on cream (was #9a7868 at 3.7:1 — failed AA) */
  --focus: #b35410; /* focus ring: 4.7:1 on cream (saffron was 2.5:1) */
  --line: rgba(122, 60, 30, 0.16);
  --line-strong: rgba(122, 60, 30, 0.3);

  --on-red: #fdeccd;
  --on-red-soft: rgba(253, 236, 205, 0.74);

  /* Gradients */
  --grad-red: linear-gradient(135deg, #7c0f1c 0%, #5e0a13 55%, #3f060d 100%);
  --grad-gold: linear-gradient(135deg, #f1cf7a 0%, #c89b3c 50%, #9a7322 100%);
  --grad-saffron: linear-gradient(135deg, #f4a623, #e8861e 60%, #c25e12);
  --grad-cream: linear-gradient(180deg, #fdf6e8 0%, #f7ead0 100%);

  /* Shadows (warm) */
  --shadow-sm: 0 1px 2px rgba(70, 20, 10, 0.08), 0 2px 6px rgba(70, 20, 10, 0.06);
  --shadow-md: 0 16px 36px -20px rgba(70, 20, 10, 0.4);
  --shadow-lg: 0 36px 70px -32px rgba(70, 20, 10, 0.5);
  --shadow-gold: 0 14px 30px -14px rgba(154, 115, 34, 0.55);

  /* Type */
  --font-display: "Cormorant Garamond", "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Mukta", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-deva: "Tiro Devanagari Hindi", "Mukta", serif;

  --fs-200: 0.8125rem;
  --fs-300: 0.9375rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.1875rem;
  --fs-600: clamp(1.25rem, 1.6vw, 1.45rem);
  --fs-700: clamp(1.6rem, 3vw, 2.1rem);
  --fs-800: clamp(2.1rem, 4.4vw, 3.1rem);
  --fs-900: clamp(2.8rem, 6.5vw, 4.8rem);

  --lh-tight: 1.06;
  --lh-snug: 1.3;
  --lh-base: 1.72;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* Radii */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Structure */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --dur-fast: 0.16s;
  --dur: 0.28s;
  --dur-slow: 0.6s;

  --z-header: 100;
  --z-skip: 300;

  color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-base);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(900px 480px at 100% -10%, rgba(244, 166, 35, 0.1), transparent 60%),
    radial-gradient(720px 420px at -10% 20%, rgba(200, 155, 60, 0.1), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--red-soft);
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   3. Accessibility helpers
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: var(--z-skip);
  background: var(--red-deep);
  color: var(--on-red);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--on-red);
}

/* -------------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-9);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--red {
  background: var(--grad-red);
  color: var(--on-red);
}

.section--red h2,
.section--red h3 {
  color: #fff;
}

/* Cards keep their own light (cream) surface even inside a red section, so their
   titles — which are <h3> — must stay dark for contrast. Without this, the rule
   above washes them out to white on cream (e.g. the astrology price cards). */
.section--red .price-card__name,
.section--red .card__title {
  color: var(--red);
}

.section--cream {
  background: var(--grad-cream);
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section__head {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.mt-5 {
  margin-top: var(--space-5);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-7 {
  margin-top: var(--space-7);
}

/* -------------------------------------------------------------------------
   5. Ornament — mandala, lotus divider, om, diya flame
   ------------------------------------------------------------------------- */
.ornament {
  color: var(--gold);
  opacity: 0.9;
}

/* Lotus divider sits between sections as a small centred flourish. */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-block: var(--space-6);
  color: var(--gold-deep);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.divider__lotus {
  width: 34px;
  height: 34px;
  flex: none;
}

/* A slim, repeating gold "torana" border for the top of the page. */
.temple-border {
  height: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-deep) 0,
      var(--gold-bright) 10px,
      var(--gold-deep) 20px
    );
  background-size: 20px 100%;
}

/* The diya flame in the hero — a warm, gently flickering glow. */
.diya {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}

.diya__flame {
  transform-origin: 50% 100%;
  animation: flicker 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(244, 166, 35, 0.8));
}

@keyframes flicker {
  0%,
  100% {
    transform: scale(1) rotate(-1deg);
    opacity: 1;
  }
  40% {
    transform: scale(1.06, 0.96) rotate(1.5deg);
    opacity: 0.92;
  }
  70% {
    transform: scale(0.97, 1.04) rotate(-1.5deg);
    opacity: 0.97;
  }
}

/* -------------------------------------------------------------------------
   6. Typography helpers
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "❖";
  color: var(--saffron);
  letter-spacing: 0;
}

.section--red .eyebrow {
  color: var(--gold-bright);
}

.title {
  font-size: var(--fs-800);
}

.title--lg {
  font-size: var(--fs-900);
  line-height: var(--lh-tight);
}

.lead {
  font-size: var(--fs-500);
  color: var(--ink-soft);
  margin-top: var(--space-4);
  line-height: var(--lh-base);
}

.section--red .lead {
  color: var(--on-red-soft);
}

/* Devanagari accents — Sanskrit shlokas, deity names in script. */
.deva {
  font-family: var(--font-deva);
  font-weight: 500;
}

.shloka {
  font-family: var(--font-deva);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.shloka__en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-400);
  color: var(--on-red-soft);
  margin-top: var(--space-2);
}

/* -------------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-ink: var(--on-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-300);
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-ink);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--grad-saffron);
  --btn-ink: #3a1402;
  box-shadow: var(--shadow-gold);
}

.btn--gold {
  --btn-bg: var(--grad-gold);
  --btn-ink: #3a2603;
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--red);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--red);
}

.btn--on-red {
  --btn-bg: transparent;
  --btn-ink: var(--on-red);
  border-color: rgba(241, 207, 122, 0.5);
}

.btn--on-red:hover {
  --btn-bg: rgba(241, 207, 122, 0.14);
  --btn-ink: #fff;
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: var(--fs-400);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-200);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-row--center {
  justify-content: center;
}

/* -------------------------------------------------------------------------
   8. Top bar & header / navigation
   ------------------------------------------------------------------------- */
.topbar {
  background: var(--red-deep);
  color: var(--on-red);
  font-size: var(--fs-200);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.5rem;
}

.topbar a {
  color: var(--gold-bright);
  font-weight: 600;
}

.topbar a:hover {
  color: #fff;
}

.topbar__group {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a7868;
  box-shadow: 0 0 0 0 rgba(120, 200, 120, 0.6);
}

.status-dot.is-open::before {
  background: #6fd07f;
  animation: pulse 2.4s infinite;
}

.status-dot.is-closed::before {
  background: #e88;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 208, 127, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(111, 208, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 208, 127, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(253, 246, 232, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
}

.brand__sub {
  font-family: var(--font-deva);
  font-size: 0.78rem;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* On desktop the "Book a Pooja" header button is the single call-to-action, so
   the in-nav CTA pill only appears in the mobile slide-out menu. */
@media (min-width: 901px) {
  .site-nav__cta {
    display: none;
  }
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--red);
  background: rgba(200, 155, 60, 0.16);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* Keep the hamburger above the slide-out drawer so it stays visible and
     tappable as a close control while the menu is open. */
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  color: var(--red);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentcolor;
  margin-inline: auto;
  position: relative;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}
.nav-toggle__bars::after {
  top: 6px;
}

/* Morph the hamburger into an ✕ while the drawer is open, so there is always
   a visible way to close the menu. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--cream);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .site-nav__link {
    padding: 0.85rem 1rem;
    font-size: var(--fs-400);
  }

  .site-nav__cta {
    margin-top: var(--space-4);
  }
}

/* -------------------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-red);
  color: var(--on-red);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__mandala {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(900px, 130vw);
  color: rgba(241, 207, 122, 0.14);
  z-index: -1;
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 50% 8%, rgba(244, 166, 35, 0.28), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(244, 166, 35, 0.16), transparent 60%);
}

.hero__inner {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__shloka {
  margin-bottom: var(--space-5);
}

.hero__title {
  font-size: var(--fs-900);
  line-height: var(--lh-tight);
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero__title .deva {
  display: block;
  font-size: 0.5em;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.hero__tagline {
  max-width: 640px;
  margin: var(--space-5) auto 0;
  font-size: var(--fs-500);
  color: var(--on-red-soft);
}

.hero__cta {
  margin-top: var(--space-7);
  justify-content: center;
}

.hero__meta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  font-size: var(--fs-300);
  color: var(--on-red-soft);
}

.hero__meta strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.hero__wave {
  display: block;
  width: 100%;
  height: auto;
  color: var(--cream);
}

/* -------------------------------------------------------------------------
   10. Welcome / about
   ------------------------------------------------------------------------- */
.welcome {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 880px) {
  .welcome {
    grid-template-columns: 1fr 0.9fr;
  }
}

.welcome__media {
  position: relative;
}

.framed {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--grad-gold);
  box-shadow: var(--shadow-lg);
}

.framed__inner {
  position: relative;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 166, 35, 0.25), transparent 60%), var(--grad-red);
  display: grid;
  place-items: center;
}

.framed__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A real photo layers over the placeholder; if it fails to load it removes
   itself (see onerror) and the placeholder shows through. */
.framed__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* The graceful placeholder shown until a real photo is dropped in. */
.photo-slot {
  text-align: center;
  color: var(--on-red-soft);
  padding: var(--space-6);
}

.photo-slot__om {
  font-family: var(--font-deva);
  font-size: 3.4rem;
  color: var(--gold-bright);
  line-height: 1;
}

.photo-slot__label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.stat {
  flex: 1 1 140px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-800);
  color: var(--red);
  font-weight: 700;
  line-height: 1;
}

.stat__label {
  font-size: var(--fs-300);
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* -------------------------------------------------------------------------
   11. Deity niches (darshan)
   ------------------------------------------------------------------------- */
.niche {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.niche:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* The arched "gopuram" frame that holds the murti photo. */
.niche__arch {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 30%, rgba(244, 166, 35, 0.3), transparent 62%), var(--grad-red);
  display: grid;
  place-items: center;
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}

.niche__arch::before {
  /* Ornate gold inner outline following an arch silhouette. */
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(241, 207, 122, 0.55);
  border-radius: 50% 50% 8px 8px / 38% 38% 8px 8px;
  pointer-events: none;
  z-index: 3;
}

.niche__arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.niche__placeholder {
  text-align: center;
  color: var(--on-red-soft);
  z-index: 1;
}

.niche__placeholder .photo-slot__om {
  font-size: 2.8rem;
}

/* Original gold deity emblem shown in each arch (until a real murti photo is
   dropped in). Sits on the maroon radial backdrop like a shrine icon. */
.niche__art {
  display: grid;
  place-items: center;
  width: 62%;
  max-width: 150px;
  aspect-ratio: 1;
  color: var(--gold-bright);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.niche__art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.niche__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  text-align: center;
}

.niche__name {
  font-size: var(--fs-600);
  color: var(--red);
}

.niche__deva {
  font-family: var(--font-deva);
  color: var(--gold-deep);
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.niche__note {
  font-size: var(--fs-300);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* -------------------------------------------------------------------------
   12. Timings (aarti & darshan)
   ------------------------------------------------------------------------- */
.timings {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 880px) {
  .timings {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.card-soft {
  background: rgba(253, 246, 232, 0.08);
  border: 1px solid rgba(241, 207, 122, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.section--cream .card-soft,
.timetable {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timetable {
  width: 100%;
  border-collapse: collapse;
}

.timetable caption {
  background: var(--grad-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  padding: var(--space-4);
  font-weight: 600;
}

.timetable th,
.timetable td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-300);
}

.timetable th {
  color: var(--ink-soft);
  font-weight: 600;
  width: 45%;
}

.timetable td {
  color: var(--ink);
  font-weight: 600;
}

.timetable tr.is-today {
  background: rgba(244, 166, 35, 0.16);
}

.timetable tr.is-today th::after {
  content: "Today";
  margin-left: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--saffron);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.timetable td.is-closed {
  color: var(--ink-faint);
  font-weight: 500;
}

.aarti-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(241, 207, 122, 0.4);
}

.aarti-list li:last-child {
  border-bottom: 0;
}

.aarti-list .aarti__name {
  font-weight: 600;
  color: #fff;
}

.aarti-list .aarti__time {
  font-family: var(--font-display);
  font-size: var(--fs-500);
  color: var(--gold-bright);
  font-weight: 700;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   13. Sevas & poojas
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--grad-saffron);
  color: #fff;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-gold);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-size: var(--fs-600);
  color: var(--red);
}

.card__text {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--fs-300);
}

/* -------------------------------------------------------------------------
   14. Festivals
   ------------------------------------------------------------------------- */
.festival {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.festival:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.festival__date {
  flex: none;
  width: 78px;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--red);
}

.festival__day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.festival__mon {
  display: block;
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 0.2rem;
}

.festival__name {
  font-size: var(--fs-500);
  color: var(--ink);
  font-weight: 600;
}

.festival__deva {
  font-family: var(--font-deva);
  color: var(--gold-deep);
  font-size: 0.95rem;
}

.festival__desc {
  font-size: var(--fs-300);
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.festival--next {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.festival__badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3a1402;
  background: var(--grad-gold);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.countdown {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   15. Head priest
   ------------------------------------------------------------------------- */
.priest {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 880px) {
  .priest {
    grid-template-columns: 0.8fr 1.1fr;
  }
}

.priest__media .framed__inner {
  aspect-ratio: 4 / 5;
}

/* The welcome frame holds the wide temple exterior photo. */
.welcome__media .framed__inner {
  aspect-ratio: 3 / 2;
}

.priest__name {
  font-size: var(--fs-700);
  color: var(--red);
}

.priest__role {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: var(--fs-200);
  margin-top: 0.25rem;
}

.priest__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-600);
  color: var(--ink);
  margin-top: var(--space-5);
  padding-left: var(--space-5);
  border-left: 3px solid var(--gold);
}

/* -------------------------------------------------------------------------
   16. Seva / donation band
   ------------------------------------------------------------------------- */
.seva-band {
  position: relative;
  background: var(--grad-red);
  color: var(--on-red);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.seva-band__title {
  font-size: var(--fs-800);
  color: #fff;
}

.seva-band__text {
  max-width: 560px;
  margin: var(--space-4) auto var(--space-6);
  color: var(--on-red-soft);
}

/* -------------------------------------------------------------------------
   17. Visit & contact
   ------------------------------------------------------------------------- */
.visit {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 880px) {
  .visit {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(200, 155, 60, 0.16);
  color: var(--red);
}

.contact-list__icon svg {
  width: 22px;
  height: 22px;
}

.contact-list__dt {
  display: block;
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.contact-list__dd {
  margin: 0.2rem 0 0;
  font-size: var(--fs-400);
  color: var(--ink);
  font-weight: 600;
}

.contact-list__dd a {
  color: var(--ink);
}

.contact-list__dd a:hover {
  color: var(--red);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 340px;
  height: 100%;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--red-deep);
  color: var(--on-red-soft);
  padding-top: var(--space-8);
}

.site-footer a {
  color: var(--on-red-soft);
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand .brand__name {
  color: var(--gold-bright);
}

.site-footer__brand .brand__sub {
  color: var(--on-red-soft);
}

.site-footer__blurb {
  margin-top: var(--space-4);
  max-width: 36ch;
  font-size: var(--fs-300);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--space-4);
}

.site-footer__list li {
  margin-bottom: 0.6rem;
  font-size: var(--fs-300);
}

.site-footer__bottom {
  border-top: 1px solid rgba(241, 207, 122, 0.2);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-200);
}

.site-footer__credit a {
  color: var(--gold-bright);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   19. Reveal-on-scroll & motion
   ------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}
[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}
[data-reveal-delay="5"] {
  transition-delay: 0.4s;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-saffron);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  z-index: 90;
}

.back-to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* -------------------------------------------------------------------------
   20. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   21. Donation modal
   ------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 12, 6, 0.62);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
  animation: modal-in var(--dur) var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal__head {
  position: relative;
  background: var(--grad-red);
  color: var(--on-red);
  padding: 1.5rem 1.6rem;
}

.modal__title {
  color: #fff;
  font-size: var(--fs-700);
}

.modal__sub {
  color: var(--on-red-soft);
  font-size: var(--fs-300);
  margin-top: 0.3rem;
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal__body {
  padding: 1.5rem 1.6rem 1.7rem;
}

.modal__body .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}

.modal__note {
  font-size: var(--fs-200);
  color: var(--ink-faint);
  margin-top: 1.2rem;
  line-height: 1.6;
}

.give-setup {
  background: rgba(232, 134, 30, 0.12);
  border: 1px solid rgba(232, 134, 30, 0.4);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-200);
  margin-bottom: 1.2rem;
}

.give-setup code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.amount-chip {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-300);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.amount-chip:hover {
  border-color: var(--gold);
}

.amount-chip.is-active {
  background: var(--grad-saffron);
  color: #3a1402;
  border-color: transparent;
}

.give-list {
  display: grid;
  gap: 0.6rem;
}

.give-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.give-method__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(200, 155, 60, 0.16);
  color: var(--red);
}

.give-method__icon svg {
  width: 22px;
  height: 22px;
}

.give-method__main {
  flex: 1;
  min-width: 0;
}

.give-method__name {
  font-weight: 700;
  color: var(--red);
}

.give-method__detail {
  font-size: var(--fs-200);
  color: var(--ink-soft);
  word-break: break-word;
}

.give-method__action {
  flex: none;
}

.give-method .btn {
  padding: 0.55rem 1rem;
  font-size: var(--fs-200);
}

.give-method__disabled {
  font-size: var(--fs-200);
  color: var(--ink-faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   22. Page hero (sub-pages: Poojas, Events, Calendar)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--grad-red);
  color: var(--on-red);
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.page-hero .eyebrow {
  color: var(--gold-bright);
  justify-content: center;
}

.page-hero .eyebrow::before {
  background: var(--gold);
}

.page-hero__title {
  font-size: var(--fs-800);
  color: #fff;
  line-height: var(--lh-tight);
}

.page-hero__lead {
  margin-top: var(--space-4);
  color: var(--on-red-soft);
  font-size: var(--fs-500);
}

.page-hero .hero__mandala {
  color: var(--gold-bright);
  opacity: 0.14;
}

/* Breadcrumb-ish "back home" link on sub-pages */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--gold-bright);
}

.page-back:hover {
  color: #fff;
}

/* -------------------------------------------------------------------------
   23. Pricing cards (puja breakdown)
   ------------------------------------------------------------------------- */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.price-card__head {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.price-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-600);
  color: var(--red);
  line-height: var(--lh-snug);
}

.price-card__deva {
  font-family: var(--font-deva);
  color: var(--gold-deep);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.price-card__desc {
  flex: 1;
  padding: var(--space-4) var(--space-5) 0;
  font-size: var(--fs-300);
  color: var(--ink-soft);
}

.price-breakdown {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.45rem 0;
  font-size: var(--fs-300);
  border-bottom: 1px dashed rgba(200, 155, 60, 0.4);
}

.price-line__label {
  color: var(--ink-soft);
}

.price-line__val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.price-line--total {
  border-bottom: 0;
  border-top: 2px solid var(--gold);
  margin-top: 0.35rem;
  padding-top: 0.7rem;
}

.price-line--total .price-line__label {
  font-weight: 700;
  color: var(--ink);
}

.price-line--total .price-line__val {
  color: var(--red);
  font-size: var(--fs-600);
}

.price-flat {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: var(--fs-700);
  line-height: 1;
}

.price-flat small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-200);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.price-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3a1402;
  background: var(--grad-gold);
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   24. Info note / callout (booking availability, supplies, etc.)
   ------------------------------------------------------------------------- */
.info-note {
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}

.info-note__title {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  color: var(--red);
  margin-bottom: 0.35rem;
}

.info-note p {
  color: var(--ink-soft);
  font-size: var(--fs-300);
}

.info-note--red {
  background: rgba(253, 246, 232, 0.08);
  border-color: rgba(241, 207, 122, 0.28);
  border-left-color: var(--gold);
}

.section--red .info-note__title {
  color: var(--gold-bright);
}

.section--red .info-note p {
  color: var(--on-red-soft);
}

/* -------------------------------------------------------------------------
   25. Featured event band (weekly satsang) + event rows
   ------------------------------------------------------------------------- */
.event-feature {
  position: relative;
  display: grid;
  gap: var(--space-5);
  align-items: center;
  background: var(--grad-red);
  color: var(--on-red);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold);
  padding: clamp(1.8rem, 4vw, 3rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 760px) {
  .event-feature {
    grid-template-columns: auto 1fr;
    gap: var(--space-7);
  }
}

.event-feature__when {
  text-align: center;
  flex: none;
}

.event-feature__day {
  font-family: var(--font-display);
  font-size: var(--fs-800);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}

.event-feature__time {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-300);
  color: #fff;
  margin-top: 0.4rem;
}

.event-feature__title {
  font-size: var(--fs-700);
  color: #fff;
}

.event-feature__deva {
  font-family: var(--font-deva);
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.event-feature__text {
  color: var(--on-red-soft);
  margin-top: var(--space-3);
  max-width: 52ch;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.event-tag {
  font-size: var(--fs-200);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(241, 207, 122, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(241, 207, 122, 0.32);
}

/* -------------------------------------------------------------------------
   26. Shop items (mini gift shop)
   ------------------------------------------------------------------------- */
.shop-item {
  text-align: center;
}

.shop-item__art {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-4);
  border-radius: 18px;
  background: var(--grad-gold);
  color: var(--red-deep);
  box-shadow: var(--shadow-gold);
}

.shop-item__art svg {
  width: 34px;
  height: 34px;
}

.card__tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(200, 155, 60, 0.16);
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.card__meta {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: var(--fs-500);
}

/* -------------------------------------------------------------------------
   27. Social links
   ------------------------------------------------------------------------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-300);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--red);
  background: rgba(200, 155, 60, 0.1);
}

.section--red .social-link,
.seva-band .social-link {
  background: rgba(253, 246, 232, 0.08);
  border-color: rgba(241, 207, 122, 0.32);
  color: var(--on-red);
}

.section--red .social-link:hover,
.seva-band .social-link:hover {
  color: #fff;
  border-color: var(--gold-bright);
}

/* Footer social row */
.site-footer .social-links {
  margin-top: var(--space-5);
}

.site-footer .social-link {
  background: rgba(253, 246, 232, 0.06);
  border-color: rgba(241, 207, 122, 0.22);
  color: var(--on-red-soft);
}

.site-footer .social-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* -------------------------------------------------------------------------
   28. Hero slogan + established tag
   ------------------------------------------------------------------------- */
.hero__slogan {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-500);
  color: var(--gold-deep);
}

.hero__est {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
}

/* Two-column split used on Events / Calendar intros */
.split {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .split--events {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* -------------------------------------------------------------------------
   29. Chips (service tags on the priest feature)
   ------------------------------------------------------------------------- */
.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  display: inline-block;
  font-size: var(--fs-200);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(200, 155, 60, 0.14);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   30. Donation — scannable payment QR codes
   ------------------------------------------------------------------------- */
.give-block {
  display: grid;
  gap: 0.6rem;
}

.give-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.give-qr__link {
  display: block;
  line-height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.give-qr__img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  display: block;
}

.give-qr__cap {
  font-size: var(--fs-200);
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

/* -------------------------------------------------------------------------
   31. Flyer / poster gallery
   ------------------------------------------------------------------------- */
.poster-wall {
  column-width: 250px;
  column-gap: var(--space-5);
}

.poster {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-5);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.poster:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.poster img {
  width: 100%;
  height: auto;
  display: block;
}

.poster__cap {
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: center;
}

/* A single featured poster (e.g. the calendar page's official poster) */
.poster-feature {
  max-width: 620px;
  margin-inline: auto;
}

.poster-feature .framed__inner {
  aspect-ratio: auto;
  display: block;
}

.poster-feature .framed__inner img {
  position: static;
  height: auto;
}

/* -------------------------------------------------------------------------
   32. Temple Assistant (chatbot)
   ------------------------------------------------------------------------- */
.tassist {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 120;
}

.tassist__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-saffron);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-300);
  cursor: pointer;
  box-shadow: var(--shadow-gold), 0 10px 24px -10px rgba(70, 20, 10, 0.5);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.tassist__launcher:hover {
  transform: translateY(-2px);
}

.tassist.is-open .tassist__launcher {
  display: none;
}

.tassist__launcher-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.15rem;
  line-height: 1;
}

.tassist__panel {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  width: min(370px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 2rem));
  /* dvh tracks the real visible viewport on mobile (browser chrome shrinks
     100vh and clipped the panel header); older browsers keep the vh line. */
  height: min(560px, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: tassist-in var(--dur) var(--ease);
}

.tassist__panel[hidden] {
  display: none;
}

@keyframes tassist-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.tassist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--grad-red);
  color: #fff;
}

.tassist__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-500);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tassist__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.tassist__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tassist__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(244, 166, 35, 0.08), transparent 60%),
    var(--cream);
}

.tassist__msg {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: var(--fs-300);
  line-height: 1.55;
  word-wrap: break-word;
}

.tassist__msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.tassist__msg--user {
  align-self: flex-end;
  background: var(--grad-red);
  color: var(--on-red);
  border-bottom-right-radius: 4px;
}

.tassist__msg a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.tassist__msg--user a {
  color: var(--gold-bright);
}

.tassist__dots {
  display: inline-flex;
  gap: 4px;
}

.tassist__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: tassist-dot 1s infinite ease-in-out;
}

.tassist__dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.tassist__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes tassist-dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.tassist__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.8rem 0.6rem;
}

.tassist__chip {
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.tassist__chip:hover {
  border-color: var(--gold);
  background: rgba(200, 155, 60, 0.12);
  color: var(--red);
}

.tassist__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.tassist__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus. */
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}

.tassist__input:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 1px;
}

.tassist__send {
  flex: none;
  width: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-saffron);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.tassist__note {
  margin: 0;
  padding: 0 0.9rem 0.6rem;
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-align: center;
}

/* Stack the back-to-top button above the assistant launcher */
.back-to-top {
  bottom: calc(clamp(1rem, 3vw, 1.6rem) + 62px);
}

@media (prefers-reduced-motion: reduce) {
  .tassist__panel {
    animation: none;
  }
  .tassist__dots i {
    animation: none;
  }
}

/* -------------------------------------------------------------------------
   33. Overlap guards, past festivals, first-visit FAQ
   ------------------------------------------------------------------------- */
/* The open chat panel occupies the bottom-right corner — retire the
   back-to-top button while it is open. */
body.tassist-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

/* The mobile nav drawer slides in from the right; hide the floating chat
   launcher so it cannot cover the drawer's own controls. */
body:has(.site-nav__list.is-open) .tassist {
  display: none;
}

/* Festivals whose date has passed (class added by temple.js). */
.festival.is-past {
  opacity: 0.62;
}

.festival.is-past .festival__date::after {
  content: "✓";
  display: block;
  font-size: var(--fs-200);
  color: var(--gold-deep);
  margin-top: 0.15rem;
}

/* First-visit FAQ (native disclosure widgets, keyboard-accessible for free) */
.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  color: var(--red);
  font-size: var(--fs-400);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
  font-size: var(--fs-300);
}

/* Etiquette quick-tips row on the first-visit guide */
.etiquette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.etiquette li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  font-size: var(--fs-300);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.etiquette__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.etiquette strong {
  display: block;
  color: var(--red);
  margin-bottom: 0.15rem;
}

/* -------------------------------------------------------------------------
   34. Deity "about" text in the darshan niches
   ------------------------------------------------------------------------- */
.niche__about {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed rgba(200, 155, 60, 0.45);
  font-size: var(--fs-300);
  color: var(--ink-soft);
  text-align: left;
}

/* Grid variant of the poster wall — used when there are only a few posters,
   where multicol balancing would bunch them into the first columns. */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.poster-grid .poster {
  margin-bottom: 0;
}
