/* === Mirella shared styles === */
:root {
  --bg-deep: #1a0f0a;
  --bg-mid: #261610;
  --bg-soft: #2f1b13;
  --gold: #d4a574;
  --gold-bright: #e8c391;
  --gold-dim: #8a6b4a;
  --crimson: #9c2a1f;
  --emerald: #2d8659;
  --emerald-dim: #1e5f3f;
  --cream: #f5e6d3;
  --cream-dim: #c4b59e;
  --text-soft: rgba(245, 230, 211, 0.7);
  --text-faint: rgba(245, 230, 211, 0.45);
  --line: rgba(212, 165, 116, 0.15);
  --line-strong: rgba(212, 165, 116, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.7;
}

body.lang-hi {
  font-family: 'Noto Serif Devanagari', serif;
}

body.lang-hi .nav-logo,
body.lang-hi .hero-title,
body.lang-hi .section-title,
body.lang-hi .pillar-title,
body.lang-hi .stat-value,
body.lang-hi .approach-text,
body.lang-hi .approach-quote,
body.lang-hi .journey-step-title,
body.lang-hi .hero-subtitle,
body.lang-hi .footer-logo,
body.lang-hi .ct-intro,
body.lang-hi .ct-card-title,
body.lang-hi .page-hero-title,
body.lang-hi .page-hero-subtitle {
  font-family: 'Noto Serif Devanagari', serif;
}

/* Mandala bg */
.mandala-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.mandala-bg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  animation: spin 240s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.83  0 0 0 0 0.65  0 0 0 0 0.45  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* === Nav === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26, 15, 10, 0.95), rgba(26, 15, 10, 0.7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

body.lang-hi .nav-logo {
  letter-spacing: 0.1em;
  text-transform: none;
}

.nav-center {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-center a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.4s;
  position: relative;
  cursor: pointer;
}

body.lang-hi .nav-center a {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--gold);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.lang-btn:hover { color: var(--gold); }

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Sections */
section {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
}

body.lang-hi .section-eyebrow {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

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

/* Disclaimer */
.disclaimer {
  background: var(--bg-mid);
  padding: 3rem 2rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.disclaimer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-title {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

body.lang-hi .disclaimer-title {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

footer {
  background: var(--bg-deep);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1rem;
}

body.lang-hi .footer-logo {
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

body.lang-hi .footer-links a {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--gold); }

.footer-copyright {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-top: 2rem;
}

/* Page hero for sub-pages */
.page-hero {
  position: relative;
  padding: 12rem 2rem 6rem;
  text-align: center;
  z-index: 2;
}

.page-hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

body.lang-hi .page-hero-eyebrow {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

.page-hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--cream-dim);
  max-width: 600px;
  margin: 0 auto;
}

body.lang-hi .page-hero-subtitle {
  font-style: normal;
}

/* Language visibility */
[data-lang-en], [data-lang-hi] {
  display: none;
}

body.lang-en [data-lang-en] { display: revert; }
body.lang-hi [data-lang-hi] { display: revert; }

body.lang-en .nav-center,
body.lang-en .footer-links,
body.lang-hi .nav-center,
body.lang-hi .footer-links {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-center { gap: 1.2rem; }
  .nav-center a { font-size: 0.65rem; letter-spacing: 0.15em; }
  .nav-logo { font-size: 1.2rem; letter-spacing: 0.25em; }
  section { padding: 5rem 1.5rem; }
  .page-hero { padding: 9rem 1.5rem 4rem; }
}

@media (max-width: 640px) {
  .nav-center { display: none !important; }
  nav { justify-content: space-between; }
}
