/* ========================================
   Sri Yudhisthira Krishna Dasa
   Temple Architecture Design System
   ======================================== */

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

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

html {
  scroll-behavior: smooth;
}

/* ── Root Variables ── */
:root {
  /* Temple Color Palette */
  --saffron-deep: #B5651D;
  --saffron-warm: #CF7F32;
  --saffron-light: #E8A050;
  --gold-antique: #C9A94E;
  --gold-bright: #D4A843;
  --gold-pale: #E6D08F;
  --cream: #F5ECD7;
  --sandstone: #E8DCC8;
  --sandstone-dark: #C8B89A;
  --royal-blue: #1B2A4A;
  --royal-blue-deep: #0F1D3A;
  --royal-blue-light: #2A3F6A;
  --stone-dark: #2C2418;
  --stone-mid: #4A3E30;
  --stone-warm: #6B5D4E;
  --marble-white: #FAF6EE;
  --marble-cool: #F0EBE0;
  --temple-shadow: rgba(15, 29, 58, 0.25);
  --glow-gold: rgba(212, 168, 67, 0.4);
  --glow-saffron: rgba(207, 127, 50, 0.3);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Header */
  --header-height: 80px;

  /* Transitions */
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.3s ease;
}

/* ── Base Styles ── */
body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--stone-dark);
  background-color: var(--marble-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--royal-blue-deep);
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1.2em;
  font-size: 1.1rem;
}

a {
  color: var(--saffron-deep);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-antique);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Stone / Marble Texture Backgrounds ── */
.bg-marble {
  background-color: var(--marble-white);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201, 169, 78, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(181, 101, 29, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
}

.bg-sandstone {
  background-color: var(--sandstone);
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(201, 169, 78, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
}

.bg-stone-dark {
  background-color: var(--stone-dark);
  color: var(--cream);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 78, 0.06) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.bg-royal-blue {
  background-color: var(--royal-blue-deep);
  color: var(--cream);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(42, 63, 106, 0.5) 0%, transparent 70%);
}

/* ── Navigation ── */
.temple-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.temple-nav.scrolled {
  background: rgba(15, 29, 58, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--temple-shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-antique);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-antique);
  transition: width var(--transition-medium);
}

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

.nav-links li a:hover::after {
  width: 60%;
}

.nav-links li a.active {
  color: var(--gold-antique);
}

.nav-links li a.active::after {
  width: 60%;
}

/* Nav divider (pillar-inspired) */
.nav-links li + li::before {
  content: '⊱';
  color: var(--gold-antique);
  opacity: 0.3;
  font-size: 0.7rem;
  margin-right: 0;
}

/* Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold-antique);
  transition: var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 58, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  transition: color var(--transition-fast);
}

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

/* ── Pillar Decorations ── */
.pillar-border-left,
.pillar-border-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
}

.pillar-border-left {
  left: 0;
  background: linear-gradient(to right,
    rgba(201, 169, 78, 0.08) 0%,
    rgba(201, 169, 78, 0.03) 40%,
    transparent 100%
  );
  border-right: 1px solid rgba(201, 169, 78, 0.1);
}

.pillar-border-right {
  right: 0;
  background: linear-gradient(to left,
    rgba(201, 169, 78, 0.08) 0%,
    rgba(201, 169, 78, 0.03) 40%,
    transparent 100%
  );
  border-left: 1px solid rgba(201, 169, 78, 0.1);
}

/* ── Temple Section ── */
.temple-section {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.temple-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section divider – ornamental */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) auto;
  max-width: 400px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-antique), transparent);
}

.section-divider .ornament {
  font-size: 1.4rem;
  color: var(--gold-antique);
  line-height: 1;
}

/* ── Framed Content Block (like temple wall inscription) ── */
.framed-block {
  border: 2px solid var(--sandstone-dark);
  padding: var(--space-lg);
  position: relative;
  background: var(--marble-white);
}

.framed-block::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 78, 0.2);
  pointer-events: none;
}

.framed-block-gold {
  border-color: var(--gold-antique);
}

.framed-block-gold::before {
  border-color: rgba(201, 169, 78, 0.35);
}

/* ── Arch Frame ── */
.arch-frame {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.arch-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  height: 100%;
  border: 2px solid rgba(201, 169, 78, 0.2);
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  pointer-events: none;
}

/* ── Pillar Grid (3 columns like temple pillars) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar-item {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
  border-left: 1px solid rgba(201, 169, 78, 0.15);
  border-right: 1px solid rgba(201, 169, 78, 0.15);
}

.pillar-item::before {
  content: '';
  display: block;
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-antique), transparent);
  margin: 0 auto var(--space-sm);
}

.pillar-item h3 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--saffron-deep);
}

.pillar-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stone-warm);
}

/* ── Symmetrical Two Column ── */
.sym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.sym-grid.reversed {
  direction: rtl;
}

.sym-grid.reversed > * {
  direction: ltr;
}

.sym-grid-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 2px solid var(--sandstone-dark);
}

.sym-grid-content {
  padding: var(--space-md);
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 29, 58, 0.6) 0%,
    rgba(15, 29, 58, 0.4) 40%,
    rgba(44, 36, 24, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: var(--space-md);
}

.hero-content h1 {
  color: var(--gold-antique);
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

.hero-content .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--sandstone);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero-scroll-indicator {
  margin-top: var(--space-lg);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-antique), transparent);
  margin: 0 auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header .overline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: var(--space-xs);
}

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

.section-header .underline-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-sm);
}

.section-header .underline-ornament span {
  display: block;
  height: 1px;
  width: 60px;
  background: var(--gold-antique);
}

.section-header .underline-ornament .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-antique);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

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

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

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 29, 58, 0.7) 0%,
    rgba(44, 36, 24, 0.8) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
}

.page-hero-content h1 {
  color: var(--gold-antique);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-hero-content .overline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: var(--space-xs);
}

/* ── Entry / Code Page ── */
.entry-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--royal-blue-deep);
  position: relative;
  overflow: hidden;
}

.entry-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.entry-doorway {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 500px;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border: 2px solid rgba(201, 169, 78, 0.25);
  border-radius: 50% 50% 0 0 / 15% 15% 0 0;
  background: rgba(15, 29, 58, 0.6);
  box-shadow:
    0 0 60px rgba(212, 168, 67, 0.08),
    inset 0 0 60px rgba(212, 168, 67, 0.03);
}

.entry-doorway::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 169, 78, 0.12);
  border-radius: 50% 50% 0 0 / 15% 15% 0 0;
  pointer-events: none;
}

.entry-doorway h1 {
  font-family: var(--font-heading);
  color: var(--gold-antique);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.entry-doorway .entry-subtitle {
  font-family: var(--font-body);
  color: var(--sandstone-dark);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.entry-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

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

.entry-input-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sandstone-dark);
  margin-bottom: var(--space-xs);
}

.entry-input-group input {
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--gold-antique);
  background: rgba(15, 29, 58, 0.5);
  border: 1px solid rgba(201, 169, 78, 0.3);
  border-radius: 0;
  outline: none;
  transition: all var(--transition-medium);
}

.entry-input-group input:focus {
  border-color: var(--gold-antique);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.15);
}

.entry-input-group input::placeholder {
  color: rgba(200, 184, 154, 0.4);
  font-size: 0.9rem;
}

.entry-btn {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, var(--saffron-deep), var(--gold-antique));
  border: none;
  padding: 14px 40px;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.entry-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-antique), var(--saffron-warm));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.entry-btn:hover::before {
  opacity: 1;
}

.entry-btn span {
  position: relative;
  z-index: 1;
}

.entry-error {
  color: #e07a5f;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.entry-error.visible {
  opacity: 1;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 2px solid rgba(201, 169, 78, 0.15);
}

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

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 58, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

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

.gallery-overlay p {
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 58, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid rgba(201, 169, 78, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: var(--gold-antique);
  cursor: pointer;
  font-family: var(--font-heading);
  background: none;
  border: none;
  z-index: 2001;
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-warm);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--stone-dark);
  background: var(--marble-white);
  border: 1px solid var(--sandstone-dark);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-antique);
  box-shadow: 0 0 0 3px rgba(201, 169, 78, 0.1);
}

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

.form-group .error-text {
  font-size: 0.85rem;
  color: #c44536;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #c44536;
}

.form-group.error .error-text {
  display: block;
}

.submit-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-deep));
  border: 2px solid var(--gold-antique);
  padding: 16px 50px;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: block;
  margin: 0 auto;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--gold-antique), var(--saffron-deep));
  color: var(--royal-blue-deep);
}

.form-success {
  text-align: center;
  padding: var(--space-lg);
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--saffron-deep);
  margin-bottom: var(--space-sm);
}

/* ── Contact Info ── */
.contact-info {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.contact-info h3 {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--saffron-deep);
}

.contact-detail {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  color: var(--stone-warm);
}

.contact-detail a {
  color: var(--saffron-deep);
}

/* ── Social Links ── */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 169, 78, 0.3);
  color: var(--gold-antique);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--gold-antique);
  color: var(--royal-blue-deep);
  border-color: var(--gold-antique);
}

/* ── Footer ── */
.temple-footer {
  background: var(--royal-blue-deep);
  color: var(--sandstone-dark);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
}

.temple-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-antique), transparent);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-antique);
  margin-bottom: var(--space-sm);
}

.footer-credit {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.footer-credit a {
  color: var(--gold-antique);
  font-weight: 500;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  color: var(--sandstone-dark);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

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

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered reveal for children */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.25s; }
.stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.4s; }
.stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.55s; }
.stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.7s; }
.stagger-reveal.revealed > *:nth-child(6) { transition-delay: 0.85s; }

.stagger-reveal.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Timeline (vertical temple steps) ── */
.temple-timeline {
  position: relative;
  padding-left: 60px;
  max-width: 800px;
  margin: 0 auto;
}

.temple-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-antique), var(--sandstone-dark), var(--gold-antique));
}

.timeline-step {
  position: relative;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--marble-white);
  border: 1px solid rgba(201, 169, 78, 0.15);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-antique);
  background: var(--marble-white);
  transform: translateY(-50%) rotate(45deg);
}

.timeline-step h3 {
  font-size: 1.1rem;
  color: var(--saffron-deep);
  margin-bottom: var(--space-xs);
}

/* ── Quote Block ── */
.temple-quote {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.temple-quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 5rem;
  color: rgba(201, 169, 78, 0.15);
  line-height: 1;
}

.temple-quote blockquote {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--stone-mid);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.temple-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  font-style: normal;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pillar-item {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(201, 169, 78, 0.15);
  }

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

  .sym-grid.reversed {
    direction: ltr;
  }

  .sym-grid-img {
    height: 300px;
  }

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

@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .pillar-border-left,
  .pillar-border-right {
    width: 20px;
  }

  .framed-block {
    padding: var(--space-md);
  }

  .framed-block::before {
    inset: 5px;
  }

  .entry-doorway {
    padding: var(--space-lg) var(--space-md);
  }

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

  .temple-timeline {
    padding-left: 40px;
  }

  .temple-timeline::before {
    left: 14px;
  }

  .timeline-step::before {
    left: -33px;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

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

  .social-links {
    gap: var(--space-sm);
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }
}
