:root {
  --bg: #fff8ea;
  --bg-soft: #fff1d2;
  --bg-deep: #4a160b;
  --text: #2f170f;
  --muted: #76594d;
  --saffron: #c65a19;
  --saffron-dark: #8a330c;
  --gold: #d9a343;
  --cream: #fffaf0;
  --line: rgba(104, 47, 17, 0.16);
  --shadow: 0 24px 80px rgba(78, 31, 10, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Merienda", "Cormorant Garamond", cursive;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 220, 118, 0.32), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(194, 76, 17, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff5de 0%, var(--bg) 38%, #fff 100%);
  font-family: var(--sans);
  line-height: 1.72;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(117, 61, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 61, 20, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bg-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  margin: 0;
  padding: 12px clamp(18px, 4vw, 54px);
  border: 0;
  border-bottom: 1px solid rgba(132, 68, 25, 0.16);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(61, 24, 6, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--saffron-dark);
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5dc, #ffd06a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), 0 8px 22px rgba(117,45,12,0.18);
}
.brand-mark img { width: 35px; height: 35px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #6a3c22;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(198, 90, 25, 0.1);
  color: var(--saffron-dark);
  transform: translateY(-1px);
}
.menu-toggle { display: none; }

.section-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section-pad { padding: 110px 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 78px);
  padding: 64px 0 90px;
}
.eyebrow,
.section-kicker {
  color: var(--saffron);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero h1,
.section-pad h2,
.site-footer h2 {
  font-family: var(--display);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #3a1509;
}
.hero h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  line-height: 1.22;
  overflow-wrap: break-word;
}
.hero-subtitle {
  max-width: 740px;
  margin: 0 0 16px;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  color: var(--saffron-dark);
  font-weight: 700;
}
.hero-text {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  box-shadow: 0 14px 32px rgba(155, 55, 10, 0.26);
}
.btn-ghost {
  color: var(--saffron-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}
.hero-note {
  color: #7c5a49;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-image-wrap {
  position: relative;
  padding: 18px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,232,181,0.72));
  box-shadow: var(--shadow);
}
.halo {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 201, 67, 0.35), rgba(198, 90, 25, 0.08) 56%, transparent 70%);
  filter: blur(12px);
  transform: translateY(-16px);
}
.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 18px;
}
h2 { margin: 0; }
.about h2,
.activities h2,
.visit h2,
.contact h2 {
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
  line-height: 1.2;
  margin: 10px 0 28px;
  overflow-wrap: break-word;
}
.about p,
.activities-head p,
.visit p,
.contact p,
.center-head p,
.activity-card p,
.deity-card p,
.address-card p,
.address-card li {
  color: var(--muted);
}
.about p { margin: 0 0 20px; }
.about-card {
  position: sticky;
  top: 112px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}
.about-card img { border-radius: 24px; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.about-card > p { margin: 14px 8px 20px; font-size: 0.95rem; font-weight: 700; color: #6f3a1e; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div {
  min-height: 96px;
  padding: 14px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff6df, #fffaf1);
  border: 1px solid rgba(200, 111, 30, 0.14);
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--saffron-dark);
}
.stats span { display: block; margin-top: 8px; font-size: 0.78rem; line-height: 1.25; color: var(--muted); }

.deities {
  background:
    linear-gradient(180deg, rgba(82, 22, 8, 0.96), rgba(53, 12, 5, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(217, 163, 67, 0.28), transparent 34rem);
  color: #fff8ea;
}
.deities .section-kicker { color: #f4c66e; }
.center-head { text-align: center; max-width: 850px; margin: 0 auto 54px; }
.center-head h2 {
  margin: 12px 0 16px;
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.deities h2 { color: #fff8e2; }
.deities .center-head p { color: rgba(255, 242, 214, 0.76); }
.deity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.deity-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid rgba(255, 232, 176, 0.16);
  border-radius: 30px;
  background: rgba(255, 248, 231, 0.06);
  box-shadow: 0 28px 70px rgba(0,0,0,0.16);
}
.deity-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border-radius: 50%;
  color: #4e1709;
  background: #f3bf5b;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
}
.deity-card h3 {
  margin: 0 0 12px;
  color: #fff8e2;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.05;
}
.deity-card p { color: rgba(255, 242, 214, 0.73); margin: 0; font-size: 0.96rem; }

.activities-head { max-width: 830px; margin-bottom: 36px; }
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.activity-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(95, 39, 10, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.activity-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--saffron-dark);
}
.activity-card p { margin: 0; }

.gallery {
  background: linear-gradient(180deg, #fffaf0, #fff1d3);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(48, 14, 5, 0.18));
}
.gallery img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery .tall { transform: translateY(42px); }

.visit-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 44px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 163, 67, 0.3), transparent 36rem),
    linear-gradient(135deg, #4a160b, #7a290e 62%, #b75017);
  color: #fff8ea;
  box-shadow: var(--shadow);
}
.visit-panel h2 { color: #fff8ea; }
.visit-panel p { color: rgba(255, 245, 224, 0.78); }
.visit-panel .section-kicker { color: #f4c66e; }
.address-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 235, 190, 0.2);
  backdrop-filter: blur(10px);
}
.address-card strong { color: #fff6d8; }
.address-card p,
.address-card li { color: rgba(255, 246, 226, 0.82); }
.address-card ul { padding-left: 1.1rem; margin: 20px 0 26px; }
.address-card li + li { margin-top: 8px; }
.address-card .btn-primary { background: #fff6dc; color: var(--saffron-dark); box-shadow: 0 16px 36px rgba(0,0,0,0.16); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contact-card {
  padding: 32px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card span {
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-card p { margin: 10px 0 0; color: var(--text); font-weight: 600; }

.site-footer {
  padding: 70px 20px 42px;
  text-align: center;
  color: rgba(255, 248, 226, 0.78);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 163, 67, 0.24), transparent 32rem),
    #3a1208;
}
.site-footer img { width: 86px; margin: 0 auto 20px; filter: drop-shadow(0 16px 34px rgba(0,0,0,0.22)); }
.site-footer h2 { margin: 0 0 12px; color: #fff8ea; font-size: clamp(2rem, 4vw, 3.3rem); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0; }
.site-footer nav a { color: #f4c66e; font-weight: 700; }
.sloka {
  max-width: 760px;
  margin: 24px auto 16px !important;
  color: #ffe6a5;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.copyright { font-size: 0.88rem; color: rgba(255, 248, 226, 0.58); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 110ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 330ms; }

@media (max-width: 1040px) {
  .hero,
  .split-grid,
  .visit-panel,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-image-wrap,
  .about-card { max-width: 520px; margin: 0 auto; }
  .about-card { position: static; }
  .deity-grid,
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery .tall { transform: none; }
  .gallery img { height: 560px; }
}

@media (max-width: 760px) {
  .site-header { border-radius: 0; align-items: flex-start; padding-left: 16px; padding-right: 16px; }
  .brand { max-width: calc(100% - 58px); }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff1d2;
  }
  .menu-toggle span { width: 18px; height: 2px; margin: 0 auto; background: var(--saffron-dark); border-radius: 999px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255,250,240,0.98);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .section-pad { padding: 82px 0; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(1.75rem, 9vw, 3rem); line-height: 1.24; }
  .about h2,
  .activities h2,
  .visit h2,
  .contact h2,
  .center-head h2 { font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.22; }
  .deity-grid,
  .activity-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery img { height: 430px; }
  .visit-panel { padding: 28px; border-radius: 32px; }
}
