﻿/* ============================================================
   Sri Sri Sri Varadhanjaneya Swamy Temple — style.css
   Reorganised, cleaned and improved
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  --bg:            #f7efe3;
  --surface:       rgba(255, 250, 244, 0.85);
  --border:        rgba(168, 92, 32, 0.18);
  --text:          #4a2b10;
  --muted:         #765638;
  --brand:         #a85414;
  --brand-strong:  #7e3204;
  --brand-bright:  #e09a20;
  --gold:          #ffd38a;
  --font-body-en:  "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body-te:  "Noto Sans Telugu", "Nirmala UI", sans-serif;
  --font-heading-en: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-heading-te: "Noto Serif Telugu", "Noto Sans Telugu", "Nirmala UI", serif;
  --shadow:        0 20px 45px rgba(107, 57, 14, 0.12);
  --radius-card:   20px;
  --radius-pill:   999px;
  --header-bg:     rgba(126, 50, 4, 0.9);
  --gold-glow:    rgba(212, 175, 55, 0.3);
  --card-bg:      rgba(255, 252, 240, 0.9);
}

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

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

body {
  font-family: var(--font-body-en);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(233, 182, 84, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(168, 84, 20, 0.14), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 46%, #f5e4c8 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

html[lang="te"] body { font-family: var(--font-body-te); }

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 420px; height: 420px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(237, 182, 88, 0.2) 0%, transparent 72%);
}
body::after {
  width: 340px; height: 340px;
  bottom: -120px; left: -120px;
  background: radial-gradient(circle, rgba(168, 84, 20, 0.12) 0%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, background-color 0.22s ease,
              box-shadow 0.22s ease, color 0.22s ease;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: rgba(168, 84, 20, 0.16);
  touch-action: manipulation;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 226, 171, 0.9);
  outline-offset: 3px;
}

/* ── 3. Utility ───────────────────────────────────────────── */
.is-hidden { display: none !important; }

/* ── 4. Page Loader ───────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 217, 153, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(247, 239, 227, 0.98));
  backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-panel {
  width: min(100%, 360px);
  padding: 1.4rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(168, 92, 32, 0.18);
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 24px 48px rgba(107, 57, 14, 0.12);
  text-align: center;
}

.page-loader-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-loader-title {
  margin: 0.45rem 0 0;
  color: var(--brand-strong);
  font-family: var(--font-heading-en);
  font-size: 1.15rem;
  font-weight: 700;
}
html[lang="te"] .page-loader-title { font-family: var(--font-heading-te); }

.page-loader-countdown-wrap {
  width: 76px;
  height: 76px;
  margin: 1rem auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 214, 142, 0.8), rgba(240, 169, 26, 0.28));
  border: 1px solid rgba(168, 92, 32, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.page-loader-countdown {
  color: var(--brand-strong);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.page-loader-status {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── 5. Header ────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1120px, calc(100% - 24px));
  margin: 16px auto 0;
  padding: 0.85rem 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--header-bg);
  color: #fff8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(79, 34, 3, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.is-android header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 245, 232, 0.18);
  border-radius: 14px;
  padding: 0.18rem;
  border: 1px solid rgba(255, 245, 232, 0.13);
  box-shadow: 0 2px 8px rgba(168, 84, 20, 0.08);
  transition: background 0.18s;
}
.brand-logo-link:hover { background: rgba(255, 245, 232, 0.3); }

.brand-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background: #fffaf4;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(168, 84, 20, 0.13);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand-badge {
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 241, 220, 0.14);
  border: 1px solid rgba(255, 241, 220, 0.25);
  color: #ffe6bc;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

header h1 {
  margin: 0;
  font-family: var(--font-heading-en);
  font-size: clamp(1.1rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fffaf4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.brand-subtitle {
  margin: 0;
  color: #ffe7c2;
  font-size: 0.85rem;
  opacity: 0.9;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 241, 220, 0.14);
  border: 1px solid rgba(255, 241, 220, 0.22);
}

.lang-switch button {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.72);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-switch button.active {
  background: rgba(255, 220, 150, 0.28);
  color: #fffaf4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.lang-switch button:hover:not(.active) {
  color: #fffaf4;
  background: rgba(255, 241, 220, 0.12);
}

.music-toggle-btn {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 241, 220, 0.22);
  border-radius: 50%;
  background: rgba(255, 241, 220, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E")
    center / 52% no-repeat;
  cursor: pointer;
  transition: background-color 0.18s;
}
.music-toggle-btn:hover { background-color: rgba(255, 241, 220, 0.26); }
.music-toggle-btn[aria-pressed="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(255, 241, 220, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 241, 220, 0.14);
  color: #fff8f0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  flex-shrink: 0;
  transition: background 0.18s;
}
.menu-toggle:hover { background: rgba(255, 241, 220, 0.24); }

.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle-bars span {
  width: 18px; height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.88rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 245, 232, 0.12);
  border: 1px solid rgba(255, 245, 232, 0.16);
  color: #fff8f0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
nav a:hover { background: rgba(255, 245, 232, 0.22); transform: translateY(-1px); }
nav a.active {
  background: linear-gradient(135deg, var(--gold), #f2a623);
  color: #4a2800;
  box-shadow: 0 8px 20px rgba(242, 166, 35, 0.28);
  border-color: transparent;
}
nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: -6px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 240, 0.55);
}

.temple-timings.nav-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-left: auto;
  padding: 0.38rem 0.78rem;
  color: #ffe7c2;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.temple-timings.nav-inline .timings-icon {
  display: inline-block;
  width: 1em; height: 1em;
  background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23ffe7c2" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 3"/></svg>') center/contain no-repeat;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Telugu overrides */
html[lang="te"] header h1,
html[lang="te"] .hero-title,
html[lang="te"] section h2 { font-family: var(--font-heading-te); letter-spacing: 0; }
html[lang="te"] header h1,
html[lang="te"] .hero-title { line-height: 1.28; }
html[lang="te"] nav a,
html[lang="te"] .lang-switch button,
html[lang="te"] .music-toggle-btn,
html[lang="te"] .hero-button,
html[lang="te"] .event-banner-label,
html[lang="te"] .hero-kicker,
html[lang="te"] #menuToggleLabel { letter-spacing: 0; line-height: 1.4; }

/* ── 6. Event Banner ──────────────────────────────────────── */
.event-banner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 0.7rem auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 84, 20, 0.09), rgba(224, 154, 32, 0.09));
  border: 1px solid rgba(168, 92, 32, 0.15);
  height: auto;
  padding: 0.3rem 0;
}

.event-banner-marquee {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.event-banner-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
  padding-right: 2.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-strong);
}
.event-banner-track:nth-child(2) { animation-delay: -14s; }

.event-banner-label {
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 84, 20, 0.1);
  flex-shrink: 0;
}

.event-banner-item { opacity: 0.85; }
.event-banner-item::before { content: "·"; margin-right: 1rem; opacity: 0.4; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.event-banner-marquee:hover .event-banner-track { animation-play-state: paused; }

/* ── 7. Main layout ───────────────────────────────────────── */
main {
  width: min(1120px, calc(100% - 24px));
  margin: 1.1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Inner container used by planetary / pooja sections */
.container {
  width: 100%;
  max-width: 100%;
}

/* Sections that opt into extra vertical breathing room */
.section-padding {
  padding: 2rem 1.5rem;
}

@media (max-width: 600px) {
  .section-padding { padding: 1.25rem 1rem; }
}

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2rem 2rem;
  border-radius: 24px;
  background:
    linear-gradient(to top, rgba(60, 20, 0, 0.82) 0%, rgba(40, 12, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%),
    url('../assets/images/hanuman.jpeg') center / cover no-repeat;
  box-shadow: 0 24px 50px rgba(79, 34, 3, 0.28);
  color: #fffaf0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 247, 232, 0.14);
  border: 1px solid rgba(255, 247, 232, 0.28);
  color: #fff0d1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading-en);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.12;
  color: #fffaf0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero-subtitle {
  margin: 0;
  max-width: 50ch;
  font-family: var(--font-body-en);
  font-size: 0.96rem;
  line-height: 1.7;
  color: #fffaf0;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.3rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  border: none;
  cursor: pointer;
}
.hero-button:hover { transform: translateY(-2px); }
.hero-button.primary { background: linear-gradient(135deg, var(--gold), #f0a91a); color: #542d00; }
.hero-button.secondary {
  background: rgba(255, 248, 240, 0.14);
  border: 1px solid rgba(255, 248, 240, 0.28);
  color: #fffaf4;
}

.petal {
  position: absolute;
  top: -20px;

  width: 18px;
  height: 18px;

  opacity: 0.95;

  animation: fall linear infinite;
}

.petal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.petal::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.6) 10%,
    transparent 60%
  );

  border-radius: 50%;
}

.hero-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* ── 9. Sections ──────────────────────────────────────────── */
section {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  scroll-margin-top: 7.5rem;
}

@supports (content-visibility: auto) {
  #festivals, #seva-booking, #gallery, #location {
    content-visibility: auto;
    contain-intrinsic-size: 1px 560px;
  }
}

section h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-heading-en);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--brand-strong);
  letter-spacing: 0.02em;
}

section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

/* .section-title mirrors section h2 — used inside .section-padding containers */
.section-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-heading-en);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--brand-strong);
  letter-spacing: 0.02em;
}
html[lang="te"] .section-title { font-family: var(--font-heading-te); letter-spacing: 0; }
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}

.content-p,
section p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
}

.content-p { white-space: pre-line; }

html[lang="te"] .brand-subtitle,
html[lang="te"] .hero-subtitle,
html[lang="te"] .content-p,
html[lang="te"] section p,
html[lang="te"] li,
html[lang="te"] .event-banner-item { line-height: 1.85; }

ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

li {
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 232, 0.94));
  border: 1px solid rgba(168, 92, 32, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(120, 75, 24, 0.07);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

/* ── 10. Priest ───────────────────────────────────────────── */
.priest-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.priest-photo-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.priest-photo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 22px rgba(168, 84, 20, 0.18);
  background: #fffaf4;
}

.priest-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 246, 232, 0.9);
  border: 2px dashed rgba(168, 84, 20, 0.3);
}
.priest-photo-placeholder:focus { outline: 2px solid #e09a20; }

.priest-photo-icon {
  display: block;
  width: 44px; height: 44px;
  margin-bottom: 0.4rem;
  background: url('data:image/svg+xml;utf8,<svg fill="%23a85414" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="16" r="10"/><ellipse cx="24" cy="36" rx="16" ry="10"/></svg>') center/contain no-repeat;
  opacity: 0.6;
}

.priest-photo-text {
  font-size: 0.82rem;
  color: var(--brand);
  text-align: center;
  opacity: 0.8;
}

.priest-desc { flex: 1 1 220px; min-width: 0; }
.priest-desc p { margin: 0 0 0.7em; word-break: break-word; }
.priest-name { font-weight: 700; color: var(--brand-strong); }

/* ── 11. Temple Timings ───────────────────────────────────── */
.timings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 232, 0.94));
  border: 1px solid rgba(168, 92, 32, 0.16);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(120, 75, 24, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.timing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(120, 75, 24, 0.13); }

.timing-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56%;
}
.timing-icon--morning {
  background-color: rgba(255, 176, 40, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M2 12h2M20 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
}
.timing-icon--evening {
  background-color: rgba(98, 58, 18, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c3b14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

.timing-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
html[lang="te"] .timing-label { letter-spacing: 0; font-size: 0.84rem; }

.timing-time {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
html[lang="te"] .timing-time { font-family: var(--font-body-te, inherit); font-size: clamp(1rem, 3vw, 1.18rem); }

/* ── 12. Seva Booking ─────────────────────────────────────── */
.seva-booking-layout {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.seva-subtitle {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading-en);
  font-size: 1.05rem;
  color: var(--brand-strong);
}
html[lang="te"] .seva-subtitle { font-family: var(--font-heading-te); }

.seva-flow-note {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(168, 92, 32, 0.2);
  background: linear-gradient(180deg, rgba(255, 245, 224, 0.92), rgba(255, 250, 242, 0.9));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.seva-selection-hint { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.84rem; font-weight: 700; }

.seva-list { grid-template-columns: 1fr; gap: 0.65rem; }

.seva-card { position: relative; padding: 0.85rem 1rem; }

.seva-option {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.seva-option::after {
  content: "";
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(126, 50, 4, 0.3);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.seva-option:hover { transform: translateY(-2px); border-color: rgba(168, 92, 32, 0.28); box-shadow: 0 14px 26px rgba(120, 75, 24, 0.12); }
.seva-option:focus-visible { outline: 3px solid rgba(255, 226, 171, 0.9); outline-offset: 2px; }

.seva-option.is-selected {
  border-color: rgba(126, 50, 4, 0.5);
  background: linear-gradient(180deg, rgba(255, 236, 200, 0.96), rgba(255, 246, 232, 0.98));
  box-shadow: 0 18px 30px rgba(120, 75, 24, 0.18);
  transform: translateY(-2px);
}
.seva-option.is-selected::after {
  border-color: rgba(126, 50, 4, 0.72);
  background: linear-gradient(180deg, var(--gold), #f0a91a);
}
.seva-option.is-selected h4 { color: #5f2500; }

.seva-card h4 { margin: 0; color: var(--brand-strong); font-size: 0.96rem; }
html[lang="te"] .seva-card h4 { font-family: var(--font-heading-te); }
.seva-card p { margin-top: 0.35rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; }

.seva-booking-form {
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 246, 232, 0.9));
  border: 1px solid rgba(168, 92, 32, 0.14);
  box-shadow: 0 12px 24px rgba(120, 75, 24, 0.07);
}

.booking-honeypot {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; pointer-events: none; opacity: 0;
}

.seva-date-field {
  margin-bottom: 0.72rem;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  border: 1px dashed rgba(168, 92, 32, 0.3);
  background: linear-gradient(180deg, rgba(255, 245, 224, 0.78), rgba(255, 252, 247, 0.9));
}

.seva-date-blocked-hint {
  display: inline-block;
  margin-top: 0.32rem;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: rgba(190, 50, 20, 0.09);
  border: 1px solid rgba(190, 50, 20, 0.26);
  color: #a02010;
  font-size: 0.8rem;
  font-weight: 600;
}
.seva-date-blocked-hint[hidden] { display: none; }

.seva-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.seva-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding-top: 0.52rem;
  --field-notch-y: 0.74rem;
}

.seva-field-label {
  position: absolute;
  top: var(--field-notch-y);
  left: 0.6rem;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0 0.34rem;
  border-radius: 4px;
  background: #fffaf4;
  color: var(--brand-strong);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.2s;
}
html[lang="te"] .seva-field-label { font-family: var(--font-heading-te); }
.seva-field-label-text { line-height: 1.1; }

.seva-wa-icon {
  display: inline-block;
  width: 1rem; height: 1rem;
  background: url('../assets/icons/wa.svg') center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(18, 140, 126, 0.28));
  flex-shrink: 0;
}

.seva-field:focus-within .seva-field-label { color: #5d2300; }
.seva-field.full-width { grid-column: 1 / -1; }

.seva-field input,
.seva-field select {
  width: 100%;
  border: 1px solid rgba(168, 92, 32, 0.26);
  border-radius: 12px;
  margin-top: 0.22rem;
  padding: 0.74rem 0.72rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 252, 247, 0.95);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.seva-field input:disabled {
  color: rgba(74, 43, 16, 0.55);
  background: rgba(246, 236, 220, 0.6);
  cursor: not-allowed;
}
.seva-field input:focus,
.seva-field select:focus {
  outline: none;
  border-color: rgba(168, 92, 32, 0.5);
  box-shadow: 0 0 0 3px rgba(224, 154, 32, 0.18);
}

.seva-meta { margin-top: 0.7rem; color: var(--brand-strong); font-size: 0.9rem; font-weight: 700; }

.seva-meta.is-loading { display: flex; align-items: center; gap: 0.45rem; }
.seva-meta.is-loading::before {
  content: '';
  width: 0.86rem; height: 0.86rem;
  border-radius: 50%;
  border: 2px solid rgba(126, 50, 4, 0.2);
  border-top-color: rgba(126, 50, 4, 0.9);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% { opacity: 1; }

  50% {
    transform: translateY(60vh) translateX(20px) rotate(180deg);
  }

  100% {
    transform: translateY(120vh) translateX(-20px) rotate(360deg);
    opacity: 0;
  }
}

.seva-selected { margin-top: 0; margin-bottom: 0.2rem; }

.book-seva-btn {
  margin-top: 0.6rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.1rem;
  background: linear-gradient(135deg, #a85414, #7e3204);
  color: #fff7ee;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(107, 57, 14, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.book-seva-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(107, 57, 14, 0.3); }
.book-seva-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.book-seva-btn.is-submitting,
.book-seva-btn.is-submitting:disabled { opacity: 0.92; cursor: wait; animation: pulse-shadow 1.2s ease-in-out infinite; }
.book-seva-btn.is-submitting::before {
  content: '';
  width: 0.86rem; height: 0.86rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 238, 0.38);
  border-top-color: #fff7ee;
  animation: spin 0.72s linear infinite;
  flex-shrink: 0;
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 10px 20px rgba(107, 57, 14, 0.26); }
  50%       { box-shadow: 0 14px 28px rgba(107, 57, 14, 0.36); }
}

.seva-booking-message { margin: 0.65rem 0 0; min-height: 1.3rem; font-size: 0.88rem; font-weight: 700; line-height: 1.5; }
.seva-booking-message.success { color: #2d6b1f; }
.seva-booking-message.error   { color: #9f2c06; }

/* ── 13. Gallery ──────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  padding: 0; border: none; background: transparent;
  border-radius: 16px; cursor: pointer; overflow: hidden; display: block;
}

.gallery img,
.gallery video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(85, 53, 16, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.gallery img:hover,
.gallery video:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 22px 36px rgba(85, 53, 16, 0.18); }
.gallery-item:focus-visible img,
.gallery-item:focus-visible video { box-shadow: 0 0 0 4px rgba(255, 226, 171, 0.65), 0 22px 36px rgba(85, 53, 16, 0.18); }

.gallery-item.is-video { position: relative; }
.gallery-video-play-icon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gallery-video-play-icon::before {
  content: ''; display: block;
  width: 0; height: 0;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

/* ── 14. Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(18, 8, 0, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 300;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox-dialog {
  position: relative;
  width: min(920px, 100%);
  padding: 0.9rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 239, 227, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.32);
}

.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(126, 50, 4, 0.1);
  color: var(--brand-strong); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.lightbox-close:hover { background: rgba(126, 50, 4, 0.18); }

.lightbox-image {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  display: block;
}

#lightboxVideo { display: block; margin: 0.5rem auto; }

.lightbox-caption { margin: 0.75rem 0 0; padding-right: 3rem; color: var(--brand-strong); font-size: 0.92rem; font-weight: 600; }

/* ── 15. Location ─────────────────────────────────────────── */
.map-container {
  margin-top: 1rem; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 36px rgba(85, 53, 16, 0.14);
  border: 1px solid rgba(168, 92, 32, 0.14);
}

.location-actions { margin: 0.85rem 0 0; }

.map-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #a85414, #7e3204);
  color: #fff7ee; font-weight: 700; font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(107, 57, 14, 0.2);
}
.map-link:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(107, 57, 14, 0.28); }

iframe { width: 100%; height: 340px; border: none; display: block; }

/* ── 16. Footer ───────────────────────────────────────────── */
footer {
  width: min(1120px, calc(100% - 24px));
  margin: 0.5rem auto 24px;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #7e3204, #a85414);
  color: #fff7ee; text-align: center;
  box-shadow: 0 14px 28px rgba(79, 34, 3, 0.18);
}

footer p { margin: 0; font-size: 0.86rem; font-weight: 600; opacity: 0.92; line-height: 1.6; }

.footer-contacts {
  margin-top: 0.65rem;
  display: inline-flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center; justify-content: center;
}

.footer-contact-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 247, 238, 0.16);
  border: 1px solid rgba(255, 228, 188, 0.3);
  color: #fff8f1; font-size: 0.82rem; font-weight: 700;
  transition: background 0.18s, transform 0.18s;
}
.footer-contact-link:hover { background: rgba(255, 247, 238, 0.26); transform: translateY(-1px); }

.footer-contact-icon { width: 0.86rem; height: 0.86rem; display: inline-block; flex-shrink: 0; background-repeat: no-repeat; background-position: center; background-size: contain; }
.footer-contact-icon--phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 11.2 19a19.3 19.3 0 0 1-6-6A19.8 19.8 0 0 1 2 4.2 2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.4 2.1L8 10a16 16 0 0 0 6 6l1.4-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E"); }
.footer-contact-icon--email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }

/* ── 17. Responsive — 900px ───────────────────────────────── */
@media (max-width: 900px) {
  html { scroll-padding-top: 7.2rem; }
  header { width: calc(100% - 20px); margin-top: 10px; border-radius: 22px; }
  main { width: calc(100% - 20px); margin-top: 0.9rem; }
  .hero { min-height: 300px; }
  section { scroll-margin-top: 6.8rem; }
  .seva-booking-layout { grid-template-columns: 1fr; }
}

/* ── 18. Responsive — 860px ───────────────────────────────── */
@media (max-width: 860px) {
  header { padding: 0.85rem; }
  .header-top { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .header-controls { justify-content: flex-start; }
  .lang-switch { align-self: flex-start; }
  nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  main { margin-top: 1rem; }
  .hero { min-height: 280px; }
}

/* ── 19. Responsive — 700px ───────────────────────────────── */
@media (max-width: 700px) {
  .brand-logo-img { width: 52px; height: 52px; }
  .brand-logo-wrap { gap: 0.65rem; }
  .priest-content { flex-direction: column; align-items: stretch; gap: 1rem; }
  .priest-photo-wrapper { align-self: center; }
  .priest-photo-img { width: 100px; height: 100px; }
  .priest-photo-placeholder { width: 90px; height: 90px; }
  .priest-desc { flex-basis: auto; }
  .priest-desc p { font-size: 0.96rem; }
}

/* ── 20. Responsive — 600px (Mobile) ─────────────────────── */
@media (max-width: 600px) {
  html { scroll-padding-top: 7.5rem; }

  header {
    width: calc(100% - 12px);
    margin-top: 6px;
    padding: 0.75rem 0.85rem;
    border-radius: 18px;
  }

  header h1 { font-size: 1.15rem; }

  .header-controls { width: 100%; gap: 0.4rem; }

  .brand-subtitle { font-size: 0.8rem; }
  .brand-badge, .hero-kicker { font-size: 0.7rem; }

  .lang-switch { padding: 0.22rem; }
  .lang-switch button { padding: 0.4rem 0.6rem; font-size: 0.8rem; }

  .music-toggle-btn { margin-left: auto; width: 2rem; height: 2rem; }

  /* Show hamburger */
  .menu-toggle { display: inline-flex; padding: 0.46rem 0.75rem; font-size: 0.8rem; }

  /* Hide timings pill on mobile */
  .temple-timings.nav-inline { display: none; }

  /* Nav-row stacks */
  .nav-row { flex-wrap: wrap; }

  /* Suppress the flex-spacer span when in grid mode */
  nav > span[style] { display: none; }

  /* Mobile nav dropdown */
  nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.32s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  header.nav-open nav {
    max-height: 540px;
    opacity: 1;
    padding: 0.5rem 0 0.25rem;
  }

  /* Full-width stacked nav links */
  nav a {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border-radius: 12px;
    white-space: normal;
    background: rgba(255, 245, 232, 0.1);
    border: 1px solid rgba(255, 245, 232, 0.12);
    margin-bottom: 2px;
  }
  nav a:hover { background: rgba(255, 245, 232, 0.2); transform: none; }
  nav a.active {
    background: linear-gradient(135deg, rgba(255, 211, 138, 0.28), rgba(242, 166, 35, 0.2));
    color: var(--gold);
    box-shadow: none;
    border-color: rgba(255, 211, 138, 0.3);
  }
  nav a.active::after { display: none; }

  /* Main */
  main { width: calc(100% - 12px); margin-top: 0.75rem; gap: 0.75rem; }

  /* Hero */
  .hero { min-height: 240px; padding: 1.5rem 1.25rem; border-radius: 18px; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-button { width: 100%; font-size: 0.88rem; padding: 0.72rem 1rem; }

  /* Sections */
  section { padding: 1rem; border-radius: 16px; scroll-margin-top: 7rem; }
  section h2 { font-size: 1.15rem; }
  .content-p, section p, li { font-size: 0.92rem; }
  ul { grid-template-columns: 1fr; gap: 0.65rem; }

  /* Timings */
  .timings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .timing-card { padding: 1.1rem 0.75rem; }
  .timing-icon { width: 2.4rem; height: 2.4rem; }

  /* Seva */
  .seva-form-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }

  /* Lightbox */
  .lightbox-dialog { padding: 0.7rem; border-radius: 16px; }
  .lightbox-caption { padding-right: 2.25rem; font-size: 0.86rem; }
  iframe { height: 280px; }

  /* Footer */
  footer { padding: 0.85rem; border-radius: 14px; width: calc(100% - 12px); margin-bottom: 12px; }
  footer p { font-size: 0.78rem; }

  .petal { animation-duration: 8s; }
}

/* ── 21. Responsive — 420px ───────────────────────────────── */
@media (max-width: 420px) {
  header h1 { font-size: 1.05rem; }
  .hero { min-height: 220px; }
  .hero-title { font-size: 1.55rem; }
  .gallery { grid-template-columns: 1fr; }
  .timings-grid { grid-template-columns: 1fr; }
}

/* ── 22. Responsive — 360px ───────────────────────────────── */
@media (max-width: 360px) {
  header { padding: 0.6rem 0.7rem; }
  header h1 { font-size: 0.98rem; }
  .brand-logo-img { width: 42px; height: 42px; }
  .menu-toggle { padding: 0.38rem 0.6rem; font-size: 0.76rem; }
  .lang-switch button { padding: 0.35rem 0.5rem; font-size: 0.76rem; }
}

/* ── 23. Responsive — 320px ───────────────────────────────── */
@media (max-width: 320px) {
  .lang-switch button { padding: 0.3rem 0.42rem; font-size: 0.72rem; }
  .brand-logo-img { width: 36px; height: 36px; }
  header h1 { font-size: 0.9rem; }
}

/* ── 24. Responsive — 280px ───────────────────────────────── */
@media (max-width: 280px) {
  header { padding: 0.5rem; border-radius: 12px; }
  .lang-switch button { padding: 0.22rem 0.32rem; font-size: 0.68rem; }
}

/* ── 25. Android overrides ────────────────────────────────── */
@media (max-width: 600px) {
  html.is-android .header-controls { min-width: 0; flex-wrap: nowrap; align-items: center; gap: 0.38rem; }
  html.is-android .lang-switch { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  html.is-android .lang-switch button { min-width: 0; white-space: nowrap; }
  html.is-android .music-toggle-btn,
  html.is-android .menu-toggle { flex-shrink: 0; }
}
@media (max-width: 320px) {
  html.is-android .header-controls { gap: 0.2rem; }
  html.is-android .lang-switch button { padding: 0.24rem 0.36rem; font-size: 0.7rem; }
}
@media (max-width: 280px) {
  html.is-android .lang-switch button { padding: 0.2rem 0.28rem; font-size: 0.64rem; }
}

/* ── 26. Touch — disable hover lifts ─────────────────────── */
@media (hover: none) and (pointer: coarse) {
  nav a:hover,
  .music-toggle-btn:hover,
  .menu-toggle:hover,
  .hero-button:hover,
  .gallery img:hover,
  .gallery video:hover,
  .timing-card:hover { transform: none; }
}

/* ── 27. Telugu misc ──────────────────────────────────────── */
html[lang="te"] #menuToggleLabel { letter-spacing: 0; }
@media (max-width: 280px) { html[lang="te"] #menuToggleLabel { font-size: 0.62rem; } }

/* ── 28. About highlight ──────────────────────────────────── */
.about-highlight { font-weight: 700; color: var(--brand-strong); font-size: 1.06em; }

/* ── 29. Planetary Insights (Rahu & Kethu) ──────────────── */
#planetary-rows-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2.5rem;
}

.graha-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 25px;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px dashed var(--border);
}

.graha-row:last-child {
  border-bottom: none;
}

.graha-photo-box {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.graha-photo-box img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--gold);
    object-fit: cover;
    display: block;
}

.graha-photo-box p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading-te);
  color: #fffaf4;
  font-size: 1rem;
  background: linear-gradient(to top, rgba(60, 20, 0, 0.72), transparent);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  text-align: center;
}

.influence-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--brand);
  height: 100%;
}

.card-pos { border-top-color: #2e7d32; } /* Positive - Green */
.card-neg { border-top-color: #c62828; } /* Negative - Red */

.influence-card h4 {
  margin-bottom: 1.2rem;
  color: var(--brand-strong);
  font-family: var(--font-heading-te);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.inf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inf-list li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.inf-list li::before {
  content: "•";
  color: var(--brand);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive: Mobile View */
@media (max-width: 992px) {
  .graha-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .graha-photo-box {
    max-width: 280px;
    margin: 0 auto;
  }

  #planetary-rows-container {
    gap: 3rem;
  }
}

#pooja {
  background: var(--surface);
}

.pooja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}

.pooja-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 20px 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.pooja-card:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
  background: #fffdf7;
}

.pooja-icon {
  font-size: 35px;
  margin-bottom: 12px;
  display: block;
}

.pooja-card h3 {
  color: var(--brand-strong);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.pooja-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 480px) {
  .pooja-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 10px;
  }

  .pooja-card {
      padding: 15px 10px;
      min-height: 140px;
  }

  .pooja-icon {
      font-size: 30px;
  }

  .pooja-card h3 {
      font-size: 0.95rem;
  }
}
