/* ==========================================================================
   Royal Islamic Elegance — Reference Champagne-Ivory & Antique Gold Theme
   100% Mobile-First & Responsive Across 360px–1440px+ Viewports
   Palette (Derived from Reference Invitations):
     - Champagne Ivory / Pearl : #FAF6EE, #FFFBF2, #FFFFFF
     - Antique Metallic Gold   : #F2CE82, #D4AF37, #AA771C, #8F6112
     - Deep Emerald Accent     : #043927, #022C22 (for contrast & Islamic heritage)
     - Warm Bronze Charcoal    : #2A2116, #5C492B
   ========================================================================== */

:root {
  --ivory-pearl: #FAF6EE;
  --champagne: #FFFBF2;
  --ivory-soft: #F3ECE0;
  --ivory-card: rgba(255, 253, 249, 0.94);
  --gold-light: #F2CE82;
  --gold-royal: #D4AF37;
  --gold-antique: #AA771C;
  --gold-deep: #8F6112;
  --gold-gradient: linear-gradient(135deg, #9C6F16 0%, #F2CE82 38%, #D4AF37 70%, #8F6112 100%);
  --gold-foil-sheen: linear-gradient(120deg, #9C6F16 0%, #FFFBF2 28%, #F2CE82 52%, #D4AF37 75%, #8F6112 100%);
  --emerald-deep: #043927;
  --emerald-dark: #022C22;
  --emerald-night: #011D16;
  --ink-bronze: #2A2116;
  --muted-bronze: #5C492B;
  --shadow-gold: 0 14px 38px rgba(170, 119, 28, 0.18);
  --shadow-luxury: 0 20px 48px rgba(42, 33, 22, 0.12);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--ivory-pearl);
  color: var(--ink-bronze);
  line-height: 1.75;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

body.curtain-locked {
  overflow: hidden;
  height: 100vh;
}

/* Live Shimmering Gold Dust Canvas Overlay */
#goldDustCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 940;
}

/* Swaying Hero Islamic Brass Lanterns (Fanous) */
.hero-lantern {
  position: absolute;
  top: 0;
  width: 72px;
  pointer-events: none;
  z-index: 2;
  transform-origin: top center;
  animation: lanternSway 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.45));
}

.hero-lantern-left {
  left: 6%;
}

.hero-lantern-right {
  right: 6%;
  animation-delay: -2.4s;
}

.hero-lantern-glow {
  animation: candleFlicker 2.8s ease-in-out infinite alternate;
}

@keyframes lanternSway {
  0% { transform: rotate(-3.2deg); }
  100% { transform: rotate(3.2deg); }
}

@keyframes candleFlicker {
  0% { opacity: 0.72; }
  50% { opacity: 1; }
  100% { opacity: 0.82; }
}

/* Rotating Islamic Star Mandala Halo behind Bride/Groom Emblems */
.couple-emblem-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.25rem;
}

.couple-mandala-halo {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  opacity: 0.32;
  animation: slowMandalaSpin 36s linear infinite;
}

@keyframes slowMandalaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Animated Realistic Wax Seal Crest */
.wax-seal-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F7E8B5 0%, #D4AF37 52%, #8F6112 100%);
  border: 2.5px dashed rgba(255, 251, 242, 0.85);
  box-shadow: 0 10px 26px rgba(143, 97, 18, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.65);
  color: var(--emerald-night);
  animation: gentleSealFloat 3.6s ease-in-out infinite alternate;
}

@keyframes gentleSealFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.04); }
}

/* Top Golden Scroll Progress Line */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(170, 119, 28, 0.18);
  z-index: 1070;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
  transition: width 0.08s linear;
}

/* ==========================================================================
   1. GRAND OPENING CHAMPAGNE-GOLD & IVORY SILK CURTAIN OVERLAY
   ========================================================================== */
.velvet-curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.velvet-curtain-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background-color: #EFE5D2;
  /* Pleated Champagne Silk & Pearl Gold Folds */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(218, 200, 168, 0.75) 0px,
      rgba(255, 251, 242, 0.92) 26px,
      rgba(235, 221, 194, 0.85) 54px,
      rgba(205, 183, 145, 0.72) 82px
    ),
    radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.16), transparent 70%);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.curtain-panel-left {
  left: 0;
  border-right: 3px solid var(--gold-royal);
  box-shadow: inset -18px 0 36px rgba(143, 97, 18, 0.18), 6px 0 24px rgba(212, 175, 55, 0.35);
}

.curtain-panel-right {
  right: 0;
  border-left: 3px solid var(--gold-royal);
  box-shadow: inset 18px 0 36px rgba(143, 97, 18, 0.18), -6px 0 24px rgba(212, 175, 55, 0.35);
}

.velvet-curtain-overlay.is-open .curtain-panel-left { transform: translateX(-104%); }
.velvet-curtain-overlay.is-open .curtain-panel-right { transform: translateX(104%); }

.curtain-centerpiece {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.velvet-curtain-overlay.is-open .curtain-centerpiece {
  opacity: 0;
  transform: scale(0.94);
}

/* 4:6 (2:3) Rectangular Opening Card with Makkah & Madinah + Roses */
.opening-rect-card {
  position: relative;
  width: min(88vw, 390px);
  aspect-ratio: 4 / 6;
  max-height: 88svh;
  border-radius: 20px;
  border: 3px solid var(--gold-royal);
  background-color: #FAF6EE;
  background-image: url('assets/bg-opening-makkah-madina.jpg');
  background-size: cover;
  background-position: center center;
  box-shadow:
    0 24px 65px rgba(42, 33, 22, 0.35),
    0 0 0 6px rgba(255, 251, 242, 0.75),
    0 0 0 8px rgba(212, 175, 55, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.2rem 1.35rem;
}

.opening-rect-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(170, 119, 28, 0.65);
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
}

.opening-glass-header {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 92%;
  background: rgba(255, 252, 245, 0.84);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 16px;
  padding: 0.95rem 0.85rem;
  margin-top: 0.35rem;
  box-shadow: 0 8px 24px rgba(143, 97, 18, 0.12);
}

.opening-rect-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: 0.25rem;
}

/* Animated Swaying Roses & Falling Petals on Both Sides of Opening Screen */
.curtain-rose-garland {
  position: absolute;
  top: -10px;
  width: 78px;
  pointer-events: none;
  z-index: 4;
  transform-origin: top center;
  animation: roseSway 4.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 12px rgba(92, 73, 43, 0.25));
}

.curtain-rose-garland-left { left: -6px; }
.curtain-rose-garland-right { right: -6px; transform: scaleX(-1); animation-name: roseSwayRight; }

@keyframes roseSway {
  0% { transform: rotate(-3deg) translateY(0); }
  100% { transform: rotate(3.5deg) translateY(4px); }
}

@keyframes roseSwayRight {
  0% { transform: scaleX(-1) rotate(-3deg) translateY(0); }
  100% { transform: scaleX(-1) rotate(3.5deg) translateY(4px); }
}

.curtain-side-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.curtain-side-petal {
  position: absolute;
  top: -20px;
  border-radius: 75% 15% 75% 15%;
  animation: curtainPetalDrop var(--dur, 6s) linear var(--delay, 0s) infinite;
}

@keyframes curtainPetalDrop {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(105%) translateX(var(--drift, 24px)) rotate(300deg); opacity: 0; }
}

.btn-curtain-open {
  background: var(--gold-foil-sheen);
  background-size: 200% auto;
  color: var(--emerald-night);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid #FFFFFF;
  border-radius: 50px;
  padding: 0.88rem 1.85rem;
  min-height: 48px;
  box-shadow: 0 12px 32px rgba(143, 97, 18, 0.34);
  animation: pulseBtn 2s infinite;
  transition: transform 0.25s ease, background-position 0.5s ease;
}

.btn-curtain-open:hover {
  transform: scale(1.03);
  background-position: right center;
  color: var(--emerald-night);
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.65); }
  70% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Ambient Drifting Rose & Gold Petals */
.ambient-petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 950;
  overflow: hidden;
}

.petal-particle {
  position: absolute;
  top: -32px;
  border-radius: 75% 15% 75% 15%;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.82; }
  85% { opacity: 0.6; }
  100% { transform: translateY(105vh) translateX(65px) rotate(320deg); opacity: 0; }
}

/* Typography Helpers */
.font-arabic {
  font-family: 'Amiri', serif;
  direction: rtl;
  line-height: 1.95;
}

.font-display {
  font-family: 'Rozha One', 'Noto Serif Devanagari', 'Playfair Display', serif;
}

.font-serif-luxury {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif;
}

.text-emerald { color: var(--emerald-deep) !important; }
.text-gold { color: var(--gold-royal) !important; }
.text-gold-deep { color: var(--gold-deep) !important; }
.text-champagne { color: var(--champagne) !important; }
.text-gold-bright { color: var(--gold-light) !important; }

.text-gold-foil {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 0.14em;
  padding-bottom: 0.14em;
  display: inline-block;
}

/* ==========================================================================
   REFERENCE-INSPIRED CHAMPAGNE-IVORY & ISLAMIC BACKGROUNDS
   ========================================================================== */
/* Hero: Luminous Taj Mahal & Golden Lanterns Heritage Backdrop */
.bg-palace-hero {
  background-color: #FAF6EE;
  background-image:
    linear-gradient(180deg, rgba(250, 246, 238, 0.28) 0%, rgba(250, 246, 238, 0.22) 55%, rgba(250, 246, 238, 0.5) 100%),
    url('assets/bg-taj-islamic-heritage.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Light Ivory Floral Stationery */
.bg-ivory-pictorial {
  background-color: var(--ivory-pearl);
  background-image:
    linear-gradient(180deg, rgba(250, 246, 238, 0.45) 0%, rgba(250, 246, 238, 0.35) 50%, rgba(250, 246, 238, 0.52) 100%),
    url('assets/bg-ivory-arabesque.jpg');
  background-size: cover;
  background-position: center center;
}

/* Sculpted Reference 1 Ivory Damask Texture */
.bg-ivory-damask {
  background-color: #FAF5EB;
  background-image:
    linear-gradient(180deg, rgba(250, 245, 235, 0.86) 0%, rgba(250, 245, 235, 0.78) 50%, rgba(250, 245, 235, 0.88) 100%),
    url('assets/bg-card-arch-ivory.jpg');
  background-size: cover;
  background-position: center center;
}

/* Islamic Mosque Domes & Golden Lanterns (Balanced Contrast Overlay) */
.bg-islamic-domes {
  background-color: var(--emerald-dark);
  background-image:
    linear-gradient(180deg, rgba(2, 44, 34, 0.28) 0%, rgba(1, 29, 22, 0.52) 100%),
    url('assets/bg-islamic-domes.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.golden-seam {
  height: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

/* Ornamental Dividers */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.95rem auto;
  max-width: 300px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-royal), transparent);
}

.ornament-divider svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ==========================================================================
   2. REFERENCE-INSPIRED HERO ARCH CARD (LUMINOUS IVORY & ANTIQUE GOLD)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.25rem 0 2.75rem;
  overflow: hidden;
}

.hero-arch-frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.1rem 2rem 2.5rem;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.93) 0%, rgba(250, 244, 232, 0.91) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2.5px solid var(--gold-royal);
  border-radius: 260px 260px 24px 24px / 200px 200px 24px 24px;
  box-shadow:
    0 24px 60px rgba(92, 73, 43, 0.18),
    inset 0 0 0 8px rgba(250, 246, 238, 0.9),
    inset 0 0 0 10px rgba(212, 175, 55, 0.55);
  text-align: center;
  color: var(--ink-bronze);
}

.hero-arch-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(255, 251, 242, 0.9));
  border: 1.5px solid var(--gold-royal);
  color: var(--gold-deep);
  box-shadow: 0 6px 18px rgba(170, 119, 28, 0.2);
  margin-bottom: 0.75rem;
}

.hero-bismillah {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  color: var(--gold-deep);
  margin-bottom: 0.15rem;
}

.hero-bismillah-sub {
  font-size: 0.84rem;
  color: var(--muted-bronze);
  margin-bottom: 0.75rem;
}

.hero-invite-text {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-bronze);
  max-width: 560px;
  margin: 0 auto 0.85rem;
}

.hero-couple-names {
  font-family: 'Rozha One', 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.45rem, 6.4vw, 4.4rem);
  line-height: 1.28;
  margin-bottom: 0.4rem;
}

.hero-ampersand {
  font-family: 'Playfair Display', 'Noto Serif Devanagari', serif;
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  margin: 0 0.25rem;
  color: var(--gold-antique);
}

.hero-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(170, 119, 28, 0.55);
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.45rem;
}

.scroll-cue {
  margin-top: 1.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold-deep);
  background: rgba(255, 251, 242, 0.82);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.scroll-cue:hover {
  color: var(--emerald-deep);
  background: #FFFFFF;
}

.scroll-cue i {
  font-size: 1.15rem;
  animation: bounceCue 1.8s infinite;
}

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

/* Luxury Buttons (Full Touch Target Size >= 44px for Mobile) */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold-gradient);
  color: var(--emerald-night);
  font-weight: 600;
  border: 1px solid rgba(255, 251, 242, 0.78);
  border-radius: 50px;
  padding: 0.75rem 1.55rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(170, 119, 28, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold:hover,
.btn-gold:focus {
  color: var(--emerald-night);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(170, 119, 28, 0.42);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold-royal);
  color: var(--gold-light);
  background: rgba(2, 44, 34, 0.65);
  border-radius: 50px;
  padding: 0.72rem 1.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--gold-royal);
  color: var(--emerald-night);
}

/* Light-surface gold outline button (for Ivory Hero / Light sections) */
.btn-outline-bronze {
  border: 1.5px solid var(--gold-antique);
  color: var(--gold-deep);
  background: rgba(255, 251, 242, 0.85);
  border-radius: 50px;
  padding: 0.72rem 1.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-outline-bronze:hover,
.btn-outline-bronze:focus {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  border-color: var(--gold-royal);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, #064E3B 100%);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-royal);
  border-radius: 50px;
  padding: 0.72rem 1.55rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-emerald:hover,
.btn-emerald:focus {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald-deep) 100%);
  transform: translateY(-2px);
}

/* Section Layout & Headers */
.section-pad {
  padding: 4.5rem 0;
  position: relative;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: var(--gold-antique);
  margin-bottom: 0.4rem;
}

.section-heading {
  font-family: 'Rozha One', 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  line-height: 1.32;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.section-heading-light {
  color: var(--gold-light);
}

.golden-card-surface {
  position: relative;
  background: var(--ivory-card);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(212, 175, 55, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow-gold);
}

.golden-card-surface::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 17px;
  pointer-events: none;
}

/* ==========================================================================
   3. JASHN ROSE-PETAL BLOOM SECTION (IVORY SCULPTED CARD OVER ISLAMIC DOMES)
   ========================================================================== */
.jashn-section {
  overflow: hidden;
}

.jashn-rose-shower {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.jashn-rose-petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  border-radius: 75% 15% 75% 15%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.jashn-section.is-jashn-active .jashn-rose-petal {
  animation: jashnRoseDrop var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes jashnRoseDrop {
  0% { transform: translateY(-20px) translateX(0) rotate(0deg) scale(0.9); opacity: 0; }
  15% { opacity: 0.88; }
  75% { opacity: 0.65; }
  100% { transform: translateY(620px) translateX(var(--drift, 45px)) rotate(320deg) scale(0.75); opacity: 0; }
}

.jashn-bloom-card {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 2.35rem 1.75rem;
  background: linear-gradient(155deg, rgba(255, 252, 245, 0.96), rgba(250, 242, 226, 0.94));
  backdrop-filter: blur(12px);
  border: 2.5px solid var(--gold-royal);
  border-radius: 26px;
  color: var(--ink-bronze);
  text-align: center;
  box-shadow: 0 24px 56px rgba(143, 97, 18, 0.2), inset 0 0 0 6px rgba(212, 175, 55, 0.14);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.jashn-section.is-jashn-active .jashn-bloom-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.jashn-date-tile {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.68);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  height: 100%;
  box-shadow: 0 8px 20px rgba(170, 119, 28, 0.1);
}

/* Countdown Timer */
.countdown-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 118px));
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.65rem;
}

.countdown-item {
  background: linear-gradient(180deg, #FFFFFF, #FAF3E3);
  border: 2px solid var(--gold-royal);
  border-radius: 16px;
  padding: 0.9rem 0.35rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(143, 97, 18, 0.16);
}

.countdown-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-deep);
}

.countdown-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted-bronze);
  margin-top: 0.25rem;
}

/* ==========================================================================
   4. BRIDE & GROOM FULL-PHOTO SHOWCASE + NAME BELOW PHOTO
   ========================================================================== */
.couple-card {
  padding: 1.65rem 1.35rem 1.95rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.couple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(170, 119, 28, 0.24);
}

.couple-full-photo-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto 1.25rem;
  padding: 8px;
  background: var(--gold-gradient);
  border-radius: 170px 170px 18px 18px;
  box-shadow: 0 12px 30px rgba(170, 119, 28, 0.28);
}

.couple-full-photo-inner {
  width: 100%;
  border-radius: 162px 162px 12px 12px;
  overflow: hidden;
  background: var(--emerald-dark);
  border: 3px solid var(--champagne);
}

.couple-full-photo-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.couple-name {
  font-family: 'Rozha One', 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.couple-parentage {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-bronze);
  margin-bottom: 0.6rem;
}

.couple-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-night);
  background: var(--gold-gradient);
  border-radius: 50px;
  padding: 0.25rem 0.95rem;
  margin-bottom: 0.6rem;
}

.couple-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.couple-connector-emblem {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2.5px solid #FFFFFF;
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-night);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
}

/* Full Couple Gallery Cards */
.gallery-royal-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF, #FAF3E3);
  border: 2.5px solid var(--gold-royal);
  border-radius: 24px;
  padding: 0.9rem;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.gallery-royal-card:hover {
  transform: translateY(-5px);
}

.gallery-img-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  background: var(--ivory-soft);
}

.gallery-img-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.quran-banner-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(246, 236, 214, 0.94));
  border: 2.5px solid var(--gold-royal);
  border-radius: 22px;
  color: var(--ink-bronze);
  box-shadow: var(--shadow-gold);
}

.quran-arabic {
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}

.quran-translation {
  font-family: 'Noto Serif Devanagari', 'Playfair Display', serif;
  font-size: clamp(0.95rem, 2.2vw, 1.06rem);
  line-height: 1.8;
  color: var(--ink-bronze);
  margin-bottom: 0.45rem;
}

/* ==========================================================================
   5. EVENTS TIMELINE (OVER ISLAMIC DOMES BACKDROP)
   ========================================================================== */
.event-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.event-filter-btn {
  border: 1.5px solid rgba(212, 175, 55, 0.78);
  background: rgba(2, 44, 34, 0.75);
  color: var(--gold-light);
  border-radius: 50px;
  padding: 0.52rem 1.2rem;
  min-height: 42px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-filter-btn:hover,
.event-filter-btn.is-active {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  font-weight: 600;
}

.event-card {
  background: rgba(255, 252, 245, 0.97);
  border: 2px solid var(--gold-royal);
  border-radius: 200px 200px 22px 22px / 48px 48px 22px 22px;
  padding: 2.1rem 1.5rem 1.75rem;
  height: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover { transform: translateY(-5px); }

.event-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2.5px solid #FFFFFF;
  color: var(--emerald-night);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(170, 119, 28, 0.28);
}

.event-title {
  font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
  font-size: 1.55rem;
  line-height: 1.32;
  color: var(--gold-deep);
  margin-bottom: 0.2rem;
}

.event-meta-list {
  list-style: none;
  margin: 0 0 1rem;
  text-align: left;
  border-top: 1px solid rgba(212, 175, 55, 0.38);
  border-bottom: 1px solid rgba(212, 175, 55, 0.38);
  padding: 0.85rem 0;
}

.event-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-meta-list li:last-child { margin-bottom: 0; }
.event-meta-list i { color: var(--gold-antique); margin-top: 0.2rem; flex-shrink: 0; }

/* ==========================================================================
   6. VENUE, CONTACT PILL, QR & DUA WALL, RSVP
   ========================================================================== */
.venue-info-card,
.hub-card {
  padding: 1.85rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-gradient);
  border: 1.5px solid #FFFFFF;
  color: var(--emerald-night);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(170, 119, 28, 0.25);
}

.map-frame-card {
  background: var(--ivory-card);
  border: 2.5px solid var(--gold-royal);
  border-radius: 24px;
  padding: 0.65rem;
  box-shadow: var(--shadow-gold);
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.map-frame-card iframe {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* Direct Iconic Contact Logo Buttons (Call / WhatsApp / SMS / Save) */
.contact-directory-card {
  background: linear-gradient(165deg, #FFFFFF 0%, #FAF3E3 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.72);
  border-radius: 18px;
  padding: 1rem 0.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 8px 22px rgba(143, 97, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(143, 97, 18, 0.16);
}

.contact-person-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 0.2rem;
}

.contact-person-phone {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.2px;
  margin-bottom: 0.8rem;
  direction: ltr;
}

.direct-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

.direct-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-shadow: 0 6px 16px rgba(42, 33, 22, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.direct-logo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(42, 33, 22, 0.22);
}

.direct-logo-btn i {
  font-size: 1.15rem;
}

.btn-logo-call {
  background: linear-gradient(135deg, #043927, #064E3B);
  color: #F2CE82;
  border-color: #D4AF37;
}
.btn-logo-call:hover { color: #FFFFFF; }

.btn-logo-wa {
  background: #25D366;
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.btn-logo-wa:hover { color: #FFFFFF; }

.btn-logo-sms {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  border-color: #FFFFFF;
}
.btn-logo-sms:hover { color: var(--emerald-night); }

.btn-logo-save {
  background: #FFFFFF;
  color: var(--gold-deep);
  border-color: var(--gold-royal);
}
.btn-logo-save:hover {
  background: #FAF3E3;
  color: var(--emerald-deep);
}

.clickable-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  min-height: 46px;
  border-radius: 50px;
  background: linear-gradient(135deg, #FFFFFF, #FAF3E3);
  border: 1.5px solid var(--gold-royal);
  color: var(--gold-deep);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.clickable-number-pill:hover {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  transform: translateY(-2px);
}

.qr-frame-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  background: #FFFFFF;
  border: 2.5px solid var(--gold-royal);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(143, 97, 18, 0.12);
  margin: 0.65rem auto 1rem;
  min-width: 186px;
  min-height: 186px;
}

.dua-wall-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.dua-entry-card {
  background: var(--champagne);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-left: 4px solid var(--gold-royal);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.royal-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.royal-form .form-control,
.royal-form .form-select {
  border: 1.5px solid rgba(170, 119, 28, 0.28);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.94rem; /* >=15px prevents auto-zoom friction */
  background-color: var(--ivory-pearl);
}

.royal-form .form-control:focus,
.royal-form .form-select:focus {
  border-color: var(--gold-royal);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  background-color: #FFFFFF;
}

.dua-chip {
  font-size: 0.76rem;
  border: 1px solid rgba(170, 119, 28, 0.55);
  background: rgba(212, 175, 55, 0.14);
  color: var(--ink-bronze);
  border-radius: 50px;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dua-chip:hover,
.dua-chip.is-selected {
  background: var(--gold-gradient);
  color: var(--emerald-night);
}

.side-toggle-group .btn-check:checked + .btn {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  border-color: var(--gold-royal);
  font-weight: 600;
}

.guest-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  border-radius: 50px;
  overflow: hidden;
  background: var(--ivory-pearl);
}

.guest-stepper button {
  border: none;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-deep);
  width: 38px;
  height: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.guest-stepper button:hover {
  background: var(--gold-royal);
  color: var(--emerald-night);
}

.guest-stepper input {
  width: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  color: var(--ink-bronze);
}

/* Digital Booklet Modal Cards (Mobile-Friendly) */
.digital-card-preview-sheet {
  background: radial-gradient(circle at top, #FFFDF8, #F5ECD8);
  border: 2.5px solid var(--gold-royal);
  border-radius: 22px;
  padding: 1.85rem 1.35rem;
  color: var(--ink-bronze);
  box-shadow: inset 0 0 0 6px rgba(250, 246, 238, 0.9), inset 0 0 0 8px rgba(212, 175, 55, 0.45);
}

.modal-cover-card-sheet {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
  background: url('assets/bg-ivory-arabesque.jpg') center/cover no-repeat;
  color: #2A2116;
  border-radius: 22px;
  border: 2.5px solid var(--gold-royal);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.modal-cover-inner-panel {
  background: rgba(255, 253, 249, 0.95);
  border: 1.8px solid var(--gold-royal);
  border-radius: 140px 140px 16px 16px;
  padding: 1.9rem 1.35rem 1.55rem;
  box-shadow:
    0 8px 24px rgba(143, 97, 18, 0.14),
    inset 0 0 0 5px rgba(250, 246, 238, 0.92),
    inset 0 0 0 6.5px rgba(212, 175, 55, 0.45);
}

/* Scroll Reveal & Toast */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="zoom-in"] { transform: scale(0.95); }
[data-reveal="fade-left"] { transform: translateX(22px); }
[data-reveal="fade-right"] { transform: translateX(-22px); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.royal-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2150;
  background: var(--emerald-night);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-royal);
  border-radius: 50px;
  padding: 0.68rem 1.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.royal-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer (Warm Ivory & Antique Gold Matching Reference Theme) */
.royal-footer {
  background-color: #F4EBDA;
  background-image:
    linear-gradient(180deg, rgba(250, 246, 238, 0.75) 0%, rgba(244, 235, 218, 0.92) 100%),
    url('assets/bg-ivory-arabesque.jpg');
  background-size: cover;
  background-position: center;
  color: var(--ink-bronze);
  border-top: 3px solid var(--gold-royal);
  padding: 4rem 0 5.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-royal);
  color: var(--ink-bronze);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(170, 119, 28, 0.14);
  transition: all 0.25s ease;
}

.contact-pill:hover {
  background: var(--gold-gradient);
  color: var(--emerald-night);
  transform: translateY(-2px);
}

/* Floating Controls (Mobile Safe-Area Friendly) */
.floating-fab {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.25s ease;
  text-decoration: none;
}

.floating-fab:hover { transform: translateY(-3px); }

.fab-whatsapp {
  right: 16px;
  background: #25D366;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}

.fab-whatsapp:hover { color: #FFFFFF; }

.fab-music {
  left: 16px;
  background: var(--gold-gradient);
  color: var(--emerald-night);
  border: 2px solid #FFFFFF;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 10px 26px rgba(170, 119, 28, 0.35);
}

.fab-music.is-playing { animation: goldPulse 2s infinite; }

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS (360px - 991px)
   ========================================================================== */
@media (max-width: 991.98px) {
  .bg-palace-hero,
  .bg-ivory-pictorial,
  .bg-ivory-damask,
  .bg-islamic-domes {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.25rem 0;
  }

  .opening-rect-card {
    width: min(90vw, 355px);
    aspect-ratio: 4 / 6;
    max-height: 85svh;
    padding: 1.1rem 0.9rem 1rem;
  }

  .opening-glass-header {
    padding: 0.75rem 0.7rem;
  }

  .curtain-rose-garland {
    width: 58px;
  }

  .hero-section {
    padding: 3.75rem 0 2.5rem;
  }

  .hero-arch-frame {
    padding: 2.35rem 1.1rem 2rem;
    border-radius: 170px 170px 20px 20px / 120px 120px 20px 20px;
  }

  .hero-arch-frame .btn {
    width: 100%;
    max-width: 280px;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
  }

  .countdown-item {
    padding: 0.7rem 0.2rem;
    border-radius: 12px;
  }

  .jashn-bloom-card {
    padding: 1.65rem 1rem;
    border-radius: 20px;
  }

  .couple-full-photo-frame {
    max-width: 245px;
  }

  .venue-info-card,
  .hub-card {
    padding: 1.45rem 1.15rem;
  }

  .map-frame-card {
    min-height: 290px;
  }

  .map-frame-card iframe {
    min-height: 270px;
  }

  .modal-cover-card-sheet {
    padding: 0.9rem;
  }

  .modal-cover-inner-panel {
    padding: 1.5rem 0.95rem 1.25rem;
    border-radius: 110px 110px 14px 14px;
  }

  .fab-whatsapp span,
  .fab-music span { display: none; }

  .fab-whatsapp,
  .fab-music {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    font-size: 1.25rem;
  }

  .hero-lantern {
    width: 44px;
  }
  .hero-lantern-left { left: 2%; }
  .hero-lantern-right { right: 2%; }

  .royal-footer {
    padding-bottom: 6.25rem;
  }
}

@media (max-width: 399.98px) {
  .modal-cover-card-sheet {
    padding: 0.7rem;
  }

  .hero-couple-names {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .jashn-bloom-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bismillah-medallion, .btn-curtain-open, .scroll-cue i, .fab-music.is-playing, .jashn-rose-petal,
  .hero-lantern, .hero-lantern-glow, .couple-mandala-halo, .wax-seal-crest,
  .curtain-rose-garland, .curtain-side-petal {
    animation: none !important;
  }
  #goldDustCanvas { display: none; }
  .ambient-petals-layer { display: none; }
}
