/* ==========================================================================
   TERRENCE & LINA WEDDING INVITATION — LUXURY DESIGN SYSTEM
   Royal Purple, Champagne Gold, & Ivory Aesthetic
   Song of Solomon 3:4 · Munondo Eleven, Hatfield
   ========================================================================== */

:root {
  /* Royal Purple Palette */
  --purple-deep: #2A0937;
  --purple-royal: #421252;
  --purple-regal: #5A196E;
  --purple-amethyst: #7E268E;
  --purple-velvet: #942E86;
  --purple-soft: #D4B2E8;
  --purple-mist: #F4ECF9;

  /* Champagne Gold Accents */
  --gold-primary: #D4AF37;
  --gold-light: #F6E6B4;
  --gold-dark: #A6841E;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-border: rgba(212, 175, 55, 0.35);

  /* Backgrounds & Neutrals */
  --bg-parchment: #FAF7F2;
  --bg-ivory: #FDFBF8;
  --bg-card: #FFFFFF;
  --text-dark: #1E1528;
  --text-muted: #64566F;
  --text-gold: #C5A46D;

  /* Typography */
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions & Shadows */
  --shadow-sm: 0 4px 12px rgba(42, 9, 55, 0.08);
  --shadow-md: 0 10px 30px rgba(42, 9, 55, 0.12);
  --shadow-lg: 0 20px 50px rgba(42, 9, 55, 0.22);
  --shadow-gold: 0 10px 35px rgba(212, 175, 55, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  background-color: var(--bg-parchment);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-readable {
  max-width: 720px;
}

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

.text-gold {
  color: var(--gold-primary) !important;
}

/* ==========================================================================
   FLOATING AUDIO PLAYER & NAV DOCK
   ========================================================================== */

.floating-music-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30, 8, 40, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-music-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.45);
}

.music-disc-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Explicit mutually exclusive display for SVGs */
.music-icon-playing {
  display: none !important;
}

.music-icon-muted {
  display: block !important;
}

.floating-music-btn.playing .music-icon-playing {
  display: block !important;
}

.floating-music-btn.playing .music-icon-muted {
  display: none !important;
}

.floating-music-btn.muted .music-icon-playing {
  display: none !important;
}

.floating-music-btn.muted .music-icon-muted {
  display: block !important;
}

.music-wave-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  opacity: 0;
  pointer-events: none;
}

.floating-music-btn.playing .music-wave-ring {
  animation: musicRing 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.floating-music-btn.playing .music-wave-ring.second {
  animation-delay: 1s;
}

@keyframes musicRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.music-label {
  display: none;
}

/* Topbar Header */
.luxury-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  padding-right: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-menu-toggle {
  display: none;
}

.monogram-badge {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  background: rgba(30, 8, 40, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.monogram-amp {
  color: var(--gold-light);
  font-family: var(--font-script);
  font-size: 1.4rem;
  margin: 0 0.2rem;
}

.topbar-btn {
  background: rgba(30, 8, 40, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.topbar-btn:hover {
  background: var(--purple-royal);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 6px 20px rgba(66, 18, 82, 0.45);
}

@media (max-width: 760px) {
  .luxury-topbar {
    padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
    padding-right: 4.5rem;
    gap: 0.75rem;
  }

  .monogram-badge {
    padding: 0.4rem 0.85rem;
    font-size: 0.95rem;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(30, 8, 40, 0.78);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }

  .mobile-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
  }

  .mobile-menu-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .topbar-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 4.5rem;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: min(245px, calc(100vw - 6rem));
    padding: 0.65rem;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    background: rgba(30, 8, 40, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .topbar-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar-links .topbar-btn {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .floating-music-btn {
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   HERO SECTION (REFINED CLASSIC SERIF · DUAL-LAYER CINEMATIC BACKDROP)
   ========================================================================== */

.section-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.5rem 4rem;
  overflow: hidden;
  text-align: center;
  color: #FFFFFF;
}

/* Full-bleed hero background covering entire first page in pristine resolution */
.hero-backdrop-ambience {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: blur(20px) brightness(0.55);
  transform: scale(1.04);
  z-index: 1;
}

.hero-backdrop-crisp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

/* Atmospheric scrim preserving image brightness while ensuring text readability */
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 4, 28, 0.58) 0%,
    rgba(20, 4, 28, 0.42) 35%,
    rgba(20, 4, 28, 0.64) 80%,
    rgba(15, 2, 22, 0.9) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* "WE ARE GETTING MARRIED" */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.badge-line {
  width: 40px;
  height: 1px;
  background: var(--gold-primary);
}

.badge-text {
  font-family: var(--font-cinzel);
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  letter-spacing: 0.18em;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Refined Classic Serif Typography for Couple Names (Matches Inspo) */
.hero-couple-names {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-groom, .name-bride {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
  display: block;
}

.hero-amp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.3rem 0;
}

.amp-gold-line {
  width: 55px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.hero-amp-sign {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--gold-light);
  line-height: 0.8;
  text-shadow: 0 0 20px var(--gold-glow);
}

/* Refined Tagline */
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #FFFFFF;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Transparent Meta Card (3 columns: Date, Time, Venue) */
.hero-meta-card {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.25rem;
  transition: var(--transition-smooth);
}

.hero-meta-card:hover {
  background: transparent;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-backdrop-crisp {
    max-width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    background-position: center;
  }
  .hero-backdrop-ambience {
    background-position: center;
  }
  .section-hero {
    padding: 5rem 1rem 2.5rem;
  }
  .name-groom, .name-bride {
    font-size: clamp(2.1rem, 7.5vw, 3rem);
  }
  .hero-meta-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
  }
  .meta-divider {
    width: 60%;
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
  }
}

.meta-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

.meta-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95));
}

.meta-details {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  text-align: center;
}

.meta-label {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

.meta-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.meta-divider {
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.35);
}

/* Primary & Secondary Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn-royal-primary {
  background: linear-gradient(135deg, #7e1e93 0%, #4a0d5c 100%);
  color: #FFFFFF;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(126, 30, 147, 0.4), 0 0 15px var(--gold-glow);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-royal-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #9628b0 0%, #5d1174 100%);
  box-shadow: 0 12px 30px rgba(126, 30, 147, 0.6), 0 0 25px var(--gold-glow);
}

.btn-royal-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-royal-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-royal-outline {
  border: 1px solid var(--purple-royal);
  color: var(--purple-royal);
  background: transparent;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-royal-outline:hover {
  background: var(--purple-royal);
  color: #FFFFFF;
}

.hero-scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-text {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  animation: arrowBounce 2s ease-in-out infinite;
}

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

/* ==========================================================================
   COUNTDOWN SECTION
   ========================================================================== */

.section-countdown {
  padding: 5.5rem 1.5rem 4.5rem;
  background: linear-gradient(to bottom, #FAF7F2 0%, #F5EEF9 100%);
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.section-pretitle {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--gold-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title-script {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--purple-royal);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.section-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--purple-royal);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

@media (max-width: 600px) {
  .countdown-grid {
    gap: 0.5rem;
  }
}

.countdown-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  min-width: 95px;
  box-shadow: 0 10px 25px rgba(42, 9, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 480px) {
  .countdown-card {
    padding: 0.9rem 0.8rem;
    min-width: 68px;
  }
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 300;
  color: var(--purple-royal);
  line-height: 1;
}

.countdown-unit {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-top: 0.4rem;
}

.countdown-separator {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-primary);
  opacity: 0.6;
  margin-top: -1.2rem;
}

@media (max-width: 480px) {
  .countdown-separator {
    display: none;
  }
}

.countdown-celebration-text {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   SCRIPTURE SECTION
   ========================================================================== */

.section-scripture {
  padding: 5rem 1.5rem;
  background: #FDFBF7;
  position: relative;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 320px;
  margin: 0 auto;
}

.ornament-gold-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.ornament-symbol {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.scripture-badge {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}

.scripture-card {
  position: relative;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.scripture-quote-mark {
  font-family: var(--font-script);
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.35);
  line-height: 0.5;
  margin-bottom: 0.5rem;
}

.scripture-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--purple-royal);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.scripture-citation {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-style: normal;
  display: block;
}

.scripture-reflection {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   DRESS CODE SECTION
   ========================================================================== */

.section-dresscode {
  padding: 5.5rem 1.5rem;
  background: linear-gradient(180deg, #F5EEF9 0%, #FAF7F2 100%);
  position: relative;
}

.dresscode-hero-banner {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 2.5rem auto 3rem;
  max-width: 900px;
}

@media (max-width: 768px) {
  .dresscode-hero-banner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
}

.dresscode-key-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.dresscode-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--purple-mist);
  color: var(--purple-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gold-border);
}

.dresscode-icon-badge svg {
  width: 28px;
  height: 28px;
}

.dresscode-heading {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  color: var(--purple-royal);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.dresscode-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dresscode-divider-vertical {
  width: 1px;
  height: 140px;
  background: rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .dresscode-key-item {
    flex: 0 0 auto;
    width: 100%;
  }

  .dresscode-divider-vertical {
    width: 80%;
    height: 1px;
    min-height: 1px;
    flex: 0 0 1px;
  }
}

/* Swatches */
.palette-container {
  max-width: 840px;
  margin: 0 auto;
}

.palette-title {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--purple-royal);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .swatch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.5rem;
  }
}

.swatch-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.swatch-card:hover {
  transform: translateY(-4px);
}

.swatch-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  margin-bottom: 0.6rem;
}

.swatch-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.swatch-hex {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.palette-hint {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(126, 38, 142, 0.24);
  border-left: 4px solid var(--purple-amethyst);
  border-radius: var(--radius-sm);
  background: #F4ECF9;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--purple-deep);
}

@media (max-width: 600px) {
  .palette-hint {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    text-align: left;
  }
}

/* ==========================================================================
   SCHEDULE & TIMELINE (1000hrs to 1800hrs)
   ========================================================================== */

.section-schedule {
  padding: 6rem 1.5rem;
  background: #FDFBF8;
}

.schedule-summary-tag {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.timeline-container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), var(--purple-soft), transparent);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-spine {
    left: 28px;
  }
}

.timeline-event {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-event.left {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .timeline-event, .timeline-event.left {
    flex-direction: row;
    padding-left: 60px;
  }
}

.timeline-card {
  width: calc(50% - 50px);
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .timeline-card {
    width: 100%;
  }
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-royal);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.event-desc {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.event-location {
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  text-transform: uppercase;
  display: inline-block;
}

/* Timeline Marker */
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-marker {
    left: 28px;
  }
}

.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-royal);
}

/* Timeline Time Badge */
.timeline-time-badge {
  width: calc(50% - 50px);
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-royal);
  padding: 0 1.5rem;
  text-align: right;
  line-height: 1.3;
}

.timeline-event.left .timeline-time-badge {
  text-align: left;
}

.time-24h {
  font-size: 0.72rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .timeline-time-badge {
    display: none;
  }
}

/* ==========================================================================
   VENUE SECTION
   ========================================================================== */

.section-venue {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #F5EEF9 0%, #FAF7F2 100%);
}

/* New: side-by-side photo + map grid */
.venue-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  min-height: 380px;
}

@media (max-width: 768px) {
  .venue-media-grid {
    grid-template-columns: 1fr;
  }
}

.venue-image-wrapper {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.venue-image-wrapper:hover .venue-photo {
  transform: scale(1.04);
}

.venue-photo-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: rgba(42, 9, 55, 0.88);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
  z-index: 2;
}

.venue-map-wrapper {
  position: relative;
  min-height: 380px;
  background: #e8e0d8;
  overflow: hidden;
}

.venue-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  border: none;
  filter: saturate(0.85) sepia(0.08);
  transition: filter 0.3s ease;
}

.venue-map-wrapper:hover .venue-map-iframe {
  filter: saturate(1) sepia(0);
}

.map-overlay-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(42, 9, 55, 0.88);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
  z-index: 2;
  pointer-events: none;
}

/* Venue details panel below the media grid */
.venue-details-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .venue-details-panel {
    padding: 1.5rem;
  }
}

/* Keep old classes for backwards compat */
.venue-card-split {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 860px) {
  .venue-card-split {
    grid-template-columns: 1fr;
  }
}

.venue-details-wrapper {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .venue-details-wrapper {
    padding: 2rem 1.5rem;
  }
}

.venue-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--purple-royal);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.venue-subtitle {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.venue-amenities {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
}

.amenity-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.venue-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.venue-action-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   LOVE STORY HORIZONTAL SCROLLING REEL (RIGHT TO LEFT) & WEDDING GALLERY
   ========================================================================== */

.section-gallery {
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(180deg, #FDFBF8 0%, #FAF5ED 50%, #FDFBF8 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section-header {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.gallery-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.photo-slideshow {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.photo-slideshow-topline,
.photo-slideshow-controls,
.photo-slideshow-footer,
.photo-slide-caption {
  display: flex;
  align-items: center;
}

.photo-slideshow-topline {
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.photo-slideshow-kicker {
  color: var(--purple-royal);
  font-family: var(--font-cinzel);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-slideshow-controls {
  gap: 0.65rem;
}

.photo-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple-royal);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.photo-control-button:hover {
  transform: translateY(-2px);
  background: var(--purple-royal);
  color: #FFFFFF;
}

.photo-control-button:focus-visible,
.photo-slide-dot:focus-visible,
.photo-slide:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 4px;
}

.photo-control-button.photo-play-button {
  width: auto;
  min-width: 76px;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
}

.photo-slideshow-stage {
  position: relative;
  width: 100%;
  height: clamp(470px, 51vw, 590px);
  margin: 0 auto;
  perspective: 1500px;
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
  isolation: isolate;
}

.photo-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(270px, 29vw, 370px);
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 24px 60px rgba(35, 16, 40, 0.24);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 850ms cubic-bezier(0.2, 0.72, 0.16, 1), opacity 700ms ease, filter 700ms ease, box-shadow 700ms ease;
  will-change: transform, opacity;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 1.1s cubic-bezier(0.2, 0.72, 0.16, 1);
}

.photo-slide:hover img,
.photo-slide.is-active:hover img {
  transform: scale(1.035);
}

.photo-slide-overlay {
  position: absolute;
  inset: 25% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 9, 20, 0.16) 32%, rgba(15, 9, 20, 0.82) 100%);
  opacity: 0.86;
  transition: opacity 350ms ease;
}

.photo-slide.is-active .photo-slide-overlay,
.photo-slide:hover .photo-slide-overlay {
  opacity: 1;
}

.photo-slide-title {
  font-family: var(--font-cinzel);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.photo-slide-description {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

.photo-slide.is-active {
  z-index: 5;
  opacity: 1;
  filter: saturate(1);
  transform: translate(-50%, -50%) translateZ(70px) rotateY(0deg) scale(1);
  box-shadow: 0 34px 76px rgba(35, 16, 40, 0.32), 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.photo-slide.is-prev,
.photo-slide.is-next {
  z-index: 4;
  opacity: 0.76;
  filter: saturate(0.78) brightness(0.86);
}

.photo-slide.is-prev {
  transform: translate(-50%, -50%) translateX(-250px) translateZ(-105px) rotateY(30deg) scale(0.86);
}

.photo-slide.is-next {
  transform: translate(-50%, -50%) translateX(250px) translateZ(-105px) rotateY(-30deg) scale(0.86);
}

.photo-slide.is-far-prev,
.photo-slide.is-far-next {
  z-index: 2;
  opacity: 0.38;
  filter: saturate(0.62) brightness(0.72);
}

.photo-slide.is-far-prev {
  transform: translate(-50%, -50%) translateX(-425px) translateZ(-290px) rotateY(42deg) scale(0.7);
}

.photo-slide.is-far-next {
  transform: translate(-50%, -50%) translateX(425px) translateZ(-290px) rotateY(-42deg) scale(0.7);
}

.photo-slide.is-hidden {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(-480px) scale(0.55);
}

.photo-slideshow-footer {
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: -0.35rem auto 0;
}

.photo-slide-caption {
  gap: 1rem;
}

.photo-slide-count {
  min-width: 58px;
  color: var(--purple-royal);
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.photo-slide-progress {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.photo-slide-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(66, 18, 82, 0.25);
  cursor: pointer;
  transition: width 280ms ease, background-color 280ms ease;
}

.photo-slide-dot.is-active {
  width: 28px;
  background: var(--gold-dark);
}

.photo-slide-hint {
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .photo-slideshow {
    padding: 0 0.75rem;
  }

  .photo-slideshow-stage {
    height: 480px;
    perspective: 1100px;
  }

  .photo-slide {
    width: min(290px, 70vw);
  }

  .photo-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-190px) translateZ(-135px) rotateY(34deg) scale(0.78);
  }

  .photo-slide.is-next {
    transform: translate(-50%, -50%) translateX(190px) translateZ(-135px) rotateY(-34deg) scale(0.78);
  }

  .photo-slide.is-far-prev {
    transform: translate(-50%, -50%) translateX(-320px) translateZ(-320px) rotateY(44deg) scale(0.62);
  }

  .photo-slide.is-far-next {
    transform: translate(-50%, -50%) translateX(320px) translateZ(-320px) rotateY(-44deg) scale(0.62);
  }
}

@media (max-width: 520px) {
  .photo-slideshow-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .photo-slideshow-controls {
    align-self: flex-end;
    margin-top: 0;
  }

  .photo-slideshow-stage {
    height: 430px;
    margin-top: 0.4rem;
    perspective: 900px;
  }

  .photo-slide {
    width: min(260px, 72vw);
  }

  .photo-slide.is-prev {
    transform: translate(-50%, -50%) translateX(-145px) translateZ(-155px) rotateY(38deg) scale(0.7);
  }

  .photo-slide.is-next {
    transform: translate(-50%, -50%) translateX(145px) translateZ(-155px) rotateY(-38deg) scale(0.7);
  }

  .photo-slide.is-far-prev,
  .photo-slide.is-far-next {
    opacity: 0.18;
  }

  .photo-slide.is-far-prev {
    transform: translate(-50%, -50%) translateX(-245px) translateZ(-350px) rotateY(48deg) scale(0.55);
  }

  .photo-slide.is-far-next {
    transform: translate(-50%, -50%) translateX(245px) translateZ(-350px) rotateY(-48deg) scale(0.55);
  }

  .photo-slideshow-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    padding-left: 0.25rem;
  }

  .photo-slide-hint {
    font-size: 1rem;
  }

  .photo-slide-overlay {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-slide,
  .photo-slide img,
  .photo-control-button,
  .photo-slide-dot {
    transition-duration: 0.01ms;
  }
}

/* ── LOVE STORY RIGHT-TO-LEFT MARQUEE REEL ── */
.love-story-reel-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 1.5rem 0 2.5rem;
  overflow: hidden;
}

/* Story reel edge fades disabled (clean edge-to-edge view without whitish haze) */
.love-story-reel-wrap::before,
.love-story-reel-wrap::after {
  display: none !important;
  content: none !important;
}

.love-story-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollReelRightToLeft 42s linear infinite;
  will-change: transform;
  padding: 0.75rem 0;
}

.love-story-track:hover,
.love-story-track.is-paused {
  animation-play-state: paused;
}

@keyframes scrollReelRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── LOVE STORY CARD (PERFECT PORTRAIT FIT & PRESERVED RESOLUTION) ── */
.love-story-card {
  flex: 0 0 300px;
  width: 300px;
  height: 420px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--purple-deep);
  box-shadow: 0 12px 30px rgba(42, 9, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  user-select: none;
}

.love-story-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(66, 18, 82, 0.3), 0 0 25px rgba(212, 175, 55, 0.35);
  border-color: var(--gold-primary);
}

.love-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.love-story-card:hover img {
  transform: scale(1.06);
}

.love-story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 4, 28, 0.1) 0%, rgba(20, 4, 28, 0.25) 45%, rgba(20, 4, 28, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #FFFFFF;
  pointer-events: none;
}

.love-story-chapter-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(42, 9, 55, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.love-story-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.love-story-card-title {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.love-story-card-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.love-story-tap-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ── REEL CONTROLS BAR ── */
.love-story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.reel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(66, 18, 82, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  color: var(--purple-royal);
  letter-spacing: 0.08em;
}

.reel-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulseGold 2s infinite ease-in-out;
}

.reel-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  color: var(--purple-royal);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.reel-control-btn:hover {
  background: var(--purple-royal);
  color: #FFFFFF;
  border-color: var(--purple-royal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  color: var(--purple-royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  line-height: 1;
}

.reel-nav-btn:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

/* ── COMPLETE PHOTO GALLERY (PERFECT FIT & CRISP RESOLUTION) ── */
.gallery-grid-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.gallery-grid-title {
  font-family: var(--font-cinzel);
  font-size: 1.6rem;
  color: var(--purple-royal);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.gallery-grid-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 380px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(42, 9, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: var(--purple-deep);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(42, 9, 55, 0.22);
  border-color: var(--gold-primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 9, 55, 0.15) 0%, rgba(42, 9, 55, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.gallery-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(42, 9, 55, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.gallery-card-caption-title {
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.gallery-card-caption-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.view-icon {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--purple-royal);
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Photo Drop Box ("Pictures: to send") */
.photo-drop-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px dashed var(--gold-primary);
  max-width: 780px;
  margin: 0 auto;
}

.drop-box-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

@media (max-width: 600px) {
  .drop-box-header {
    flex-direction: column;
    text-align: center;
  }
}

.drop-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.drop-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple-royal);
  margin-bottom: 0.3rem;
}

.drop-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-muted);
}

.drop-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-label {
  cursor: pointer;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  background: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.upload-feedback {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  min-height: 1.5rem;
}

/* ==========================================================================
   RSVP SECTION & FORM
   ========================================================================== */

.section-rsvp {
  padding: 6.5rem 1.5rem;
  background: linear-gradient(135deg, #350846 0%, #1d0327 100%);
  color: #FFFFFF;
  position: relative;
}

.rsvp-card-elevated {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--gold-border);
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .rsvp-card-elevated {
    padding: 2rem 1.5rem;
  }
}

.rsvp-crest {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  background: var(--purple-mist);
}

.crest-monogram {
  font-family: var(--font-cinzel);
  font-weight: 700;
  color: var(--purple-royal);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.rsvp-title {
  font-family: var(--font-script);
  font-size: clamp(3.75rem, 12vw, 5rem);
  font-weight: 700;
  color: var(--purple-royal);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.rsvp-instructions {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #50465B;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* Form Controls */
.wedding-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--purple-royal);
  text-transform: uppercase;
}

.required {
  color: #C0392B;
}

.optional {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: none;
  font-weight: normal;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 9, 55, 0.2);
  background: var(--bg-ivory);
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple-royal);
  box-shadow: 0 0 0 3px rgba(66, 18, 82, 0.15);
  background: #FFFFFF;
}

.form-error {
  color: #C0392B;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  min-height: 1rem;
}

/* Attendance Radio Cards */
.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .attendance-options {
    grid-template-columns: 1fr;
  }
}

.attendance-card {
  position: relative;
  cursor: pointer;
}

.attendance-card input {
  position: absolute;
  opacity: 0;
}

.attendance-card-content {
  border: 1.5px solid rgba(42, 9, 55, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  background: var(--bg-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attendance-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.attendance-title {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple-royal);
  margin-bottom: 0.2rem;
}

.attendance-sub {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.attendance-card input:checked + .attendance-card-content {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.attending-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}

.attending-details-wrap.hidden {
  display: none;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 1.1rem;
  font-size: 0.9rem;
  justify-content: center;
  margin-top: 1rem;
}

.rsvp-status-alert {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  display: none;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
}

.rsvp-status-alert.success {
  display: block;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #fdf4ff 100%);
  color: #3b0764;
  border: 2px solid #a855f7;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.22);
  font-weight: 500;
  animation: rsvpPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rsvp-status-alert.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1.5px solid #f87171;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
  font-weight: 500;
}

@keyframes rsvpPopIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   CONTACT INFO SECTION
   ========================================================================== */

.section-contacts {
  padding: 6rem 1.5rem;
  background: #FDFBF8;
}

.contacts-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  max-width: 1160px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 800px) {
  .contacts-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    padding-bottom: 0.5rem;
  }
}

.contact-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.25rem 0.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--purple-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gold-border);
}

.contact-role {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-royal);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.contact-phone-display {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.contact-buttons-row {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.contact-btn {
  flex: 1;
  padding: 0.45rem 0.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.contact-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.call-btn {
  background: var(--purple-mist);
  color: var(--purple-royal);
  border: 1px solid var(--gold-border);
}

.call-btn:hover {
  background: var(--purple-royal);
  color: #FFFFFF;
}

.whatsapp-btn {
  background: #25D366;
  color: #FFFFFF;
}

.whatsapp-btn:hover {
  background: #1EBE5A;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.wedding-footer {
  padding: 6rem 1.5rem 6.5rem;
  background: var(--purple-deep);
  color: #FFFFFF;
  position: relative;
}

.footer-monogram {
  font-family: var(--font-cinzel);
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-scripture {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer-date, .footer-venue {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.footer-divider {
  width: 120px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.4;
  margin: 2.5rem auto;
}

.footer-admin-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-admin-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-copyright {
  margin-top: 3rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   DATABASE & RSVP ADMIN MODAL
   ========================================================================== */

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 3, 28, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-window {
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(42, 9, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-parchment);
}

.admin-badge {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  font-weight: 700;
}

.admin-modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--purple-royal);
  line-height: 1.1;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--purple-royal);
}

/* KPI Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #FAF7F2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--purple-royal);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.admin-stat-card.attending .stat-number { color: #1E6B2A; }
.admin-stat-card.declined .stat-number { color: #8E241E; }

.export-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-export-csv {
  background: var(--purple-royal);
  color: #FFFFFF;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(66, 18, 82, 0.25);
  transition: var(--transition-smooth);
}

.btn-export-csv:hover {
  background: var(--purple-regal);
  transform: translateY(-2px);
}

/* Admin Toolbar */
.admin-toolbar {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(42, 9, 55, 0.2);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(42, 9, 55, 0.2);
  font-size: 0.85rem;
  background: #FFFFFF;
}

.btn-refresh {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(42, 9, 55, 0.2);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--purple-royal);
  transition: transform 0.3s ease;
}

.btn-refresh:hover {
  transform: rotate(90deg);
}

/* Admin Table */
.admin-table-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0 2rem 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  padding: 1rem 0.75rem;
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--purple-royal);
  border-bottom: 2px solid rgba(42, 9, 55, 0.1);
  text-transform: uppercase;
}

.admin-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.badge-attending {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: #E8F5E9;
  color: #1B5E20;
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-declined {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: #FFEBEE;
  color: #B71C1C;
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.table-action-btn {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #C0392B;
  background: transparent;
  color: #C0392B;
  font-size: 0.72rem;
  cursor: pointer;
}

.table-action-btn:hover {
  background: #C0392B;
  color: #FFFFFF;
}

/* ==========================================================================
   LIGHTBOX OVERLAY
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 2, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--gold-primary);
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.lightbox-counter {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  background: rgba(42, 9, 55, 0.65);
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--gold-primary);
  transform: scale(1.15);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(42, 9, 55, 0.85);
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000001;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  color: var(--purple-royal);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--gold-glow);
}

.lightbox-nav-btn.prev {
  left: 2rem;
}

.lightbox-nav-btn.next {
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .lightbox-nav-btn.prev { left: 0.75rem; }
  .lightbox-nav-btn.next { right: 0.75rem; }
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

.animate-fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: animFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: animFadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.65s; }

@keyframes animFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes animFadeDown {
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   ENVELOPE MATCHING USER REFERENCE PHOTO (AUTHENTIC DECKLE & WAX SEAL)
   ========================================================================== */

/* Enhanced Envelope Container & Wrapper */
.envelope-container {
  max-width: 520px;
  height: 350px;
}

@media (max-width: 540px) {
  .envelope-container {
    max-width: 340px;
    height: 250px;
  }
}

.envelope-wrapper {
  background: #fbf8f2;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.55),
    0 10px 25px rgba(0, 0, 0, 0.35),
    inset 0 0 40px rgba(185, 155, 120, 0.2);
  border-radius: 6px;
  overflow: visible;
}

/* Cotton Handmade Paper Texture */
.envelope-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, rgba(240,230,215,0.15) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 6;
}

/* Top Triangular Flap */
.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 50% 55%);
  background: linear-gradient(175deg, #fefdfb 0%, #f7f1e7 55%, #ecdcc8 100%);
  transform-origin: top center;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Calligraphy on Envelope Flap: "A Celebration of Love" & "01.01.2027" */
.flap-calligraphy {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 86%;
  pointer-events: none;
  user-select: none;
  z-index: 7;
}

.flap-title {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.45rem, 4.2vw, 2.1rem);
  color: #3e2e42;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.flap-date {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.85rem, 2.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #635069;
  margin-top: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* WAX SEAL MEDALLION (Matching reference image with gold monogram & laurel wreath) */
.wax-seal-wrapper {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal-wrapper:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.wax-seal-wrapper:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.seal-image-container {
  position: relative;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 16px 26px rgba(45, 8, 55, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
  transition: filter 0.3s ease;
}

@media (max-width: 540px) {
  .seal-image-container {
    width: 96px;
    height: 96px;
  }
}

.seal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.seal-glow-halo {
  position: absolute;
  width: 160px;
  height: 160px;
  top: -18px;
  left: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.55) 0%, rgba(212, 175, 55, 0) 70%);
  animation: sealPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   VENUE SECTION & LIVE GOOGLE MAP STYLES
   ========================================================================== */

.venue-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 1.5rem;
}

.venue-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

@media (max-width: 860px) {
  .venue-card-split {
    grid-template-columns: 1fr;
  }
}

.venue-image-wrapper {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.venue-showcase-card:hover .venue-photo {
  transform: scale(1.03);
}

.venue-details-wrapper {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .venue-details-wrapper {
    padding: 2rem 1.5rem;
  }
}

.venue-live-map-wrapper {
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  background: #fdfbf7;
}

.map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: rgba(66, 18, 82, 0.04);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.map-title-label {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-royal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-location-tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.map-iframe-box iframe {
  width: 100%;
  display: block;
  border: none;
}

@media (max-width: 600px) {
  .container {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .section-countdown,
  .section-scripture,
  .section-dresscode,
  .section-venue,
  .section-gallery,
  .section-rsvp,
  .section-contacts {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .countdown-grid {
    gap: 0.35rem;
  }

  .countdown-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.8rem 0.35rem;
  }

  .countdown-number {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .countdown-unit {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .countdown-celebration-text {
    font-size: 0.68rem;
    line-height: 1.55;
    letter-spacing: 0.1em;
  }

  .dresscode-hero-banner {
    gap: 1.4rem;
    padding: 1.3rem 1rem;
    border-radius: 14px;
  }

  .dresscode-key-item {
    padding: 0 0.35rem;
  }

  .swatch-grid {
    gap: 0.65rem 0.45rem;
  }

  .swatch-card {
    min-width: 0;
    padding: 0.75rem 0.3rem;
    border-radius: 8px;
  }

  .swatch-name {
    font-size: 0.78rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .venue-showcase-card,
  .venue-card-split,
  .rsvp-card-elevated {
    border-radius: 14px;
  }

  .venue-image-wrapper {
    min-height: 270px;
  }

  .venue-details-wrapper,
  .venue-details-panel {
    padding: 1.25rem 1rem;
  }

  .venue-amenities {
    gap: 0.75rem;
  }

  .amenity-item {
    align-items: flex-start;
    line-height: 1.4;
  }

  .rsvp-card-elevated {
    padding: 1.4rem 1rem;
  }

  .rsvp-instructions {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }

  .section-contacts .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    overflow: visible;
  }

  .contact-card {
    padding: 1rem 0.6rem;
    border-radius: 10px;
  }

  .contact-avatar {
    width: 54px;
    height: 54px;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
  }

  .contact-name {
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-phone-display {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .contact-buttons-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .contact-btn {
    min-height: 40px;
    padding: 0.55rem 0.35rem;
  }

  .btn-royal-primary,
  .btn-royal-secondary,
  .btn-royal-outline,
  .btn-whatsapp,
  .footer-admin-btn {
    min-height: 44px;
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .hero-actions {
    width: 100%;
    gap: 0.6rem;
  }

  .hero-actions > .btn-royal-primary,
  .hero-actions > .btn-royal-secondary {
    flex: 1 1 120px;
    max-width: 190px;
    justify-content: center;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }

  .venue-action-buttons {
    gap: 0.55rem;
  }

  .venue-action-buttons > a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    line-height: 1.25;
  }

  .btn-submit-rsvp {
    min-height: 44px;
    margin-top: 0.65rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .attendance-card-content {
    padding: 0.9rem 0.75rem;
  }
}
