/* ==========================================================================
   KAMBALAVAN'S | AL-QASR AL-ABYAD (THE WHITE PALACE)
   Bespoke Luxury House Warming Invitation Styling
   ========================================================================== */

:root {
  /* Color System */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F4EDE4;
  --bg-tertiary: #EBE0D2;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(250, 247, 242, 0.92);
  --bg-dark: #181512;
  --bg-gate: #141210;

  --text-primary: #1C1A17;
  --text-secondary: #4A443D;
  --text-muted: #7D746A;
  --text-light: #FAF7F2;

  --gold-primary: #C5A059;
  --gold-light: #E6D0A3;
  --gold-dark: #9A7730;
  --gold-deep: #7D5D1D;
  --gold-gradient: linear-gradient(135deg, #E6D0A3 0%, #C5A059 50%, #9A7730 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(230, 208, 163, 0.35) 0%, rgba(197, 160, 89, 0.18) 100%);
  --gold-sheen: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);

  --olive-accent: #5A6B5C;
  --olive-light: #EBF1EC;

  --border-gold: rgba(197, 160, 89, 0.35);
  --border-gold-strong: rgba(197, 160, 89, 0.75);
  --border-subtle: rgba(28, 26, 23, 0.08);

  --shadow-sm: 0 4px 14px rgba(28, 26, 23, 0.04);
  --shadow-md: 0 14px 34px -4px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 24px 50px -8px rgba(197, 160, 89, 0.2);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.28);
  --shadow-gate: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(197, 160, 89, 0.25);

  /* Typography */
  --font-cinzel: 'Cinzel', serif;
  --font-playfair: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Garamond, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Layout Containers */
  --container-max: 1180px;
  --container-narrow: 860px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gate-active {
  overflow: hidden;
  height: 100vh;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

picture {
  display: contents;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* Font Family Helper Classes */
.font-cinzel { font-family: var(--font-cinzel); }
.font-playfair { font-family: var(--font-playfair); }
.font-serif { font-family: var(--font-serif); }
.font-arabic { font-family: var(--font-arabic); direction: rtl; }

/* Section Base Utilities */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 3rem auto;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-sheen);
  transition: 0.6s ease;
}

.btn-primary:hover,
.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(197, 160, 89, 0.42);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border-gold-strong);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--gold-gradient-soft);
  color: var(--gold-dark);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. CINEMATIC OPENING EXPERIENCE (3D PALACE ENTRANCE DOORS)
   ========================================================================== */
.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: hidden;
  background-color: var(--bg-dark);
  transition: opacity 0.9s ease 0.6s, visibility 0.9s ease 0.6s;
}

.invitation-gate.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-panel {
  position: absolute;
  top: 0;
  width: 50.5%;
  height: 100%;
  background: radial-gradient(circle at center, #24201b 0%, #151311 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
  transform-style: preserve-3d;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.88), 0 0 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.gate-panel-left {
  left: 0;
  transform-origin: left center;
  border-right: 2px solid rgba(197, 160, 89, 0.6);
}

.gate-panel-right {
  right: 0;
  transform-origin: right center;
  border-left: 2px solid rgba(197, 160, 89, 0.6);
}

.invitation-gate.opened .gate-panel-left {
  transform: rotateY(-112deg) translateX(-20%);
}

.invitation-gate.opened .gate-panel-right {
  transform: rotateY(112deg) translateX(20%);
}

.door-texture {
  position: absolute;
  inset: 2rem;
  border: 2px solid rgba(197, 160, 89, 0.35);
  border-radius: 1.25rem;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.06) 0%, transparent 70%);
  pointer-events: none;
  overflow: hidden;
}

.door-texture::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px dashed rgba(197, 160, 89, 0.3);
  border-radius: 0.75rem;
}

.door-arch-frame {
  position: absolute;
  top: 10%;
  width: 72%;
  height: 75%;
  border: 2px solid rgba(197, 160, 89, 0.35);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  opacity: 0.75;
}

.door-inner-filigree {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  border: 1px solid rgba(230, 208, 163, 0.25);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.door-handle {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 96px;
  background: var(--gold-gradient);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gate-panel-left .door-handle {
  right: 25px;
  transform: translateY(-50%);
}

.gate-panel-right .door-handle {
  left: 25px;
  transform: translateY(-50%);
}

.gate-center-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #FAF7F2;
  padding: 3.25rem 2.5rem;
  max-width: 590px;
  width: 90%;
  background: rgba(22, 20, 18, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-gold);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-gate);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.invitation-gate.opened .gate-center-wrapper {
  transform: scale(1.08) translateY(-20px);
  opacity: 0;
}

.gate-crest-container {
  margin-bottom: 0.75rem;
}

.gate-ornament {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  color: var(--gold-primary);
  filter: drop-shadow(0 4px 12px rgba(197, 160, 89, 0.5));
  animation: floatSlow 4s ease-in-out infinite;
}

.gate-bismillah {
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.gate-eyebrow {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.gate-arabic-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 15px rgba(197, 160, 89, 0.4);
}

.gate-main-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.gate-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.gate-family-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.gate-family-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.gate-family-members {
  font-size: 0.85rem;
  color: #E6D0A3;
  letter-spacing: 0.05em;
}

.gate-invitation-note {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.gate-date-badge {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--gold-gradient);
  color: #181512;
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem 2.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(197, 160, 89, 0.45);
  transition: var(--transition-smooth);
  animation: pulseGlow 2.5s infinite;
}

.btn-open-invitation:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 45px rgba(197, 160, 89, 0.65);
}

/* ==========================================================================
   2. STICKY HEADER & AUDIO CONTROLS
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  line-height: 1.1;
}

.nav-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
}

.nav-desktop .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.music-label {
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
}

.music-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.music-bar {
  width: 2.5px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-toggle-btn.playing .music-bar:nth-child(1) { animation: soundWave 1.2s ease-in-out infinite 0.1s; }
.music-toggle-btn.playing .music-bar:nth-child(2) { animation: soundWave 1.2s ease-in-out infinite 0.3s; }
.music-toggle-btn.playing .music-bar:nth-child(3) { animation: soundWave 1.2s ease-in-out infinite 0.2s; }
.music-toggle-btn.playing .music-bar:nth-child(4) { animation: soundWave 1.2s ease-in-out infinite 0.4s; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.4s ease;
}

.mobile-nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-nav-drawer.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--bg-primary);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  border-left: 1px solid var(--border-gold);
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-branding .brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
}

.mobile-nav-branding .brand-arabic {
  font-size: 1.1rem;
  color: var(--gold-dark);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.mobile-nav-link {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: block;
  transition: var(--transition-smooth);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--gold-dark);
  padding-left: 0.5rem;
}

.mobile-nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.mobile-arabic-seal {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.mobile-footer-text {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.mobile-map-cta {
  width: 100%;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding: calc(6rem + 2vw) 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, var(--bg-primary) 70%, var(--bg-secondary) 100%);
}

.hero-bg-accent {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(244, 237, 228, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-spiritual-top {
  margin-bottom: 0.75rem;
}

.hero-arabic-bismillah {
  font-size: 1.35rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.badge-sparkle {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.hero-arabic-name {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 20px rgba(197, 160, 89, 0.25);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero-subhead {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
}

.hero-main-name {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-residence-tag {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-invitation-text {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Arched Editorial Portrait Frame */
.hero-portrait-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.hero-arch-outer {
  position: relative;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-strong);
  border-radius: 260px 260px 20px 20px / 180px 180px 20px 20px;
  box-shadow: var(--shadow-lg);
}

.hero-arch-inner {
  position: relative;
  border-radius: 250px 250px 12px 12px / 170px 170px 12px 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.hero-portrait-wrapper:hover .hero-img {
  transform: scale(1.06);
}

.hero-img-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(24, 21, 18, 0.45) 100%);
}

.hero-residence-floating-tag {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 21, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.6rem;
  border-radius: 9999px;
  color: #FAF7F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hero-residence-floating-tag .tag-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.hero-residence-floating-tag .tag-subtitle {
  font-size: 0.72rem;
  color: #D2C4B0;
}

.hero-leaf-accent {
  position: absolute;
  width: 75px;
  height: 90px;
  top: 15%;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(197, 160, 89, 0.3));
}

.hero-leaf-accent.left {
  left: -20px;
}

.hero-leaf-accent.right {
  right: -20px;
}

/* Date Ribbon Card */
.hero-date-card {
  display: inline-block;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-strong);
  border-radius: 1.25rem;
  padding: 1.1rem 2.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.date-highlight-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.date-day {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
}

.date-separator {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.date-number {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.date-time {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.date-venue-sub {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Scroll Mouse */
.hero-scroll-wrapper {
  margin-top: 0.5rem;
}

.hero-scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  transition: var(--transition-smooth);
}

.hero-scroll-indicator:hover {
  color: var(--gold-dark);
  transform: translateY(3px);
}

.scroll-mouse-icon {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

/* ==========================================================================
   4. LIVE COUNTDOWN & CALENDAR SECTION
   ========================================================================== */
.countdown-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.countdown-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  padding: 1.5rem 0.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.countdown-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.countdown-label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.countdown-finished-msg {
  display: none;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 2rem;
}

.calendar-action-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. BLESSINGS & SACRED QUOTE SECTION
   ========================================================================== */
.blessings-section {
  background: var(--bg-primary);
}

.quote-box {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  text-align: center;
}

.quote-ornament {
  width: 100%;
  max-width: 240px;
  height: 40px;
  margin: 0 auto 1.5rem;
  color: var(--gold-primary);
}

.blessings-arabic-verse {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--gold-dark);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.blessings-verse-trans {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.blessings-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  position: relative;
}

.blessings-quote-mark {
  color: var(--gold-primary);
  font-family: var(--font-playfair);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
}

.blessings-sign-off {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. FAMILY / HOST SECTION
   ========================================================================== */
.family-section {
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, var(--bg-secondary) 100%);
}

.family-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
}

.family-crest-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  background: var(--gold-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.crest-initials {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.family-lead-text {
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.family-names-showcase {
  margin-bottom: 1.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.family-member-names {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.bullet-dot {
  color: var(--gold-primary);
  margin: 0 0.35rem;
}

.family-house-title {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-dark);
}

.family-message-body {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.family-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-seal-line {
  flex: 1;
  height: 1px;
  background: var(--border-gold);
}

.footer-residence-stamp {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}

/* ==========================================================================
   6B. THE FAMILY BEHIND THE HOME (FAMILY PORTRAIT SECTION)
   ========================================================================== */
.family-portrait-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-gold);
}

.family-portrait-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.family-portrait-text-content {
  text-align: left;
}

.family-portrait-heading {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.35rem;
}

.family-portrait-lead {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  color: var(--gold-dark);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.family-portrait-story {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.family-portrait-decor-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.family-portrait-decor-line::before,
.family-portrait-decor-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-gold);
}

.decor-diamond {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.family-portrait-quote-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold-primary);
  padding: 1.25rem 1.75rem;
  border-radius: 0 1rem 1rem 0;
}

.family-portrait-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.family-portrait-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

/* Portrait Media Frame */
.family-portrait-media-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.family-portrait-frame-outer {
  position: relative;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-strong);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}

.family-portrait-frame-inner {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #EFE7DB;
}

.family-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.family-portrait-frame-outer:hover .family-portrait-img {
  transform: scale(1.03);
}

.family-portrait-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(24, 21, 18, 0.12);
  pointer-events: none;
}

/* Corner Accents */
.family-corner-accent {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold-primary);
  pointer-events: none;
}

.family-corner-accent.top-left {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  border-top-left-radius: 6px;
}

.family-corner-accent.top-right {
  top: 6px;
  right: 6px;
  border-top: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
  border-top-right-radius: 6px;
}

.family-corner-accent.bottom-left {
  bottom: 6px;
  left: 6px;
  border-bottom: 2px solid var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  border-bottom-left-radius: 6px;
}

.family-corner-accent.bottom-right {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
  border-bottom-right-radius: 6px;
}

/* Names Under Photo */
.family-portrait-names-caption {
  text-align: center;
  margin-top: 1.5rem;
}

.family-photo-caption {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}

.family-photo-names {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.family-photo-sub {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ==========================================================================
   7 & 8. EDITORIAL RESIDENCE SHOWCASE (SPLIT GRID)
   ========================================================================== */
.residence-section {
  background: var(--bg-primary);
}

.architectural-story-section {
  background: var(--bg-secondary);
}

.editorial-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.editorial-split-grid.reverse {
  direction: rtl;
}

.editorial-split-grid.reverse > * {
  direction: ltr;
}

.editorial-media {
  position: relative;
}

.editorial-image-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.architectural-story-section .editorial-image-frame {
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin: 0 auto;
}

.editorial-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.editorial-media:hover .editorial-image-frame img {
  transform: scale(1.05);
}

.image-frame-gold-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(230, 208, 163, 0.5);
  border-radius: 1rem;
  pointer-events: none;
}

.image-caption-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-top: 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--gold-primary);
}

.editorial-content {
  text-align: left;
}

.editorial-heading {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.editorial-quote {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--gold-dark);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.editorial-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.editorial-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.editorial-divider::before,
.editorial-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-gold);
}

.divider-gem {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.welcome-stamp {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stamp-arabic {
  font-size: 1.6rem;
  color: var(--gold-dark);
}

.stamp-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.editorial-highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pill-dot {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   9. PERGOLA / COURTYARD SECTION
   ========================================================================== */
.pergola-banner-section {
  background: var(--bg-primary);
}

.pergola-full-card {
  max-width: 1040px;
  margin: 0 auto;
}

.pergola-image-container {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border: 1px solid var(--border-gold);
}

.pergola-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.pergola-full-card:hover .pergola-image-container img {
  transform: scale(1.04);
}

.pergola-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(24, 21, 18, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.pergola-overlay-content {
  text-align: center;
  color: #FAF7F2;
}

.pergola-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.35rem;
}

.pergola-text {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: #FFFFFF;
}

/* ==========================================================================
   10. MAIN INVITATION CARD SECTION
   ========================================================================== */
.main-invitation-section {
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, var(--bg-secondary) 100%);
}

.ceremonial-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  border: 2px solid var(--gold-primary);
  border-radius: 2rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 234, 0.94) 100%);
}

.ceremonial-frame-decor {
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--gold-light);
  border-radius: 1.5rem;
  pointer-events: none;
}

.ceremonial-crest-svg {
  width: 52px;
  height: 52px;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.ceremonial-bismillah {
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.ceremonial-main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.ceremonial-body-text {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.ceremonial-palace-box {
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold-strong);
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  margin-bottom: 2.25rem;
}

.palace-arabic-name {
  font-size: 2.2rem;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}

.palace-eng-name {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.palace-meaning {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.palace-brand-badge {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.4rem 1.5rem;
  border-radius: 9999px;
}

.ceremonial-hosts-group {
  margin-bottom: 2.25rem;
}

.hosts-label {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.hosts-names {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hosts-family-title {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-dark);
}

.ceremonial-quick-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-gold);
}

.quick-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}

.detail-val {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.quick-detail-divider {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   11. CELEBRATION TIMELINE & EVENT DETAILS SECTION
   ========================================================================== */
.celebration-section {
  background: var(--bg-primary);
}

.event-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.event-info-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.event-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin: 0 auto 1.25rem;
}

.event-card-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.event-card-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.event-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Timeline Layout */
.timeline-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-section-heading {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  margin-bottom: 2.5rem;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 90px;
  width: 2px;
  background: var(--border-gold-strong);
}

.timeline-node {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.timeline-time-badge {
  width: 110px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: var(--bg-card);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
}

.timeline-content {
  flex: 1;
  text-align: left;
  padding: 1.5rem 2rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   12. PHOTO GALLERY SECTION & LIGHTBOX MODAL
   ========================================================================== */
.gallery-section {
  background: var(--bg-secondary);
}

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

.gallery-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  transition: var(--transition-smooth);
}

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-card);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Foyer vertical photo focal position so the mirror & vanity counter are framed gracefully */
.gallery-card-foyer .gallery-img-wrapper img,
.gallery-card[data-gallery-index="2"] .gallery-img-wrapper img,
.img-foyer {
  object-position: center 25% !important;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(24, 21, 18, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  text-align: left;
  color: #FAF7F2;
}

.gallery-card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.gallery-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.gallery-card-desc {
  font-size: 0.85rem;
  color: #D2C4B0;
  line-height: 1.4;
  opacity: 0.9;
}

.gallery-expand-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(24, 21, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-expand-icon {
  background: var(--gold-primary);
  color: #181512;
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(14, 12, 10, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-img-wrapper {
  max-height: 75vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-gold);
  margin-bottom: 1.25rem;
}

.lightbox-img-wrapper img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption-box {
  color: #FAF7F2;
}

.lightbox-title {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.lightbox-caption {
  font-size: 0.95rem;
  color: #D2C4B0;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FAF7F2;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-btn:hover {
  background: var(--gold-primary);
  color: #181512;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

/* ==========================================================================
   13. VENUE, LANDMARK & LIVE NAVIGATION SECTION
   ========================================================================== */
.venue-section {
  background: var(--bg-primary);
}

.venue-card-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.75rem;
}

.venue-map-container {
  width: 100%;
  height: 380px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-bottom: 1.75rem;
}

.venue-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.venue-details-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
}

.venue-arabic {
  font-size: 1.4rem;
  color: var(--gold-dark);
  display: block;
}

.venue-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.venue-loc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.landmark-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.landmark-icon {
  font-size: 1.1rem;
}

.landmark-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-directions {
  padding: 1.1rem 2.25rem;
}

/* ==========================================================================
   14. RSVP & WHATSAPP SHARING SECTION
   ========================================================================== */
.rsvp-section {
  background: var(--bg-secondary);
}

.rsvp-card {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}

.rsvp-heading {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.rsvp-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

.rsvp-buttons-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn-whatsapp-share {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-share:hover {
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.5);
}

.rsvp-phone-placeholder {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   15. FINAL BLESSINGS & FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #FAF7F2;
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  border-top: 2px solid var(--gold-primary);
}

.footer-arabic-bismillah {
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.footer-thankyou-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-palace-title {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-family-names {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.footer-sub {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.footer-date-tag {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #D2C4B0;
  margin-bottom: 2.25rem;
}

.footer-share-action {
  margin-bottom: 3.5rem;
}

.footer-share-btn {
  color: #FAF7F2;
  border-color: var(--gold-light);
}

.footer-share-btn:hover {
  background: var(--gold-gradient);
  color: #181512;
}

/* Agency Promo Card (Domain Ads) */
.business-promo-card {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
}

.promo-badge {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.promo-tagline {
  font-size: 0.85rem;
  color: #D2C4B0;
  margin-bottom: 1.25rem;
}

.btn-promo-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.btn-promo-whatsapp:hover {
  background: #1eb957;
  transform: translateY(-2px);
}

.promo-credits {
  font-size: 0.78rem;
  color: #A0988C;
  line-height: 1.6;
}

.promo-credits a {
  color: var(--gold-light);
}

/* ==========================================================================
   16. FLOATING ACTIONS
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #FFFFFF;
  padding: 0.8rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--gold-gradient);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL ENGINE
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 35px rgba(197, 160, 89, 0.45); }
  50% { box-shadow: 0 15px 50px rgba(197, 160, 89, 0.75); }
}

@keyframes soundWave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  80% { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST LUXURY)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .editorial-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .editorial-split-grid.reverse {
    direction: ltr;
  }
  .family-portrait-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .family-portrait-text-content {
    text-align: center;
  }
  .family-portrait-quote-box {
    border-left: 1px solid var(--border-gold);
    border-top: 3px solid var(--gold-primary);
    border-radius: 1rem;
    text-align: center;
  }
  .family-portrait-frame-outer {
    max-width: 440px;
  }
  .event-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 45px;
  }
  .timeline-time-badge {
    text-align: left;
    width: auto;
  }
  .timeline-content {
    width: 100%;
  }
  .venue-details-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-directions {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .countdown-grid {
    gap: 0.65rem;
  }
  .countdown-card {
    padding: 1.1rem 0.4rem;
  }
  .countdown-number {
    font-size: 1.8rem;
  }
  .hero-date-card {
    padding: 1rem 1.25rem;
  }
  .date-highlight-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .date-separator {
    display: none;
  }
  .floating-whatsapp-btn span {
    display: none;
  }
  .floating-whatsapp-btn {
    padding: 0.8rem;
    border-radius: 50%;
  }
  .hide-mobile {
    display: none;
  }
  .gate-center-wrapper {
    padding: 2.25rem 1.25rem;
  }
  .ceremonial-quick-details {
    flex-direction: column;
    gap: 0.75rem;
  }
  .quick-detail-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .invitation-gate.opened {
    display: none !important;
  }
}
