/* ── Design tokens ── */
:root {
  --saffron: #e8841a;
  --saffron-light: #f5a623;
  --saffron-glow: rgba(232, 132, 26, 0.35);
  --deep-indigo: #0f0a2e;
  --indigo-mid: #1a1245;
  --indigo-soft: #2a1f5e;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --cream: #faf6ef;
  --cream-muted: #c8bfa8;
  --text: #e8e0d0;
  --text-dim: #9a9080;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Background pattern ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232, 132, 26, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(42, 31, 94, 0.6) 0%, transparent 50%),
    var(--deep-indigo);
}

.bg-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(15, 10, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}

.logo-om {
  font-size: 1.6rem;
  color: var(--gold);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

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

.hero-lead {
  font-size: 1.1rem;
  color: var(--cream-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: var(--deep-indigo);
  box-shadow: 0 4px 24px var(--saffron-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--saffron-glow);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mandala {
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, rgba(232, 132, 26, 0.1), transparent),
    radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: mandala-spin 60s linear infinite;
  position: relative;
}

.mandala::before {
  content: "ॐ";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.6;
  animation: mandala-spin 60s linear infinite reverse;
}

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

/* ── Sections ── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--cream-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Carousel ── */
.carousel-section {
  padding-top: 2rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.deity-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: linear-gradient(145deg, var(--indigo-mid), var(--indigo-soft));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.deity-card-image {
  position: relative;
  overflow: hidden;
}

.deity-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

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

.deity-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--indigo-mid));
}

.deity-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deity-sanskrit {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.deity-card-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.deity-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: 1rem;
}

.deity-description {
  color: var(--cream-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.deity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.deity-tag {
  padding: 0.3rem 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

.deity-mantra {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--saffron-light);
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(26, 18, 69, 0.8);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--deep-indigo);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(212, 175, 55, 0.25);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--saffron);
  transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
  background: rgba(212, 175, 55, 0.5);
}

/* ── Trimurti grid ── */
.trimurti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: rgba(26, 18, 69, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.info-card--featured {
  background: linear-gradient(145deg, rgba(232, 132, 26, 0.12), rgba(26, 18, 69, 0.8));
  border-color: rgba(232, 132, 26, 0.25);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.info-card-role {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: 1rem;
}

.info-card p:last-child {
  color: var(--cream-muted);
  font-size: 0.92rem;
}

/* ── Philosophy ── */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.philosophy-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.philosophy-text > p {
  color: var(--cream-muted);
  margin-bottom: 1.5rem;
}

.philosophy-text strong {
  color: var(--gold-light);
}

.philosophy-list {
  list-style: none;
}

.philosophy-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.philosophy-list li strong {
  color: var(--cream);
}

.sanskrit-quote {
  background: linear-gradient(145deg, var(--indigo-mid), var(--indigo-soft));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.quote-devanagari {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quote-translation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.sanskrit-quote cite {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: normal;
}

/* ── Symbols ── */
.symbols-section {
  background: rgba(26, 18, 69, 0.4);
  border-radius: var(--radius-lg);
  margin: 0 2rem;
  max-width: calc(1200px - 4rem);
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.symbol-item {
  text-align: center;
  padding: 1.5rem;
}

.symbol-char {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.symbol-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.symbol-item p {
  font-size: 0.85rem;
  color: var(--cream-muted);
}

/* ── Festivals ── */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.festival-card {
  background: rgba(26, 18, 69, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--saffron);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.festival-card:hover {
  border-left-color: var(--gold-light);
  transform: translateX(4px);
}

.festival-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.festival-deity {
  font-size: 0.8rem;
  color: var(--saffron-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.festival-card p:last-child {
  color: var(--cream-muted);
  font-size: 0.92rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-om {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--saffron-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .mandala {
    width: 220px;
    height: 220px;
  }

  .mandala::before {
    font-size: 3rem;
  }

  .deity-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .deity-card-image {
    height: 260px;
  }

  .deity-card-image::after {
    background: linear-gradient(to top, var(--indigo-mid), transparent);
  }

  .trimurti-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-layout {
    grid-template-columns: 1fr;
  }

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

  .festivals-grid {
    grid-template-columns: 1fr;
  }

  .carousel-btn--prev { order: 2; }
  .carousel-btn--next { order: 3; }
  .carousel-viewport { order: 1; width: 100%; }
  .carousel-wrapper { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 10, 46, 0.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .symbols-section {
    margin: 0 1rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}
