/* ==========================================================================
   Astro Umesh — main stylesheet
   Bootstrap 5.3 handles the grid and components; everything visual is here.

   1.  Design tokens (light + dark)
   2.  Base
   3.  Page loader
   4.  Header & navigation
   5.  Buttons
   6.  Sections & typography
   7.  Home hero & inner-page banners
   8.  Shared components
   9.  Page-specific components
   10. Footer & floating buttons
   11. Motion (reveal, keyframes, reduced motion)
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #eeeae4;
  --bg-soft: #f5f2ed;
  --surface: #ffffff;
  --surface-2: #f7f4ef;
  --ink: #1d1d2b;
  --ink-soft: #454353;
  --muted: #625f70;
  --line: rgba(29, 29, 43, 0.12);
  --line-strong: rgba(29, 29, 43, 0.22);

  --accent: #c8431a;
  --accent-hover: #a93712;
  --accent-text: #b03a14;
  --accent-soft: rgba(200, 67, 26, 0.1);
  --gold: #b8975a;
  --gold-text: #806229;
  --gold-display: #8f6f33; /* gold accent words in headings: 3.9:1 on --bg */
  --gold-soft: rgba(184, 151, 90, 0.16);
  --whatsapp: #1fa855;

  --night: #22222f;
  --night-2: #2b2b3b;
  --on-night: #f3eee6;
  --on-night-muted: #bdb8c8;
  --on-night-line: rgba(243, 238, 230, 0.12);

  --arch-top: #d3dbe0;
  --arch-bottom: #eeeae4;
  --footer-bg: #e7e2da;
  --deco-opacity: 0.7;
  --illustration-filter: none;
  --wheel-filter: none;

  --shadow-sm: 0 2px 10px rgba(29, 29, 43, 0.06);
  --shadow: 0 14px 40px rgba(29, 29, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 29, 43, 0.14);
  --focus-ring: 0 0 0 3px rgba(200, 67, 26, 0.45);

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Bootstrap hooks */
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink-soft);
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-2);
  --bs-link-color-rgb: 176, 58, 20;
  --bs-link-hover-color-rgb: 169, 55, 18;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --gold-display: var(--gold);
  --bg: #11111a;
  --bg-soft: #14141e;
  --surface: #1b1b27;
  --surface-2: #222231;
  --ink: #eee9e1;
  --ink-soft: #cdc8d6;
  --muted: #a6a2b3;
  --line: rgba(238, 233, 225, 0.12);
  --line-strong: rgba(238, 233, 225, 0.24);

  --accent: #c8431a;
  --accent-hover: #dd5427;
  --accent-text: #f2804f;
  --accent-soft: rgba(242, 128, 79, 0.12);
  --gold: #d2b072;
  --gold-text: #dcbd84;
  --gold-soft: rgba(210, 176, 114, 0.14);

  --night: #0a0a11;
  --night-2: #171722;
  --on-night-line: rgba(243, 238, 230, 0.1);

  --arch-top: #2a2a3d;
  --arch-bottom: #11111a;
  --footer-bg: #0c0c13;
  --deco-opacity: 0.35;
  --illustration-filter: invert(1) hue-rotate(180deg) brightness(0.92);
  --wheel-filter: brightness(1.7) saturate(0.8);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 3px rgba(242, 128, 79, 0.55);

  --bs-link-color-rgb: 242, 128, 79;
  --bs-link-hover-color-rgb: 246, 158, 118;
  color-scheme: dark;
}

/* 2. Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

img { max-width: 100%; height: auto; }

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--accent-hover); }

:root[data-theme='dark'] a:hover { color: #f69e76; }

::selection {
  background: var(--gold);
  color: #1d1d2b;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus { transform: none; color: var(--bg); }

/* Smooth colour change while switching theme (class added briefly by JS) */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease), fill 0.45s var(--ease), filter 0.45s var(--ease) !important;
}

/* Circular theme reveal (View Transitions API, see main.js) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* Hindi pages (hi/): Devanagari fonts, no letter-spacing (it breaks the
   headline bar that joins the letters) and no slanted "italics" */
html[lang='hi'] {
  --font-display: 'Playfair Display', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'DM Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[lang='hi'] body * { letter-spacing: normal !important; }

html[lang='hi'] em,
html[lang='hi'] .marquee-track span,
html[lang='hi'] .gem-hindi,
html[lang='hi'] .quote-band blockquote,
html[lang='hi'] .gallery-strip figcaption { font-style: normal !important; }

html[lang='hi'] h1,
html[lang='hi'] h2,
html[lang='hi'] h3,
html[lang='hi'] .hero-title { line-height: 1.35; }

html[lang='hi'] .hero-title .line { padding: 0.06em 0 0.12em; }

/* Small labels (sized for spaced-out Latin capitals) are too small for Devanagari */
html[lang='hi'] .eyebrow,
html[lang='hi'] .stat-label,
html[lang='hi'] .planet-badge,
html[lang='hi'] .price-ribbon,
html[lang='hi'] .koota-table th,
html[lang='hi'] .numero-tile h4,
html[lang='hi'] .form-group-title,
html[lang='hi'] .footer-title,
html[lang='hi'] .crumbs,
html[lang='hi'] .sign-btn { font-size: 0.875rem; }

/* 3. Page loader — shown on the first page of a visit only
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 20% 80%, var(--gold-soft), transparent 45%),
    radial-gradient(circle at 80% 20%, var(--accent-soft), transparent 45%),
    var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}

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

/* Later pages in the same visit skip it (js/theme.js sets .loader-seen) */
.loader-seen .page-loader { display: none; }

.loader-inner {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  transition: transform 0.55s var(--ease-out);
}

.page-loader.is-hidden .loader-inner { transform: scale(1.15); }

.loader-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 2.4s linear infinite;
}

.loader-planet {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(200, 67, 26, 0.55);
}

.loader-mark {
  width: 96px;
  height: auto;
  animation: logoGlow 1.6s var(--ease) infinite;
}

.loader-wordmark {
  width: 190px;
  height: auto;
  animation: letterRise 0.6s var(--ease-out) 0.1s both;
}

/* 4. Header & navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.4s var(--ease);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding: 0;
  transition: min-height 0.35s var(--ease);
}

.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.site-header.is-scrolled .navbar { min-height: 70px; }

/* Phones/tablets: hide on scroll down, show on scroll up. Desktop keeps the header fixed. */
@media (max-width: 991.98px) {
  .site-header.is-tucked { transform: translateY(-100%); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  width: 74px;
  height: auto;
  transition: transform 0.8s var(--ease-spring);
}

.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.brand-wordmark {
  width: 148px;
  height: auto;
}

.brand-logo {
  width: 200px;
  height: auto;
}

.site-header .nav-link {
  position: relative;
  padding: 8px 0 !important;
  margin: 0 16px;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active {
  color: var(--gold-text);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: rotate(12deg);
}

.theme-toggle i {
  grid-area: 1 / 1;
  font-size: 1.05rem;
  transition: transform 0.55s var(--ease-spring), opacity 0.35s var(--ease);
}

.theme-toggle .icon-sun {
  color: var(--gold);
  opacity: 0;
  transform: translateY(26px) rotate(-90deg);
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  opacity: 0;
  transform: translateY(-26px) rotate(90deg);
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  opacity: 1;
  transform: none;
}

/* Language switch (English ⇄ Hindi) */
.lang-switch {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lang-switch:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

/* "Dollar prices are not confirmed" note, shown next to prices when $ is selected */
.usd-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.usd-note i { margin-top: 2px; color: var(--gold-text); }
.usd-note a { font-weight: 700; }

.section--night .usd-note { color: var(--on-night); }
.section--night .usd-note i { color: var(--gold); }
.section--night .usd-note a { color: #f2a47f; }

.usd-note--compact { margin: 12px 0 16px; font-size: 0.85rem; }

/* Small laptops (992–1199px): tighter menu spacing so the header stays on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .nav-link { margin: 0 10px; }
}

/* Currency switch (₹ / $): compact in the desktop header, full width in the mobile menu */
.currency-switch {
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.currency-switch button {
  min-width: 36px;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.currency-switch button:hover { color: var(--ink); }

.currency-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

.currency-switch--menu {
  display: flex;
  width: 100%;
  margin: 14px 0 20px;
}

.currency-switch--menu button { flex: 1; }

.currency-switch-label {
  padding: 0 12px 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Animated hamburger */
.navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.navbar-toggler:focus { box-shadow: var(--focus-ring); }

.toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  :root { --header-h: 72px; }

  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-top: 8px;
    padding: 12px 20px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .site-header .nav-link {
    margin: 0;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .site-header .nav-item:last-child .nav-link { border-bottom: 0; }

  .site-header .nav-link::after { display: none; }

  .site-header .navbar-collapse.show .nav-item,
  .site-header .navbar-collapse.collapsing .nav-item {
    animation: navItemIn 0.45s var(--ease-out) both;
  }

  .site-header .nav-item:nth-child(2) { animation-delay: 50ms !important; }
  .site-header .nav-item:nth-child(3) { animation-delay: 100ms !important; }
  .site-header .nav-item:nth-child(4) { animation-delay: 150ms !important; }
  .site-header .nav-item:nth-child(5) { animation-delay: 200ms !important; }

  .brand-mark { width: 60px; }
  .brand-wordmark { width: 128px; }
}

/* Small phones: shorter switch label ("EN"), slightly smaller logo, so the header stays on one line */
@media (max-width: 419.98px) {
  .lang-switch[data-short] { font-size: 0; }
  .lang-switch[data-short]::after { content: attr(data-short) / ""; font-size: 0.85rem; }
}

@media (max-width: 399.98px) {
  .header-actions { gap: 6px; }
  .lang-switch { padding: 0 9px; }
  .brand { gap: 6px; }
  .brand-mark { width: 52px; }
  .brand-wordmark { width: 116px; }
}

@media (max-width: 359.98px) {
  .brand { gap: 4px; }
  .brand-mark { width: 40px; }
  .brand-wordmark { width: 88px; }
}

/* 5. Buttons
   ========================================================================== */
.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-size: 0.9rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: var(--radius-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  letter-spacing: 0.03em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:focus-visible { box-shadow: var(--focus-ring); }

/* Light sweep across filled buttons on hover */
.btn-accent::before,
.btn-gold::before,
.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.btn-accent:hover::before,
.btn-gold:hover::before,
.btn-whatsapp:hover::before { transform: translateX(120%); }

.btn i { transition: transform 0.35s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(200, 67, 26, 0.28);
}

:root[data-theme='dark'] .btn-accent { --bs-btn-hover-bg: #b23a13; --bs-btn-hover-border-color: #b23a13; }

.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(200, 67, 26, 0.35); }

.btn-gold {
  --bs-btn-color: #1d1d2b;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: #1d1d2b;
  --bs-btn-hover-bg: #c9a86b;
  --bs-btn-hover-border-color: #c9a86b;
  --bs-btn-active-color: #1d1d2b;
  --bs-btn-active-bg: #c9a86b;
  --bs-btn-active-border-color: #c9a86b;
}

.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(184, 151, 90, 0.35); }

.btn-outline-ink {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--bg);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: var(--bg);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
}

.btn-outline-light-soft {
  --bs-btn-color: var(--on-night);
  --bs-btn-border-color: rgba(243, 238, 230, 0.35);
  --bs-btn-hover-color: #1d1d2b;
  --bs-btn-hover-bg: var(--on-night);
  --bs-btn-hover-border-color: var(--on-night);
  --bs-btn-active-color: #1d1d2b;
  --bs-btn-active-bg: var(--on-night);
  --bs-btn-active-border-color: var(--on-night);
}

.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: #137a3c;
  --bs-btn-border-color: #137a3c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0f6532;
  --bs-btn-hover-border-color: #0f6532;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f6532;
  --bs-btn-active-border-color: #0f6532;
}

.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(19, 122, 60, 0.3); }

.btn-sm {
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 0.82rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-text);
}

.link-arrow i { transition: transform 0.35s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

.section--night .link-arrow { color: var(--gold); }
.section--night .link-arrow:hover { color: #e3c48a; }

/* 6. Sections & typography
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}

.section > .container { position: relative; z-index: 1; }

.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--bg-soft); }

.section--night {
  --gold-display: var(--gold);
  background-color: var(--night);
  color: var(--on-night-muted);
}

.section--night h1,
.section--night h2,
.section--night h3,
.section--night h4 { color: var(--on-night); }

/* Decorative line-art backgrounds from the image set */
.deco-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--deco-opacity);
  pointer-events: none;
}

.deco-bg--stars::before { background-image: url('../images/bg/stars-gold.webp'); opacity: 0.32; }
.deco-bg--constellations::before { background-image: url('../images/bg/constellations.webp'); }
.deco-bg--celestial::before { background-image: url('../images/bg/celestial.webp'); }

@media (max-width: 767.98px) {
  .deco-bg--constellations::before { background-image: url('../images/bg/constellations-960.webp'); }
  .deco-bg--celestial::before { background-image: url('../images/bg/celestial-960.webp'); }
}

/* Twinkling star field for dark sections */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, rgba(232, 206, 150, 0.9), transparent),
    radial-gradient(1px 1px at 58% 82%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 72% 34%, rgba(232, 206, 150, 0.8), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 6% 88%, rgba(232, 206, 150, 0.7), transparent);
  animation: twinkleField 5s ease-in-out infinite alternate;
}

.starfield--offset {
  transform: translate(7%, 11%) scale(1.1);
  animation-delay: -2.5s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
}

.text-center .eyebrow::before { display: none; }

.section--night .eyebrow { color: #f2804f; }

.section-title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--gold-display);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-lead {
  font-size: 1.06rem;
  color: var(--muted);
}

.section--night .section-lead { color: var(--on-night-muted); }

.section-icon {
  display: block;
  width: 58px;
  margin: 0 auto 14px;
  animation: floatY 5s ease-in-out infinite;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list i {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 0.8rem;
  background: var(--gold-soft);
  color: var(--gold-text);
}

.check-list--2col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* 7. Home hero & inner-page banners
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-title {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}

.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }

.hero-title em { font-style: italic; color: var(--gold-display); }

.is-loaded .hero-title .line > span { transform: none; }

.hero-text {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.hero-contact a:hover { color: var(--accent-text); }

.hero-contact i {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}

/* Hero visual: arch, rotating zodiac wheel, floating decor, mouse parallax */
.hero-visual {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 12px)), calc(var(--my, 0) * var(--depth, 12px)), 0);
  transition: transform 0.9s var(--ease-out);
}

.parallax-layer--far { --depth: 8px; }
.parallax-layer--mid { --depth: 18px; }
.parallax-layer--near { --depth: 32px; }

.hero-arch {
  position: absolute;
  inset: 0 9%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--arch-top), var(--arch-bottom));
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-arch::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: inherit;
}

.hero-wheel {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 100%;
  margin-left: -50%;
  filter: var(--wheel-filter);
  animation: spin 120s linear infinite;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco--crescent {
  right: -4%;
  bottom: 6%;
  width: 30%;
}

.hero-deco--star {
  left: -2%;
  top: 8%;
  width: 18%;
}

.hero-deco--planet {
  left: 2%;
  bottom: 14%;
  width: 20%;
}

.hero-badge {
  position: absolute;
  left: -6%;
  bottom: 30%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.hero-badge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 1.1rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--line-strong);
  border-radius: 20px;
}

.scroll-cue::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollCue 1.8s var(--ease) infinite;
}

/* Inner-page banner */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(56px, 7vw, 90px);
  overflow: hidden;
}

.page-banner h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
}

.page-banner h1 em { font-style: italic; color: var(--gold-display); }

.page-banner p {
  max-width: 580px;
  font-size: 1.06rem;
  color: var(--muted);
}

.page-banner .banner-deco {
  position: absolute;
  right: 6%;
  top: 50%;
  width: clamp(160px, 22vw, 300px);
  margin-top: calc(var(--header-h) / 2);
  translate: 0 -50%;
  opacity: 0.9;
  animation: spin 80s linear infinite;
  pointer-events: none;
}

.page-banner .banner-deco--moon {
  animation: floatY 7s ease-in-out infinite;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.crumbs li + li::before { content: '\203A'; color: var(--gold); }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--accent-text); }

/* 8. Shared components
   ========================================================================== */

/* Feature trio (privacy / accuracy / experience) */
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-item img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-spring);
}

.feature-item:hover img { transform: rotate(-18deg) scale(1.08); }

.feature-item h3 { margin-bottom: 6px; font-size: 1.15rem; }
.feature-item p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* Navy line illustrations are inverted in dark mode */
.illustration { filter: var(--illustration-filter); }

.float-soft { animation: floatY 6s ease-in-out infinite; }

/* Zodiac icons: the image is used as a mask so the sign takes the text colour.
   The images themselves (.z-aries … .z-pisces) are in css/zodiac-icons.css. */
.z-icon {
  display: block;
  width: 58px;
  height: 58px;
  background-color: currentColor;
  -webkit-mask: var(--z) center / contain no-repeat;
  mask: var(--z) center / contain no-repeat;
}

.zodiac-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  margin-top: clamp(48px, 7vw, 80px);
}

@media (min-width: 576px) { .zodiac-row { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .zodiac-row { grid-template-columns: repeat(12, 1fr); } }

.zodiac-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zodiac-link .z-icon { transition: transform 0.5s var(--ease-spring), color 0.3s var(--ease); }

.zodiac-link span {
  opacity: 0.55;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.zodiac-link:hover,
.zodiac-link:focus-visible { color: var(--gold-text); }

.zodiac-link:hover .z-icon,
.zodiac-link:focus-visible .z-icon { transform: translateY(-8px) rotate(-8deg) scale(1.08); }

.zodiac-link:hover span,
.zodiac-link:focus-visible span { opacity: 1; transform: none; }

/* Service cards on dark background */
.service-card {
  position: relative;
  height: 100%;
  padding: 36px 30px 32px;
  border: 1px solid var(--on-night-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(210, 176, 114, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
  transform: translateY(30%);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(210, 176, 114, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.service-card:hover::before { opacity: 1; transform: none; }

.service-card > * { position: relative; }

.service-card img {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  transition: transform 1s var(--ease-out);
}

.service-card:hover img { transform: rotate(360deg); }

.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { font-size: 0.94rem; margin-bottom: 20px; }

/* Light variant used on the services page */
.service-card--light {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}

.service-card--light:hover {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

/* Marquee strip */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--gold);
  color: #1d1d2b;
}

.marquee-track {
  display: flex;
  width: max-content;
}

/* The strip slides only while the page is scrolled, so nothing moves on its own */
@supports (animation-timeline: view()) {
  .marquee-track {
    animation: marquee linear both;
    animation-timeline: view();
  }
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-style: italic;
  white-space: nowrap;
}

.marquee-track span::after {
  content: '\2726';
  font-style: normal;
  font-size: 0.9em;
  color: #6b4d18;
}

/* Gemstone cards */
.gem-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}

.gem-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.gem-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 55%, var(--gem-glow, var(--gold-soft)), transparent 62%), var(--surface-2);
  overflow: hidden;
}

.gem-media img {
  width: 62%;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.22));
  transition: transform 0.8s var(--ease-spring);
}

.gem-card:hover .gem-media img { transform: translateY(-10px) rotate(-8deg) scale(1.06); }

/* Glint that passes over the stone on hover */
.gem-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
}

.gem-card:hover .gem-media::after { transform: translateX(100%); }

.gem--yellow-sapphire { --gem-glow: rgba(232, 176, 30, 0.3); }
.gem--emerald { --gem-glow: rgba(64, 140, 80, 0.3); }
.gem--moonstone { --gem-glow: rgba(236, 214, 150, 0.4); }
.gem--hessonite { --gem-glow: rgba(160, 60, 30, 0.28); }
.gem--cats-eye { --gem-glow: rgba(190, 150, 60, 0.3); }
.gem--red-coral { --gem-glow: rgba(235, 120, 30, 0.32); }

.planet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.gem-card h3 { margin-bottom: 2px; font-size: 1.3rem; }

.gem-hindi {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-text);
}

.gem-card p { font-size: 0.92rem; color: var(--muted); }

.gem-price {
  margin: auto 0 18px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.gem-price small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.gem-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gem-actions .btn { --bs-btn-padding-x: 1rem; flex: 1; }

/* Counters */
.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.stat-number sup { font-size: 0.5em; color: var(--gold-display); top: -0.8em; }

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-band .col-6 + .col-6 .stat { position: relative; }

@media (min-width: 992px) {
  .stats-band .col-lg-3 + .col-lg-3 .stat::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--line);
  }
}

/* Testimonials */
.testimonial {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.testimonial .bi-quote {
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-soft);
}

.stars { color: var(--gold-display); letter-spacing: 3px; font-size: 0.9rem; }

.testimonial blockquote {
  margin: 16px 0 26px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.testimonial figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}

.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Call-to-action band */
.cta-band .cta-visual {
  width: min(100%, 360px);
  margin: 0 auto;
  animation: floatY 7s ease-in-out infinite;
}

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-text);
  box-shadow: 0 0 0 8px var(--bg);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-spring);
}

.step:hover .step-num {
  background: var(--gold);
  color: #1d1d2b;
  transform: scale(1.08);
}

.section--surface .step-num { box-shadow: 0 0 0 8px var(--surface); }

/* Dashed connector that draws in when revealed */
@media (min-width: 1200px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    left: calc(50% + 38px);
    width: calc(100% - 76px + 32px);
    border-top: 1px dashed var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out) 0.4s;
  }

  .step.is-visible::after { transform: scaleX(1); }
}

.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* Pricing */
.price-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 34px;
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

.price-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }

.price-card--featured { outline: 2px solid var(--accent); }

@media (min-width: 992px) {
  .price-card--featured { transform: translateY(-14px); }
  .price-card--featured:hover { transform: translateY(-22px); }
}

.price-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card .price-icon {
  height: 70px;
  width: auto;
  margin: 0 auto 16px;
  transition: transform 0.8s var(--ease-spring);
}

.price-card:hover .price-icon { transform: rotate(-12deg) scale(1.1); }

.price-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: var(--ink) !important;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.price-amount span { font-size: 0.55em; vertical-align: super; color: var(--gold-text); }

.price-period {
  display: block;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.price-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 0.93rem;
}

.price-list li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
}

.price-list .bi-check2 { color: var(--gold-text); }

.price-list li.is-off { color: var(--muted); opacity: 0.6; text-decoration: line-through; }

.price-card .btn { margin-top: auto; }

/* FAQ accordion */
.faq .accordion {
  --bs-accordion-bg: var(--surface);
  --bs-accordion-color: var(--ink-soft);
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-color: var(--ink);
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-active-bg: var(--surface);
  --bs-accordion-btn-focus-box-shadow: var(--focus-ring);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: var(--radius);
}

.faq .accordion-item {
  margin-bottom: 12px;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--gold) !important;
  box-shadow: var(--shadow);
}

.faq .accordion-button {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: none;
}

.faq .accordion-button::after {
  background-image: none;
  content: '+';
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease-spring);
}

.faq .accordion-button:not(.collapsed)::after { transform: rotate(135deg); }

.faq .accordion-body { padding: 0 24px 22px; color: var(--muted); }

/* Forms */
.form-label {
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-control,
.form-select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.form-control::placeholder { color: var(--muted); opacity: 0.8; }

.form-select { padding-right: 2.75rem; }

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  background-color: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15); }

:root[data-theme='dark'] .form-control::-webkit-calendar-picker-indicator { filter: invert(0.85); }

.form-hint { font-size: 0.8rem; color: var(--muted); }

.form-panel {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-panel h2 { font-size: 1.6rem; margin-bottom: 6px; }

/* Bootstrap modal */
.modal {
  --bs-modal-bg: var(--surface);
  --bs-modal-color: var(--ink-soft);
  --bs-modal-border-color: var(--line);
  --bs-modal-border-radius: var(--radius-lg);
  --bs-modal-header-border-color: var(--line);
}

.modal.fade .modal-dialog {
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}

.modal.show .modal-dialog { transform: none; }

:root[data-theme='dark'] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Photo frames with hover zoom */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.photo-frame:hover img { transform: scale(1.06); }

.photo-frame--arch { border-radius: 999px 999px var(--radius) var(--radius); }

/* 9. Page-specific components
   ========================================================================== */

/* About teaser (home) */
.about-visual {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 8% -4% -2% 10%;
  border-radius: 999px 999px 0 0;
  background: var(--gold-soft);
  z-index: -1;
}

/* Match-making feature */
.match-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.match-visual .photo-frame { aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }

.match-visual .match-score {
  position: absolute;
  right: -10px;
  bottom: -26px;
  width: 150px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: floatY 6s ease-in-out infinite;
}

.match-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent-text);
}

.match-score > span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.match-visual .match-moons {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 140px;
  animation: floatY 7s ease-in-out -2s infinite;
}

/* Guna Milan table */
.koota-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 0.94rem;
}

.koota-table caption {
  caption-side: bottom;
  padding-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.koota-table th {
  padding: 0 14px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.koota-table td {
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink-soft);
}

.koota-table td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 700; color: var(--ink); }
.koota-table td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; width: 34%; }

.koota-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.koota-bar .track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--gold-soft);
  overflow: hidden;
}

.koota-bar .fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.is-visible .koota-bar .fill { transform: scaleX(1); }

.pts-1 { width: 12.5%; }
.pts-2 { width: 25%; }
.pts-3 { width: 37.5%; }
.pts-4 { width: 50%; }
.pts-5 { width: 62.5%; }
.pts-6 { width: 75%; }
.pts-7 { width: 87.5%; }
.pts-8 { width: 100%; }

.koota-table tbody tr:nth-child(2) .fill { transition-delay: 0.08s; }
.koota-table tbody tr:nth-child(3) .fill { transition-delay: 0.16s; }
.koota-table tbody tr:nth-child(4) .fill { transition-delay: 0.24s; }
.koota-table tbody tr:nth-child(5) .fill { transition-delay: 0.32s; }
.koota-table tbody tr:nth-child(6) .fill { transition-delay: 0.4s; }
.koota-table tbody tr:nth-child(7) .fill { transition-delay: 0.48s; }
.koota-table tbody tr:nth-child(8) .fill { transition-delay: 0.56s; }

.koota-bar b { min-width: 16px; text-align: right; color: var(--ink); }

@media (max-width: 575.98px) {
  .koota-table th:nth-child(2),
  .koota-table td:nth-child(2) { display: none; }
}

.koota-table tfoot td {
  background: var(--night);
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.koota-table tfoot td:first-child { color: var(--on-night); }

/* Service detail blocks (services page) */
.service-detail + .service-detail { margin-top: clamp(72px, 9vw, 120px); }

.service-detail .detail-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
}

.detail-media {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.detail-media .photo-frame { aspect-ratio: 1; box-shadow: var(--shadow-lg); }

.detail-media .detail-deco {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  animation: spin 50s linear infinite;
}

.service-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Zodiac explorer (services page) */
.zodiac-explorer {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sign-finder {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.sign-finder .form-field { flex: 1 1 200px; }

.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 576px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .sign-grid { grid-template-columns: repeat(6, 1fr); } }

.sign-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), transform 0.4s var(--ease-spring);
}

.sign-btn .z-icon { width: 40px; height: 40px; transition: transform 0.5s var(--ease-spring); }

.sign-btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.sign-btn:hover .z-icon { transform: rotate(-10deg) scale(1.1); }

.sign-btn[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-text);
}

.sign-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night-muted);
}

.sign-result.is-updating { animation: resultIn 0.6s var(--ease-out); }

.sign-result .z-icon {
  width: 86px;
  height: 86px;
  color: var(--gold);
}

.sign-result h3 { margin-bottom: 2px; color: var(--on-night); font-size: 1.6rem; }
.sign-result .sign-dates { font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; }

.sign-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.sign-facts strong { color: var(--on-night); }

.sign-result p { margin: 0; font-size: 0.85rem; }
.sign-result a { color: #f2a47f; }

@media (max-width: 575.98px) {
  .sign-result { grid-template-columns: 1fr; text-align: center; }
  .sign-result .z-icon { margin: 0 auto; }
  .sign-facts { justify-content: center; }
}

/* Values (about page) */
.value-card {
  height: 100%;
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}

.value-card:hover {
  transform: translateY(-8px);
  border-top-color: var(--accent);
  box-shadow: var(--shadow);
}

.value-card .value-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 1.4rem;
  transition: transform 0.6s var(--ease-spring), background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.value-card:hover .value-icon { transform: rotate(-12deg) scale(1.1); background: var(--accent); color: #fff; }

.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }

.about-collage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.about-collage .photo-frame:first-child {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.about-collage .photo-frame:not(:first-child) { aspect-ratio: 1; }

/* Parallax quote band */
.quote-band {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.quote-band-bg {
  position: absolute;
  inset: -20% 0;
  background: url('../images/photos/zodiac-clock.webp') center / cover no-repeat;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.quote-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.72), rgba(20, 20, 30, 0.84));
}

.quote-band .container { position: relative; z-index: 1; }

.quote-band blockquote {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-style: italic;
  line-height: 1.3;
}

.quote-band .bi-stars { display: block; margin-bottom: 18px; font-size: 2rem; color: var(--gold); }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }

.gallery-strip .photo-frame {
  aspect-ratio: 1;
  border-radius: 0;
}

.gallery-strip .photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 20, 30, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.gallery-strip .photo-frame:hover::after { opacity: 1; }

.gallery-strip figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-out);
}

.gallery-strip .photo-frame:hover figcaption { opacity: 1; transform: none; }

/* Products page */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.filter-chip:hover { border-color: var(--gold); transform: translateY(-2px); }

.filter-chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.shop-sort .form-select { width: auto; padding-top: 0.55rem; padding-bottom: 0.55rem; }

.result-count { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.product-col.is-entering { animation: cardIn 0.55s var(--ease-out) both; }

.custom-order-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night-muted);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.custom-order-card h3 { color: var(--on-night); }

.custom-order-card img {
  width: 110px;
  margin: 0 auto 18px;
  animation: floatY 6s ease-in-out infinite;
}

.stone-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.stone-tags li {
  padding: 4px 12px;
  border: 1px solid var(--on-night-line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--on-night);
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-item i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 1.3rem;
  transition: transform 0.6s var(--ease-spring);
}

.trust-item:hover i { transform: rotateY(360deg); }

.trust-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.trust-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.gem-modal-media {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 55%, var(--gem-glow, var(--gold-soft)), transparent 65%), var(--surface-2);
}

.gem-modal-media img {
  width: 70%;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.25));
  animation: floatY 5s ease-in-out infinite;
}

.wear-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.wear-guide div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
  font-size: 0.85rem;
}

.wear-guide span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wear-guide strong { color: var(--ink); }

/* Contact page */
.info-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card + .info-card { margin-top: 24px; }

.info-card h2 { font-size: 1.5rem; margin-bottom: 22px; }

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-list i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  transition: transform 0.5s var(--ease-spring);
}

.info-list li:hover i { transform: scale(1.12) rotate(-10deg); }

.info-list span { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list strong { color: var(--ink); font-weight: 600; }
.info-list a:hover { color: var(--accent-text); }

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

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}

.hours-list li:last-child { border-bottom: 0; }
.hours-list strong { color: var(--ink); }

.hours-list li.is-today {
  margin: 0 -12px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.hours-list li.is-today strong::after {
  content: 'Today';
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1d2b;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.form-success {
  text-align: center;
  padding: 30px 10px;
  animation: resultIn 0.6s var(--ease-out);
}

.form-success .bi {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(31, 168, 85, 0.14);
  color: var(--whatsapp);
  font-size: 2rem;
  animation: popIn 0.6s var(--ease-spring);
}

.map-card {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 460px);
  border: 0;
  border-radius: var(--radius-sm);
}

:root[data-theme='dark'] .map-card iframe { filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9); }

.compass {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 2.4rem;
  color: var(--accent-text);
  animation: compass 6s ease-in-out infinite;
}

/* Numerology calculator (services page) */
.numero-form {
  display: grid;
  gap: 12px;
  align-items: start;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .numero-form { grid-template-columns: 1fr 1fr auto; }
  .numero-form .btn { margin-top: 32px; }
}

.numero-results {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

@media (min-width: 576px) { .numero-results { grid-template-columns: repeat(3, 1fr); } }

.numero-results.is-updating .numero-tile { animation: resultIn 0.6s var(--ease-out) both; }
.numero-results.is-updating .numero-tile:nth-child(2) { animation-delay: 80ms; }
.numero-results.is-updating .numero-tile:nth-child(3) { animation-delay: 160ms; }

.numero-tile {
  padding: 22px 16px 20px;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night-muted);
  text-align: center;
}

.numero-tile :is(h3, h4) {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night);
}

.numero-value {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.numero-planet { display: block; font-size: 0.85rem; font-weight: 700; color: #e3c48a; }
.numero-traits { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.5; }
.numero-total { display: block; margin-top: 2px; font-size: 0.75rem; opacity: 0.8; }

.numero-gem { margin: 18px 0 0; font-size: 0.9rem; }

.numero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* UPI payment: "Pay online" link on the fee cards + payment modal */
.price-pay {
  margin-top: 14px;
  padding: 4px;
  border: 0;
  background: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-text);
}

.price-pay:hover { color: var(--accent-hover); text-decoration: underline; }

.pay-head { text-align: center; }
.pay-head h2 { margin-bottom: 2px; font-size: 1.5rem; }

.pay-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.pay-qr {
  width: min(230px, 70vw);
  margin: 20px auto 10px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.pay-qr svg { display: block; width: 100%; height: auto; }

.pay-upi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.9rem;
}

.pay-upi strong { color: var(--ink); word-break: break-all; }

.pay-copy {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.pay-copy:hover { border-color: var(--gold); background: var(--gold-soft); }

.pay-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.pay-steps {
  margin: 22px 0 0;
  padding: 18px 20px 18px 38px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.88rem;
}

.pay-steps li + li { margin-top: 6px; }

/* Contact form: preferred appointment / birth details (fieldset + legend;
   Bootstrap's reboot already resets the fieldset) */
.form-group-title {
  float: none;
  width: 100%;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Legal pages (privacy, terms, disclaimer) and articles (.prose) */
.legal,
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.legal-meta {
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal h2,
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.legal h2:first-of-type,
.prose h2:first-of-type { margin-top: 0; }

.legal ul,
.prose :is(ul, ol) {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.legal li + li,
.prose li + li { margin-top: 6px; }
.legal li::marker,
.prose li::marker { color: var(--gold); }
.legal strong,
.prose strong { color: var(--ink); }

.legal-note {
  margin: 0 0 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gold-soft);
  color: var(--ink-soft);
}

/* Articles */
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.15rem; }
.prose figure { margin: 0 0 28px; }
.prose figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }

.table-scroll { overflow-x: auto; margin: 0 0 1.6rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--gold-soft); color: var(--ink); font-weight: 700; }

.article-cta {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-night-muted);
}

.article-cta h2 { margin: 0 0 8px; color: var(--on-night); font-size: 1.4rem; }
.article-cta p { margin: 0 0 20px; }
.article-cta .d-flex { gap: 12px; }

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.article-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.article-card h3 { margin: 0; font-size: 1.3rem; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.article-card .link-arrow { margin-top: auto; padding-top: 6px; }
.article-card .tool-icon { font-size: 2rem; line-height: 1; color: var(--gold-text); }

/* Festival and muhurat calendar */
.cal-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  max-width: 820px;
  margin-bottom: 28px;
}

.cal-intro p { flex: 1 1 380px; margin: 0; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cal-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { color: var(--gold-text); }

.cal-month {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cal-month h2 { margin: 0 0 14px; font-size: 1.35rem; }
.cal-month.is-current { box-shadow: 0 0 0 2px var(--gold), var(--shadow-sm); }
.cal-month.is-past { opacity: 0.6; }

.cal-festivals {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cal-festivals li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; }

.cal-festivals time {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-text);
  text-align: right;
}

.cal-muhurat {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.cal-muhurat dt { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.cal-muhurat dt i { color: var(--gold-text); }
.cal-muhurat dd { margin: 0 0 4px 24px; color: var(--ink-soft); }
.cal-muhurat .cal-none { color: var(--muted); }

/* Moon sign calculator (reuses the numerology result tiles) */
.moon-form {
  display: grid;
  gap: 14px 16px;
  align-items: start;
}

@media (min-width: 768px) {
  .moon-form { grid-template-columns: 1fr 1fr 1.3fr; }
  .moon-form-actions { grid-column: 1 / -1; }
}

.moon-form .form-check { margin-top: 10px; font-size: 0.9rem; }

.numero-tile .z-icon { width: 44px; height: 44px; margin: 12px auto 6px; color: var(--gold); }

.moon-value {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gold);
}

.moon-notes {
  margin: 18px 0 0;
  padding: 14px 18px 14px 36px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.moon-notes li + li { margin-top: 6px; }

/* 404 page */
.notfound {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  text-align: center;
  overflow: hidden;
}

.notfound-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 120vw);
  margin: calc(min(720px, 120vw) / -2) 0 0 calc(min(720px, 120vw) / -2);
  opacity: 0.16;
  filter: var(--wheel-filter);
  animation: spin 120s linear infinite;
  pointer-events: none;
}

.notfound .container { position: relative; }

.notfound-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-display);
}

.notfound h1 { margin: 6px 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.notfound p { max-width: 520px; margin: 0 auto 6px; color: var(--muted); }
.notfound .notfound-alt { margin-bottom: 30px; font-size: 0.9rem; }

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* 10. Footer & floating buttons
   ========================================================================== */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 0;
  background: var(--footer-bg);
  overflow: hidden;
  font-size: 0.93rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg/celestial.webp') center / cover no-repeat;
  opacity: calc(var(--deco-opacity) * 0.6);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .site-footer::before { background-image: url('../images/bg/celestial-960.webp'); }
}

.site-footer .container { position: relative; }

.footer-about { max-width: 340px; margin: 18px 0 22px; color: var(--muted); }

.footer-title {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}

.footer-links a::before {
  content: '\2726';
  position: absolute;
  left: -2px;
  opacity: 0;
  font-size: 0.7em;
  color: var(--gold);
  transition: opacity 0.3s var(--ease);
}

.footer-links a:hover { color: var(--accent-text); padding-left: 16px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contact li { display: flex; gap: 12px; color: var(--ink-soft); }
.footer-contact i { color: var(--accent-text); }
.footer-contact a { color: var(--ink); font-weight: 600; }
.footer-contact a:hover { color: var(--accent-text); }

.social-links { display: flex; gap: 10px; }

.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.4s var(--ease-spring);
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1d1d2b;
  transform: translateY(-4px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--accent-text); }

/* Floating WhatsApp (top) + back-to-top (bottom), right-hand corner */
.float-btn {
  position: fixed;
  right: 20px;
  z-index: 1040;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease-spring), opacity 0.35s var(--ease),
    visibility 0.35s var(--ease), background-color 0.3s var(--ease);
}

.float-whatsapp {
  bottom: 90px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 1.6rem;
}

.float-whatsapp:hover { color: #fff; transform: scale(1.1) rotate(-8deg); }

/* Pulse ring */
.float-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulseRing 2.2s var(--ease) infinite;
}

.float-whatsapp .float-label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.float-whatsapp:hover .float-label,
.float-whatsapp:focus-visible .float-label { opacity: 1; transform: none; }

.back-to-top {
  bottom: 24px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover { background: var(--ink); color: var(--bg); }
.back-to-top:hover i { animation: nudgeUp 0.8s var(--ease) infinite; }

/* Scroll-progress ring around the back-to-top button */
.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress, 0));
  stroke-linecap: round;
}

@media (max-width: 575.98px) {
  .float-btn { right: 14px; width: 50px; height: 50px; }
  .float-whatsapp { bottom: 80px; }
  .back-to-top { bottom: 18px; }
}

/* Phones and tablets: every tap target is at least 44px tall */
@media (max-width: 991.98px) {
  .brand,
  a.link-arrow,
  .hero-contact a,
  .info-list a,
  .btn-sm,
  .filter-chip { min-height: 44px; }

  .footer-links { gap: 0; }
  .footer-contact li { align-items: center; }

  .footer-links a,
  .footer-contact a,
  .footer-bottom nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-bottom nav { column-gap: 24px; row-gap: 0; }

  /* Bigger hit area without changing the breadcrumb's look */
  .crumbs a {
    display: inline-block;
    padding: 12px 6px;
    margin: -12px -6px;
  }
}

/* Phones: call / WhatsApp / book bar fixed to the bottom of the screen.
   It replaces the floating WhatsApp button there. */
.mobile-cta { display: none; }

@media (max-width: 767.98px) {
  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(29, 29, 43, 0.08);
    transition: transform 0.3s var(--ease);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-cta a:active { transform: scale(0.97); }
  .mobile-cta .bi-whatsapp { color: #137a3c; font-size: 1.1rem; }
  :root[data-theme='dark'] .mobile-cta .bi-whatsapp { color: #25d366; }

  .mobile-cta a.is-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
  }

  /* Out of the way while typing, so it never covers a form field */
  :root:has(:is(input, textarea, select):focus) .mobile-cta { transform: translateY(110%); }

  /* Room for the bar: the footer's last line and focused controls stay visible above it */
  html { scroll-padding-bottom: 90px; }
  .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .float-whatsapp { display: none; }
  .back-to-top { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* 11. Motion
   ========================================================================== */

/* Scroll reveal: hidden only when JS is running (html.js) */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--reveal-step, 0) * 110ms);
}

.js [data-reveal='up'] { transform: translateY(40px); }
.js [data-reveal='down'] { transform: translateY(-30px); }
.js [data-reveal='left'] { transform: translateX(-50px); }
.js [data-reveal='right'] { transform: translateX(50px); }
.js [data-reveal='zoom'] { transform: scale(0.9); }
.js [data-reveal='rotate'] { transform: rotate(-8deg) scale(0.9); }

.js [data-reveal].is-visible { opacity: 1; transform: none; }

[data-delay='1'] { --reveal-step: 1; }
[data-delay='2'] { --reveal-step: 2; }
[data-delay='3'] { --reveal-step: 3; }
[data-delay='4'] { --reveal-step: 4; }
[data-delay='5'] { --reveal-step: 5; }
[data-delay='6'] { --reveal-step: 6; }

/* Hero content fades in once the loader has gone */
.js .hero-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease-out);
}

.js .hero-fade[data-delay='1'] { transition-delay: 0.25s; }
.js .hero-fade[data-delay='2'] { transition-delay: 0.4s; }
.js .hero-fade[data-delay='3'] { transition-delay: 0.55s; }
.js .hero-fade[data-delay='4'] { transition-delay: 0.7s; }

.js.is-loaded .hero-fade { opacity: 1; transform: none; }

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes twinkleField {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@keyframes logoGlow {
  0%, 100% { transform: scale(0.94); filter: drop-shadow(0 0 0 rgba(222, 170, 40, 0)); }
  50% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(222, 170, 40, 0.6)); }
}

@keyframes letterRise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes navItemIn {
  from { opacity: 0; transform: translateX(-14px); }
}

@keyframes marquee { to { transform: translateX(-30%); } }

@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes pulseRing {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes nudgeUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(16px); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.4); }
}

@keyframes compass {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(22deg); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .hero-fade,
  .hero-title .line > span {
    opacity: 1;
    transform: none;
  }

  .marquee-track { animation: none; }
  .quote-band-bg { transform: none; }
}

/* Small-screen adjustments
   ========================================================================== */
@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 2rem; }
  .hero-badge { left: 0; bottom: 22%; }
  .match-visual .match-score { right: 10px; bottom: -20px; width: 130px; }
  .match-visual .match-moons { left: -10px; top: -30px; width: 100px; }
  .gem-actions { flex-wrap: wrap; }
}
