/* ===========================================
   RADHA SOAMI — style.css
   Mobile-first · Light Spiritual Theme
   =========================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #FDFAF4;
  color: #2C2A3E;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
blockquote { font-style: italic; }

/* --- TOKENS --- */
:root {
  --bg: #FDFAF4;
  --bg-alt: #FFF8EE;
  --bg-card: #FFFFFF;
  --gold: #B5862A;
  --gold-mid: #C9A84C;
  --gold-pale: #F0E2C0;
  --gold-xpale: #FAF3E0;
  --saffron: #C96A2A;
  --navy: #1C1E3A;
  --navy-mid: #2D3561;
  --text: #2C2A3E;
  --text-mid: #5A5878;
  --text-muted: #8A88A0;
  --border: #E8D9C0;
  --border-light: #F0E8D8;
  --shadow-sm: 0 2px 8px rgba(181,134,42,0.08);
  --shadow-md: 0 6px 24px rgba(181,134,42,0.12);
  --shadow-lg: 0 16px 48px rgba(181,134,42,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1100px;
}

/* --- TYPOGRAPHY --- */
h1,h2,h3,h4,h5 { line-height: 1.22; font-weight: 600; }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; }
h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); }
h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); }
h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; }
em { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05em; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PROGRESS BAR --- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- NAV --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(253,250,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
  /* Safe area for notch / Dynamic Island */
  padding-top: env(safe-area-inset-top, 0px);
  /* isolation: isolate gives us a stacking context WITHOUT making us
     the containing block for position:fixed children (transform would break that) */
  isolation: isolate;
}
#navbar.scrolled {
  background: rgba(253,250,244,0.97);
  box-shadow: 0 2px 20px rgba(181,134,42,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
  z-index: 10;
}
.nav-logo:hover { color: var(--saffron); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--navy);
  position: relative;
  z-index: 10;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* --- MOBILE NAV OVERLAY --- */
/* NOTE: position:fixed won't work here because backdrop-filter on the navbar
   parent creates a new containing block for fixed descendants (same as transform).
   Using position:absolute + 100vw/100dvh anchors to navbar top-left = viewport top-left. */
.nav-links {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #FDFAF4;
  gap: 0;
  padding: 0;
  overflow-y: auto;
  /* no explicit z-index needed — sits inside navbar stacking context (z-index:900) */
}
.nav-links.open {
  display: flex;
  animation: overlay-fade 0.28s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes overlay-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Gold ornament line above menu items */
.nav-links::before {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--gold-mid);
  border-radius: 2px;
  opacity: 0.55;
  margin-bottom: 4px;
}
/* Staggered item slide-in */
.nav-links.open li {
  animation: nav-item-in 0.42s cubic-bezier(0.4,0,0.2,1) both;
  opacity: 0;
}
.nav-links.open li:nth-child(1) { animation-delay: 0.06s; }
.nav-links.open li:nth-child(2) { animation-delay: 0.12s; }
.nav-links.open li:nth-child(3) { animation-delay: 0.18s; }
.nav-links.open li:nth-child(4) { animation-delay: 0.24s; }
.nav-links.open li:nth-child(5) { animation-delay: 0.30s; }
.nav-links.open li:nth-child(6) { animation-delay: 0.36s; }
@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-link {
  display: block;
  width: 100%;
  padding: 20px 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links li:first-child .nav-link { border-top: 1px solid var(--border-light); }
.nav-link:hover  { color: var(--gold); background: var(--gold-xpale); }
.nav-link.active { color: var(--gold); background: var(--gold-xpale); font-weight: 500; }

/* --- HERO --- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 80px;
  background: var(--bg);
}
.hero-mandala {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.mandala-svg {
  width: min(90vw, 600px);
  height: auto;
  animation: mandala-rotate 90s linear infinite;
  opacity: 0.9;
}
@keyframes mandala-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  animation: hero-in 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-overtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-size: 1em;
}
.hero-sub {
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-etym {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.etym-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}
.etym-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.etym-def {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
.etym-op {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 300;
}
.etym-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold-pale);
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  letter-spacing: 0.02em;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(28,30,58,0.18);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,134,42,0.28);
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--gold-mid);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--gold-mid);
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* --- SECTION HEADS --- */
.section-head {
  text-align: center;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  margin-bottom: 14px;
}
.section-head .lead {
  font-size: clamp(0.95rem, 2.5vw, 1.07rem);
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.72;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-xpale);
  border: 1px solid var(--gold-pale);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.tag--dark {
  color: var(--navy);
  background: var(--gold-pale);
  border-color: var(--gold-mid);
}
.sub-title {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  margin-bottom: 20px;
  color: var(--navy);
}

/* --- MEANING SECTION --- */
.three-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feat-card--gold {
  background: linear-gradient(135deg, #FFFBF0, #FFF4D8);
  border-color: var(--gold-mid);
}
.feat-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feat-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.feat-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.insight-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border-left: 3px solid var(--gold-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 22px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.insight-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.insight-block h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--navy); }
.insight-block p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }
.pull-quote {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FFF8EE, #FDFAF4);
  border: 1px solid var(--gold-pale);
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  color: var(--navy-mid);
  line-height: 1.5;
}

/* --- ORIGINS --- */
.roots-block { margin-bottom: 56px; }
.roots-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.7;
}
.roots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.root-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.root-card:hover { transform: translateY(-3px); }
.root-year {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.root-em { font-size: 1.6rem; margin-bottom: 8px; }
.root-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.root-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.65; }

/* --- TIMELINE --- */
.timeline-block { margin-bottom: 56px; }
.timeline { position: relative; }
.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
}
.tl-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-mid);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--gold-pale);
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-dot--current {
  background: var(--saffron);
  box-shadow: 0 0 0 3px rgba(201,106,42,0.25);
  animation: tl-pulse 2.5s ease-in-out infinite;
}
@keyframes tl-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(201,106,42,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(201,106,42,0.12); }
}
.tl-line {
  width: 1.5px;
  flex: 1;
  background: linear-gradient(to bottom, var(--gold-mid), var(--gold-pale));
  margin-top: 6px;
  min-height: 20px;
}
.tl-body { flex: 1; padding-top: 0; }
.tl-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.tl-body h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.tl-body p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* --- MASTERS --- */
.masters-wrap { margin-top: 8px; }
.masters-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
.master-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.master-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.master-card--active {
  background: linear-gradient(135deg, #FFFBF0, #FFF4D8);
  border-color: var(--gold-mid);
}
.m-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 4px;
}
.master-card h4 {
  font-size: 0.97rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.m-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.master-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.55; }
.m-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-mid);
}

/* --- PLANES --- */
.planes-wrap { margin-bottom: 56px; }
.planes-intro {
  font-size: 0.93rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.72;
}
.planes { display: flex; flex-direction: column; gap: 3px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.plane {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: filter var(--transition);
}
.plane:hover { filter: brightness(1.03); }
.plane--5 {
  background: linear-gradient(105deg, #7B5E2A 0%, #B5862A 40%, #D4A843 70%, #E8C96A 100%);
  color: #fff;
  min-height: 120px;
  animation: plane5-shimmer 4s ease-in-out infinite;
}
@keyframes plane5-shimmer {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.08) drop-shadow(0 0 12px rgba(212,168,67,0.4)); }
}
.plane--4 { background: linear-gradient(105deg, #4A3B6A, #6B5490); color: #E8D8FF; }
.plane--3 { background: linear-gradient(105deg, #2D3A6A, #3D4F8C); color: #D0D8FF; }
.plane--2 { background: linear-gradient(105deg, #1E3A5A, #2B5080); color: #C8E0FF; }
.plane--1 { background: linear-gradient(105deg, #4A3520, #6B4E30); color: #F0DCC8; }
.plane-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,220,100,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.plane-inner { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.plane-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.45;
  flex-shrink: 0;
  line-height: 1.1;
  min-width: 28px;
}
.plane--5 .plane-num { opacity: 0.7; }
.plane-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 5px;
}
.plane-name-en { font-weight: 400; opacity: 0.8; }
.plane-text p { font-size: 0.83rem; opacity: 0.88; line-height: 1.6; }
.planes-arrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 12px;
  padding: 10px;
  background: var(--gold-xpale);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gold-pale);
}

/* --- NAAM --- */
.naam-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.naam-wave-wrap {
  height: 60px;
  overflow: hidden;
  margin-bottom: 28px;
  margin: -32px -24px 28px;
  background: var(--gold-xpale);
  border-bottom: 1px solid var(--gold-pale);
  position: relative;
}
.naam-wave {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}
.wave-path--1 { animation: wave-drift 5s linear infinite; }
.wave-path--2 { animation: wave-drift 7s linear infinite reverse; }
.wave-path--3 { animation: wave-drift 9s linear infinite; }
@keyframes wave-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}
.naam-block h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 12px;
  color: var(--navy);
}
.naam-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.72;
}
.naam-traditions {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.naam-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.naam-row:last-child { border-bottom: none; }
.naam-row:nth-child(even) { background: var(--gold-xpale); }
.naam-trad {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}
.naam-term {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}
.naam-mean { font-size: 0.78rem; color: var(--text-mid); }
.naam-unity {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  text-align: center;
  padding: 14px;
  background: var(--gold-xpale);
  border-radius: var(--radius-sm);
}

/* --- LIVING MASTER --- */
.master-doc {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}
.master-doc-icon { font-size: 2rem; flex-shrink: 0; }
.master-doc-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.master-doc-body > p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 20px; line-height: 1.68; }
.reasons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.reason { display: flex; gap: 14px; align-items: flex-start; }
.reason-n {
  width: 28px; height: 28px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.reason p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.62; }
.master-analogy {
  font-size: 0.88rem;
  color: var(--text-mid);
  background: var(--gold-xpale);
  border-left: 3px solid var(--gold-mid);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}

/* --- PILLARS --- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 52px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-badge {
  position: absolute;
  top: 20px; left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pillar-badge--1 { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold-mid); }
.pillar-badge--2 { background: rgba(45,53,97,0.1); color: var(--navy-mid); border: 1px solid var(--navy-mid); }
.pillar-badge--3 { background: rgba(201,106,42,0.12); color: var(--saffron); border: 1px solid var(--saffron); }
.pillar-icon-wrap {
  font-size: 2.4rem;
  margin-bottom: 14px;
  animation: icon-float 4s ease-in-out infinite;
}
.pillar:nth-child(2) .pillar-icon-wrap { animation-delay: 1.3s; }
.pillar:nth-child(3) .pillar-icon-wrap { animation-delay: 2.6s; }
@keyframes icon-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.pillar h4 { font-size: 1.15rem; margin-bottom: 4px; color: var(--navy); }
.pillar h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pillar p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* --- VOWS --- */
.vows-block { margin-bottom: 40px; }
.vows-block > p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.7;
}
.vows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.vow {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.vow:hover { transform: translateX(4px); }
.vow-icon { font-size: 1.8rem; flex-shrink: 0; }
.vow h4 { font-size: 0.95rem; margin-bottom: 5px; color: var(--navy); }
.vow p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.62; }

/* --- UNIVERSAL --- */
.universal {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #FFFBF0, #FFF4D8);
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.universal-icon { font-size: 2rem; flex-shrink: 0; }
.universal h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--navy); }
.universal p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 14px; line-height: 1.68; }
.universal blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--navy-mid);
  border-left: 2px solid var(--gold-mid);
  padding-left: 14px;
  margin-left: 0;
}

/* --- BABA JI --- */
.babaji-section { background: var(--bg); }
.themes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.theme {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.theme:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.theme-icon { font-size: 1.8rem; flex-shrink: 0; }
.theme h4 { font-size: 0.97rem; margin-bottom: 6px; color: var(--navy); }
.theme p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.68; }

.big-quote {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.big-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.bq-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  line-height: 0.7;
  color: var(--gold-mid);
  opacity: 0.5;
  margin-bottom: 8px;
}
.big-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: #F5EDD8;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.big-quote cite {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  position: relative;
  z-index: 1;
}

/* --- SUCCESSION --- */
.succession {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.succession-head { margin-bottom: 14px; }
.succession-head h3 { font-size: 1.15rem; margin-top: 10px; color: var(--navy); }
.succession > p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 20px; line-height: 1.7; }
.successor {
  background: linear-gradient(135deg, #FFFBF0, #FFF4D8);
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.successor-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.succ-mandala { flex-shrink: 0; }
.succ-svg { width: 52px; height: 52px; color: var(--gold); }
.successor h4 { font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.succ-title { font-size: 0.78rem; color: var(--gold); font-weight: 500; letter-spacing: 0.03em; }
.credentials { display: flex; flex-direction: column; gap: 9px; }
.cred { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-mid); }
.cred span:first-child { flex-shrink: 0; }

/* --- WISDOM / QUOTES --- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.q-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.q-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.q-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 0.8;
  color: var(--gold-pale);
  margin-bottom: 8px;
  display: block;
}
.q-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--navy-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.q-card cite {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- GLANCE --- */
.glance-section { background: var(--navy); }
.glance-section .section-head h2 { color: #F5EDD8; }
.glance-section .tag { color: var(--gold-mid); background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); }
.glance {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.glance-row {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  align-items: flex-start;
}
.glance-row:last-child { border-bottom: none; }
.glance-row:nth-child(even) { background: rgba(201,168,76,0.05); }
.g-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 1px;
}
.g-val { font-size: 0.88rem; color: rgba(245,237,216,0.85); line-height: 1.55; }
.official-note {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(245,237,216,0.55);
}
.official-note a {
  color: var(--gold-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- FOOTER --- */
footer {
  background: #141428;
  padding: 60px 24px 48px;
  text-align: center;
  color: rgba(245,237,216,0.7);
}
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-logo { margin: 0 auto 20px; }
.footer-svg { width: 56px; height: 56px; color: var(--gold-mid); margin: 0 auto; }
footer h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #F5EDD8;
  margin-bottom: 14px;
}
footer p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 8px; }
footer a { color: var(--gold-mid); text-decoration: underline; text-underline-offset: 3px; }
.footer-closing {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(245,237,216,0.45);
}

/* ============================================
   TABLET — 640px+
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .three-grid { grid-template-columns: 1fr 1fr; }
  .feat-card:last-child { grid-column: 1 / -1; }
  .roots-grid { grid-template-columns: 1fr 1fr; }
  .roots-grid .root-card:last-child { grid-column: 1 / -1; }
  .masters-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
  .vows { grid-template-columns: 1fr 1fr; }
  .themes { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .naam-row { grid-template-columns: 100px 160px 1fr; }
}

/* ============================================
   DESKTOP — 1024px+
   ============================================ */
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .container { padding: 0 48px; }
  /* Nav desktop — reset all mobile overlay styles */
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    top: auto; left: auto;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    gap: 4px;
    overflow: visible;
    animation: none !important;
  }
  .nav-links::before { display: none; }
  .nav-links.open { animation: none; }
  .nav-links li { animation: none !important; opacity: 1 !important; }
  .nav-links li:first-child .nav-link { border-top: none; }
  .nav-logo { z-index: auto; }
  .nav-toggle { z-index: auto; }
  .nav-link {
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.03em;
    border-bottom: none;
    border-radius: var(--radius-pill);
    color: var(--text-mid);
  }
  .nav-link:hover, .nav-link.active { color: var(--gold); background: var(--gold-xpale); }
  .three-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-card:last-child { grid-column: auto; }
  .roots-grid { grid-template-columns: repeat(3, 1fr); }
  .roots-grid .root-card:last-child { grid-column: auto; }
  .masters-row { grid-template-columns: repeat(5, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars .pillar:last-child { grid-column: auto; }
  .vows { grid-template-columns: repeat(4, 1fr); }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .tl-item { gap: 28px; }
  .plane { padding: 24px 32px; }
  .plane-num { font-size: 2.6rem; min-width: 36px; }
  .plane-text h4 { font-size: 1.05rem; }
  .plane-text p { font-size: 0.87rem; }
}

/* --- STAGGER DELAYS FOR REVEAL GROUPS --- */
.three-grid .reveal:nth-child(1) { transition-delay: 0s; }
.three-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.three-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.themes .reveal:nth-child(1) { transition-delay: 0s; }
.themes .reveal:nth-child(2) { transition-delay: 0.08s; }
.themes .reveal:nth-child(3) { transition-delay: 0.16s; }
.themes .reveal:nth-child(4) { transition-delay: 0.24s; }
.themes .reveal:nth-child(5) { transition-delay: 0.32s; }
.themes .reveal:nth-child(6) { transition-delay: 0.4s; }
.quotes .reveal:nth-child(1) { transition-delay: 0s; }
.quotes .reveal:nth-child(2) { transition-delay: 0.08s; }
.quotes .reveal:nth-child(3) { transition-delay: 0.16s; }
.quotes .reveal:nth-child(4) { transition-delay: 0.24s; }
.quotes .reveal:nth-child(5) { transition-delay: 0.32s; }
.quotes .reveal:nth-child(6) { transition-delay: 0.4s; }
