/* ==========================================================================
   BanjaraBio Editorial & Heritage Design System (50LPA+ Craft)
   Default: Warm Sandstone Ivory (#FBF7F0) + Deep Vermilion Maroon (#8C1620)
   Dark Mode: Nocturnal Ceremony Maroon (#120608) + Burnished Gold (#E0A33A)
   ========================================================================== */

:root {
  --bg-page: #fbf7f0;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f4ede1;
  --bg-hero-dark: #3b090e;
  --bg-card-glass: rgba(255, 255, 255, 0.86);

  --ink-primary: #180a0c;
  --ink-secondary: #5a4446;
  --ink-muted: #7d6668;
  --ink-on-dark: #fdf9f3;
  --ink-on-dark-muted: #dec8c9;

  --maroon-900: #3b090e;
  --maroon-700: #8c1620;
  --maroon-600: #a61e2a;
  --gold-600: #9f670a;
  --gold-500: #c68a1e;
  --gold-300: #f3d08a;
  --emerald-600: #13795b;
  --emerald-50: #ecfdf5;

  --border-hairline: rgba(140, 22, 32, 0.14);
  --border-gold: rgba(198, 138, 30, 0.34);
  --shadow-editorial: 0 24px 60px -18px rgba(59, 9, 14, 0.14);
  --shadow-card: 0 10px 30px -10px rgba(24, 10, 12, 0.08);

  --font-display: 'Fraunces', Georgia, serif;
  --font-heading: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tactile: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1220px;
}

[data-theme='dark'] {
  --bg-page: #120608;
  --bg-surface: #1d0c0f;
  --bg-surface-alt: #271014;
  --bg-hero-dark: #25080b;
  --bg-card-glass: rgba(29, 12, 15, 0.86);

  --ink-primary: #faf4eb;
  --ink-secondary: #d7c0c1;
  --ink-muted: #9e8183;

  --maroon-700: #d94350;
  --maroon-600: #e55864;
  --gold-600: #eab553;
  --gold-500: #f2c46d;
  --emerald-600: #34d399;
  --emerald-50: rgba(16, 185, 129, 0.12);

  --border-hairline: rgba(242, 196, 109, 0.16);
  --border-gold: rgba(242, 196, 109, 0.36);
  --shadow-editorial: 0 28px 70px -20px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 12px 32px -12px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Subtle artisanal paper grain without external assets */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll Progress Hairline Thread */
.scroll-thread {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--maroon-700), var(--gold-500));
  z-index: 1000;
  pointer-events: none;
}

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

/* ==========================================================================
   Sticky Editorial Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 247, 240, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

[data-theme='dark'] .site-header {
  background: rgba(18, 6, 8, 0.84);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -16px rgba(59, 9, 14, 0.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  padding: 2px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-wordmark strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-wordmark span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon-700);
  background: rgba(140, 22, 32, 0.08);
}

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

.btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-tactile), border-color 0.2s ease;
}

.btn-theme:hover {
  border-color: var(--gold-500);
  transform: translateY(-1px);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--maroon-700);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(140, 22, 32, 0.55);
  transition: transform 0.25s var(--ease-tactile), background-color 0.2s ease;
  white-space: nowrap;
}

[data-theme='dark'] .btn-nav-primary {
  color: #120608;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  background: var(--maroon-600);
}

.btn-mobile-menu {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile Full-Screen Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg-page);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s var(--ease-expo), transform 0.28s var(--ease-expo);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 8px;
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--ink-primary);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-hairline);
}

.mobile-drawer a.active {
  color: var(--maroon-700);
}

/* ==========================================================================
   Typography & Reusable Components
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(198, 138, 30, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 13px;
  border-radius: 999px;
}

.display-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.display-h1 em {
  font-style: italic;
  color: var(--maroon-700);
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.section-lead {
  font-size: 16.5px;
  color: var(--ink-secondary);
  max-width: 620px;
  line-height: 1.68;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(140, 22, 32, 0.45);
  transition: transform 0.25s var(--ease-tactile), box-shadow 0.25s ease;
}

[data-theme='dark'] .btn-primary {
  background: linear-gradient(135deg, #d94350, #9e1b24);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(140, 22, 32, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--ink-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-tactile), border-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-expo), border-color 0.3s ease, box-shadow 0.35s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-editorial);
}

/* Deep Ceremony Contrast Band */
.band-ceremony {
  background: radial-gradient(circle at 85% 15%, rgba(198, 138, 30, 0.14), transparent 52%),
    linear-gradient(160deg, #3b090e 0%, #240508 100%);
  color: var(--ink-on-dark);
  border-top: 1px solid rgba(243, 208, 138, 0.2);
  border-bottom: 1px solid rgba(243, 208, 138, 0.2);
}

.band-ceremony .section-heading,
.band-ceremony h2,
.band-ceremony h3,
.band-ceremony strong {
  color: #ffffff;
}

.band-ceremony p,
.band-ceremony .section-lead {
  color: var(--ink-on-dark-muted);
}

.band-ceremony .eyebrow {
  color: var(--gold-300);
  background: rgba(243, 208, 138, 0.12);
  border-color: rgba(243, 208, 138, 0.35);
}

/* Heritage Geometric Divider SVG */
.mirrorwork-divider {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mirrorwork-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.mirrorwork-diamond svg {
  width: 34px;
  height: 20px;
  stroke: var(--gold-500);
  fill: none;
  stroke-width: 1.4;
}

.mirrorwork-diamond path {
  stroke-dasharray: 120;
  stroke-dashoffset: var(--draw-offset, 120);
  transition: stroke-dashoffset 1s var(--ease-expo);
}

.mirrorwork-diamond.is-visible path {
  stroke-dashoffset: 0;
}

/* Elder Assist Banner (Always high-clarity Marathi + English) */
.elder-assist-bar {
  background: linear-gradient(135deg, rgba(19, 121, 91, 0.08), rgba(198, 138, 30, 0.08));
  border: 1px solid rgba(19, 121, 91, 0.26);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.elder-assist-copy h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.elder-assist-copy p {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #15803d;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: transform 0.2s var(--ease-tactile), background-color 0.2s ease;
  white-space: nowrap;
}

.btn-wa:hover {
  background: #166534;
  transform: translateY(-1px);
}

/* Inner Page Hero Header */
.page-header {
  padding: 56px 0 36px;
}

.page-header .display-h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 14px 0 14px;
}

/* Deep Link Redirect Banner */
.redirect-banner {
  display: none;
  background: var(--bg-hero-dark);
  color: #ffffff;
  border-bottom: 2px solid var(--gold-500);
  padding: 14px 24px;
}

.redirect-banner.is-active {
  display: block;
}

.redirect-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Compositor-Safe Scroll Reveals */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.72s var(--ease-expo), transform 0.72s var(--ease-expo);
  will-change: opacity, transform;
}

[data-reveal='left'] {
  transform: translate3d(-24px, 0, 0);
}

[data-reveal='right'] {
  transform: translate3d(24px, 0, 0);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Footer */
.site-footer {
  margin-top: 84px;
  background: var(--bg-hero-dark);
  color: var(--ink-on-dark);
  padding: 64px 0 36px;
  border-top: 2px solid rgba(198, 138, 30, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-on-dark-muted);
  margin-top: 12px;
  max-width: 310px;
}

.footer-sevalal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(243, 208, 138, 0.12);
  border: 1px solid rgba(243, 208, 138, 0.32);
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-on-dark-muted);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-on-dark-muted);
}

.footer-bottom a {
  color: var(--gold-300);
  text-decoration: none;
}

/* Mobile Floating Quick Dock & WhatsApp Button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 450;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #15803d;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(21, 128, 61, 0.4);
  transition: transform 0.25s var(--ease-tactile);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 480;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 8px 6px;
  box-shadow: 0 18px 44px rgba(24, 10, 12, 0.22);
}

.mobile-dock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.mobile-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 10.5px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 5px 2px;
  cursor: pointer;
}

.mobile-dock-item.active {
  color: var(--maroon-700);
}

/* Responsive Rules */
@media (max-width: 1020px) {
  .nav-links,
  .btn-nav-primary {
    display: none;
  }
  .btn-mobile-menu {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }
  .nav-inner {
    padding: 12px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mobile-dock {
    display: block;
  }
  .wa-float {
    bottom: 84px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  body {
    padding-bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mirrorwork-diamond path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mobile-dock,
  .wa-float,
  .scroll-thread,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
}
