/* ==========================================================================
   MAHADEV MANDIR — DESIGN SYSTEM
   A "carved stone plaque" visual language: Kailash-night depth, aged brass,
   vibhuti ash, sindoor and bel-patra green. One shared emblem motif ties
   every section together the way a temple courtyard repeats its carvings.
   ========================================================================== */

:root {
  /* ---- Color: named after the material it represents ---- */
  --kailash-night: #16232e;   /* deep slate-indigo — hero / footer / dark grounds */
  --neelkanth: #0f3b44;       /* deep throat-blue teal — gradient depth */
  --brass: #b8863b;           /* aged temple brass — primary accent */
  --brass-light: #d9b673;     /* polished brass highlight */
  --brass-dim: #8a6529;       /* brass in shadow, for text-on-light */
  --vibhuti: #eee9dc;         /* sacred ash — light section background */
  --paper: #fbf8f2;           /* warm paper — card surface */
  --sindoor: #8c2f2f;         /* deep vermilion — secondary accent, tags */
  --bel: #3e5641;             /* bel-patra green — tertiary accent */
  --ink: #201c16;             /* body text, warm near-black */
  --ink-soft: #5b5548;        /* muted secondary text */
  --ink-faint: #8b8577;       /* tertiary text, captions */
  --line: rgba(32, 28, 22, 0.12);
  --line-on-dark: rgba(238, 233, 220, 0.16);

  /* ---- Type ---- */
  --font-display: 'Marcellus', 'Georgia', serif;
  --font-devanagari: 'Tiro Devanagari Hindi', serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-plaque: 'IBM Plex Mono', 'Courier New', monospace;

  /* ---- Spacing scale ---- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8.5rem;

  /* ---- Shape / elevation ---- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 30px -12px rgba(22, 35, 46, 0.28);
  --shadow-lift: 0 20px 45px -18px rgba(22, 35, 46, 0.38);

  /* ---- Motion ---- */
  --ease-temple: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 220ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  --container: 1200px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--brass); color: var(--paper); }

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--kailash-night);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.35rem, 1.4vw + 1rem, 1.75rem); }
h4 { font-size: 1.15rem; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p { color: var(--vibhuti); }

p { color: var(--ink-soft); }

.lede {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.devanagari {
  font-family: var(--font-devanagari);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-plaque);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.on-dark .eyebrow { color: var(--brass-light); }

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.plaque-date {
  font-family: var(--font-plaque);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--brass-dim);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

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

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: 720px;
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: var(--space-md);
}

.section--ash { background: var(--vibhuti); }
.section--night {
  background: linear-gradient(175deg, var(--kailash-night) 0%, var(--neelkanth) 130%);
}

.grain {
  position: relative;
  isolation: isolate;
}

/* ==========================================================================
   Ornaments — the shared plaque motif
   ========================================================================== */

.ornament-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--brass);
  margin-block: var(--space-md);
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.ornament-divider svg { width: 26px; height: 26px; flex-shrink: 0; }

.plaque-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brass);
  opacity: 0.55;
}
.plaque-corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.plaque-corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.85em 1.7em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-temple),
              background-color var(--dur-fast) var(--ease-temple),
              border-color var(--dur-fast) var(--ease-temple),
              color var(--dur-fast) var(--ease-temple);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--kailash-night);
}
.btn--brass:hover { background: var(--brass-light); }

.btn--ghost-dark {
  border-color: var(--line-on-dark);
  color: var(--vibhuti);
}
.btn--ghost-dark:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-dim); }

.btn--sm { padding: 0.6em 1.2em; font-size: 0.8rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 35, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-dark);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--vibhuti);
}
.brand__mark { width: 34px; height: 34px; color: var(--brass-light); flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; }
.brand__sub { font-family: var(--font-devanagari); font-size: 0.72rem; color: var(--brass-light); opacity: 0.85; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav-desktop a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vibhuti);
  opacity: 0.82;
  position: relative;
  padding-block: 4px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--brass-light);
  transition: right var(--dur-fast) var(--ease-temple);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { opacity: 1; }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--vibhuti);
}
.nav-toggle span { width: 22px; height: 1.5px; background: currentColor; transition: transform var(--dur-fast) var(--ease-temple), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-temple);
  background: var(--kailash-night);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav-mobile[data-open="true"] { grid-template-rows: 1fr; }
.nav-mobile__inner { overflow: hidden; }
.nav-mobile ul { display: flex; flex-direction: column; padding: var(--space-sm) var(--space-md) var(--space-md); gap: var(--space-2xs); }
.nav-mobile a {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 1rem;
  color: var(--vibhuti);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav-mobile a[aria-current="page"] { color: var(--brass-light); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* ==========================================================================
   Photo Carousel — Google Drive (home, top of page)
   ========================================================================== */

.photo-carousel { background: var(--kailash-night); }
.photo-carousel__viewport {
  position: relative;
  width: 100%;
  height: min(64vh, 620px);
  min-height: 320px;
  overflow: hidden;
}

.photo-carousel__track { position: absolute; inset: 0; }

.photo-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-temple);
}
.photo-carousel__slide[data-active="true"] { opacity: 1; visibility: visible; }
.photo-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-carousel__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,46,0.05) 0%, rgba(22,35,46,0.55) 100%);
  pointer-events: none;
}

.photo-carousel__loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm);
  color: rgba(238,233,220,0.6);
  font-family: var(--font-plaque);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.photo-carousel__spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(238,233,220,0.2);
  border-top-color: var(--brass-light);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo-carousel__caption {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  width: 100%;
  color: var(--vibhuti);
  pointer-events: none;
}
.photo-carousel__caption .eyebrow { color: var(--brass-light); }
.photo-carousel__caption h2 { color: var(--vibhuti); margin-top: var(--space-2xs); }

.photo-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(238,233,220,0.35);
  background: rgba(22,35,46,0.45);
  backdrop-filter: blur(2px);
  color: var(--vibhuti);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.photo-carousel__arrow:hover { background: rgba(22,35,46,0.75); border-color: var(--brass-light); }
.photo-carousel__arrow svg { width: 16px; height: 16px; }
.photo-carousel__arrow--prev { left: var(--space-sm); }
.photo-carousel__arrow--next { right: var(--space-sm); }

.photo-carousel__dots {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 3;
  display: flex; gap: 7px;
}
.photo-carousel__dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(238,233,220,0.4);
  transition: background var(--dur-fast), width var(--dur-fast) var(--ease-temple);
}
.photo-carousel__dots button[aria-current="true"] { background: var(--brass-light); width: 20px; border-radius: 4px; }

.photo-carousel__empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(238,233,220,0.55);
  text-align: center;
  padding: var(--space-lg);
}

@media (min-width: 700px) {
  .photo-carousel__arrow { width: 48px; height: 48px; }
  .photo-carousel__arrow--prev { left: var(--space-md); }
  .photo-carousel__arrow--next { right: var(--space-md); }
  .photo-carousel__caption { padding: var(--space-2xl) var(--space-lg) var(--space-xl); }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(175deg, var(--kailash-night) 0%, var(--neelkanth) 150%);
  color: var(--vibhuti);
  overflow: hidden;
  padding-block: var(--space-3xl) var(--space-2xl);
}

.hero__stars { position: absolute; inset: 0; z-index: 0; opacity: 0.7; }
.hero__stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--vibhuti);
  animation: twinkle 4.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.hero__copy { max-width: 620px; }
.hero__copy .devanagari { color: var(--brass-light); display: block; margin-bottom: var(--space-sm); font-size: 1.3rem; }
.hero__copy h1 { margin-block: var(--space-sm); }
.hero__copy p.lede { color: rgba(238,233,220,0.78); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

.hero__emblem {
  justify-self: center;
  width: min(360px, 78vw);
  color: var(--brass-light);
  filter: drop-shadow(0 0 40px rgba(217, 182, 115, 0.25));
  animation: emblem-glow 6s ease-in-out infinite;
}
@keyframes emblem-glow {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(217, 182, 115, 0.18)); }
  50% { filter: drop-shadow(0 0 48px rgba(217, 182, 115, 0.38)); }
}

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

/* ==========================================================================
   Highlights / quick links (home)
   ========================================================================== */

.highlight-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.highlight-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  transition: transform var(--dur-med) var(--ease-temple), box-shadow var(--dur-med) var(--ease-temple), border-color var(--dur-med);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--brass); }
.highlight-card__icon { width: 40px; height: 40px; color: var(--brass); margin-bottom: var(--space-sm); }
.highlight-card h3 { margin-bottom: var(--space-2xs); font-size: 1.2rem; }
.highlight-card p { font-size: 0.92rem; margin-bottom: var(--space-sm); }
.highlight-card a.card-link {
  font-family: var(--font-plaque);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.highlight-card a.card-link svg { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease-temple); }
.highlight-card:hover a.card-link svg { transform: translateX(4px); }

/* ==========================================================================
   Mandir intro (home)
   ========================================================================== */

.intro-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
.intro-grid__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--vibhuti), #ded6c2);
  border: 1px solid var(--line);
}
.intro-grid__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ==========================================================================
   Carousel (recent events)
   ========================================================================== */

.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.event-card {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 82vw);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-temple), box-shadow var(--dur-med);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.event-card__media {
  aspect-ratio: 16 / 11;
  background: var(--vibhuti);
  position: relative;
  overflow: hidden;
}
.event-card__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-lg); }
.event-card__body { padding: var(--space-md); }
.event-card__date { margin-bottom: var(--space-2xs); }
.event-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2xs); }
.event-card p { font-size: 0.9rem; }
.event-card__count {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  background: rgba(22,35,46,0.78);
  color: var(--vibhuti);
  font-family: var(--font-plaque);
  font-size: 0.7rem;
  padding: 0.3em 0.65em;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.carousel__nav {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.carousel__arrows { display: flex; gap: var(--space-xs); }
.carousel__arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.carousel__arrow:hover { background: var(--kailash-night); border-color: var(--kailash-night); color: var(--vibhuti); }
.carousel__arrow svg { width: 16px; height: 16px; }

.carousel__dots { display: flex; gap: 7px; }
.carousel__dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  transition: background var(--dur-fast), width var(--dur-fast) var(--ease-temple);
}
.carousel__dots button[aria-current="true"] { background: var(--brass); width: 20px; border-radius: 4px; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.album-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.album-card {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform var(--dur-med) var(--ease-temple), box-shadow var(--dur-med);
}
.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.album-card__cover {
  aspect-ratio: 4 / 3;
  background: var(--vibhuti);
  position: relative;
  overflow: hidden;
}
.album-card__cover img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-lg); transition: transform var(--dur-slow) var(--ease-temple); }
.album-card:hover .album-card__cover img { transform: scale(1.06); }
.album-card__count {
  position: absolute; bottom: var(--space-sm); left: var(--space-sm);
  font-family: var(--font-plaque); font-size: 0.72rem;
  background: rgba(22,35,46,0.82); color: var(--vibhuti);
  padding: 0.3em 0.7em; border-radius: 999px;
}
.album-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.album-card h3 { font-size: 1.1rem; margin-bottom: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 20, 24, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-temple), visibility 0s linear var(--dur-med);
  padding: var(--space-md);
}
.lightbox[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-med) var(--ease-temple);
}
.lightbox__frame {
  position: relative;
  width: min(760px, 100%);
  transform: scale(0.96);
  transition: transform var(--dur-med) var(--ease-temple);
}
.lightbox[data-open="true"] .lightbox__frame { transform: scale(1); }
.lightbox__media {
  aspect-ratio: 4/3;
  background: var(--vibhuti);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__media img { width: 60%; height: 60%; object-fit: contain; }
.lightbox__caption {
  color: var(--vibhuti);
  margin-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: var(--space-sm);
}
.lightbox__caption span:last-child { font-family: var(--font-plaque); color: var(--brass-light); font-size: 0.78rem; white-space: nowrap; }
.lightbox__close {
  position: absolute; top: -46px; right: 0;
  color: var(--vibhuti); width: 34px; height: 34px;
}
.lightbox__close svg { width: 100%; height: 100%; }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; translate: 0 -50%;
  color: var(--vibhuti);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.14); }
.lightbox__prev { left: -20px; }
.lightbox__next { right: -20px; }
@media (max-width: 640px) {
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

/* ==========================================================================
   Committee
   ========================================================================== */

.committee-group { margin-bottom: var(--space-xl); }
.committee-group__label {
  font-family: var(--font-plaque);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

.member-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--dur-med) var(--ease-temple), box-shadow var(--dur-med);
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.member-card__photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  background: var(--vibhuti);
  border: 2px solid var(--brass-light);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.member-card__photo img { width: 60%; height: 60%; object-fit: contain; }
.member-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.member-card__role { color: var(--brass-dim); font-size: 0.85rem; margin-bottom: var(--space-sm); }
.member-card__contact { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--ink-soft); }
.member-card__contact a:hover { color: var(--brass-dim); }

/* ==========================================================================
   Notice board
   ========================================================================== */

.notice-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: var(--space-lg);
  gap: 4px;
}
.notice-tabs button {
  padding: 0.55em 1.3em;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.notice-tabs button[aria-selected="true"] {
  background: var(--kailash-night);
  color: var(--vibhuti);
}

.notice-list { display: flex; flex-direction: column; gap: var(--space-md); }

.notice-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
}
.notice-item[data-status="past"] { border-left-color: var(--line); opacity: 0.72; }

.notice-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
  margin-bottom: 2px;
}
.notice-item__tag {
  font-family: var(--font-plaque);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  color: var(--paper);
  background: var(--bel);
}
.notice-item__tag[data-cat="Festival"] { background: var(--sindoor); }
.notice-item__tag[data-cat="Puja"] { background: var(--brass-dim); }
.notice-item__tag[data-cat="Meeting"] { background: var(--neelkanth); }
.notice-item__tag[data-cat="Announcement"] { background: var(--bel); }

.notice-item__status {
  font-family: var(--font-plaque);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.notice-item[data-status="past"] .notice-item__status { color: var(--ink-faint); }

.notice-item h3 { font-size: 1.15rem; margin-bottom: var(--space-2xs); }
.notice-item__when { font-family: var(--font-plaque); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: var(--space-2xs); }
.notice-item p { font-size: 0.92rem; }

@media (min-width: 720px) {
  .notice-item { grid-template-columns: 190px 1fr; align-items: start; }
  .notice-item__when-col { display: flex; flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--kailash-night);
  color: var(--vibhuti);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand__mark { width: 40px; height: 40px; color: var(--brass-light); margin-bottom: var(--space-sm); }
.footer-brand p { color: rgba(238,233,220,0.65); max-width: 32ch; font-size: 0.9rem; }
.footer-col h4 { color: var(--brass-light); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); font-family: var(--font-plaque); font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2xs); }
.footer-col a, .footer-col address { color: rgba(238,233,220,0.75); font-size: 0.92rem; font-style: normal; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  justify-content: space-between;
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: rgba(238,233,220,0.5);
}

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

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-temple), transform var(--dur-slow) var(--ease-temple);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Empty state
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--ink-faint);
}
.empty-state svg { width: 46px; height: 46px; margin-inline: auto var(--space-sm); color: var(--brass); opacity: 0.6; }

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */

.page-banner {
  background: linear-gradient(175deg, var(--kailash-night) 0%, var(--neelkanth) 150%);
  color: var(--vibhuti);
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
}
.page-banner .devanagari { color: var(--brass-light); }
.page-banner h1 { margin-block: var(--space-sm); }
.page-banner p { color: rgba(238,233,220,0.75); max-width: 56ch; margin-inline: auto; }

/* ==========================================================================
   Utility
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.mt-lg { margin-top: var(--space-lg); }
.text-center { text-align: center; }
