/* ==========================================================================
   JENNINA'S 18TH BIRTHDAY ROYAL INVITATION WEBSITE
   Theme: Royal Emerald Green, Gold & Cream — Enchanted Garden
   Subtitle: "A Decade and Eight"
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Official Color Palette */
  --emerald-green: #064E3B;
  --deep-forest-green: #02382E;
  --royal-gold: #D4AF37;
  --cream: #F8F1DF;
  --ivory: #FFFDF5;

  /* Extended Luxury Accents */
  --emerald-dark: #01241D;
  --emerald-midnight: #011410;
  --emerald-light: #0B6B52;
  --gold-light: #FBE6A3;
  --gold-bright: #FFF2C6;
  --gold-dark: #A5781C;
  --gold-shadow: rgba(212, 175, 55, 0.45);
  --parchment-border: #D8C69D;
  --text-ink: #16261B;
  --text-gold: #D4AF37;

  /* Metallic Gold Gradients */
  --gold-gradient: linear-gradient(135deg, #FFF2C6 0%, #D4AF37 35%, #F5D77F 50%, #A5781C 85%, #E9C664 100%);
  --gold-gradient-soft: linear-gradient(135deg, #F9E5A8 0%, #D4AF37 50%, #B8861E 100%);
  --emerald-velvet-gradient: radial-gradient(ellipse at 50% 30%, #086149 0%, #064E3B 40%, #02382E 75%, #011713 100%);
  --parchment-gradient: linear-gradient(180deg, #FFFDF7 0%, #F9F3E4 40%, #F4ECE0 100%);

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-heading-decorative: 'Cinzel Decorative', 'Cinzel', serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;
  --font-body: 'Alice', 'Cinzel', Georgia, serif;

  /* Shadows */
  --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.5), 0 0 50px rgba(212, 175, 55, 0.2);
  --shadow-curtain: 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.25);
  --shadow-seal: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.35);

  /* Transitions */
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--emerald-midnight);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.royal-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--emerald-velvet-gradient);
}

/* Accessibility screen-reader only class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   3. AMBIENT BACKDROP & PARTICLE CANVAS
   -------------------------------------------------------------------------- */
.royal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: url('../assets/images/emerald-velvet-bg.jpg') center center / cover no-repeat;
  opacity: 0.6;
  filter: contrast(1.15) saturate(1.2);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.royal-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(6, 78, 59, 0.1) 0%, rgba(2, 56, 46, 0.7) 70%, #011410 100%);
}

.sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. HANGING ANTIQUE GOLD LANTERNS
   -------------------------------------------------------------------------- */
.hanging-lantern {
  position: fixed;
  top: -20px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: top center;
  animation: lanternSwing 7s ease-in-out infinite alternate;
}

.lantern-left {
  left: clamp(12px, 4vw, 50px);
  animation-delay: -1.5s;
}

.lantern-right {
  right: clamp(12px, 4vw, 50px);
  animation-delay: -4.5s;
}

.lantern-chain {
  width: 2px;
  height: clamp(50px, 10vh, 100px);
  background: repeating-linear-gradient(
    to bottom,
    var(--gold-bright) 0px,
    var(--royal-gold) 4px,
    var(--gold-dark) 8px
  );
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.lantern-body-wrap {
  position: relative;
  width: clamp(45px, 6vw, 75px);
}

.lantern-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.lantern-glow {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 230, 150, 0.8) 0%, rgba(212, 175, 55, 0.3) 45%, transparent 75%);
  border-radius: 50%;
  animation: lanternFlicker 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes lanternSwing {
  0% { transform: rotate(-3deg); }
  50% { transform: rotate(2.5deg); }
  100% { transform: rotate(-3deg); }
}

@keyframes lanternFlicker {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  35% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.92); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* --------------------------------------------------------------------------
   5. ROYAL VELVET CURTAINS & VALANCE
   -------------------------------------------------------------------------- */
.curtain-theatre {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

/* Top Valance (Pelmet Swags) */
.curtain-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(45px, 8vh, 85px);
  display: flex;
  justify-content: space-around;
  background: linear-gradient(180deg, #011f19 0%, #064E3B 70%, #02382E 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
  border-bottom: 3px solid var(--royal-gold);
}

.valance-swag {
  flex: 1;
  height: 100%;
  border-radius: 0 0 50% 50%;
  background: radial-gradient(ellipse at 50% 10%, #0a664e 0%, #064E3B 60%, #022b23 100%);
  box-shadow: inset 0 -6px 15px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

.valance-swag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.valance-trim {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

/* Side Velvet Curtains */
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(140px, 22vw, 320px);
  background: linear-gradient(
    90deg,
    #011914 0%,
    #064E3B 25%,
    #022b23 50%,
    #064E3B 75%,
    #011914 100%
  );
  box-shadow: var(--shadow-curtain);
  transition: transform 1.8s var(--transition-smooth);
}

.curtain-left {
  left: 0;
  transform: translateX(0);
}

.curtain-right {
  right: 0;
  transform: translateX(0);
}

/* Curtain Pleats & Folds effect */
.curtain-folds {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0px,
    rgba(11, 107, 82, 0.25) 15px,
    rgba(255, 255, 255, 0.08) 25px,
    rgba(0, 0, 0, 0.5) 45px
  );
  opacity: 0.85;
}

/* Golden fringe trim along curtain inner opening */
.curtain-gold-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.curtain-left .curtain-gold-trim { right: 0; }
.curtain-right .curtain-gold-trim { left: 0; }

/* Curtain Tieback / Tassel */
.curtain-tassel {
  position: absolute;
  top: 55%;
  width: 28px;
  height: 50px;
  background: var(--gold-gradient-soft);
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.5);
}

.curtain-left .curtain-tassel { right: -12px; }
.curtain-right .curtain-tassel { left: -12px; }

/* When Opened: Curtains Part Elegantly */
body.invitation-open .curtain-left {
  transform: translateX(-70%);
}

body.invitation-open .curtain-right {
  transform: translateX(70%);
}

/* --------------------------------------------------------------------------
   6. MAIN APPLICATION WRAPPER & SCENE TRANSITIONS
   -------------------------------------------------------------------------- */
.invitation-app {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(15px, 3vh, 35px) clamp(10px, 3vw, 25px);
}

/* --------------------------------------------------------------------------
   7. PHASE 1: SCROLL OPENING SCENE (STATE 1)
   -------------------------------------------------------------------------- */
.scroll-opening-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Top Royal Crown & Title */
.opening-header {
  margin-bottom: clamp(18px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.royal-crown-badge {
  width: clamp(50px, 8vw, 75px);
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
  animation: crownHover 4s ease-in-out infinite alternate;
}

.opening-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes crownHover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.heading-ornament-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
}

.gold-flourish {
  color: var(--royal-gold);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

.invitation-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: clamp(0.12em, 0.4vw, 0.22em);
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
  animation: goldShimmer 6s linear infinite;
}

.opening-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--cream);
  letter-spacing: 0.1em;
  margin-top: 6px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   8. THE EMERALD GREEN SCROLL BUTTON (TASK 5 & 6)
   -------------------------------------------------------------------------- */
.scroll-interaction-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.emerald-scroll-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: clamp(280px, 80vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  touch-action: manipulation;
  transition: transform 0.3s var(--transition-bounce), filter 0.3s ease;
}

/* Keyboard accessibility focus indicator */
.emerald-scroll-btn:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 12px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
}

.emerald-scroll-btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.06);
}

.emerald-scroll-btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Scroll Gold Rollers (Top & Bottom) */
.scroll-rod {
  position: relative;
  width: 106%;
  height: clamp(20px, 3.2vw, 28px);
  display: flex;
  align-items: center;
  z-index: 5;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
  transition: transform 1.2s var(--transition-smooth);
}

.rod-top {
  margin-bottom: -6px;
}

.rod-bottom {
  margin-top: -6px;
}

.rod-bar {
  flex: 1;
  height: 100%;
  background: linear-gradient(
    180deg,
    #FFF2C6 0%,
    #F3D078 20%,
    #D4AF37 50%,
    #8E6310 80%,
    #583D07 100%
  );
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.finial {
  width: clamp(18px, 3vw, 26px);
  height: clamp(24px, 4vw, 34px);
  background: radial-gradient(circle at 40% 35%, #FFF5D0 0%, #D4AF37 55%, #7A530A 100%);
  border-radius: 50% 30% 30% 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.finial-right {
  border-radius: 30% 50% 50% 30%;
}

/* Scroll Velvet Body */
.scroll-body-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #022b23 0%, #064E3B 50%, #011f18 100%);
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.6);
  transition: height 1.2s var(--transition-smooth), opacity 0.8s ease;
}

.scroll-body-inner {
  position: relative;
  padding: clamp(30px, 5vh, 45px) clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ornate Gold Filigree Border on Scroll */
.scroll-gold-frame {
  position: absolute;
  inset: 10px;
  border: 2px solid var(--royal-gold);
  border-radius: 3px;
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.scroll-gold-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.6);
}

.filigree-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-bright);
  pointer-events: none;
}

.filigree-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.filigree-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.filigree-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.filigree-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* Embroidered Royal Ribbon across Scroll */
.scroll-ribbon-sash {
  position: relative;
  width: 100%;
  padding: 6px 0;
  margin-bottom: 18px;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 56, 46, 0.95) 20%, rgba(2, 56, 46, 0.95) 80%, transparent 100%);
}

.sash-gold-trim {
  width: 100%;
  height: 1.5px;
  background: var(--gold-gradient);
}

.sash-title {
  font-family: var(--font-serif);
  font-size: clamp(0.74rem, 1.6vw, 0.88rem);
  letter-spacing: 0.28em;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.8);
  text-align: center;
  padding: 4px 0;
}

/* 3D Royal Wax Seal & Monogram */
.wax-seal-wrapper {
  position: relative;
  margin: 8px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wax-seal-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: sealPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.85; }
}

.wax-seal {
  position: relative;
  width: clamp(72px, 12vw, 88px);
  height: clamp(72px, 12vw, 88px);
  background: radial-gradient(circle at 35% 30%, #a82424 0%, #7d1313 50%, #460808 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-seal);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(212, 175, 55, 0.4);
  transition: transform 0.4s var(--transition-bounce);
}

.wax-rim {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}

.wax-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.monogram-letter {
  font-family: var(--font-script);
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  line-height: 0.9;
  color: var(--gold-bright);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.8);
}

.monogram-stars {
  font-family: var(--font-serif);
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--royal-gold);
  margin-top: 2px;
}

/* Ribbon Tails with Hanging Tassels */
.ribbon-tails {
  position: absolute;
  bottom: -22px;
  width: 50px;
  height: 25px;
  pointer-events: none;
}

.ribbon-tail {
  position: absolute;
  top: 0;
  width: 14px;
  height: 24px;
  background: linear-gradient(180deg, #7d1313 0%, var(--gold-dark) 80%, var(--gold-bright) 100%);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}

.ribbon-tail.tail-left { left: 8px; transform: rotate(18deg); }
.ribbon-tail.tail-right { right: 8px; transform: rotate(-18deg); }

/* Celebrant Teaser on Scroll */
.scroll-teaser {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.teaser-intro {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFDF5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 1;
}

.teaser-celebrant {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.teaser-age {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFDF5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Tap Prompt Instruction (Task 4) */
.tap-prompt-container {
  margin-top: clamp(20px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: promptFloat 2.5s ease-in-out infinite alternate;
}

.tap-icon-pulse {
  width: 32px;
  height: 32px;
  color: var(--royal-gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
  animation: pulseIcon 1.8s ease-in-out infinite;
}

.tap-svg {
  width: 100%;
  height: 100%;
}

.tap-prompt-label {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

@keyframes promptFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   9. SCROLL OPENING TRANSITION ANIMATION (TASK 6)
   -------------------------------------------------------------------------- */
/* When Opening Animation Triggers */
body.scroll-opening .rod-top {
  transform: translateY(-90px);
}

body.scroll-opening .rod-bottom {
  transform: translateY(90px);
}

body.scroll-opening .scroll-body-outer {
  height: 0;
  opacity: 0;
  transform: scaleY(0.1);
}

body.scroll-opening .wax-seal {
  transform: scale(1.6) rotate(15deg);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

body.scroll-opening .scroll-opening-scene {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. PHASE 1: REVEALED INVITATION SCENE (STATE 2, TASK 7 & 8)
   -------------------------------------------------------------------------- */
.revealed-invitation-scene {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  opacity: 0;
  transform: scale(0.88) translateY(30px);
  transition: opacity 1.2s var(--transition-smooth), transform 1.2s var(--transition-smooth);
}

body.invitation-open .scroll-opening-scene {
  display: none;
}

body.invitation-open .revealed-invitation-scene {
  display: flex;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Replay / Roll Up Navigation Bar */
.invitation-nav-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  z-index: 20;
}

.btn-royal-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 56, 46, 0.85);
  border: 1.5px solid var(--royal-gold);
  border-radius: 25px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-royal-replay:hover {
  background: var(--deep-forest-green);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 18px rgba(212, 175, 55, 0.6);
}

.btn-royal-replay:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.replay-glyph {
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.btn-royal-replay:hover .replay-glyph {
  transform: rotate(-180deg);
}

/* --------------------------------------------------------------------------
   11. THE ROYAL GOLDEN FRAME INVITATION CARD (PDF PAGE 1 RECREATION)
   -------------------------------------------------------------------------- */
.royal-invitation-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: clamp(660px, 86vh, 830px);
  margin: 45px auto 35px auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Luxurious Golden Baroque Frame (Surrounds and Frames Parchment) */
.card-baroque-frame {
  position: absolute;
  inset: -10px -14px;
  z-index: 5;
  pointer-events: none;
}

.baroque-frame-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

/* Floral Swags at Top and Bottom (Outer Background Crest & Base) */
.card-floral-swag {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 92%, 460px);
  z-index: 2;
  pointer-events: none;
  animation: floralBreathe 6s ease-in-out infinite alternate;
}

.card-floral-swag.swag-top {
  top: -48px;
  max-height: 80px;
  overflow: hidden;
}

.card-floral-swag.swag-bottom {
  bottom: -48px;
  max-height: 80px;
  overflow: hidden;
}

.floral-swag-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
}

.flip-swag {
  transform: scaleY(-1);
}

@keyframes floralBreathe {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.025); }
}

/* 3D Fluttering Golden Emerald Butterfly (Margin Perch) */
.card-butterfly {
  position: absolute;
  top: 14%;
  right: clamp(-6px, -1.5vw, 10px);
  z-index: 35;
  pointer-events: none;
  animation: butterflyFloat 8s ease-in-out infinite alternate;
}

.butterfly-flight {
  display: flex;
  align-items: center;
  transform-style: preserve-3d;
  perspective: 400px;
}

.butterfly-wing {
  width: 24px;
  height: 28px;
  background: radial-gradient(ellipse at center, #FBE6A3 0%, #D4AF37 55%, #064E3B 100%);
  border-radius: 70% 30% 60% 40%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  opacity: 0.92;
}

.butterfly-wing.left-wing {
  transform-origin: right center;
  animation: wingFlapLeft 0.35s ease-in-out infinite alternate;
}

.butterfly-wing.right-wing {
  transform-origin: left center;
  transform: scaleX(-1);
  animation: wingFlapRight 0.35s ease-in-out infinite alternate;
}

.butterfly-body {
  width: 4px;
  height: 22px;
  background: #3a2503;
  border-radius: 2px;
  margin: 0 1px;
}

@keyframes wingFlapLeft {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-65deg); }
}

@keyframes wingFlapRight {
  0% { transform: scaleX(-1) rotateY(0deg); }
  100% { transform: scaleX(-1) rotateY(-65deg); }
}

@keyframes butterflyFloat {
  0% { transform: translate(0, 0) rotate(5deg); }
  35% { transform: translate(-12px, -18px) rotate(-8deg); }
  70% { transform: translate(-6px, 10px) rotate(12deg); }
  100% { transform: translate(0, 0) rotate(5deg); }
}

/* Inner Cream Parchment Body (Clear Window for All Text) */
.card-parchment-body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(650px, 84vh, 810px);
  background: var(--cream);
  background-image: url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  padding: clamp(50px, 7vh, 72px) clamp(28px, 6vw, 48px) clamp(46px, 6.5vh, 66px) clamp(28px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: inset 0 0 40px rgba(184, 150, 80, 0.3);
}

.parchment-grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 253, 245, 0.4) 0%, rgba(240, 228, 202, 0.6) 100%);
  pointer-events: none;
  border-radius: 8px;
}

/* Inner Delicate Hairline Filigree Border */
.card-inner-border {
  position: absolute;
  inset: clamp(14px, 2.5vw, 22px);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 5px;
  pointer-events: none;
}

.card-inner-border::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(6, 78, 59, 0.25);
  border-radius: 4px;
}

/* Content Stack Inside Card (Always in Foreground) */
.card-content-stack {
  position: relative;
  z-index: 30;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: clamp(4px, 1vh, 8px);
}

/* Crown at Top */
.card-crown-ornament {
  width: clamp(46px, 7vw, 62px);
  margin-top: 0;
  margin-bottom: 2px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

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

/* Task 8: "Celebrate a New Chapter With Us As" */
.invitation-opener {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  font-weight: 800;
  letter-spacing: clamp(0.12em, 0.3vw, 0.2em);
  text-transform: uppercase;
  color: #02382E;
  line-height: 1.4;
  margin: 0;
}

/* Task 8: "Jennina" */
.celebrant-title-group {
  margin: 2px 0;
  position: relative;
  width: 100%;
}

.celebrant-name {
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: #01261F;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  display: inline-block;
  padding: 0;
}

/* Task 8: "Turns 18" */
.milestone-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  margin: 0;
}

.ribbon-flourish {
  color: var(--royal-gold);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.milestone-word {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.6vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #02382E;
}

.milestone-number {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: #022B23;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.4);
  margin-left: -2px;
}

/* Task 8: "A Decade and Eight" */
.subtitle-divider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82%;
  margin: 2px 0 4px 0;
}

.gold-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--royal-gold) 50%, transparent 100%);
}

.subtitle-text {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #02382E;
}

/* Emerald Roses Garland Accent (From PDF Page 1) */
.emerald-roses-accent {
  max-width: clamp(150px, 30vw, 210px);
  margin: 4px auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
  animation: rosesGentleSway 7s ease-in-out infinite alternate;
}

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

@keyframes rosesGentleSway {
  0% { transform: rotate(-1.5deg) scale(1); }
  100% { transform: rotate(1.5deg) scale(1.02); }
}

/* Task 8: Date and Time Section ("February 5, 2027" and "3:00 PM") */
.event-datetime-badge {
  width: clamp(250px, 78%, 320px);
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.datetime-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  border-top: 1.5px solid var(--deep-forest-green);
  border-bottom: 1.5px solid var(--deep-forest-green);
  position: relative;
}

.datetime-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.weekday-name {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.6vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #02382E;
}

.col-date-hero {
  padding: 0 clamp(8px, 1.8vw, 16px);
  border-left: 1px solid rgba(6, 78, 59, 0.35);
  border-right: 1px solid rgba(6, 78, 59, 0.35);
}

.month-name {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #02382E;
}

.date-number {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  color: #022B23;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.35);
}

.time-label {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.6vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #02382E;
  white-space: nowrap;
}

.datetime-year-pill {
  margin-top: 3px;
}

.year-digits {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--deep-forest-green);
}

/* Venue Block (Page 1 PDF Faithful) */
.venue-location-wrap {
  margin-top: 4px;
  margin-bottom: 2px;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-preposition {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #022B23;
  font-weight: 800;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.7vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--deep-forest-green);
  margin-top: 2px;
}

.venue-hall {
  font-family: var(--font-serif);
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--emerald-green);
}

/* --------------------------------------------------------------------------
   12. LUXURY GOLD SHIMMER ANIMATION
   -------------------------------------------------------------------------- */
@keyframes goldShimmer {
  0% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)); }
  50% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.75)); }
  100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)); }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN (TASK 10)
   -------------------------------------------------------------------------- */
/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .curtain-panel {
    width: clamp(90px, 16vw, 180px);
  }
}

/* Mobile Screens (up to 767px) */
@media (max-width: 767px) {
  .invitation-app {
    padding: 12px 8px;
  }

  .curtain-panel {
    width: 60px;
  }

  .valance-swag {
    border-radius: 0 0 40% 40%;
  }

  .hanging-lantern {
    top: -15px;
  }

  .lantern-left { left: 8px; }
  .lantern-right { right: 8px; }

  .emerald-scroll-btn {
    width: 90vw;
    max-width: 360px;
  }

  .royal-invitation-card {
    min-height: auto;
    margin: 24px auto 18px auto;
  }

  .card-baroque-frame {
    inset: -6px -8px;
  }

  .card-floral-swag {
    width: 94%;
    max-height: 48px;
  }

  .card-floral-swag.swag-top {
    top: -42px;
  }

  .card-floral-swag.swag-bottom {
    bottom: -44px;
  }

  .card-parchment-body {
    min-height: auto;
    padding: 44px 18px 40px 18px;
  }

  .card-content-stack {
    gap: 4px;
  }

  .card-crown-ornament {
    width: 44px;
    margin-bottom: 0;
  }

  .celebrant-name {
    font-size: 3.3rem;
  }

  .emerald-roses-accent {
    max-width: 150px;
    margin: 2px auto;
  }

  .event-datetime-badge {
    width: 90%;
    max-width: 280px;
    margin: 3px 0;
  }
}

/* Very Small Mobile Screens (up to 380px) */
@media (max-width: 380px) {
  .invitation-heading {
    font-size: 1.55rem;
  }

  .celebrant-name {
    font-size: 3.1rem;
  }

  .milestone-number {
    font-size: 2.1rem;
  }

  .card-parchment-body {
    padding: 26px 12px 24px 12px;
  }

  .datetime-grid {
    padding: 6px 4px;
  }
}

/* Landscape Mobile Orientation */
@media (max-height: 550px) and (orientation: landscape) {
  body.royal-stage {
    min-height: 100vh;
    height: auto;
  }

  .invitation-app {
    min-height: auto;
    padding: 40px 10px;
  }

  .curtain-valance {
    height: 35px;
  }

  .hanging-lantern {
    display: none;
  }

  .royal-invitation-card {
    margin: 20px 0;
  }
}

/* --------------------------------------------------------------------------
   14. REDUCED MOTION ACCESSIBILITY (TASK 11)
   -------------------------------------------------------------------------- */
@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;
  }

  .hanging-lantern,
  .wax-seal-halo,
  .tap-icon-pulse,
  .tap-prompt-container,
  .butterfly-flight,
  .butterfly-wing,
  .card-floral-swag,
  .emerald-roses-accent,
  .royal-crown-badge {
    animation: none !important;
  }

  .sparkle-canvas {
    display: none !important;
  }

  /* Gentle, instantaneous state reveals */
  body.invitation-open .curtain-left {
    transform: translateX(-70%) !important;
  }

  body.invitation-open .curtain-right {
    transform: translateX(70%) !important;
  }

  body.invitation-open .revealed-invitation-scene {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==========================================================================
   PHASE 2: SECTIONS 1 TO 4 STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   15. SMOOTH SCROLLING & EXTENDED REVEALED SCENE FLOW
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body.invitation-open {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

body.invitation-open .invitation-app {
  min-height: 100vh;
  height: auto;
  display: block;
}

body.invitation-open .revealed-invitation-scene {
  max-width: clamp(340px, 94vw, 560px);
  margin: 0 auto;
  padding-bottom: 70px;
}

/* Scroll Exploration Cue */
.scroll-explore-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 22px 0 10px 0;
  cursor: pointer;
  animation: cueBounce 2.5s ease-in-out infinite;
}

.cue-label {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cue-arrow {
  color: var(--royal-gold);
  font-size: 1.4rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Royal Floral Divider */
.royal-floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 18px);
  width: 100%;
  max-width: 440px;
  margin: clamp(30px, 5vh, 48px) auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--royal-gold) 50%, transparent 100%);
  opacity: 0.85;
}

.divider-flourish {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--royal-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  letter-spacing: 0.2em;
}

/* Base Section Structure */
.royal-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Reusable Parchment Card Container */
.section-parchment-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #F9F5E9;
  background-image: url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
}

/* Background Frame (Authentic Royal Emerald Baroque Frame) */
.card-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.frame-bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Corner Roses Decoration */
.card-roses-decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.88;
}

.roses-corner-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.section-card-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.save-date-content {
  padding: clamp(90px, 13vh, 120px) clamp(28px, 6vw, 44px) clamp(85px, 12vh, 110px) clamp(28px, 6vw, 44px);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.save-date-title {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading-decorative);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-forest-green);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 12px rgba(212, 175, 55, 0.3);
  margin-bottom: 6px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.section-kicker {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
}

.section-header .section-title {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.header-flourish {
  color: var(--royal-gold);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   16. SECTION 1: SAVE THE DATE
   -------------------------------------------------------------------------- */
.section-crown-mini {
  width: clamp(38px, 6vw, 50px);
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.mini-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.section-floral-header {
  width: clamp(140px, 32vw, 190px);
  margin-bottom: 6px;
  position: relative;
  z-index: 10;
}

.section-roses-img {
  width: 100%;
  height: auto;
  display: block;
}

.section-lead-text {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-forest-green);
  margin-bottom: 12px;
}

.save-date-hero-block {
  width: 100%;
  max-width: 320px;
  padding: 10px 8px;
  margin: 6px 0 10px 0;
  border-top: 1.5px solid var(--deep-forest-green);
  border-bottom: 1.5px solid var(--deep-forest-green);
  position: relative;
}

.save-date-hero-block::before,
.save-date-hero-block::after {
  content: '❧';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal-gold);
  font-size: 1.1rem;
}

.save-date-hero-block::before { left: 2px; }
.save-date-hero-block::after { right: 2px; }

.save-date-full {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #01261F;
  display: block;
}

.save-date-subrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.save-date-day {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #022B23;
}

.save-date-dot {
  color: #022B23;
  font-size: 0.75rem;
  font-weight: 800;
}

.save-date-time {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #02382E;
}

.save-date-note {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.6vw, 0.88rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #02382E;
  margin-top: 6px;
}

.section-floral-footer {
  width: clamp(34px, 5.5vw, 46px);
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

.single-rose-accent {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
}

/* --------------------------------------------------------------------------
   17. SECTION 2: LIVE COUNTDOWN
   -------------------------------------------------------------------------- */
.countdown-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 14px);
  width: 100%;
}

.countdown-card {
  position: relative;
  background: linear-gradient(145deg, #022b23 0%, #064E3B 60%, #011914 100%);
  border: 1.5px solid var(--royal-gold);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), inset 0 0 12px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.4vh, 20px) clamp(6px, 1.2vw, 12px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.4);
}

.card-gold-trim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.countdown-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.countdown-digit-wrap {
  min-height: clamp(38px, 6vw, 54px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-digit {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 12px rgba(212, 175, 55, 0.4);
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.digit-tick {
  animation: digitTick 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes digitTick {
  0% {
    transform: translateY(-5px) scale(0.96);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.countdown-label {
  font-family: var(--font-serif);
  font-size: clamp(0.64rem, 1.4vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #FFFDF5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  margin-top: 6px;
}

.countdown-target-caption {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.5vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #FFFDF5;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-top: 14px;
  text-align: center;
}

/* Zero Reached Celebration Message */
.countdown-arrived-message {
  width: 100%;
  padding: 22px 18px;
  background: linear-gradient(135deg, #022b23 0%, #064E3B 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.arrived-crown {
  font-size: 2.2rem;
}

.arrived-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.arrived-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   18. SECTION 3: FEBRUARY 2027 CALENDAR
   -------------------------------------------------------------------------- */
.calendar-card {
  max-width: 480px;
  padding: clamp(34px, 4.5vh, 48px) clamp(20px, 4.5vw, 36px);
  background: #FFFDF5;
  background-image: url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  border: 3px double var(--royal-gold);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.35);
}

.calendar-card .card-frame-bg {
  display: none;
}

.calendar-card-content {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-header {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-year-label {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.8vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #022B23;
}

.calendar-month-title {
  margin: 2px 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  color: #01261F;
  font-weight: 800;
}

.calendar-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.6vw, 0.9rem);
  font-style: italic;
  letter-spacing: 0.14em;
  color: #02382E;
  font-weight: 700;
}

.calendar-grid-wrapper {
  width: 100%;
  max-width: 380px;
  margin: 8px auto;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 12px 10px;
  background: rgba(255, 253, 245, 0.95);
  box-shadow: inset 0 0 15px rgba(184, 150, 80, 0.15), 0 3px 10px rgba(0, 0, 0, 0.05);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(6, 78, 59, 0.3);
  margin-bottom: 8px;
}

.weekday-cell {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.6vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #02382E;
  text-align: center;
}

.weekday-cell.fri-highlight {
  color: #022B23;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--royal-gold);
  text-underline-offset: 3px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 1vw, 6px);
}

.day-cell {
  position: relative;
  height: clamp(34px, 5vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 1.9vw, 1.12rem);
  font-weight: 800;
  color: #02382E;
  border-radius: 6px;
}

.day-cell.day-empty {
  visibility: hidden;
}

/* FRIDAY FEB 5 HIGHLIGHT BADGE */
.day-cell.day-celebration-highlight {
  background: linear-gradient(135deg, #02382E 0%, #064E3B 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.85), 0 3px 8px rgba(0, 0, 0, 0.4);
  animation: highlightPulse 2.8s ease-in-out infinite;
  z-index: 5;
}

.highlight-gem-wrap {
  position: absolute;
  top: -8px;
  right: -6px;
  display: flex;
  gap: 1px;
  font-size: 0.68rem;
  pointer-events: none;
}

.gold-heart-icon {
  color: #D4AF37;
  text-shadow: 0 0 4px rgba(212, 175, 55, 0.9);
}

.emerald-gem-icon {
  font-size: 0.72rem;
}

.highlight-date-number {
  position: relative;
  z-index: 2;
  font-size: 1.1em;
}

.highlight-badge-tag {
  position: absolute;
  bottom: -6px;
  background: var(--royal-gold);
  color: #022b23;
  font-family: var(--font-serif);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes highlightPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.75), 0 3px 8px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(212, 175, 55, 1), 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

.calendar-footer-legend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0 auto;
  background: rgba(255, 253, 245, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  padding: 4px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.legend-gem-dot {
  font-size: 0.9rem;
}

.legend-text {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--deep-forest-green);
}

/* --------------------------------------------------------------------------
   19. SECTION 4: THE ROYAL VENUE
   -------------------------------------------------------------------------- */
.venue-card {
  max-width: 480px;
  min-height: 700px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  padding: 0;
}

.venue-card .frame-bg-img.venue-arch-img {
  object-fit: fill;
  object-position: center;
}

.venue-card-content {
  padding: clamp(145px, 19vh, 185px) clamp(28px, 6.5vw, 44px) clamp(65px, 8.5vh, 85px) clamp(28px, 6.5vw, 44px);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.venue-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.venue-title {
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  color: #01261F;
  font-weight: 800;
  margin-bottom: 2px;
}

.venue-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.74rem, 1.5vw, 0.85rem);
  font-style: italic;
  letter-spacing: 0.12em;
  color: #02382E;
  font-weight: 700;
}

.venue-details-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-name-group {
  margin: 6px 0 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-primary-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.7vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #01261F;
}

.venue-hall-name {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #022B23;
  margin-top: 2px;
}

.venue-divider-ornament {
  color: var(--royal-gold);
  font-size: 1rem;
  margin: 4px 0;
}

.venue-address-block {
  width: 100%;
  max-width: 320px;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.address-label {
  font-family: var(--font-serif);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #022B23;
  margin-bottom: 2px;
}

.venue-full-address {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(0.86rem, 1.8vw, 1rem);
  font-weight: 600;
  line-height: 1.55;
  color: #02382E;
  text-align: center;
}

.venue-landmark-block {
  width: 100%;
  max-width: 320px;
  margin: 8px 0 12px 0;
  padding: 6px 10px;
  background: rgba(6, 78, 59, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landmark-badge {
  font-family: var(--font-serif);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #01261F;
  margin-bottom: 2px;
}

.venue-landmark-text {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #02382E;
  text-align: center;
}

/* View Location Button */
.venue-action-row {
  margin: 6px 0 12px 0;
}

.btn-royal-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #02382E 0%, #064E3B 60%, #022b23 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 30px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-royal-location:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.7);
  filter: brightness(1.1);
}

.btn-royal-location:focus-visible {
  outline: 3px solid var(--royal-gold);
  outline-offset: 4px;
}

.location-pin-icon {
  font-size: 1.1rem;
}

.btn-external-arrow {
  font-size: 0.95rem;
  color: var(--royal-gold);
  transition: transform 0.3s ease;
}

.btn-royal-location:hover .btn-external-arrow {
  transform: translate(2px, -2px);
}

/* QR Code Display (From PDF Page 6) */
.venue-qr-wrapper {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-gold-frame {
  width: clamp(80px, 13vw, 100px);
  height: clamp(80px, 13vw, 100px);
  padding: 5px;
  background: #FFFDF5;
  border: 2px solid var(--royal-gold);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.3);
}

.venue-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-caption {
  font-family: var(--font-serif);
  font-size: clamp(0.62rem, 1.3vw, 0.74rem);
  letter-spacing: 0.1em;
  color: var(--deep-forest-green);
  background: rgba(255, 253, 245, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 3px 12px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   20. ROYAL PAGE FOOTER
   -------------------------------------------------------------------------- */
.royal-page-footer {
  width: 100%;
  margin-top: 40px;
  padding: 24px 16px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.footer-crest {
  width: 40px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.footer-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-monogram {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.8vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-style: italic;
  letter-spacing: 0.14em;
  color: #FFFDF5;
  opacity: 1;
}

/* ==========================================================================
   21. PHASE 3: ROYAL TRADITIONS PROGRAMS (18 ROSES, 18 CANDLES, 18 BLUE BILLS, 18 SHOTS)
   Primary Reference: Pages 2 and 3 of DEBUT INVITATION.pdf
   ========================================================================== */

/* Main Section Wrapper with Viewport Fade-In */
.traditions-section {
  width: 100%;
  max-width: 1060px;
  margin: 30px auto;
  padding: 10px 16px 25px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.traditions-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Header */
.traditions-main-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.traditions-crown-crest {
  width: 44px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.crown-icon-img {
  width: 100%;
  height: auto;
  display: block;
}

.traditions-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFDF5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(212, 175, 55, 0.5);
  margin-bottom: 6px;
}

.traditions-main-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-style: italic;
  letter-spacing: 0.14em;
  color: #FFFDF5;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.traditions-ornament {
  font-size: 1.15rem;
  color: var(--royal-gold);
  margin-top: 6px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

/* --------------------------------------------------------------------------
   Mobile Tab Switcher (<= 767px)
   -------------------------------------------------------------------------- */
.entourage-tabs-nav {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 20px auto;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 15;
}

.entourage-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 48px;
  background: rgba(6, 78, 59, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 30px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.entourage-tab-btn:hover {
  background: rgba(6, 78, 59, 1);
  border-color: var(--royal-gold);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.entourage-tab-btn:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
}

.entourage-tab-btn.active {
  background: linear-gradient(135deg, #02382E 0%, #064E3B 100%);
  border: 2px solid var(--royal-gold);
  color: #FFFDF5;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5), inset 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.tab-count-badge {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid var(--royal-gold);
  color: var(--royal-gold);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Dual Grid & Panels Layout
   -------------------------------------------------------------------------- */
.traditions-dual-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  width: 100%;
}

.tradition-panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(50% - 14px);
  max-width: 490px;
  background-color: var(--ivory);
  background-image: 
    radial-gradient(ellipse at 50% 15%, #FFFDF5 0%, #FAF3E0 65%, #F0E3C3 100%),
    url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  border-radius: 18px;
  border: 2px solid var(--royal-gold);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.22),
    inset 0 0 0 1px rgba(212, 175, 55, 0.55),
    inset 0 0 0 5px rgba(255, 253, 245, 0.85),
    inset 0 0 0 6px rgba(212, 175, 55, 0.45);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.traditions-section.is-visible .tradition-panel-card {
  animation: gentleGoldGlow 6s ease-in-out infinite alternate;
}

@keyframes gentleGoldGlow {
  0% {
    box-shadow: 
      0 15px 45px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(212, 175, 55, 0.2),
      inset 0 0 0 1px rgba(212, 175, 55, 0.55),
      inset 0 0 0 5px rgba(255, 253, 245, 0.85),
      inset 0 0 0 6px rgba(212, 175, 55, 0.45);
  }
  100% {
    box-shadow: 
      0 18px 50px rgba(0, 0, 0, 0.55),
      0 0 32px rgba(212, 175, 55, 0.45),
      inset 0 0 0 1px rgba(212, 175, 55, 0.7),
      inset 0 0 0 5px rgba(255, 253, 245, 0.9),
      inset 0 0 0 6px rgba(212, 175, 55, 0.55);
  }
}

/* Watermark Corner Emerald Roses Decor */
.tradition-panel-card .card-roses-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Antique Hanging Lantern Accent */
.panel-lantern-accent {
  position: absolute;
  top: 0;
  right: 18px;
  width: 32px;
  height: 95px;
  pointer-events: none;
  z-index: 12;
}

.panel-lantern-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.panel-lantern-glow {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 150, 0.85) 0%, rgba(212, 175, 55, 0.45) 50%, transparent 80%);
  filter: blur(4px);
  animation: panelLanternFlicker 3.5s ease-in-out infinite alternate;
}

@keyframes panelLanternFlicker {
  0% {
    opacity: 0.65;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.08);
  }
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(0.98);
  }
}

/* Panel Content Container */
.tradition-panel-content {
  position: relative;
  z-index: 10;
  padding: clamp(26px, 3.5vw, 34px) clamp(18px, 3vw, 28px) clamp(24px, 3vw, 30px) clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Panel Header */
.panel-header {
  text-align: center;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-crown-badge {
  width: 34px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.panel-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.panel-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #022B23;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.35);
  margin-bottom: 2px;
}

.panel-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  font-style: italic;
  letter-spacing: 0.08em;
  color: #022B23;
  font-weight: 600;
  margin-bottom: 8px;
}

.panel-filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--royal-gold);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pfd-flourish {
  opacity: 0.8;
}

.pfd-gem {
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Dynamic Entourage List (18 Names)
   -------------------------------------------------------------------------- */
.entourage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.entourage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 253, 245, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.entourage-item:last-child {
  border-bottom: none;
}

.entourage-item:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateX(3px);
}

.entourage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #02382E;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 4px;
  min-width: 28px;
  height: 24px;
  padding: 0 4px;
  flex-shrink: 0;
}

.entourage-name {
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: #01261F;
  letter-spacing: 0.04em;
  line-height: 1.35;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Enchanted Floating Butterflies
   -------------------------------------------------------------------------- */
.butterfly-flight-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.floating-butterfly {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
  will-change: transform;
}

.bf-1 {
  top: 8%;
  left: 6%;
  animation: butterflyFlightA 12s ease-in-out infinite;
}

.bf-2 {
  bottom: 10%;
  right: 6%;
  animation: butterflyFlightB 14s ease-in-out infinite 2s;
}

.bf-3 {
  top: 12%;
  right: 8%;
  animation: butterflyFlightA 13s ease-in-out infinite 1s;
}

.bf-4 {
  bottom: 8%;
  left: 8%;
  animation: butterflyFlightB 15s ease-in-out infinite 3s;
}

@keyframes butterflyFlightA {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.9); }
  25% { transform: translate(24px, -18px) rotate(8deg) scale(0.95); }
  50% { transform: translate(40px, 12px) rotate(-6deg) scale(0.9); }
  75% { transform: translate(16px, -22px) rotate(5deg) scale(1); }
  100% { transform: translate(0, 0) rotate(0deg) scale(0.9); }
}

@keyframes butterflyFlightB {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(-28px, -20px) rotate(-10deg) scale(0.92); }
  50% { transform: translate(-14px, 16px) rotate(6deg) scale(0.96); }
  75% { transform: translate(-36px, -10px) rotate(-5deg) scale(0.9); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* --------------------------------------------------------------------------
   Responsive Layout Rules: Desktop, Tablet & Mobile
   -------------------------------------------------------------------------- */
/* Desktop (>= 768px): Both panels side-by-side */
@media (min-width: 768px) {
  .entourage-tabs-nav {
    display: none !important;
  }
  .tradition-panel-card {
    display: flex !important;
    width: calc(50% - 14px);
    max-width: 490px;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Tablet Adaptive Widths (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .traditions-dual-grid {
    gap: 18px;
  }
  .tradition-panel-card {
    width: calc(50% - 9px);
  }
}

/* Mobile Devices (< 768px): Accessible Tabs Navigation */
@media (max-width: 767px) {
  .entourage-tabs-nav {
    display: flex;
  }
  .traditions-dual-grid {
    flex-direction: column;
    align-items: center;
  }
  .tradition-panel-card {
    display: none;
    width: 100%;
    max-width: 440px;
  }
  .tradition-panel-card.panel-active {
    display: flex;
    animation: panelFadeIn 0.35s ease-out forwards;
  }
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .traditions-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tradition-panel-card {
    animation: none !important;
    transition: none !important;
  }
  .panel-lantern-glow {
    animation: none !important;
  }
  .floating-butterfly {
    animation: none !important;
  }
  .tradition-panel-card.panel-active {
    animation: none !important;
  }
}

/* ==========================================================================
   22. PHASE 4: ROYAL ATTIRE, GIFT GUIDE & IMPORTANT REMINDERS
   Primary Reference: Pages 4, 5 and 6 of DEBUT INVITATION.pdf
   ========================================================================== */

/* --------------------------------------------------------------------------
   SECTION 1: ROYAL ATTIRE (PAGES 4 & 5)
   -------------------------------------------------------------------------- */
.attire-section {
  width: 100%;
  max-width: 1060px;
  margin: 30px auto;
  padding: 10px 16px 25px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.attire-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.attire-scroll-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Surrounding Emerald Green Velvet Curtains & Gold Tassels */
.attire-side-curtain {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: clamp(24px, 4vw, 48px);
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(to right, #02382E, #064E3B, #02382E);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

.curtain-drape-left,
.curtain-left {
  left: -12px;
  border-right: 2px solid var(--royal-gold);
}

.curtain-drape-right,
.curtain-right {
  right: -12px;
  border-left: 2px solid var(--royal-gold);
}

.side-curtain-folds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    rgba(0, 0, 0, 0.35) 4px,
    transparent 8px
  );
}

.side-curtain-trim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(135deg, #D4AF37, #FFF5DC, #AA820A);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

.side-curtain-tassel {
  position: absolute;
  top: 45%;
  width: 18px;
  height: 38px;
  background: radial-gradient(circle at 50% 30%, #FFF5DC, #D4AF37 60%, #8A6508);
  border-radius: 4px 4px 50% 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 8px rgba(212, 175, 55, 0.4);
}

.curtain-left .side-curtain-tassel {
  right: -6px;
}

.curtain-right .side-curtain-tassel {
  left: -6px;
}

/* Attire Parchment Card */
.attire-card {
  width: 100%;
  max-width: 980px;
  position: relative;
  background-color: var(--ivory);
  background-image: 
    radial-gradient(ellipse at 50% 15%, #FFFDF5 0%, #FAF3E0 65%, #F0E3C3 100%),
    url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  border-radius: 20px;
  border: 2px solid var(--royal-gold);
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(212, 175, 55, 0.25),
    inset 0 0 0 1px rgba(212, 175, 55, 0.6),
    inset 0 0 0 5px rgba(255, 253, 245, 0.85),
    inset 0 0 0 7px rgba(212, 175, 55, 0.45);
  overflow: hidden;
  padding: 0;
}

.attire-card-content {
  position: relative;
  z-index: 10;
  padding: clamp(28px, 4.5vw, 44px) clamp(20px, 4vw, 38px) clamp(30px, 4vw, 42px) clamp(20px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Attire Header */
.attire-header {
  text-align: center;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.attire-crown-badge {
  width: 44px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.attire-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.attire-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #01261F;
  margin-bottom: 8px;
}

.attire-description {
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  color: #022B23;
  font-weight: 600;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 10px auto;
  letter-spacing: 0.03em;
}

.attire-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--royal-gold);
  font-size: 1.1rem;
  margin-top: 4px;
}

.ado-flourish {
  opacity: 0.8;
}

.ado-gem {
  font-size: 1.2rem;
}

/* Subparts: Part A (Roses) & Part B (Guests) */
.attire-subpart {
  width: 100%;
  margin-top: 14px;
}

.subpart-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.subpart-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.subpart-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #01261F;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.subpart-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  font-style: italic;
  color: #022B23;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Color Swatches Styling */
.swatches-group {
  margin: 16px auto 22px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.swatches-label {
  font-family: var(--font-serif);
  font-size: clamp(0.74rem, 1.2vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #02382E;
  background: rgba(255, 253, 245, 0.95);
  border: 1.5px solid var(--royal-gold);
  border-radius: 14px;
  padding: 4px 16px;
}

.swatches-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  max-width: 720px;
}

.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-swatch-item:hover,
.color-swatch-item:focus-visible {
  transform: translateY(-3px) scale(1.05);
  background: rgba(212, 175, 55, 0.12);
  outline: none;
}

.swatch-color-circle {
  width: clamp(32px, 4vw, 38px);
  height: clamp(32px, 4vw, 38px);
  border-radius: 50%;
  border: 2px solid var(--royal-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.2);
  display: block;
  transition: all 0.3s ease;
}

.swatch-color-circle.swatch-light {
  border: 2px solid #C4A446;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.color-swatch-item:hover .swatch-color-circle {
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.swatch-color-name {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  font-weight: 800;
  color: #01261F;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Attire Outfit Gallery Grids */
.attire-gallery-grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  width: 100%;
  margin-top: 10px;
}

/* 5 Men's Outfits Grid */
#galleryRoses {
  grid-template-columns: repeat(5, 1fr);
}

/* 6 Women's Outfits Grid */
#galleryGuests {
  grid-template-columns: repeat(6, 1fr);
}

.attire-photo-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.attire-photo-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.photo-frame-inner {
  position: relative;
  background-color: #FAF3E0;
  border: 2px solid var(--royal-gold);
  outline: 2px double rgba(212, 175, 55, 0.7);
  outline-offset: -5px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.attire-photo-card:hover .photo-frame-inner {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.45);
  border-color: #F8E085;
}

.attire-outfit-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.attire-photo-card:hover .attire-outfit-img {
  transform: scale(1.03);
}

/* Internal Divider */
.attire-inter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 20px 0;
  color: var(--royal-gold);
}

.aid-line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.aid-flourish {
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   SECTION 2: GIFT GUIDE (PAGE 5)
   -------------------------------------------------------------------------- */
.gift-guide-section {
  width: 100%;
  max-width: 760px;
  margin: 30px auto;
  padding: 10px 16px 20px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.gift-guide-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gift-guide-card {
  width: 100%;
  position: relative;
  background-color: var(--ivory);
  background-image: 
    radial-gradient(ellipse at 50% 20%, #FFFDF5 0%, #FAF3E0 70%, #F0E3C3 100%),
    url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  border-radius: 18px;
  border: 2px solid var(--royal-gold);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(212, 175, 55, 0.25),
    inset 0 0 0 1px rgba(212, 175, 55, 0.55),
    inset 0 0 0 5px rgba(255, 253, 245, 0.85),
    inset 0 0 0 6px rgba(212, 175, 55, 0.45);
  overflow: hidden;
}

.gift-guide-content {
  position: relative;
  z-index: 10;
  padding: clamp(28px, 4.5vw, 40px) clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gift-crest-badge {
  position: relative;
  margin-bottom: 12px;
}

.gift-symbol {
  font-size: clamp(2.4rem, 4vw, 3rem);
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  animation: giftBounce 4s ease-in-out infinite alternate;
}

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

.gift-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 150, 0.6) 0%, rgba(212, 175, 55, 0.3) 50%, transparent 80%);
  filter: blur(8px);
  pointer-events: none;
}

.gift-header {
  margin-bottom: 14px;
}

.gift-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #01261F;
  margin-bottom: 4px;
}

.gift-divider-ornament {
  color: var(--royal-gold);
  font-size: 1rem;
}

.gift-message-box {
  max-width: 620px;
  margin: 0 auto;
}

.gift-guide-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-style: italic;
  color: #02382E;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin: 0 0 16px 0;
}

.gift-appreciation-flourish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #01261F;
  background: rgba(255, 253, 245, 0.98);
  border: 1.5px solid var(--royal-gold);
  border-radius: 16px;
  padding: 6px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flourish-star {
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   SECTION 3: IMPORTANT REMINDERS (PAGE 6)
   -------------------------------------------------------------------------- */
.reminders-section {
  width: 100%;
  max-width: 860px;
  margin: 30px auto;
  padding: 10px 16px 20px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reminders-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reminders-card {
  width: 100%;
  position: relative;
  background-color: var(--ivory);
  background-image: 
    radial-gradient(ellipse at 50% 15%, #FFFDF5 0%, #FAF3E0 65%, #F0E3C3 100%),
    url('../assets/decorations/parchment-arch.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  border-radius: 18px;
  border: 2px solid var(--royal-gold);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(212, 175, 55, 0.25),
    inset 0 0 0 1px rgba(212, 175, 55, 0.55),
    inset 0 0 0 5px rgba(255, 253, 245, 0.85),
    inset 0 0 0 6px rgba(212, 175, 55, 0.45);
  overflow: hidden;
}

.reminders-content {
  position: relative;
  z-index: 10;
  padding: clamp(28px, 4.5vw, 42px) clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reminders-crown-badge {
  width: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.reminders-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.reminders-header {
  margin-bottom: 12px;
}

.reminders-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #01261F;
  margin-bottom: 4px;
}

.reminders-divider-ornament {
  color: var(--royal-gold);
  font-size: 1rem;
}

.reminders-main-text {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: #02382E;
  font-weight: 700;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 24px auto;
  letter-spacing: 0.02em;
}

/* Reminders Triad Cards */
.reminders-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 18px);
  width: 100%;
}

.reminder-card-item {
  background: rgba(255, 253, 245, 0.95);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 18px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reminder-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--royal-gold);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.triad-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.triad-item-title {
  font-family: var(--font-serif-title);
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  font-weight: 800;
  color: #01261F;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.triad-item-desc {
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 1.2vw, 0.92rem);
  color: #02382E;
  font-weight: 600;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT BREAKPOINTS: ATTIRE, GIFT GUIDE, REMINDERS
   -------------------------------------------------------------------------- */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  #galleryRoses {
    grid-template-columns: repeat(5, 1fr);
  }
  #galleryGuests {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Screens (<= 767px) */
@media (max-width: 767px) {
  .attire-side-curtain {
    display: none;
  }
  #galleryRoses {
    grid-template-columns: repeat(2, 1fr);
  }
  #galleryGuests {
    grid-template-columns: repeat(2, 1fr);
  }
  .reminders-triad-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Accessibility: Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .attire-section,
  .gift-guide-section,
  .reminders-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .gift-symbol {
    animation: none !important;
  }
  .attire-photo-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   PHASE 5: SECTION 10 — RSVP (ZITE INTEGRATION)
   Primary Reference: Page 6 of DEBUT INVITATION.pdf
   ========================================================================== */
.rsvp-section {
  width: 100%;
  max-width: 600px;
  margin: 35px auto;
  padding: 10px 16px 25px 16px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rsvp-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-card {
  max-width: 480px;
  min-height: clamp(700px, 88vh, 760px);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(6, 78, 59, 0.35),
    inset 0 0 0 1px rgba(212, 175, 55, 0.4);
  position: relative;
  background-color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.rsvp-arch-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

.rsvp-card-content {
  position: relative;
  z-index: 10;
  padding: clamp(112px, 14.5vh, 138px) clamp(24px, 5.5vw, 38px) clamp(36px, 4.5vh, 52px) clamp(24px, 5.5vw, 38px);
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rsvp-crown-badge {
  width: 40px;
  margin: 0 auto 6px auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.rsvp-crown-img {
  width: 100%;
  height: auto;
  display: block;
}

.rsvp-header {
  margin-bottom: 8px;
}

.rsvp-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #01261F;
  margin-bottom: 4px;
}

.rsvp-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 1.5vw, 0.88rem);
  font-style: italic;
  letter-spacing: 0.1em;
  color: #02382E;
  font-weight: 700;
  opacity: 1;
  margin-bottom: 6px;
}

.rsvp-divider-ornament {
  color: var(--royal-gold);
  font-size: 1rem;
}

.rsvp-body-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Authentic Invitation Message */
.rsvp-main-message {
  font-family: var(--font-serif);
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  color: #02382E;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.015em;
  max-width: 330px;
  margin: 0 auto;
}

/* Deadline Badge */
.rsvp-deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 245, 0.98);
  border: 1.5px solid var(--royal-gold);
  border-radius: 20px;
  padding: 7px 18px;
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 1.3vw, 0.92rem);
  font-weight: 800;
  color: #01261F;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.deadline-icon {
  font-size: 0.95rem;
}

/* NO RSVP, NO SEAT Prominent Alert Box */
.rsvp-notice-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #02382E 0%, #064E3B 100%);
  border: 1.5px solid var(--royal-gold);
  border-radius: 8px;
  padding: 10px 18px;
  margin: 4px 0 6px 0;
  box-shadow: 
    0 4px 15px rgba(2, 56, 46, 0.35),
    0 0 16px rgba(212, 175, 55, 0.25);
}

.notice-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.8);
  pointer-events: none;
  animation: rsvpGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes rsvpGlowPulse {
  0% { box-shadow: 0 0 4px rgba(212, 175, 55, 0.2); }
  100% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.7); }
}

.notice-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.notice-text {
  font-family: var(--font-serif-title);
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.9);
  text-transform: uppercase;
}

/* Actions Group */
.rsvp-actions-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* Royal RSVP Button Styles */
.btn-royal-rsvp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  width: 100%;
  max-width: 290px;
  border-radius: 30px;
  font-family: var(--font-serif-title);
  font-size: clamp(0.84rem, 1.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Primary Zite RSVP Button */
.btn-rsvp-primary {
  background: linear-gradient(135deg, #064E3B 0%, #02382E 100%);
  color: #FFFFFF;
  border: 2px solid var(--royal-gold);
  box-shadow: 
    0 6px 20px rgba(6, 78, 59, 0.45),
    0 0 12px rgba(212, 175, 55, 0.3);
}

.btn-rsvp-primary .btn-rsvp-label {
  color: #FFFFFF;
  font-weight: 800;
}

.btn-rsvp-primary:hover:not(.btn-disabled) {
  transform: translateY(-2.5px) scale(1.02);
  color: #FFFFFF;
  border-color: #F3E5AB;
  box-shadow: 
    0 10px 25px rgba(6, 78, 59, 0.6),
    0 0 22px rgba(212, 175, 55, 0.65);
}

.btn-rsvp-primary:active:not(.btn-disabled) {
  transform: translateY(0) scale(0.99);
}

/* Disabled State (When RSVP_URL is empty) */
.btn-royal-rsvp.btn-disabled {
  background: linear-gradient(135deg, #4A5D54 0%, #2F3E37 100%) !important;
  color: #D1D8D4 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  pointer-events: auto;
}

.btn-royal-rsvp.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.btn-royal-rsvp.btn-disabled .btn-rsvp-arrow {
  opacity: 0.5;
}

/* Secondary Messenger Button */
.btn-rsvp-messenger {
  background: linear-gradient(135deg, #0084FF 0%, #0066CC 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 15px rgba(0, 132, 255, 0.3),
    0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-rsvp-messenger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 22px rgba(0, 132, 255, 0.5),
    0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-rsvp-icon {
  font-size: 1.1rem;
}

.btn-rsvp-arrow {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.btn-royal-rsvp:hover:not(.btn-disabled) .btn-rsvp-arrow {
  transform: translateX(3px);
}

/* Helper / Status Note */
.rsvp-status-note {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  color: #01261F;
  font-style: italic;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.4;
  min-height: 1.4em;
  background: rgba(255, 253, 245, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 4px 14px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.rsvp-status-note.status-pending {
  color: #7A5814;
}

.rsvp-status-note.status-active {
  color: #01261F;
  font-weight: 700;
}

/* Mobile Responsive (< 767px) */
@media (max-width: 767px) {
  .rsvp-card-content {
    padding: clamp(105px, 14vh, 130px) 18px 36px 18px;
    max-width: 100%;
  }
  .rsvp-main-message {
    font-size: 0.88rem;
  }
  .btn-royal-rsvp {
    max-width: 100%;
    min-height: 50px;
    font-size: 0.88rem;
  }
}

/* Accessibility: Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .rsvp-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .notice-border-glow {
    animation: none !important;
  }
  .btn-royal-rsvp {
    transition: none !important;
  }
  .btn-royal-rsvp:hover {
    transform: none !important;
  }
}
