/* =========================================================
   Sri Varahi Jothida Nilayam — main stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --night: #0b0818;
  --night-2: #150f2e;
  --night-3: #221845;
  --maroon: #5c0d1d;
  --maroon-2: #7a1426;
  --kumkum: #c0152f;
  --gold: #d6a84e;
  --gold-2: #f4d88f;
  --gold-3: #a8782a;
  --sandal: #fdf6ea;
  --sandal-2: #f7ecd9;
  --ink: #2b1a14;
  --ink-2: #5f4a3d;
  --on-dark: #f1e9dc;
  --on-dark-2: #c9bdd9;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --line: rgba(168, 120, 42, .22);

  --gold-grad: linear-gradient(135deg, #fbe7ad 0%, #e2b65c 45%, #b17d2c 100%);
  --night-grad: linear-gradient(180deg, #0b0818 0%, #150f2e 100%);

  --ff-display: "Cinzel", "Hind Madurai", Georgia, serif;
  --ff-body: "Manrope", "Hind Madurai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-ta: "Hind Madurai", "Nirmala UI", "Latha", sans-serif;
  --ff-accent: "Cormorant Garamond", Georgia, serif;
  --ff-symbol: "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 18px -8px rgba(60, 25, 10, .25);
  --shadow: 0 24px 60px -28px rgba(60, 25, 10, .45);
  --shadow-gold: 0 18px 50px -18px rgba(214, 168, 78, .55);
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sandal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
[lang="ta"] { font-family: var(--ff-ta); }
[hidden] { display: none !important; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Vel preloader ---------- */
html { scrollbar-gutter: stable; }
.is-loading body { overflow: hidden; }
.is-loading .reveal { animation-play-state: paused; }
.no-js .preloader { display: none; }
.preloader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(192, 21, 47, .32), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 40%, rgba(214, 168, 78, .12), transparent 70%),
    var(--night-grad);
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
  animation: pl-failsafe .5s 6s forwards; /* never keep covering the site if the script cannot run */
}
.is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; transition: transform .7s var(--ease); }
.is-loaded .preloader__inner { transform: scale(1.12); }
.preloader__logo { width: clamp(120px, 28vw, 160px); height: auto; overflow: visible; animation: pl-glow 2.4s ease-in-out infinite; }
.pl-ring { stroke-dasharray: 185.4; stroke-dashoffset: 185.4; animation: pl-draw 1.3s var(--ease) .1s forwards; }
.pl-beads { opacity: 0; transform-origin: 32px 32px; animation: pl-fade .6s ease .3s forwards, spin 14s linear infinite; }
.pl-vel { opacity: 0; transform-origin: 32px 40px; animation: pl-rise .9s var(--ease) .35s forwards; }
.preloader__name {
  margin: 24px 0 6px; font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.15rem, .9rem + 1vw, 1.55rem); letter-spacing: .06em;
  background: linear-gradient(100deg, #fbe7ad 0%, #e2b65c 30%, #fff4d1 50%, #e2b65c 70%, #b17d2c 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: pl-fade .7s ease .6s forwards, shimmer 3s ease-in-out infinite;
}
.preloader__ta { margin: 0; font-size: .95rem; color: var(--on-dark-2); opacity: 0; animation: pl-fade .7s ease .8s forwards; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pl-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(244, 216, 143, .25)); }
  50% { filter: drop-shadow(0 0 24px rgba(244, 216, 143, .65)); }
}
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; } }

/* scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--kumkum), var(--gold), var(--gold-2));
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kumkum); margin: 0 0 .9rem;
}
.eyebrow [lang="ta"] { letter-spacing: .02em; text-transform: none; font-size: 1.05em; }
.eyebrow--gold { color: var(--gold-2); }
.section-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  color: var(--maroon); letter-spacing: .01em;
}
.section-title--light { color: #fff7e6; }
.title-suffix { font-size: .55em; color: var(--gold-3); letter-spacing: .04em; }
.ornament { width: 220px; height: 24px; color: var(--gold-3); margin: 1.1rem 0 1.4rem; }
.ornament--gold { color: var(--gold); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .ornament { margin-inline: auto; }
.section-intro { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section-intro--light { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .01em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-wa { background: linear-gradient(135deg, #2ee07a, var(--wa) 40%, var(--wa-dark)); color: #fff; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .75); }
.btn-wa:hover { box-shadow: 0 18px 38px -12px rgba(37, 211, 102, .85); }
.btn-gold { background: var(--gold-grad); color: #2b1a14; box-shadow: var(--shadow-gold); }
.btn-ghost { color: var(--gold-2); border-color: rgba(244, 216, 143, .55); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(244, 216, 143, .12); border-color: var(--gold-2); }
.btn-outline { color: var(--maroon); border-color: var(--gold); background: #fff; }
.btn-outline:hover { background: var(--sandal-2); }
.btn-wa-outline { color: var(--wa-dark); border-color: var(--wa); background: #fff; }
.btn-wa-outline:hover { background: #effcf4; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(11, 8, 24, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(214, 168, 78, .25), 0 12px 30px -18px rgba(0, 0, 0, .6);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand-mark { width: 46px; height: 46px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(244, 216, 143, .55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-family: var(--ff-display); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-2); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  position: relative; display: block; padding: 8px 12px;
  font-size: .93rem; font-weight: 600; color: var(--on-dark); opacity: .88;
  transition: color .2s, opacity .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--gold-2); opacity: 1; }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; border: 1px solid rgba(244, 216, 143, .35); }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--gold-2);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 3, 12, .55); backdrop-filter: blur(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 90px;
  display: flex; align-items: center;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 55% at 75% 45%, rgba(192, 21, 47, .32), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(98, 46, 170, .35), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 10%, rgba(214, 168, 78, .12), transparent 70%),
    var(--night-grad);
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; z-index: -1; inset: auto 0 0; height: 220px;
  background: linear-gradient(180deg, transparent, rgba(11, 8, 24, .9));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 8px 18px 8px 12px; border-radius: 999px;
  background: rgba(214, 168, 78, .1); border: 1px solid rgba(244, 216, 143, .35);
  color: var(--gold-2); font-size: 1rem; font-weight: 500;
}
.eyebrow-pill svg { width: 22px; height: 22px; }

.hero-title { display: flex; flex-direction: column; gap: 10px; }
.hero-title__brand {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.35rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: .01em;
  background: linear-gradient(100deg, #fbe7ad 0%, #e2b65c 30%, #fff4d1 50%, #e2b65c 70%, #b17d2c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(214, 168, 78, .25));
}
.hero-title__tamil { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 600; color: #fff1d6; }
.hero-title__sub {
  font-family: var(--ff-body); font-weight: 600; font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2);
}
.hero-lead { margin: 26px 0 32px; max-width: 580px; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: #ddd2e6; }
.hero-lead strong { color: #fff1d6; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions--center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(244, 216, 143, .16); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-2); font-size: .95rem; }
.hero-trust strong { font-family: var(--ff-display); font-size: 1.35rem; color: var(--gold-2); }
.hero-trust svg { width: 20px; height: 20px; color: var(--gold); }

.hero-visual { position: relative; width: min(430px, 100%); margin-inline: auto; display: grid; place-items: center; }
.zodiac-wheel { position: absolute; z-index: 0; pointer-events: none; }
.hero-visual .zodiac-wheel { width: 156%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; opacity: .85; }
.zodiac-wheel svg { width: 100%; height: 100%; overflow: visible; animation: spin 140s linear infinite; }
.zw-line { stroke: rgba(214, 168, 78, .4); fill: none; }
.zw-line--strong { stroke: rgba(214, 168, 78, .65); }
.zw-ta { fill: rgba(244, 216, 143, .75); font-family: var(--ff-ta); font-size: 17px; font-weight: 500; letter-spacing: .5px; }
.zw-glyph { fill: rgba(244, 216, 143, .9); font-family: var(--ff-symbol); font-size: 22px; }
.zw-dot { fill: rgba(244, 216, 143, .55); }
.hero-aura {
  position: absolute; z-index: 0; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 92, .35) 0%, rgba(192, 21, 47, .22) 35%, transparent 65%);
  animation: breathe 6s ease-in-out infinite;
}

/* temple arch frame */
.arch {
  position: relative; z-index: 1; margin: 0; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 26px 26px; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 7px rgba(214, 168, 78, .12),
    0 0 0 8.5px rgba(214, 168, 78, .55),
    0 40px 90px -30px rgba(192, 21, 47, .6);
  background: var(--night-2);
}
.arch img, .arch picture { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(11, 8, 24, .45);
}
.arch--hero { width: 76%; }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 16px;
  background: rgba(21, 15, 46, .55); border: 1px solid rgba(244, 216, 143, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  animation: bob 6s ease-in-out infinite;
}
.float-card--a { left: -6%; top: 16%; flex-direction: column; align-items: flex-start; gap: 0; }
.float-card--b { right: -8%; bottom: 12%; animation-delay: -3s; }
.float-card__num { font-family: var(--ff-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--gold-2); }
.float-card__label { font-size: .8rem; line-height: 1.35; color: var(--on-dark); font-weight: 600; }
.float-card svg { width: 28px; height: 28px; color: var(--gold-2); flex: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 28px; height: 44px; border-radius: 16px; border: 1.5px solid rgba(244, 216, 143, .5);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s ease-in-out infinite; }

/* AOS animates the wrapper; the card inside keeps its own hover transform */
.aos-wrap { display: flex; }
.aos-wrap > * { flex: 1; min-width: 0; }

/* live consultation-hours status */
.hours-status {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 14px 5px 11px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; line-height: 1.35;
  color: #9a6200; background: #fff4dc; border: 1px solid #f0d49a;
}
.hours-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.hours-status[data-state="open"] { color: #0f7a55; background: #e8f8f0; border-color: #a8e2c7; }
.hours-status[data-state="open"] .hours-dot { animation: pulse-dot 2s ease-out infinite; }
.hours-status[data-state="closed"] { color: var(--kumkum); background: #fdecee; border-color: #f3bcc4; }
.hours-status--hero { margin: 0; background: rgba(255, 244, 220, .08); border-color: rgba(244, 216, 143, .3); color: var(--gold-2); }
.hours-status--hero[data-state="open"] { color: #6ff0b4; background: rgba(37, 211, 102, .1); border-color: rgba(111, 240, 180, .35); }
.hours-status--hero[data-state="closed"] { color: #ffb3bd; background: rgba(192, 21, 47, .15); border-color: rgba(255, 179, 189, .35); }

/* hero entrance (CSS, so the LCP content is not held back by JS) */
.js .reveal { opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }

/* ---------- Ribbon marquee ---------- */
.ribbon {
  position: relative; z-index: 2; overflow: hidden;
  background: linear-gradient(90deg, #b17d2c, #e2b65c 25%, #fbe7ad 50%, #e2b65c 75%, #b17d2c);
  box-shadow: 0 10px 30px -12px rgba(168, 120, 42, .6);
  border-block: 1px solid #fbe7ad;
}
.ribbon-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ribbon span {
  display: inline-flex; align-items: center; padding: 14px 0; white-space: nowrap;
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase;
  color: #3a1408;
}
.ribbon span[lang="ta"] { font-family: var(--ff-ta); letter-spacing: .02em; text-transform: none; font-size: 1rem; }
.ribbon span::after { content: "✦"; margin: 0 28px; color: var(--maroon); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(76px, 10vw, 128px) 0; overflow: hidden; }
.section--sandal {
  background-color: var(--sandal);
  background-image: radial-gradient(rgba(168, 120, 42, .13) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
}
.section--sandal-2 { background: linear-gradient(180deg, var(--sandal-2), var(--sandal)); }
.section--night { color: var(--on-dark); background: var(--night-grad); }
.section--divine {
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 55% 60% at 78% 50%, rgba(192, 21, 47, .35), transparent 70%),
    linear-gradient(160deg, #2a0a17 0%, #160a26 55%, var(--night) 100%);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-visual { position: relative; width: min(400px, 100%); margin-inline: auto; }
/* concentric outer arch: same shape as the photo frame, evenly spaced on every side */
.about-visual::before {
  content: ""; position: absolute; inset: -18px; z-index: 0; pointer-events: none;
  border-radius: 999px 999px 44px 44px; border: 1.5px solid var(--gold); opacity: .55;
}
.arch--portrait { box-shadow: 0 0 0 7px rgba(214, 168, 78, .12), 0 0 0 8.5px rgba(214, 168, 78, .5), var(--shadow); }
.badge-float {
  position: absolute; z-index: 2; right: -14px; bottom: 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%; text-align: center;
  background: var(--gold-grad); color: #2b1a14;
  box-shadow: 0 0 0 6px var(--sandal), var(--shadow-gold);
}
.badge-float__title { font-family: var(--ff-display); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.badge-float__sub { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.about-role { font-family: var(--ff-accent); font-style: italic; font-size: 1.45rem; color: var(--gold-3); margin: .4rem 0 0; }
.about-copy .ornament { margin-left: 0; }
.about-copy > p { color: var(--ink-2); }
.about-copy strong { color: var(--maroon); }
.pull-quote {
  position: relative; margin: 28px 0; padding: 18px 24px 18px 30px;
  font-family: var(--ff-accent); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--maroon);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(214, 168, 78, .14), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.check-list svg {
  width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, var(--kumkum), var(--maroon));
}

/* ---------- Varahi ---------- */
.mandala-bg {
  position: absolute; z-index: 0; width: 1000px; aspect-ratio: 1; right: -260px; top: 50%; margin-top: -500px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(214, 168, 78, .09) 0deg 3deg, transparent 3deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 30%, transparent 70%);
  mask: radial-gradient(circle, transparent 0 18%, #000 30%, transparent 70%);
  animation: spin 220s linear infinite;
}
.varahi-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.varahi-copy > p { color: #e2d6e8; font-size: 1.08rem; }
.varahi-copy em { color: var(--gold-2); font-style: normal; font-weight: 600; }
.varahi-copy .eyebrow { font-size: 1.15rem; letter-spacing: .03em; text-transform: none; }
.varahi-copy .ornament { margin-left: 0; }
.blessings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.blessing {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 216, 143, .22);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}
.blessing:hover { transform: translateY(-6px); background: rgba(214, 168, 78, .1); border-color: rgba(244, 216, 143, .55); }
.blessing svg { width: 38px; height: 38px; color: var(--gold-2); margin-bottom: 6px; }
.blessing__ta { font-size: 1.2rem; font-weight: 600; color: #fff1d6; }
.blessing__en { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }

.varahi-visual { position: relative; width: min(400px, 100%); margin-inline: auto; padding-bottom: 30px; }
.varahi-visual::before {
  content: ""; position: absolute; inset: -8% -12% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, .35), transparent 62%);
  animation: breathe 5s ease-in-out infinite;
}
.arch--devotion { border-width: 3px; }
.diya { position: absolute; z-index: 3; bottom: 0; width: 64px; height: 70px; }
.diya--left { left: -26px; }
.diya--right { right: -26px; }
.diya__bowl {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  border-radius: 6px 6px 40px 40px / 6px 6px 26px 26px;
  background: linear-gradient(180deg, #ffd98a, #c8902e 45%, #7a4a12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.diya__flame {
  position: absolute; left: 50%; bottom: 22px; width: 18px; height: 36px; margin-left: -9px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 15%, #ffe28a 30%, #ff9a1f 65%, rgba(255, 80, 0, 0) 100%);
  box-shadow: 0 0 22px 8px rgba(255, 170, 50, .55), 0 0 60px 20px rgba(255, 120, 20, .25);
  transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}
.diya--right .diya__flame { animation-delay: -1.1s; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 24px 26px; border-radius: var(--radius);
  background: #fffdf8; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--kumkum), var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(214, 168, 78, .55); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--gold-2);
  background: linear-gradient(145deg, var(--maroon-2), #2a0a17);
  box-shadow: 0 12px 24px -12px rgba(92, 13, 29, .8), inset 0 0 0 1px rgba(244, 216, 143, .35);
  transition: transform .5s var(--ease);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-ta { margin: 0 0 4px; color: var(--kumkum); font-weight: 600; font-size: .98rem; }
.service-card h3 { font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; color: var(--maroon); margin-bottom: 10px; }
.service-card > p:not(.service-ta) { color: var(--ink-2); font-size: .95rem; line-height: 1.65; flex: 1; }

/* ---------- Reach ---------- */
.reach { background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(192, 21, 47, .25), transparent 70%),
    var(--night-grad); }
.reach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.reach-headline .section-title { display: flex; flex-direction: column; }
.counter {
  font-family: var(--ff-display); font-weight: 700; line-height: 1;
  font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reach-caption { font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); color: #fff1d6; margin-top: 10px; }
.reach-cards { display: grid; gap: 16px; }
.reach-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 216, 143, .2);
  transition: transform .35s var(--ease), border-color .35s, background-color .35s;
}
.reach-card:hover { transform: translateX(8px); border-color: rgba(244, 216, 143, .5); background: rgba(214, 168, 78, .07); }
.reach-card svg { grid-row: span 2; width: 48px; height: 48px; padding: 10px; border-radius: 14px; color: var(--gold-2); background: rgba(214, 168, 78, .12); }
.reach-card h3 { font-family: var(--ff-display); font-size: 1.15rem; color: var(--gold-2); }
.reach-card p { margin: 2px 0 0; color: var(--on-dark-2); font-size: .95rem; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 66px; left: 12.5%; right: 12.5%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  opacity: .6;
}
.step {
  position: relative; z-index: 1; text-align: center; padding: 28px 20px;
  border-radius: var(--radius); background: rgba(255, 253, 248, .75);
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 10px; right: 16px; font-family: var(--ff-display); font-weight: 700; font-size: 2.2rem; color: rgba(168, 120, 42, .2); }
.step-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  color: var(--maroon); background: var(--sandal);
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(214, 168, 78, .14);
}
.step-icon svg { width: 34px; height: 34px; }
.step h3 { font-family: var(--ff-display); font-size: 1.1rem; color: var(--maroon); margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.step a { color: var(--wa-dark); font-weight: 700; }

/* ---------- Rasi chart ---------- */
.rasi-section {
  background:
    radial-gradient(circle at 50% 60%, rgba(98, 46, 170, .28), transparent 60%),
    var(--night-grad);
}
.rasi-chart {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(clamp(86px, 21vw, 150px), auto);
  grid-template-areas:
    "meenam mesham rishabam mithunam"
    "kumbam center center kadagam"
    "magaram center center simmam"
    "dhanusu viruchigam thulam kanni";
  gap: 1.5px; padding: 1.5px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 0 0 6px rgba(214, 168, 78, .12), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.rasi-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 6px; text-align: center; color: var(--on-dark);
  background: linear-gradient(160deg, #1d1438, #120c26);
  transition: background .35s, color .35s;
}
.rasi-cell:hover { background: linear-gradient(160deg, #3a1a3e, #24122e); }
.rasi-glyph { font-family: var(--ff-symbol); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.1; color: var(--gold-2); transition: transform .4s var(--ease); }
.rasi-cell:hover .rasi-glyph { transform: scale(1.18) rotate(-6deg); }
.rasi-ta { font-size: clamp(.72rem, .6rem + .5vw, 1rem); font-weight: 600; line-height: 1.3; }
.rasi-en { font-size: clamp(.62rem, .55rem + .3vw, .78rem); letter-spacing: .06em; color: var(--on-dark-2); line-height: 1.3; }
.rasi-cell[aria-pressed="true"] { background: var(--gold-grad); color: #2b1a14; }
.rasi-cell[aria-pressed="true"] .rasi-glyph { color: var(--maroon); }
.rasi-cell[aria-pressed="true"] .rasi-en { color: #4a2a14; }
.rasi-center {
  grid-area: center; display: grid; place-items: center; padding: 18px; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(214, 168, 78, .18), transparent 65%),
    linear-gradient(160deg, #24122e, #120c26);
}
.rasi-center__default { display: flex; flex-direction: column; align-items: center; }
.rasi-center__mark { width: clamp(56px, 14vw, 110px); height: auto; aspect-ratio: 1; animation: glow 4s ease-in-out infinite; }
.rasi-center__ta { margin: 10px 0 0; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 600; color: var(--gold-2); line-height: 1.2; }
.rasi-center__hint { margin: 2px 0 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.rasi-center__detail { display: flex; flex-direction: column; align-items: center; animation: pop .45s var(--ease); }
.rd-glyph { font-family: var(--ff-symbol); font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; color: var(--gold-2); }
.rd-name { margin: 6px 0 2px; line-height: 1.25; }
.rd-ta { display: block; font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem); font-weight: 600; color: #fff1d6; }
.rd-en { display: block; font-family: var(--ff-display); font-size: clamp(.72rem, .65rem + .3vw, .9rem); letter-spacing: .1em; color: var(--gold-2); }
.rd-lord { margin: 4px 0 0; font-size: clamp(.72rem, .65rem + .3vw, .92rem); color: var(--on-dark-2); }
.rd-lord strong { color: var(--on-dark); }
.rd-trait { margin: 4px 0 12px; font-family: var(--ff-accent); font-style: italic; font-size: clamp(.9rem, .8rem + .5vw, 1.15rem); color: #e8dcf0; line-height: 1.3; }
.rd-cta { font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border-radius: var(--radius-sm); background: #fffdf8; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(214, 168, 78, .7); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 64px 20px 24px; font-weight: 700; font-size: 1.04rem; color: var(--maroon);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  background: var(--gold-3); border-radius: 2px; transition: transform .35s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-body { padding: 0 24px 20px; color: var(--ink-2); }
.faq-item[open] .faq-body { animation: fadeDown .4s var(--ease); }
.faq-body p { margin: 0; }
.faq-body a { color: var(--wa-dark); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(80px, 11vw, 140px) 0;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(214, 168, 78, .22), transparent 70%),
    linear-gradient(135deg, #3a0b16, var(--maroon) 40%, #2a0a2e);
}
.zodiac-wheel--cta { width: min(900px, 140vw); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; z-index: -1; opacity: .35; }
.cta-title { font-family: var(--ff-display); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); color: #fff7e6; margin-bottom: 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: #fffdf8; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.info-icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  color: var(--gold-2); background: linear-gradient(145deg, var(--maroon-2), #2a0a17);
}
.info-icon svg { width: 24px; height: 24px; }
.info-card--wa .info-icon { color: #fff; background: linear-gradient(135deg, var(--wa), var(--wa-dark)); }
.info-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.info-value { display: block; font-weight: 700; font-size: 1.12rem; color: var(--maroon); }
.info-value--addr { font-size: 1rem; line-height: 1.5; }
.info-card--hours { align-items: flex-start; }
.info-card--hours:hover { transform: none; }
.hours-body { display: flex; flex-direction: column; gap: 2px; }
.hours-days { font-weight: 700; color: var(--ink); font-size: .95rem; }
.hours-closed { font-size: .9rem; color: var(--ink-2); }
.hours-body .hours-status { margin-top: 10px; }
.hours-next { margin-top: 6px; font-size: .82rem; color: var(--ink-2); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--sandal-2); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--kumkum), var(--gold), var(--gold-2));
}
.form-title { font-family: var(--ff-display); font-size: 1.5rem; color: var(--maroon); }
.form-sub { margin: 6px 0 22px; font-size: .9rem; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--sandal); border: 1.5px solid #e6d6ba; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(214, 168, 78, .2);
}
.field-error { display: none; font-size: .8rem; font-weight: 600; color: var(--kumkum); }
.was-validated .field :is(input, select, textarea):invalid { border-color: var(--kumkum); background: #fff6f6; }
.was-validated .field :is(input, select, textarea):invalid ~ .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { margin: 18px 0 0; font-size: .84rem; color: var(--ink-2); }
.form-consent a { color: var(--maroon); text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(43, 26, 20, .25); border-top-color: #2b1a14; animation: spin .8s linear infinite;
}
.btn.is-sending .btn-spinner { display: inline-block; }
.btn.is-sending svg { display: none; }
.form-status { margin: 16px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.5em; }
.form-status.is-success { color: #11795a; }
.form-status.is-error { color: var(--kumkum); }
.form-status.is-warn { color: #9a6200; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: var(--on-dark-2); padding: 80px 0 0;
  background:
    radial-gradient(ellipse 40% 60% at 90% 0%, rgba(192, 21, 47, .2), transparent 70%),
    var(--night);
  border-top: 1px solid rgba(214, 168, 78, .3);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.brand--footer { margin-bottom: 14px; }
.footer-tamil { color: var(--gold-2); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.footer-brand p:last-child { font-size: .95rem; max-width: 360px; }
.footer-title { font-family: var(--ff-display); font-size: 1.05rem; color: var(--gold-2); letter-spacing: .08em; margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid rgba(214, 168, 78, .16);
  font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold-2); }

/* ---------- Floating actions ---------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, #2ee07a, var(--wa) 45%, var(--wa-dark));
  box-shadow: 0 16px 34px -12px rgba(18, 140, 126, .8);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.4s ease-out infinite;
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab__label { font-weight: 700; font-size: .95rem; }
.wa-fab:hover { transform: translateY(-3px) scale(1.03); }

.to-top {
  position: fixed; right: 30px; bottom: 100px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-2); background: rgba(21, 15, 46, .85); border: 1px solid rgba(244, 216, 143, .45);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; transform: rotate(-90deg); }

.mobile-bar { display: none; }

/* ---------- Simple pages (privacy, 404) ---------- */
.legal { padding-top: calc(var(--header-h) + 60px); min-height: 100vh; }
.legal-inner { max-width: 820px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-family: var(--ff-display); font-size: 1.3rem; color: var(--maroon); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--wa-dark); font-weight: 700; }
.page-404 { background: var(--night-grad); min-height: 100vh; }
.notfound {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px; color: var(--on-dark);
}
.notfound__mark { width: 120px; height: 120px; margin-bottom: 24px; animation: glow 4s ease-in-out infinite; }
.notfound__text { color: var(--on-dark-2); margin: 14px 0 28px; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes flicker {
  0%, 100% { transform: scale(1) skewX(0); opacity: 1; }
  25% { transform: scale(1.06, .94) skewX(2deg); }
  50% { transform: scale(.95, 1.08) skewX(-2deg); opacity: .92; }
  75% { transform: scale(1.03, .97) skewX(1deg); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(244, 216, 143, .25)); }
  50% { filter: drop-shadow(0 0 14px rgba(244, 216, 143, .7)); }
}
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(15, 122, 85, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(15, 122, 85, 0); } }

/* AOS safety: if scripts never run, content must stay visible */
.no-js [data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-toggle { display: inline-block; }
  .nav-toggle { margin-left: auto; }
  .main-nav {
    position: fixed; z-index: 95; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    display: flex; flex-direction: column; gap: 28px; padding: calc(var(--header-h) + 24px) 28px 32px;
    background:
      radial-gradient(circle at 100% 0%, rgba(192, 21, 47, .3), transparent 60%),
      linear-gradient(180deg, var(--night-2), var(--night));
    border-left: 1px solid rgba(214, 168, 78, .3);
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
    overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a:not(.btn) { font-size: 1.15rem; padding: 12px 6px; font-family: var(--ff-display); letter-spacing: .04em; border-bottom: 1px solid rgba(214, 168, 78, .12); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-toggle { position: relative; z-index: 96; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { width: min(360px, 78vw); margin-top: 18px; }
  .scroll-cue { display: none; }
  .about-grid, .varahi-grid, .reach-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { width: min(340px, 78vw); margin-bottom: 20px; }
  .varahi-visual { width: min(340px, 72vw); order: -1; margin-bottom: 10px; }
  .reach-headline { text-align: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .wa-fab { display: none; }
  .to-top { bottom: 84px; right: 16px; }
  .mobile-bar {
    position: fixed; z-index: 85; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 8, 24, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(214, 168, 78, .3);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px;
    font-weight: 700; color: var(--gold-2); border: 1.5px solid rgba(244, 216, 143, .5);
  }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar .mobile-bar__wa { color: #fff; border: 0; background: linear-gradient(135deg, #2ee07a, var(--wa) 45%, var(--wa-dark)); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .66rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: 8px 18px; }
  .float-card { padding: 9px 13px; }
  .float-card--a { left: -10%; top: 10%; }
  .float-card--b { right: -10%; bottom: 8%; }
  .float-card__num { font-size: 1.3rem; }
  .float-card__label { font-size: .7rem; }
  .services-grid, .steps, .check-list { grid-template-columns: 1fr; }
  .blessings { gap: 10px; }
  .blessing { padding: 16px 6px; }
  .badge-float { width: 104px; height: 104px; right: -8px; bottom: -14px; }
  .badge-float__title { font-size: .82rem; }
  .rasi-tr { display: none; }
  .rd-trait { display: none; }
  .rasi-center { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .diya { transform: scale(.8); transform-origin: bottom center; }
  .diya--left { left: -18px; }
  .diya--right { right: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; animation: none; }
  .ribbon-track { animation: none; }
  /* scroll animations become gentle fades (main.js switches every data-aos to "fade") */
  html [data-aos] { transition-property: opacity !important; transition-duration: .7s !important; }
}
