/* ============================================
   ACYUTA PRIYA DASA — Sacred Geometry Editorial
   Design System v1.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Primary */
  --saffron: #E8751A;
  --krishna-blue: #1A3A5C;
  /* Secondary */
  --golden-yellow: #D4A843;
  --temple-cream: #F5EFE0;
  /* Accent */
  --leaf-green: #5A8F3C;
  --lotus-pink: #D4789C;
  --soft-gold: #C9A94E;
  /* Background */
  --deep-midnight: #0D1117;
  --warm-dark: #1A1510;
  --dark-overlay: rgba(13,17,23,0.85);
  /* Text */
  --text-primary: #F5EFE0;
  --text-secondary: rgba(245,239,224,0.7);
  --text-muted: rgba(245,239,224,0.45);
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: 0.3s var(--ease-smooth);
  --transition-medium: 0.6s var(--ease-smooth);
  --transition-slow: 1s var(--ease-smooth);
  /* Layout */
  --sidebar-width: 80px;
  --sidebar-expanded: 280px;
  --container-max: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--deep-midnight);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--soft-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--saffron); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Sacred Geometry Background Motifs --- */
.sacred-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sacred-bg svg {
  position: absolute;
  opacity: 0.03;
  animation: sacredFloat 30s ease-in-out infinite alternate;
}

.sacred-bg .geo-1 { top: -10%; right: -5%; width: 600px; height: 600px; }
.sacred-bg .geo-2 { bottom: -15%; left: -8%; width: 500px; height: 500px; animation-delay: -10s; }
.sacred-bg .geo-3 { top: 40%; right: 20%; width: 300px; height: 300px; animation-delay: -20s; }

@keyframes sacredFloat {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* --- Vertical Sidebar Navigation (Desktop) --- */
.sidebar-nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(232,117,26,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) 0;
  transition: width var(--transition-medium);
  overflow: hidden;
}

.sidebar-nav:hover {
  width: var(--sidebar-expanded);
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--golden-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-midnight);
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
  text-decoration: none;
}

.sidebar-links {
  list-style: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--saffron);
  background: rgba(232,117,26,0.08);
  border-left-color: var(--saffron);
}

.sidebar-links a .nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sidebar-links a .nav-label {
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.sidebar-nav:hover .nav-label {
  opacity: 1;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: var(--space-sm) 0;
}

.sidebar-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.sidebar-social a:hover { color: var(--saffron); }

/* --- Mobile Nav Toggle --- */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px; left: 20px;
  width: 48px; height: 48px;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232,117,26,0.2);
  border-radius: 50%;
  z-index: 1100;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--saffron);
  transition: all var(--transition-fast);
}

.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Main Content Area --- */
.main-content {
  margin-left: var(--sidebar-width);
  position: relative;
  z-index: 1;
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep-midnight) 0%, transparent 40%);
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-sm);
  padding: 6px 16px;
  border: 1px solid rgba(232,117,26,0.3);
  border-radius: 30px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary), var(--golden-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-md);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-xl);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--deep-midnight) 10%, rgba(13,17,23,0.5) 50%, rgba(13,17,23,0.3) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.page-hero .breadcrumb a { color: var(--saffron); }

/* --- Diagonal Section Divider --- */
.diagonal-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.diagonal-divider::before {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 110%;
  height: 100%;
  background: var(--warm-dark);
  transform: skewY(-3deg);
  transform-origin: top left;
}

.section-dark { background: var(--warm-dark); }
.section-midnight { background: var(--deep-midnight); }

.diagonal-divider.flip::before {
  transform: skewY(3deg);
  transform-origin: top right;
}

/* --- Content Sections --- */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 650px;
  font-size: 1.05rem;
}

/* Gold accent line */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--golden-yellow));
  border-radius: 2px;
  margin: var(--space-sm) 0;
}

/* --- Split Section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.split-image:hover img {
  transform: scale(1.05);
}

.split-image::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  right: 10px; bottom: 10px;
  border: 2px solid rgba(232,117,26,0.2);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  transition: all var(--transition-fast);
}

.split-image:hover::before {
  top: -15px; left: -15px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.card {
  background: rgba(245,239,224,0.04);
  border: 1px solid rgba(232,117,26,0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--golden-yellow), var(--lotus-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.card:hover {
  background: rgba(245,239,224,0.08);
  border-color: rgba(232,117,26,0.3);
  transform: translateY(-4px);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,117,26,0.15), rgba(212,168,67,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.card h3 { margin-bottom: 0.5rem; }

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-medium);
}

.card:hover .card-image img { transform: scale(1.08); }

/* --- Stats / Counters --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--saffron), var(--golden-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Quote Block --- */
.quote-block {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(232,117,26,0.06), rgba(26,58,92,0.1));
  border-left: 4px solid var(--saffron);
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  margin: var(--space-lg) 0;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(232,117,26,0.15);
  line-height: 1;
}

.quote-block p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.quote-attribution {
  font-size: 0.9rem;
  color: var(--saffron);
  font-weight: 500;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 16px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--saffron), var(--golden-yellow), var(--lotus-pink));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--deep-midnight);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--golden-yellow);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover { color: var(--saffron); }

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  text-align: center;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(232,117,26,0.2);
  border: 1px solid rgba(232,117,26,0.3);
  color: var(--text-primary);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover { background: var(--saffron); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(245,239,224,0.05);
  border: 1px solid rgba(232,117,26,0.15);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  background: rgba(245,239,224,0.08);
  box-shadow: 0 0 0 3px rgba(232,117,26,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--golden-yellow));
  color: var(--deep-midnight);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,117,26,0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(232,117,26,0.4);
  color: var(--saffron);
}

.btn-outline:hover {
  background: var(--saffron);
  color: var(--deep-midnight);
}

/* --- Footer --- */
.site-footer {
  background: rgba(13,17,23,0.98);
  border-top: 1px solid rgba(232,117,26,0.1);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  color: var(--saffron);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--golden-yellow);
  margin-bottom: var(--space-sm);
}

.footer-column ul {
  list-style: none;
}

.footer-column li { margin-bottom: 0.5rem; }

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-column a:hover { color: var(--saffron); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,117,26,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--saffron);
  color: var(--deep-midnight);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(245,239,224,0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-credit a { color: var(--saffron); }

/* --- Code Gate Page --- */
.code-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-midnight);
  z-index: 10000;
  overflow: hidden;
}

.code-gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.code-gate-bg canvas {
  width: 100%;
  height: 100%;
}

.code-gate-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 440px;
  padding: var(--space-lg);
  background: rgba(13,17,23,0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(232,117,26,0.15);
  border-radius: var(--border-radius-lg);
}

.code-gate-card .gate-icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232,117,26,0.2), rgba(212,168,67,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.code-gate-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.code-gate-card p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.code-input-wrap {
  position: relative;
  margin-bottom: var(--space-md);
}

.code-input-wrap input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(245,239,224,0.05);
  border: 2px solid rgba(232,117,26,0.2);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  transition: all var(--transition-fast);
}

.code-input-wrap input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232,117,26,0.1);
}

.code-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  display: none;
}

.code-error.visible { display: block; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s var(--ease-smooth);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s var(--ease-smooth);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--ease-smooth);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-smooth);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* --- Map Embed --- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232,117,26,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.1) brightness(0.7);
}

/* --- Parallax Section --- */
.parallax-section {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.8);
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--golden-yellow); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* Content block utility */
.content-block { margin-bottom: var(--space-lg); }
.content-block h3 { margin-bottom: var(--space-sm); }

/* Two-column text layout */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .sidebar-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .main-content { margin-left: 0; }

  .sidebar-nav.mobile-open {
    display: flex;
    width: 280px;
    z-index: 1050;
  }

  .sidebar-nav.mobile-open .nav-label { opacity: 1; }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    display: none;
  }

  .mobile-overlay.active { display: block; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-image { min-height: 50vh; }
  .hero-image::after { background: linear-gradient(to top, var(--deep-midnight) 0%, transparent 50%); }
  .hero-content { padding: var(--space-lg) var(--space-md); }

  .split-section { grid-template-columns: 1fr; gap: var(--space-md); }
  .split-section.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col-text { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { font-size: 15px; }

  .page-hero { min-height: 50vh; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
