/* ═══════════════════════════════════════════════
   Master Arjun — Kansas City, MO  (v2)
   Cosmic Vedic: midnight indigo, saffron fire, temple gold
   ═══════════════════════════════════════════════ */

:root {
  --night: #120c26;
  --night-2: #1a1235;
  --night-3: #241945;
  --saffron: #f0821e;
  --saffron-hot: #ff9a3d;
  --gold: #e8c37f;
  --gold-deep: #c99745;
  --maroon: #7a2233;
  --text: #f5eede;
  --muted: #b3a88f;
  --muted-2: #8d84a8;
  --head: "Rozha One", Georgia, serif;
  --body: "Hind", "Segoe UI", sans-serif;
  --maxw: 1140px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--night);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: .9rem; }
h3 { font-size: 1.2rem; }

a { color: var(--gold); }
a:hover { color: var(--saffron-hot); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.section { padding: clamp(68px, 9vw, 110px) 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--saffron-hot);
  margin-bottom: .9rem;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.06rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: .05em;
  font-size: .95rem;
  padding: .95em 1.9em;
  border-radius: 100px;
  transition: transform .22s ease, box-shadow .22s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-lg { font-size: 1rem; padding: 1.05em 2.2em; }

.btn-saffron {
  background: linear-gradient(150deg, var(--saffron-hot), #d96208);
  color: #fff;
  box-shadow: 0 0 28px rgba(240, 130, 30, .45), 0 8px 24px rgba(0, 0, 0, .4);
}
.btn-saffron:hover { color: #fff; box-shadow: 0 0 44px rgba(240, 130, 30, .65), 0 10px 30px rgba(0, 0, 0, .5); }

.btn-gold-line {
  border: 1.5px solid rgba(232, 195, 127, .55);
  color: var(--gold);
}
.btn-gold-line:hover { background: rgba(232, 195, 127, .1); color: var(--gold); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 12px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(18, 12, 38, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(232, 195, 127, .25), 0 10px 30px rgba(0, 0, 0, .45);
  padding: 8px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: .6em; margin-right: auto; text-decoration: none; }
.brand-om {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--saffron-hot), #b54e05);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 0 18px rgba(240, 130, 30, .55);
}
.brand-text {
  font-family: var(--head);
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.1;
  display: grid;
}
.brand-text em { font-style: normal; color: var(--gold); }
.brand-text small {
  font-family: var(--body);
  font-weight: 600;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  opacity: .85;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; display: block; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--night-3) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 80%, rgba(122, 34, 51, .35) 0%, transparent 60%),
    var(--night);
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(245, 238, 222, .8), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(245, 238, 222, .55), transparent),
    radial-gradient(1.6px 1.6px at 54% 14%, rgba(232, 195, 127, .7), transparent),
    radial-gradient(1px 1px at 71% 42%, rgba(245, 238, 222, .5), transparent),
    radial-gradient(1.4px 1.4px at 86% 24%, rgba(245, 238, 222, .7), transparent),
    radial-gradient(1px 1px at 24% 84%, rgba(232, 195, 127, .5), transparent),
    radial-gradient(1.3px 1.3px at 64% 78%, rgba(245, 238, 222, .6), transparent),
    radial-gradient(1px 1px at 92% 62%, rgba(245, 238, 222, .45), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.wheel-wrap {
  position: absolute;
  right: clamp(-260px, -8vw, -60px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(480px, 52vw, 780px);
  aspect-ratio: 1;
  opacity: .9;
  pointer-events: none;
}
.wheel { width: 100%; height: 100%; }
.ring-outer {
  transform-origin: 300px 300px;
  animation: ringspin 140s linear infinite;
}
.glyphs text { transform-box: fill-box; }
.orbit { transform-origin: 300px 300px; }
.o1 { animation: ringspin 26s linear infinite reverse; }
.o2 { animation: ringspin 38s linear infinite; }
.o3 { animation: ringspin 52s linear infinite reverse; }
.o4 { animation: ringspin 66s linear infinite; }
.o5 { animation: ringspin 84s linear infinite reverse; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.kundli-lines { opacity: .85; }
.kundli-om { animation: ompulse 4s ease-in-out infinite; }
@keyframes ompulse {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  max-width: 640px;
}
.hero-open {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  max-width: 540px;
  margin: 1.4rem 0 2.2rem;
}
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Grahas ─── */
.grahas {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.graha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 22px;
}
.graha {
  font-family: var(--body);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(232, 195, 127, .25);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: .25rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.graha:hover, .graha.active {
  transform: translateY(-4px);
  border-color: var(--saffron-hot);
  background: rgba(240, 130, 30, .08);
  box-shadow: 0 0 26px rgba(240, 130, 30, .22);
}
.g-symbol {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: .3rem;
  border: 1px solid rgba(232, 195, 127, .4);
}
.sun     { color: #f6b93d; box-shadow: inset 0 0 16px rgba(246, 185, 61, .35); }
.moon    { color: #e8e3d4; box-shadow: inset 0 0 16px rgba(232, 227, 212, .3); }
.mars    { color: #e2543e; box-shadow: inset 0 0 16px rgba(226, 84, 62, .35); }
.mercury { color: #7fb069; box-shadow: inset 0 0 16px rgba(127, 176, 105, .35); }
.jupiter { color: #e9b84c; box-shadow: inset 0 0 16px rgba(233, 184, 76, .35); }
.venus   { color: #f0a1c4; box-shadow: inset 0 0 16px rgba(240, 161, 196, .35); }
.saturn  { color: #8d84a8; box-shadow: inset 0 0 16px rgba(141, 132, 168, .4); }
.rahu    { color: #b58ae6; box-shadow: inset 0 0 16px rgba(181, 138, 230, .35); }
.ketu    { color: #d97f5a; box-shadow: inset 0 0 16px rgba(217, 127, 90, .35); }

.graha strong { font-family: var(--head); font-weight: 400; font-size: 1.05rem; }
.graha strong em { font-style: normal; color: var(--muted-2); font-size: .85em; }
.g-rules { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.graha-detail {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  background: rgba(240, 130, 30, .07);
  border: 1px solid rgba(240, 130, 30, .35);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  min-height: 92px;
  display: grid;
  place-items: center;
  transition: border-color .3s ease;
}
.graha-detail p { color: var(--text); font-size: 1.05rem; }
.graha-detail p em { color: var(--gold); }

/* ─── Kundli section ─── */
.kundli-section {
  padding: clamp(68px, 9vw, 110px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 15% 40%, rgba(232, 195, 127, .07) 0%, transparent 60%),
    var(--night-2);
  border-top: 1px solid rgba(232, 195, 127, .18);
  border-bottom: 1px solid rgba(232, 195, 127, .18);
}
.kundli-art { display: grid; place-items: center; }
.kundli-big { width: min(400px, 82vw); }
.draw {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawline 3s ease forwards;
}
.d2 { animation-delay: .6s; }
.d3 { animation-delay: 1.2s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.kundli-nums text { opacity: 0; animation: fadenum .6s ease forwards 2s; }
@keyframes fadenum { to { opacity: .8; } }

.kundli-steps {
  list-style: none;
  counter-reset: kstep;
  margin: 1.2rem 0 1.4rem;
}
.kundli-steps li {
  counter-increment: kstep;
  position: relative;
  padding: 0 0 1.2em 3.4em;
  color: var(--muted);
}
.kundli-steps li strong { color: var(--text); }
.kundli-steps li::before {
  content: counter(kstep);
  position: absolute;
  left: 0;
  top: .05em;
  width: 2.2em; height: 2.2em;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  color: var(--gold);
  font-family: var(--head);
  display: grid;
  place-items: center;
  font-size: 1em;
}
.kundli-note {
  color: var(--muted);
  border-left: 3px solid var(--saffron);
  padding-left: 16px;
  margin-bottom: 1.6rem;
}
.kundli-note em { color: var(--gold); font-style: italic; }

/* ─── Proof band ─── */
.proof-band {
  padding: clamp(56px, 8vw, 84px) 0;
  background:
    radial-gradient(ellipse 45% 80% at 50% 50%, rgba(240, 130, 30, .12) 0%, transparent 65%),
    var(--night);
}
.proof-number {
  font-family: var(--head);
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 1;
  background: linear-gradient(160deg, var(--gold), var(--saffron-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-stars {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: .34em;
  margin: .4rem 0 .8rem;
  text-shadow: 0 0 18px rgba(232, 195, 127, .5);
}
.proof-text { color: var(--text); font-size: 1.15rem; margin-bottom: .5rem; }
.proof-link { font-weight: 700; }

/* ─── Temple ─── */
.temple { background: var(--night-2); }
.temple-copy { color: var(--muted); margin-bottom: 1.2rem; }
.temple-list { list-style: none; }
.temple-list li { margin-bottom: .7em; color: var(--text); }
.temple-photo {
  position: relative;
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    linear-gradient(160deg, var(--gold), var(--saffron)) border-box;
  box-shadow: 0 0 44px rgba(240, 130, 30, .22), 0 30px 70px rgba(0, 0, 0, .55);
  max-width: 430px;
  margin: 0 auto;
}
.temple-photo img { display: block; width: 100%; height: auto; }
.temple-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px 12px;
  font-size: .85rem;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(18, 12, 38, .95));
}

/* ─── Visit ─── */
.visit { background: var(--night); }
.contact-list { list-style: none; margin: 1.4rem 0 2rem; }
.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 1.05rem;
  align-items: flex-start;
}
.contact-list .ci { font-size: 1.15rem; line-height: 1.7; }
.visit-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232, 195, 127, .3);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .5);
  aspect-ratio: 4 / 3.1;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(.88) hue-rotate(200deg) saturate(.7) contrast(.95);
}

/* ─── Footer ─── */
.footer {
  background: #0d081d;
  border-top: 1px solid rgba(232, 195, 127, .2);
  color: var(--muted-2);
}
.footer-inner { padding: 46px 24px 96px; }
.footer-om {
  font-size: 2rem;
  color: var(--saffron-hot);
  text-shadow: 0 0 18px rgba(240, 130, 30, .6);
  margin-bottom: .3rem;
}
.footer-brand { font-family: var(--head); font-size: 1.5rem; color: var(--text); }
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-tag { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin: .2rem 0 1rem; }
.footer-meta { font-size: .95rem; margin-bottom: 1rem; }
.footer-meta a { color: var(--gold); }
.footer-copy { font-size: .8rem; opacity: .5; }

/* ─── Mobile call bar ─── */
.mobile-call {
  display: none;
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 90;
  background: linear-gradient(150deg, var(--saffron-hot), #d96208);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 15px;
  border-radius: 100px;
  box-shadow: 0 0 28px rgba(240, 130, 30, .5), 0 10px 30px rgba(0, 0, 0, .5);
  align-items: center;
  justify-content: center;
  gap: .5em;
  text-decoration: none;
}
.mobile-call:hover { text-decoration: none; color: #fff; }

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .8s ease, translate .8s ease;
}
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; transition: none; }
  .ring-outer, .orbit, .kundli-om, .stars, .draw, .kundli-nums text { animation: none; }
  .draw { stroke-dashoffset: 0; }
  .kundli-nums text { opacity: .8; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .wheel-wrap {
    right: 50%;
    top: auto;
    bottom: -34%;
    transform: translateX(50%);
    width: min(640px, 120vw);
    opacity: .35;
  }
  .hero { min-height: auto; padding-bottom: 220px; }
  .hero-content { max-width: 100%; text-align: center; padding-top: 130px; }
  .hero-cta { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .graha-grid { grid-template-columns: repeat(3, 1fr); }
  .temple-photo { max-width: 360px; }
}

@media (max-width: 700px) {
  .nav-links, .nav-call { display: none; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(18, 12, 38, .95); }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--night-2);
    padding: 20px 24px 26px;
    gap: 18px;
    border-bottom: 2px solid var(--saffron);
  }
  .graha-grid { grid-template-columns: 1fr 1fr; }
  .mobile-call { display: inline-flex; }
  .footer-inner { padding-bottom: 112px; }
}
