/* =========================================================
   Aaladi Vinayagar - Home page 2 (temple theme)
   Standalone stylesheet: maroon, saffron, turmeric gold, sandal.
   ========================================================= */

:root {
  --maroon: #6e1418;
  --maroon-2: #8f1d1f;
  --maroon-dark: #3f0b0d;
  --saffron: #e8700f;
  --gold: #d6a23c;
  --gold-light: #f3d79a;
  --sandal: #f6ead3;
  --cream: #fdf8ee;
  --ink: #2b1b12;
  --muted: #6c5848;
  --line: #ead8b6;
  --leaf: #2f6b2f;
  --white: #ffffff;

  --radius: 14px;
  --shadow: 0 14px 34px -18px rgba(63, 11, 13, 0.45);
  --font-body: "Mukta Malar", "Nirmala UI", system-ui, sans-serif;
  --font-head: "Marcellus", Georgia, serif;
  --header-h: 76px;
}
.lang-ta { --font-head: "Noto Serif Tamil", "Mukta Malar", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--maroon-2); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 0.5em; color: var(--maroon-dark); }
.lang-ta h1, .lang-ta h2, .lang-ta h3 { line-height: 1.45; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
section[id], main { scroll-margin-top: calc(var(--header-h) + 12px); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.55rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #f2c35a, var(--gold)); color: var(--maroon-dark); box-shadow: 0 8px 18px -8px rgba(214, 162, 60, 0.9); }
.btn-gold:hover { background: linear-gradient(180deg, #f7d27a, #e1ad48); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-2); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light { border-color: var(--gold-light); color: #fff; background: transparent; }
.btn-outline-light:hover { background: var(--gold-light); color: var(--maroon-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--gold-light); border-color: rgba(243, 215, 154, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.text-link { font-weight: 700; color: var(--maroon-2); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.text-link:hover { text-decoration: underline; }

/* ---------- decorative ---------- */
/* lamp ornament under headings */
.orn {
  display: block; width: 168px; height: 26px; margin: 0.25rem auto 1.25rem;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 26'%3E%3Cpath d='M0 16h62M106 16h62' stroke='%23d6a23c' stroke-width='2'/%3E%3Ccircle cx='58' cy='16' r='2.5' fill='%23d6a23c'/%3E%3Ccircle cx='110' cy='16' r='2.5' fill='%23d6a23c'/%3E%3Cpath d='M68 15 Q84 27 100 15 Z' fill='%23d6a23c'/%3E%3Cpath d='M84 14 C79 9 82 4 84 0 C86 4 89 9 84 14Z' fill='%23e8700f'/%3E%3C/svg%3E");
}
.orn-left { margin-left: 0; }
.orn-light { filter: brightness(1.35); }

/* kolam dot pattern */
.kolam-bg {
  background-color: var(--sandal);
  background-image:
    radial-gradient(circle, rgba(110, 20, 24, 0.13) 1.6px, transparent 2.2px),
    linear-gradient(45deg, transparent 48.5%, rgba(214, 162, 60, 0.12) 49.5%, rgba(214, 162, 60, 0.12) 50.5%, transparent 51.5%),
    linear-gradient(-45deg, transparent 48.5%, rgba(214, 162, 60, 0.12) 49.5%, rgba(214, 162, 60, 0.12) 50.5%, transparent 51.5%);
  background-size: 26px 26px, 52px 52px, 52px 52px;
}

/* mango-leaf thoranam under the header */
.thoranam {
  height: 30px; position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none;
  background: repeat-x top left/56px 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M0 3 Q16 9 32 3 T64 3' fill='none' stroke='%23b8862b' stroke-width='2'/%3E%3Cpath d='M32 4 C23 14 23 32 32 45 C41 32 41 14 32 4Z' fill='%232f6b2f'/%3E%3Cpath d='M32 8 V40' stroke='%238dbb6e' stroke-width='1.2'/%3E%3Ccircle cx='0' cy='5' r='5.5' fill='%23f28c18'/%3E%3Ccircle cx='64' cy='5' r='5.5' fill='%23f28c18'/%3E%3Ccircle cx='16' cy='8' r='3.6' fill='%23f2c533'/%3E%3Ccircle cx='48' cy='8' r='3.6' fill='%23f2c533'/%3E%3C/svg%3E");
}

.round-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #a3282a, var(--maroon));
  color: var(--gold-light); font-size: 1.4rem;
  box-shadow: 0 0 0 4px var(--sandal), 0 0 0 5px var(--gold);
}

/* ---------- top bar ---------- */
.topbar { background: var(--maroon-dark); color: #f3e3c4; font-size: 0.9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar-hours { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.4; padding: 6px 0; }
.topbar-hours strong { color: var(--gold-light); font-weight: 600; }
.topbar-lang {
  flex: 0 0 auto; color: var(--maroon-dark); background: var(--gold-light);
  text-decoration: none; font-weight: 700; padding: 3px 14px; border-radius: 999px;
}
.topbar-lang:hover { background: #fff; }
@media (max-width: 640px) {
  .topbar-hours > span:first-of-type, .topbar-hours strong { display: none; }
  .topbar { font-size: 0.82rem; }
}

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; line-height: 1.6;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { background: #e3f3df; color: #24702a; }
.status.is-closed { background: #f8e1df; color: #a42a22; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 238, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(63, 11, 13, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; color: var(--maroon); font-weight: 700; }
.brand-place { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 400px) {
  .brand-name { font-size: 1rem; }
  .brand img { width: 44px; height: 44px; }
}

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 11px; border-radius: 8px; display: block; white-space: nowrap; }
.lang-ta .main-nav a { font-size: 0.95rem; padding: 8px 9px; }
.brand-name, .brand-place { white-space: nowrap; }
.main-nav > ul > li > a:not(.btn):hover { color: var(--maroon-2); background: var(--sandal); }
.main-nav .nav-donate { margin-left: 8px; }
.main-nav .nav-donate .btn { padding: 0.45rem 1.2rem; min-height: 42px; }
.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  display: block; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a:hover { background: var(--sandal); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--maroon); cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--gold-light); border-radius: 2px; transition: 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-open .main-nav { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 0; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px dashed var(--line); }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; min-width: 0; }
  .main-nav .nav-donate { margin: 14px 0 0; }
  .main-nav .nav-donate .btn { width: 100%; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fbeedd; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(232, 112, 15, 0.35), transparent 55%),
    radial-gradient(circle, rgba(243, 215, 154, 0.09) 1.4px, transparent 2px) 0 0/24px 24px,
    linear-gradient(160deg, var(--maroon-2), var(--maroon) 45%, var(--maroon-dark));
  padding: 72px 0 0;
}
.hero-grid { display: grid; gap: 40px; align-items: center; padding-bottom: 96px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-bottom: 120px; } }

.mantra {
  display: inline-block; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-light);
  border: 1px solid rgba(243, 215, 154, 0.45); border-radius: 999px; padding: 2px 16px; margin-bottom: 18px; font-size: 0.95rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 6px;
  text-shadow: 0 3px 0 rgba(63, 11, 13, 0.5);
}
.lang-ta .hero h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
.hero-place { color: var(--gold-light); font-size: 1.1rem; font-weight: 600; margin-bottom: 22px; }
.verse {
  position: relative; margin: 0 0 30px; padding: 18px 22px 18px 26px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent);
  border-radius: 0 12px 12px 0;
}
.verse p { font-size: 1.12rem; font-style: italic; margin-bottom: 6px; color: #fff4e2; line-height: 1.8; }
.verse footer { color: var(--gold-light); font-size: 0.95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
@media (max-width: 899px) { .hero-art { max-width: 300px; } }
.arch {
  position: relative; padding: 10px;
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px;
  background: linear-gradient(180deg, #f6d27d, var(--gold) 40%, #a8741f);
  box-shadow: 0 0 0 6px rgba(243, 215, 154, 0.18), 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 90px rgba(232, 112, 15, 0.45);
}
.arch img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: 50% 50% 10px 10px / 33% 33% 10px 10px;
}
/* brass lamps with flickering flames */
.diya {
  position: absolute; bottom: -14px; width: 54px; height: 22px;
  background: radial-gradient(ellipse at 50% 0%, #f6d27d, #b07a22 70%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.diya::before {
  content: ""; position: absolute; left: 50%; bottom: 18px; width: 14px; height: 24px; margin-left: -7px;
  background: radial-gradient(ellipse at 50% 70%, #fff6c8 10%, #ffc23a 40%, #f2700f 75%, transparent 76%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  filter: drop-shadow(0 0 10px rgba(255, 170, 40, 0.9));
  animation: flicker 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.diya-left { left: -12px; }
.diya-right { right: -12px; }
.diya-right::before { animation-delay: 0.7s; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  30% { transform: scale(1.08, 0.94) rotate(2deg); }
  60% { transform: scale(0.95, 1.06) rotate(-1deg); }
}

.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; color: var(--cream); }

/* ---------- quick info strip ---------- */
.info-strip { position: relative; z-index: 3; margin-top: -48px; }
.info-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 22px;
  border-top: 4px solid var(--gold); box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.05rem; margin-bottom: 4px; color: var(--maroon); }
.info-value { margin: 0 0 6px; font-weight: 700; line-height: 1.5; }
.info-value.muted { font-weight: 400; }
.info-sub { margin: 0; font-size: 0.92rem; color: var(--muted); }
.countdown { color: var(--saffron); font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.eyebrow {
  margin: 0 0 6px; color: var(--saffron); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem;
}
.lang-ta .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0; }
.lang-ta .section-title { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }

/* about */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about-img { position: relative; }
.about-img::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-img img { border-radius: var(--radius); width: 100%; height: auto; box-shadow: var(--shadow); }
@media (max-width: 767px) { .about-img { margin-right: 12px; } .about-img::before { inset: 12px -12px -12px 12px; } }
body { overflow-x: clip; }
.about-grid > div { position: relative; z-index: 1; }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.feature-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--sandal); border: 1px solid var(--line); border-radius: 999px; font-weight: 600;
}
.feature-list i { color: var(--saffron); }

/* poojas */
.pooja-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .pooja-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.panel h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.panel h3 i { color: var(--saffron); }
.pooja-list li {
  display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.pooja-list li:last-child { border-bottom: 0; }
.pj-time { flex: 0 0 auto; min-width: 104px; font-weight: 700; color: var(--maroon-2); font-variant-numeric: tabular-nums; }
.hours-list li {
  font-size: 1.2rem; font-weight: 700; color: var(--maroon); padding: 10px 14px; margin-bottom: 10px;
  background: var(--sandal); border-left: 4px solid var(--gold); border-radius: 8px;
}
.small-note { font-size: 0.92rem; color: var(--muted); margin: 14px 0 0; }
.special-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; line-height: 1.5; }
.special-list li:last-child { border-bottom: 0; }
.special-list strong { color: var(--maroon-2); }
.special-list span { font-size: 0.95rem; color: var(--muted); }

/* offerings */
.offer-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer-card {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px; transition: transform 0.3s, box-shadow 0.3s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer-card .round-icon { margin-bottom: 16px; }
.offer-card h3 { font-size: 1.25rem; }
.offer-card p { margin: 0; color: var(--muted); }
.center-note { text-align: center; margin: 28px 0 0; }

/* festivals */
.fest-group + .fest-group { margin-top: 44px; }
.fest-group-title {
  display: flex; align-items: center; gap: 14px; font-size: 1.3rem; color: var(--maroon);
}
.fest-group-title::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.6; }
.fest-grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .fest-grid { grid-template-columns: repeat(2, 1fr); } }
.fest-card {
  display: grid; grid-template-columns: 140px 1fr; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (max-width: 480px) { .fest-card { grid-template-columns: 1fr; } .fest-img img { aspect-ratio: 16 / 9; } }
.fest-img img { width: 100%; height: 100%; object-fit: cover; }
.fest-body { padding: 18px 20px; }
.fest-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.fest-body p { margin-bottom: 8px; color: var(--muted); font-size: 0.97rem; }
.fest-date { color: var(--saffron) !important; font-weight: 700; margin-bottom: 4px !important; }
.fest-card.is-past { opacity: 0.92; }
.fest-card.is-past .fest-img img { filter: saturate(0.8); }
.fest-none {
  background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px 20px; margin: 0; color: var(--muted);
}
.fest-none i { color: var(--saffron); }

/* donation */
.donate {
  color: #f9ead2;
  background:
    radial-gradient(circle, rgba(243, 215, 154, 0.08) 1.4px, transparent 2px) 0 0/24px 24px,
    linear-gradient(170deg, var(--maroon), var(--maroon-dark));
}
.donate h2, .donate h3 { color: #fff; }
.donate .eyebrow { color: var(--gold-light); }
.appeal-grid { display: grid; gap: 36px; align-items: center; margin-bottom: 72px; }
@media (min-width: 900px) { .appeal-grid { grid-template-columns: 0.75fr 1.25fr; gap: 56px; } }
.appeal-img img {
  width: 100%; max-width: 380px; margin: 0 auto; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; border: 6px solid var(--gold);
}
.appeal-grid p { font-size: 1.1rem; }
.donate-head p { margin-top: 0; }
.bank-grid { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .bank-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }
.bank-card {
  background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 26px;
  border-top: 5px solid var(--gold); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.bank-card h3 { color: var(--maroon-dark); margin: 0; font-size: 1.2rem; }
.bank-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line); }
.bank-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--saffron); }
.bank-rows { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; }
.bank-rows dt { color: var(--muted); font-size: 0.93rem; }
.bank-rows dd { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.bank-value { font-variant-numeric: tabular-nums; }
.bank-card:only-child { width: 100%; max-width: 620px; justify-self: center; grid-column: 1 / -1; }
.bank-pending {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-style: italic;
  color: var(--saffron); background: #fff1e0; border: 1px dashed var(--saffron);
  border-radius: 999px; padding: 1px 12px; font-size: 0.92rem;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--maroon-2); background: transparent;
  color: var(--maroon-2); border-radius: 999px; font: 700 0.75rem/1.4 var(--font-body); padding: 2px 10px; cursor: pointer;
}
.copy-btn:hover, .copy-btn.copied { background: var(--maroon-2); color: #fff; }
@media (max-width: 420px) {
  .bank-card { padding: 20px; }
  .bank-rows { grid-template-columns: 1fr; gap: 0; }
  .bank-rows dd { margin-bottom: 10px; }
}
.donation-note {
  max-width: 980px; margin: 26px auto 0; padding: 16px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.07); border-left: 4px solid var(--gold); color: #f9ead2;
}
.donation-note:empty { display: none; }

/* gallery */
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.gallery-grid a { display: block; overflow: hidden; border-radius: 12px; position: relative; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 12px; transition: border-color 0.3s; }
.gallery-grid a:hover::after { border-color: var(--gold); }
.gallery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.video-wrap { max-width: 900px; margin: 56px auto 0; }
.video-title { font-size: 1.3rem; text-align: center; }
.video-wrap video { width: 100%; height: auto; border-radius: var(--radius); background: #000; border: 5px solid var(--gold); box-shadow: var(--shadow); }

/* contact */
.contact-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 2px; color: var(--maroon); }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--maroon-2); text-decoration: underline; }
.guidelines ul li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); }
.guidelines ul li:last-child { border-bottom: 0; }
.guidelines ul li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 10px;
  background: var(--saffron); transform: rotate(45deg); border-radius: 2px;
}
.map-wrap:empty { display: none; }
.map-wrap { margin-top: 24px; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.social-wrap { text-align: center; margin-top: 36px; }
.social-wrap p { font-weight: 700; margin-bottom: 10px; }
.social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--maroon); color: var(--gold-light); font-size: 1.2rem; text-decoration: none; transition: 0.2s;
}
.social a:hover { background: var(--saffron); color: #fff; }

/* banner */
.banner {
  position: relative; text-align: center; padding: 96px 0; color: #fff;
  background: linear-gradient(rgba(63, 11, 13, 0.78), rgba(110, 20, 24, 0.82)), url("../images/opt/procession.webp") center/cover no-repeat;
}
.banner-text { font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 3.4rem); margin: 0; color: var(--gold-light); text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4); line-height: 1.4; }

/* footer */
.site-footer { background: #23090a; color: #e9d7b8; padding: 64px 0 0; font-size: 0.97rem; }
.site-footer h2 { color: var(--gold-light); font-size: 1.15rem; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-footer .brand-name { color: var(--gold-light); }
.brand-footer .brand-place { color: #c8b291; }
.brand-footer img { filter: invert(1) sepia(0.6) saturate(2) hue-rotate(5deg) brightness(1.05); }
.footer-about { margin: 14px 0 18px; }
.site-footer .social { justify-content: flex-start; }
.footer-links li, .footer-contact li { padding: 4px 0; }
.footer-links a, .footer-contact a { color: #e9d7b8; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-contact i { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(243, 215, 154, 0.15); margin-top: 44px; padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 0.88rem; color: #bfa98a; }
.footer-bottom p { margin: 0; }

/* ---------- gallery pages ---------- */
.main-nav .is-active > a, .main-nav a[aria-current="page"] { color: var(--maroon-2); }
.main-nav .is-active > a { background: var(--sandal); }

.page-hero {
  position: relative; overflow: hidden; color: #fbeedd; padding: 64px 0 120px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(232, 112, 15, 0.3), transparent 55%),
    radial-gradient(circle, rgba(243, 215, 154, 0.09) 1.4px, transparent 2px) 0 0/24px 24px,
    linear-gradient(160deg, var(--maroon-2), var(--maroon) 50%, var(--maroon-dark));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 8px; text-shadow: 0 3px 0 rgba(63, 11, 13, 0.5); }
.lang-ta .page-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.page-intro { max-width: 640px; color: #f6e4c6; font-size: 1.08rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; margin-bottom: 18px; }
.breadcrumb li { color: var(--gold-light); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: rgba(243, 215, 154, 0.6); }
.breadcrumb a { color: #fbeedd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.album-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.album-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid rgba(243, 215, 154, 0.5); color: #fbeedd; text-decoration: none; font-weight: 700;
}
.album-tab:hover { background: rgba(255, 255, 255, 0.1); }
.album-tab.is-active { background: var(--gold-light); color: var(--maroon-dark); border-color: var(--gold-light); }

.gallery-page { padding-top: 56px; }
.photo-count { font-weight: 700; color: var(--maroon); margin-bottom: 18px; }
.photo-count i { color: var(--saffron); }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.g-item {
  display: block; position: relative; overflow: hidden; border-radius: 12px;
  background: var(--line); box-shadow: 0 8px 20px -14px rgba(63, 11, 13, 0.6);
}
.g-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s; }
.g-item::after {
  content: "\f62c"; font-family: "bootstrap-icons"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
  background: rgba(63, 11, 13, 0.45); opacity: 0; transition: opacity 0.3s;
  border: 3px solid var(--gold); border-radius: 12px;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }

.album-grid { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
.album-card {
  display: flex; gap: 16px; align-items: center; padding: 14px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.album-card:hover { transform: translateY(-4px); }
.album-card img { width: 96px; height: 96px; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; border: 3px solid var(--gold); object-fit: cover; flex: 0 0 auto; }
.album-meta { display: flex; flex-direction: column; line-height: 1.5; }
.album-meta strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--maroon-dark); }
.album-meta > span { color: var(--muted); font-size: 0.95rem; }
.album-meta .album-go { color: var(--maroon-2); font-weight: 700; margin-top: 4px; }
.album-card.is-current { border-color: var(--gold); background: var(--sandal); }
.album-card.is-current .album-go { color: var(--saffron); }

.cta-band { background: var(--sandal); border-top: 1px solid var(--line); padding: 44px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.cta-inner > div { flex: 1 1 320px; }
.cta-inner h2 { font-size: 1.5rem; margin-bottom: 2px; }
.cta-inner p { margin: 0; color: var(--muted); }

/* photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 4, 5, 0.94); padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lb-open { overflow: hidden; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto;
  border: 4px solid var(--gold); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); transition: opacity 0.2s;
}
.lightbox.loading .lb-img { opacity: 0.4; }
.lb-caption { color: var(--gold-light); margin-top: 12px; font-weight: 700; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold-light);
  background: rgba(110, 20, 24, 0.85); color: var(--gold-light); font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: var(--maroon-2); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-img { max-height: calc(100vh - 190px); }
}

/* ---------- background song button ---------- */
.music-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--gold-light);
  background: var(--maroon); color: var(--gold-light); font-size: 1.45rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(63, 11, 13, 0.7); transition: transform 0.2s;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle.playing { animation: pulse 2s ease-out infinite; }
.music-toggle.missing { background: #8a7d74; border-color: #cfc5bb; cursor: not-allowed; animation: none; }
.music-bars {
  position: absolute; top: -6px; right: -6px; display: none; align-items: flex-end; gap: 2px;
  height: 20px; padding: 3px 5px; background: var(--gold-light); border-radius: 8px;
}
.music-bars span { width: 3px; height: 40%; background: var(--maroon); border-radius: 2px; animation: bar 0.9s ease-in-out infinite; }
.music-bars span:nth-child(2) { animation-delay: 0.2s; }
.music-bars span:nth-child(3) { animation-delay: 0.4s; }
.music-toggle.playing .music-bars { display: flex; }
.music-hint {
  position: fixed; right: 86px; bottom: 28px; z-index: 90; max-width: calc(100vw - 110px);
  background: #fff; color: var(--maroon-dark); font-size: 0.88rem; font-weight: 700;
  padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: 0.4s;
}
.music-hint::after {
  content: ""; position: absolute; right: -7px; top: 50%; margin-top: -7px;
  border: 7px solid transparent; border-right: 0; border-left-color: #fff;
}
.music-hint.show { opacity: 1; transform: none; }
@keyframes bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 162, 60, 0.6); } 100% { box-shadow: 0 0 0 16px rgba(214, 162, 60, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- festival video playlist ---------- */
.video-player video { width: 100%; height: auto; border-radius: var(--radius); background: #000; border: 5px solid var(--gold); box-shadow: var(--shadow); }
.video-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; counter-reset: none; }
.video-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px;
  border: 2px solid var(--maroon); background: transparent; color: var(--maroon);
  font: 700 0.95rem/1.4 var(--font-body); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.video-chip:hover { background: var(--sandal); }
.video-chip.is-current { background: var(--maroon); color: var(--gold-light); }
