:root {
  --maroon-900: #2a0606;
  --maroon-800: #3d0a0a;
  --maroon-700: #5a1010;
  --saffron: #ff9933;
  --saffron-soft: #ffb766;
  --gold: #e8b64c;
  --gold-soft: #f3d88f;
  --cream: #fbf1dc;
  --text: #f6e9cf;
  --text-dim: #d9c29a;
  --card: rgba(61, 10, 10, 0.72);
  --card-border: rgba(232, 182, 76, 0.28);
  --radius: 14px;
  --max: 1100px;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cinzel", Georgia, serif;
  --font-deva: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 153, 51, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 182, 76, 0.12), transparent 55%),
    linear-gradient(180deg, var(--maroon-800), var(--maroon-900));
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Om background image */
body::before {
  content: "ॐ";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  font-family: var(--font-deva);
  font-size: min(78vw, 78vh);
  line-height: 1;
  color: var(--gold);
  opacity: 0.09;
  text-shadow: 0 0 60px rgba(255, 153, 51, 0.6);
  pointer-events: none;
  z-index: -1;
  animation: om-glow 8s ease-in-out infinite;
}

@keyframes om-glow {
  0%, 100% { opacity: 0.07; }
  50% { opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--saffron-soft); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(42, 6, 6, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.brand-devi {
  width: 56px;
  height: 70px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(255, 153, 51, 0.35);
  flex-shrink: 0;
}

.ved-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  text-align: center;
}

.ved-caption {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ved-link:hover .ved-caption { color: var(--saffron-soft); }
.ved-link:hover .ved-symbol { transform: scale(1.05); }

.ved-symbol {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(255, 153, 51, 0.35);
  overflow: hidden;
  transition: transform 0.2s;
}

.ved-symbol img { width: 64px; height: 64px; }

.site-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-left: auto; }

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover { background: rgba(232, 182, 76, 0.12); color: var(--gold-soft); }
.site-nav a.active { background: var(--saffron); color: var(--maroon-900); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .ved-link { order: 3; max-width: 84px; }
  .ved-caption { font-size: 0.6rem; }
  .ved-symbol img { width: 52px; height: 52px; }
  .brand-devi { width: 46px; height: 58px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    background: rgba(42, 6, 6, 0.97);
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 1rem; }
}

/* Layout */
main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

section { padding: clamp(3rem, 7vw, 5rem) 0; }

.hero {
  text-align: center;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero .sanskrit {
  font-family: var(--font-deva);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--saffron-soft);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 1.15;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgba(255, 153, 51, 0.45);
}

.hero p.lead {
  max-width: 640px;
  margin: 1.2rem auto 2rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-dim);
}

.page-hero { text-align: center; padding: clamp(3.5rem, 9vw, 5.5rem) 0 1rem; }

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold);
}

.page-hero p { color: var(--text-dim); max-width: 620px; margin: 0.6rem auto 0; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem auto 0;
  color: var(--saffron);
  font-family: var(--font-deva);
}

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

.divider::after { transform: scaleX(-1); }

h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.4rem;
}

p.section-sub { text-align: center; color: var(--text-dim); max-width: 620px; margin: 0 auto 2.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--gold);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--gold)); color: var(--maroon-900); border-color: transparent; }
.btn-primary:hover { color: var(--maroon-900); transform: translateY(-2px); }
.btn-outline { color: var(--gold-soft); }
.btn-outline:hover { background: rgba(232, 182, 76, 0.12); }

.btn-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(4px);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: rgba(232, 182, 76, 0.6); }

.card .icon {
  font-family: var(--font-deva);
  font-size: 2rem;
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.card h3 { font-family: var(--font-head); color: var(--gold-soft); font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card .meta {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.15);
  color: var(--saffron-soft);
  font-size: 0.82rem;
}

/* Mantra block */
.mantra {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
}

.mantra .deva { font-family: var(--font-deva); font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--saffron-soft); }
.mantra .translit { font-style: italic; color: var(--gold-soft); margin-top: 0.4rem; }
.mantra .meaning { color: var(--text-dim); margin-top: 0.9rem; }

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose h2 { font-family: var(--font-head); color: var(--gold); margin: 2rem 0 0.8rem; font-size: 1.5rem; }
.prose ul { margin: 0 0 1.1rem 1.3rem; color: var(--text-dim); }
.prose li { margin-bottom: 0.4rem; }

/* Timeline (events) */
.timeline { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }

.event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.event .date {
  text-align: center;
  padding: 0.8rem 0.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--maroon-900);
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.9rem;
}

.event .date small { display: block; font-weight: 500; font-size: 0.75rem; }

@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; gap: 0.6rem; }
  .event .date { justify-self: start; padding: 0.4rem 1rem; }
}

/* Gallery */
.slides { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

.slides figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: transform 0.25s, border-color 0.25s;
}

.slides figure:hover { transform: translateY(-4px); border-color: rgba(232, 182, 76, 0.6); }
.slides img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.slides figcaption { padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--gold-soft); }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.gallery figure {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 153, 51, 0.35), transparent 65%),
    linear-gradient(160deg, var(--maroon-700), var(--maroon-900));
}

.gallery figure .glyph { font-family: var(--font-deva); font-size: 4rem; color: var(--gold); opacity: 0.75; }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--cream);
}

.note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Donate */
.donate-box {
  text-align: center;
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--card);
  box-shadow: 0 0 40px rgba(255, 153, 51, 0.15);
}

.donate-box .deva { font-family: var(--font-deva); color: var(--saffron-soft); font-size: 1.2rem; }
.donate-box h2 { font-family: var(--font-head); color: var(--gold); font-size: clamp(1.5rem, 5vw, 2rem); margin: 0.4rem 0; }
.donate-sub { color: var(--text-dim); margin-bottom: 1.4rem; }

.upi-qr {
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto 1.4rem;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  border: 3px solid var(--gold);
}

.upi-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1.4rem;
}

.upi-id span { color: var(--text-dim); font-size: 0.9rem; }
.upi-id strong { color: var(--cream); font-size: 1.15rem; letter-spacing: 0.02em; word-break: break-all; }

.copy-btn {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
}

.copy-btn:hover { background: rgba(232, 182, 76, 0.12); }
.donate-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 1rem; }

.pay-methods {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}

.pay-methods li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.92rem;
}

button.btn { font: inherit; font-weight: 600; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.upi-help {
  margin: 1.2rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 153, 51, 0.15);
  border: 1px solid var(--saffron);
  color: var(--cream);
  font-size: 0.92rem;
}

.donate-steps {
  text-align: left;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.92rem;
}

.donate-steps strong { color: var(--gold-soft); }
.donate-steps ol { margin: 0.5rem 0 0.8rem 1.3rem; }
.donate-steps li { margin-bottom: 0.3rem; }

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: clamp(5rem, 14vw, 9rem) 0;
}

.coming-soon .big-om {
  font-family: var(--font-deva);
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--saffron);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 153, 51, 0.6);
}

.coming-soon h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.6rem);
  color: var(--gold);
  margin: 1rem 0 0.5rem;
}

.coming-soon p { color: var(--text-dim); max-width: 520px; margin: 0 auto 2rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 16px;
  border-top: 1px solid var(--card-border);
  background: rgba(42, 6, 6, 0.85);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .footer-om { font-family: var(--font-deva); color: var(--saffron); font-size: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin: 0.7rem 0; }
.site-footer .footer-legal { font-size: 0.8rem; margin-bottom: 0.4rem; }
.site-footer .footer-legal a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-legal a:hover { color: var(--gold-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 420px) {
  .site-header { gap: 0.6rem; }
  .brand { font-size: 0.95rem; }
}
