/* ==========================================================================
   VOWLINE — DIYA & ADIL | MOONLIT KERALA ROMANCE DESIGN SYSTEM
   Art Direction: Intimate Moonlit Kerala Backwaters, Candlelight, Starlit Sky,
                  Deep Indigo, Midnight Navy, Soft Ivory, Champagne Gold
   ========================================================================== */

:root {
  /* Moonlit Color Tokens */
  --bg-deep-night: #090E17;
  --bg-midnight: #0D131F;
  --bg-indigo: #151D2D;
  --bg-indigo-card: rgba(21, 29, 45, 0.76);
  --bg-card-hover: rgba(28, 38, 58, 0.88);
  --bg-parchment-glass: rgba(17, 24, 39, 0.82);

  /* Accents & Metallic Foils */
  --champagne-gold: #D8B879;
  --champagne-light: #F2E3C6;
  --champagne-dark: #A6833D;
  --moon-silver: #D9DCE3;
  --moon-silver-muted: #9BA3B5;
  --soft-ivory: #F7F1E8;
  --muted-lavender: #B8A9C9;
  --rose-clay: #B97878;

  /* Typography Palette */
  --text-pure: #FFFFFF;
  --text-ivory: #F7F1E8;
  --text-silver: #D9DCE3;
  --text-muted: #9AA3B6;
  --text-dim: #6B768E;

  /* Borders & Glows */
  --border-gold-subtle: rgba(216, 184, 121, 0.22);
  --border-gold-bright: rgba(216, 184, 121, 0.45);
  --border-silver-subtle: rgba(217, 220, 227, 0.12);
  --glow-champagne: 0 0 35px rgba(216, 184, 121, 0.18);
  --glow-moon: 0 0 45px rgba(217, 220, 227, 0.12);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 30px rgba(216, 184, 121, 0.15);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Italiana', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Radii */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --radius-arch: 240px 240px 16px 16px;

  --ease-graceful: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep-night);
  color: var(--text-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep-night);
  color: var(--text-ivory);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

/* Ambient Canvas */
.ambient-sky-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--champagne-gold);
  color: var(--bg-deep-night);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 999999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 1.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-ivory);
  font-weight: 400;
  letter-spacing: 0.02em;
}

em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--champagne-gold);
}

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

/* Section Common Styling */
section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-tag-moonlit {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-gold);
  margin-bottom: 0.75rem;
}

.section-heading-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-title-large {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.2;
  color: var(--text-ivory);
  margin-bottom: 0.75rem;
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 1.25rem auto;
}

.ornament-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold-bright), transparent);
}

.ornament-gem {
  color: var(--champagne-gold);
  font-size: 0.9rem;
}

.section-desc-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   CEREMONIAL MOONLIT PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #151D2D 0%, #090E17 80%, #05080E 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease-graceful), visibility 1.2s var(--ease-graceful);
}

#preloader.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.moonlit-envelope-wrap {
  position: relative;
  max-width: 540px;
  width: 100%;
  z-index: 2;
  animation: floatGentle 6s ease-in-out infinite alternate;
}

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

.moon-halo-aura {
  position: absolute;
  inset: -30px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(216, 184, 121, 0.15) 0%, rgba(20, 29, 45, 0) 70%);
  filter: blur(25px);
  z-index: -1;
  animation: pulseAura 4s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.04); }
}

.moonlit-invitation-card {
  background: linear-gradient(165deg, rgba(28, 38, 58, 0.85) 0%, rgba(13, 19, 31, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(216, 184, 121, 0.12);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Card Corner Flourishes */
.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--champagne-gold);
  opacity: 0.6;
  pointer-events: none;
}
.corner-tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

.invitation-crest-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem auto;
}

.moonlit-monogram-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(216, 184, 121, 0.4));
}

.ceremonial-pre-title {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-gold);
  margin-bottom: 0.5rem;
}

.ceremonial-couple-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--soft-ivory);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.ceremonial-couple-title span {
  font-family: var(--font-script);
  color: var(--champagne-gold);
  font-size: 0.9em;
}

.ceremonial-venue-line {
  font-size: 0.95rem;
  color: var(--moon-silver-muted);
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.invitation-btn-wrap {
  margin-bottom: 1.75rem;
}

.btn-moonlit-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #E6CA92 0%, #D8B879 50%, #B89248 100%);
  color: #0D131F;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(216, 184, 121, 0.35), 0 0 20px rgba(216, 184, 121, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-graceful), box-shadow 0.3s var(--ease-graceful);
}

.btn-moonlit-enter:hover,
.btn-moonlit-enter:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(216, 184, 121, 0.5), 0 0 30px rgba(216, 184, 121, 0.35);
  outline: none;
}

.btn-moonlit-enter .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shineLoop 3.5s infinite;
}

@keyframes shineLoop {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.ceremonial-family-blessing {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border-gold-subtle);
  padding-top: 1.25rem;
  font-style: italic;
}

/* ============================================================
   FLOATING MOONLIT NAVIGATION
   ============================================================ */
.moonlit-nav-container {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.moonlit-nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(13, 19, 31, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(216, 184, 121, 0.08);
  transition: all 0.3s ease;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--champagne-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.brand-monogram em {
  font-family: var(--font-script);
  font-size: 1.1em;
  color: var(--champagne-light);
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--moon-silver);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--champagne-gold);
  text-shadow: 0 0 10px rgba(216, 184, 121, 0.4);
  outline: none;
}

.nav-link-rsvp {
  background: rgba(216, 184, 121, 0.15);
  border: 1px solid var(--border-gold-bright);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--champagne-gold) !important;
  font-weight: 500;
}
.nav-link-rsvp:hover {
  background: var(--champagne-gold);
  color: #0D131F !important;
}

.audio-pulse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  color: var(--moon-silver);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.audio-pulse-btn:hover {
  border-color: var(--champagne-gold);
  color: var(--champagne-gold);
}

.audio-wave-bar {
  display: inline-block;
  width: 2px;
  height: 10px;
  background-color: var(--champagne-gold);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-pulse-btn.playing .bar-1 { animation: soundBar 1.2s ease-in-out infinite alternate; }
.audio-pulse-btn.playing .bar-2 { animation: soundBar 0.9s ease-in-out 0.2s infinite alternate; }
.audio-pulse-btn.playing .bar-3 { animation: soundBar 1.4s ease-in-out 0.4s infinite alternate; }
.audio-pulse-btn.playing .bar-4 { animation: soundBar 1.1s ease-in-out 0.1s infinite alternate; }

@keyframes soundBar {
  0% { height: 4px; opacity: 0.5; }
  100% { height: 16px; opacity: 1; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: radial-gradient(circle at 75% 30%, rgba(32, 42, 68, 0.6) 0%, rgba(13, 19, 31, 0.95) 70%);
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.ceremonial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--champagne-gold);
  opacity: 0.6;
}

.eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--champagne-gold);
  text-transform: uppercase;
}

.hero-couple-names {
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  line-height: 0.95;
  color: var(--soft-ivory);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-couple-names .name-first,
.hero-couple-names .name-second {
  display: block;
}

.hero-couple-names .name-ampersand {
  font-family: var(--font-script);
  color: var(--champagne-gold);
  font-size: 0.8em;
  margin-left: 0.5rem;
  display: inline-block;
}

.hero-poetic-lead {
  font-size: 1.15rem;
  color: var(--moon-silver);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-details-card {
  display: flex;
  align-items: center;
  background: var(--bg-indigo-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--champagne-gold);
  text-transform: uppercase;
}

.detail-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft-ivory);
  font-family: var(--font-body);
}

.hero-detail-divider {
  width: 1px;
  height: 36px;
  background: var(--border-gold-subtle);
  margin: 0 1.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Primary & Secondary Buttons */
.btn-moonlit-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #E6CA92 0%, #D8B879 50%, #B89248 100%);
  color: #0D131F;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(216, 184, 121, 0.3);
  transition: all 0.3s var(--ease-graceful);
}
.btn-moonlit-primary:hover,
.btn-moonlit-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(216, 184, 121, 0.45);
  outline: none;
}

.btn-moonlit-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--soft-ivory);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold-subtle);
  transition: all 0.3s ease;
}
.btn-moonlit-secondary:hover,
.btn-moonlit-secondary:focus-visible {
  border-color: var(--champagne-gold);
  color: var(--champagne-gold);
  background: rgba(216, 184, 121, 0.08);
  outline: none;
}

/* Hero Arched Portrait */
.portrait-arch-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-arch);
  padding: 8px;
  background: linear-gradient(180deg, var(--champagne-gold) 0%, rgba(216, 184, 121, 0.2) 60%, transparent 100%);
  box-shadow: var(--shadow-card), 0 0 50px rgba(216, 184, 121, 0.15);
}

.arch-glow-border {
  position: absolute;
  inset: -15px;
  border-radius: var(--radius-arch);
  background: radial-gradient(circle at 50% 20%, rgba(216, 184, 121, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.arch-img-holder {
  width: 100%;
  border-radius: calc(240px - 8px) calc(240px - 8px) 12px 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-indigo);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-graceful);
}
.portrait-arch-frame:hover .portrait-img {
  transform: scale(1.03);
}

.arch-badge-floating {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.floating-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 19, 31, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.badge-icon {
  width: 18px;
  height: 18px;
  color: var(--champagne-gold);
}

.badge-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--champagne-gold);
  text-transform: uppercase;
}

.badge-main {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--soft-ivory);
}

/* ============================================================
   CELESTIAL COUNTDOWN
   ============================================================ */
.section-countdown {
  padding: 3rem 0 5rem 0;
}

.countdown-moon-panel {
  background: radial-gradient(circle at 50% 0%, rgba(32, 42, 68, 0.7) 0%, rgba(17, 24, 39, 0.95) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.panel-star-decor {
  position: absolute;
  color: var(--champagne-gold);
  font-size: 1.25rem;
  opacity: 0.5;
}
.star-top-left { top: 20px; left: 24px; }
.star-top-right { top: 20px; right: 24px; }

.countdown-header-center {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.countdown-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--soft-ivory);
  margin-bottom: 0.5rem;
}

.countdown-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

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

.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.cd-num-wrap {
  width: 100px;
  height: 90px;
  background: rgba(13, 19, 31, 0.85);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(216, 184, 121, 0.06);
  margin-bottom: 0.6rem;
}

.cd-digit {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--champagne-gold);
  line-height: 1;
  text-shadow: 0 0 15px rgba(216, 184, 121, 0.35);
}

.cd-unit-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--moon-silver-muted);
  text-transform: uppercase;
}

.cd-separator {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--champagne-gold);
  opacity: 0.4;
  align-self: flex-start;
  margin-top: 15px;
}

.countdown-auspicious-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--champagne-light);
  background: rgba(216, 184, 121, 0.08);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
}

.note-icon {
  width: 16px;
  height: 16px;
  color: var(--champagne-gold);
}

/* ============================================================
   OUR STORY SECTION
   ============================================================ */
.story-chronicle-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.story-letter-card {
  background: var(--bg-indigo-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.story-chapter {
  position: relative;
}

.chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.chapter-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--champagne-gold);
}

.chapter-year {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--moon-silver-muted);
}

.chapter-title {
  font-size: 1.5rem;
  color: var(--soft-ivory);
  margin-bottom: 0.75rem;
}

.chapter-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.story-divider {
  text-align: center;
  color: var(--champagne-gold);
  opacity: 0.35;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}

.story-photo-composition {
  position: relative;
}

.story-main-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-card);
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-indigo);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(13, 19, 31, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--champagne-light);
}

.story-accent-frame {
  position: absolute;
  bottom: -30px;
  right: -25px;
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--champagne-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.story-accent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   WEDDING CEREMONIES & ITINERARY
   ============================================================ */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-invitation-card {
  background: var(--bg-indigo-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.4s var(--ease-graceful), box-shadow 0.4s var(--ease-graceful), border-color 0.4s ease;
}

.event-invitation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-gold-bright);
}

.event-invitation-card.featured-event {
  border-color: var(--champagne-gold);
  background: linear-gradient(180deg, rgba(32, 42, 68, 0.85) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.featured-glow-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E6CA92, #D8B879);
  color: #0D131F;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(216, 184, 121, 0.4);
}

.event-card-header {
  margin-bottom: 2rem;
}

.event-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--champagne-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.event-name {
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--soft-ivory);
  margin-bottom: 0.6rem;
}

.event-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

.event-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.detail-icon {
  width: 18px;
  height: 18px;
  color: var(--champagne-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.row-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--moon-silver-muted);
  text-transform: uppercase;
}

.row-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-ivory);
  font-family: var(--font-body);
}

.event-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-event-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.btn-calendar-export {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold-subtle);
  color: var(--moon-silver);
}
.btn-calendar-export:hover {
  border-color: var(--champagne-gold);
  color: var(--champagne-gold);
  background: rgba(216, 184, 121, 0.1);
}

.btn-event-rsvp {
  background: transparent;
  border: 1px solid var(--border-gold-subtle);
  color: var(--champagne-gold);
}
.btn-event-rsvp.btn-gold,
.btn-event-rsvp:hover {
  background: var(--champagne-gold);
  color: #0D131F;
  border-color: var(--champagne-gold);
}

/* ============================================================
   THE VENUE PROFILE
   ============================================================ */
.venue-profile-panel {
  background: var(--bg-indigo-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.venue-media-wrapper {
  position: relative;
  min-height: 420px;
  background-color: var(--bg-indigo);
}

.venue-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(21, 29, 45, 0.95) 100%),
              linear-gradient(0deg, rgba(13, 19, 31, 0.8) 0%, transparent 40%);
}

.venue-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  color: var(--champagne-light);
}

.compass-icon {
  width: 16px;
  height: 16px;
  color: var(--champagne-gold);
}

.venue-info-content {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--soft-ivory);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.venue-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.venue-highlights-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.v-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-ivory);
}

.vh-icon {
  width: 18px;
  height: 18px;
  color: var(--champagne-gold);
}

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

/* ============================================================
   INTIMATE GALLERY & LIGHTBOX
   ============================================================ */
.gallery-curated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background-color: var(--bg-indigo);
}
.gallery-item-wrap:focus-visible {
  box-shadow: 0 0 0 3px var(--champagne-gold);
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-graceful);
}

.gallery-card:hover {
  border-color: var(--champagne-gold);
  transform: scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-graceful);
}
.gallery-card:hover .gallery-thumb {
  transform: scale(1.08);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 19, 31, 0.9) 0%, rgba(13, 19, 31, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 22px;
  height: 22px;
  color: var(--champagne-gold);
  margin-bottom: 0.5rem;
}

.gallery-photo-caption {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--soft-ivory);
}

/* Lightbox Modal */
.moonlit-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-gold-subtle);
  color: var(--soft-ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}
.lightbox-close-btn:hover {
  background: var(--champagne-gold);
  color: #0D131F;
}

.lightbox-content-box {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold-bright);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(216, 184, 121, 0.2);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--champagne-light);
}

/* ============================================================
   BLESSINGS OF OUR FAMILIES
   ============================================================ */
.family-blessing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.family-letter-card {
  background: var(--bg-indigo-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.family-card-crest {
  margin-bottom: 1.25rem;
}

.family-clan-title {
  font-size: 1.6rem;
  color: var(--champagne-gold);
  margin-bottom: 0.5rem;
}

.family-elders-names {
  font-size: 0.95rem;
  color: var(--soft-ivory);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.family-quote {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================================
   TRAVEL & GUEST LOGISTICS
   ============================================================ */
.travel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.travel-guide-card {
  background: var(--bg-indigo-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.travel-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-bright);
}

.travel-icon-bubble {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: rgba(216, 184, 121, 0.1);
  border: 1px solid var(--border-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-gold);
}

.travel-hub-title {
  font-size: 1.4rem;
  color: var(--soft-ivory);
  margin-bottom: 0.35rem;
}

.travel-distance {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--champagne-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.travel-hub-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ============================================================
   FORMAL WEDDING RSVP
   ============================================================ */
.rsvp-invitation-container {
  max-width: 780px;
  margin: 0 auto;
}

.rsvp-inner-card {
  background: radial-gradient(circle at 50% 0%, rgba(32, 42, 68, 0.9) 0%, rgba(13, 19, 31, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: var(--shadow-card), 0 0 50px rgba(216, 184, 121, 0.12);
  position: relative;
}

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

.rsvp-crest-icon {
  margin-bottom: 1rem;
}

.rsvp-main-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--soft-ivory);
  margin-bottom: 0.75rem;
}

.rsvp-request-lead {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
}
.rsvp-request-lead strong {
  color: var(--champagne-gold);
  font-weight: 600;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--champagne-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-label .req {
  color: var(--rose-clay);
}

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

.input-icon {
  position: absolute;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  color: var(--champagne-gold);
  opacity: 0.7;
  pointer-events: none;
}
.input-icon.icon-top {
  top: 1.1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(13, 19, 31, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem 0.9rem 3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--soft-ivory);
  transition: all 0.25s ease;
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D8B879' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}

.form-select option {
  background-color: #0D131F;
  color: #F7F1E8;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 3px rgba(216, 184, 121, 0.15);
  background: rgba(13, 19, 31, 0.9);
}

.form-submit-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-moonlit-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #E6CA92 0%, #D8B879 50%, #B89248 100%);
  color: #0D131F;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(216, 184, 121, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-moonlit-submit:hover,
.btn-moonlit-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(216, 184, 121, 0.5);
  outline: none;
}

.btn-moonlit-submit .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shineLoop 3.5s infinite;
}

.rsvp-privacy-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.lock-icon {
  width: 14px;
  height: 14px;
  color: var(--champagne-gold);
}

/* ============================================================
   EMOTIONAL CLOSING SECTION & FOOTER
   ============================================================ */
.section-closing {
  padding: 6rem 0 4rem 0;
  background: radial-gradient(circle at 50% 100%, rgba(32, 42, 68, 0.5) 0%, transparent 70%);
}

.closing-crest {
  color: var(--champagne-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.closing-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--soft-ivory);
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.4;
}

.closing-signature {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--champagne-gold);
}

.moonlit-footer {
  border-top: 1px solid var(--border-gold-subtle);
  background: #06090F;
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-couple {
  font-family: var(--font-serif);
  color: var(--champagne-gold);
  font-size: 1.1rem;
}

.footer-sep {
  color: var(--champagne-gold);
  opacity: 0.5;
}

.footer-link {
  color: var(--champagne-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-poetic-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-details-card {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .story-chronicle-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .events-cards-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .venue-profile-panel {
    grid-template-columns: 1fr;
  }
  .gallery-curated-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .travel-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
  .moonlit-nav-capsule {
    padding: 0.4rem 1rem;
    gap: 0.75rem;
  }
  .nav-links-menu {
    display: none;
  }
  .hero-details-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  .hero-detail-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .cd-separator {
    display: none;
  }
  .cd-num-wrap {
    width: 72px;
    height: 70px;
  }
  .cd-digit {
    font-size: 2.2rem;
  }
  .family-blessing-grid {
    grid-template-columns: 1fr;
  }
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .rsvp-inner-card {
    padding: 2.5rem 1.5rem;
  }
  .venue-info-content {
    padding: 2.5rem 1.5rem;
  }
  .story-accent-frame {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-couple-names {
    font-size: 3.2rem;
  }
  .portrait-arch-frame {
    max-width: 320px;
  }
  .gallery-curated-grid {
    grid-template-columns: 1fr;
  }
  .moonlit-invitation-card {
    padding: 2.5rem 1.25rem;
  }
  .cd-grid {
    gap: 0.75rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
