/* ==========================================================================
   ROYAL DEBUT — PINTEREST MAXIMALIST EDITION
   Palette: Cherry/Burgundy (#65232B), Blossom Pink (#ECAAB2), Truffle (#432720), Ivory (#F8E5D7)
   ========================================================================== */
:root {
  --color-burgundy: #65232B;
  --color-blossom-pink: #ECAAB2;
  --color-truffle: #432720;
  --color-ivory: #F8E5D7;
  --color-gold: #D4AF37;

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cinzel', serif;
  --font-heading: 'Marcellus', serif;
  --font-body: 'Montserrat', sans-serif;

  --text-dark: #432720;
  --text-light: #FFFFFF;
}

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

body {
  background: var(--color-truffle);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(236, 170, 178, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(248, 229, 215, 0.25) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   SCROLL REVEAL MOTION TRANSITIONS
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 { transition-delay: 0.15s; }

/* ==========================================================================
   PAGE 1: IMAGE-BACKED ENVELOPE LANDING SCREEN
   ========================================================================== */
.envelope-container {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(circle at center, #4A1A20 0%, #2D050A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  cursor: pointer; /* Indicates clickable landing screen */
  transition: opacity 0.9s ease, transform 0.9s ease, visibility 0.9s;
}

.landing-stage-centered {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.envelope-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  animation: idleFloat 8s ease-in-out infinite alternate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-image-wrapper:hover {
  transform: scale(1.03) !important;
}

.envelope-bg-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: auto;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7)); 
}

.card-overlay-text {
  position: absolute;
  top: 19%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* Passes clicks through text straight to the clickable container */
}

.script-invitation {
  font-family: var(--font-script);
  font-size: 3.1rem;
  color: #65232B;
  line-height: 1;
  margin-bottom: 6px;
}

.heartfelt-message {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  line-height: 1.55;
  color: #432720;
  text-transform: uppercase;
  margin-bottom: 10px;
  max-width: 94%;
}

.script-signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: #65232B;
}

.envelope-container.opening {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

@keyframes idleFloat {
  0% {
    transform: translate(-10px, 0px);
  }
  100% {
    transform: translate(10px, -6px);
  }
}

/* ==========================================================================
   PAGE 2: HERO SLIDE
   ========================================================================== */
.details-container {
  width: 100%;
  margin: 0 auto;
}

.details-container.hidden { display: none; }

.hero-slide-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top-image-block {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  background: 
    radial-gradient(circle at 50% 30%, rgba(236, 170, 178, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(67, 39, 32, 0.5) 0%, rgba(42, 23, 19, 0.85) 100%),
    radial-gradient(circle at center, #65232B 0%, #432720 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold);
}

.hero-number-bg {
  font-family: var(--font-serif);
  font-size: 14rem;
  line-height: 0.8;
  color: rgba(236, 170, 178, 0.22);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  z-index: 1;
}

.hero-center-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-script-name {
  font-family: var(--font-script);
  font-size: 7rem;
  font-weight: normal;
  color: #FFFFFF;
  line-height: 0.95;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(236, 170, 178, 0.3);
}

.hero-bottom-info-block {
  background: linear-gradient(135deg, #65232B 0%, #432720 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 24px 20px 28px;
  border-bottom: 1px solid rgba(236, 170, 178, 0.2);
}

.hero-event-date-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.hero-date-str {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  letter-spacing: 3px;
  color: #FFFFFF;
}

.hero-time-str {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--color-blossom-pink);
}

.hero-rsvp-pill-btn {
  display: inline-block;
  background: var(--color-blossom-pink);
  color: var(--color-truffle);
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-rsvp-pill-btn:hover {
  transform: translateY(-2px);
  background: var(--color-ivory);
}

/* ==========================================================================
   PAGE 2 & 3: OTHER SLIDES
   ========================================================================== */
.section-band {
  width: 100%;
  padding: 95px 20px;
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 5% 5%, rgba(101, 35, 43, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 95% 95%, rgba(236, 170, 178, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(248, 229, 215, 0.4) 0%, transparent 75%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.012) 0px, rgba(0, 0, 0, 0.012) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.012) 0px, rgba(0, 0, 0, 0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.band-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 45px 35px;
  border: 1px solid var(--color-gold);
  box-shadow: 
    inset 0 0 0 4px rgba(212, 175, 55, 0.2),
    inset 0 0 0 5px var(--color-gold),
    0 15px 35px rgba(67, 39, 32, 0.08);
  border-radius: 4px;
}

.band-inner::before, .band-inner::after {
  content: "❧";
  position: absolute;
  font-size: 1.4rem;
  color: var(--color-gold);
  line-height: 1;
}

.band-inner::before { top: 6px; left: 10px; }
.band-inner::after { bottom: 6px; right: 10px; transform: rotate(180deg); }

.band-white { 
  background-color: var(--color-ivory); 
  background-image: linear-gradient(180deg, #F8E5D7 0%, #FFF5EF 50%, #F8E5D7 100%);
  color: var(--color-truffle); 
}

.band-brown { 
  background-color: var(--color-truffle); 
  background-image: linear-gradient(180deg, #432720 0%, #2A1713 100%);
  color: var(--text-light); 
}

.band-sage { 
  background-color: var(--color-blossom-pink); 
  background-image: linear-gradient(180deg, #F2BAC1 0%, #ECAAB2 100%);
  color: var(--color-truffle) !important; 
}

.band-sage .script-header { color: var(--color-burgundy) !important; }
.band-sage .bg-num { color: var(--color-burgundy) !important; opacity: 0.15 !important; }
.band-sage .list-item-row { border-bottom: 1px dashed rgba(101, 35, 43, 0.25) !important; color: var(--color-truffle) !important; }
.band-sage .item-num { color: var(--color-burgundy) !important; font-weight: 700; }
.band-sage .item-name { color: var(--color-truffle) !important; font-weight: 500; }

.band-rose-dust { 
  background-color: #E6A0A9; 
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 70%),
    linear-gradient(135deg, #ECAAB2 0%, #D88E97 100%);
  color: var(--color-truffle); 
}

.section-title-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 45px;
}

.bg-num {
  font-family: var(--font-serif);
  font-size: 8.5rem;
  line-height: 0.8;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.18;
  z-index: 1;
}

.dark-num { color: var(--color-burgundy); opacity: 0.22; }

.script-header {
  font-family: var(--font-script);
  font-size: 5rem;
  position: relative;
  z-index: 2;
  line-height: 1;
}

.dark-script { color: var(--color-burgundy); }
.light-text { color: #FFFFFF; }

.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 45px;
  max-width: 740px;
  margin: 0 auto;
}

.list-item-row {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(101, 35, 43, 0.18);
  color: var(--color-truffle);
}

.item-num {
  font-family: var(--font-serif);
  font-weight: 700;
  min-width: 26px;
  color: var(--color-burgundy);
}

.item-name {
  color: var(--color-truffle);
  font-weight: 500;
}

/* Venue Section Layout */
.venue-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.venue-text-side {
  text-align: left;
}

.venue-directions-note {
  font-size: 0.82rem;
  color: var(--color-burgundy);
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

.qr-code-wrapper {
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(101, 35, 43, 0.3);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(67, 39, 32, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.interactive-map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid rgba(101, 35, 43, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(67, 39, 32, 0.12);
}

.interactive-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-directions-btn {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-burgundy);
  text-decoration: underline;
  letter-spacing: 1px;
}

.map-directions-btn:hover {
  color: var(--color-truffle);
}

/* Dress Code Color Motif & Borderless Attire Layout */
.dress-instruction { 
  text-align: center; 
  margin-bottom: 8px; 
  font-size: 0.92rem; 
  color: var(--color-burgundy);
  font-weight: 600;
}

.color-motif-layout {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.motif-arch-card {
  position: relative;
  width: 75px;
  height: 100px;
  border-radius: 38px 38px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  box-shadow: 0 4px 12px rgba(67, 39, 32, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.motif-label {
  font-family: var(--font-serif);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Even larger and closer illustrations layout */
.borderless-attire-layout {
  display: flex;
  justify-content: center;
  gap: -50px; 
  flex-wrap: wrap;
  margin-top: 0px;
}

.borderless-attire-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.borderless-image-box {
  width: 420px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -25px;
}

.borderless-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.22));
}

.attire-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-burgundy);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  z-index: 2;
  margin-top: 0px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.timeline-block { 
  display: flex; 
  gap: 15px; 
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 3px solid var(--color-gold);
}

.timeline-icon { 
  font-size: 1.3rem; 
  color: var(--color-blossom-pink);
  line-height: 1;
}

.timeline-time-header { 
  font-family: var(--font-serif); 
  font-weight: 700; 
  font-size: 0.9rem; 
  color: var(--color-ivory); 
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 0.88rem;
  color: #E6D5C3;
  line-height: 1.4;
}

.rsvp-card-wrapper {
  background: #FFFFFF;
  background-image: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #FFF0F2 100%);
  padding: 45px;
  border-radius: 12px;
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid var(--color-blossom-pink);
  box-shadow: 0 20px 45px rgba(67, 39, 32, 0.15);
}

.rsvp-subtext { text-align: center; margin-bottom: 30px; font-size: 0.88rem; color: var(--color-burgundy); }
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-family: var(--font-serif); font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; color: var(--color-burgundy); }
.form-input { width: 100%; padding: 12px; border: 1px solid var(--color-blossom-pink); border-radius: 6px; background: #FFFDFD; }
.form-input:focus { outline: none; border-color: var(--color-burgundy); }
.radio-group { display: flex; gap: 20px; }
.submit-btn { 
  width: 100%; 
  background: var(--color-burgundy); 
  color: white; 
  padding: 16px; 
  border: none; 
  border-radius: 6px; 
  font-family: var(--font-serif); 
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer; 
  box-shadow: 0 6px 18px rgba(101, 35, 43, 0.25); 
  transition: background 0.2s ease;
}

.submit-btn:hover { background: var(--color-truffle); }

.royal-footer { text-align: center; padding: 35px; background: var(--color-truffle); color: var(--color-ivory); font-size: 0.8rem; letter-spacing: 1px; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .hero-slide-container { min-height: 100vh; }
  .hero-number-bg { font-size: 9.5rem; }
  .hero-script-name { font-size: 4.5rem; }
  .hero-date-str { font-size: 1.6rem; }
  .two-column-list { grid-template-columns: 1fr; }
  .venue-layout-grid { grid-template-columns: 1fr; text-align: center; }
  .venue-text-side { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .script-header { font-size: 3.8rem; }
  .bg-num { font-size: 6rem; }
  .borderless-image-box { width: 250px; height: 330px; }
  .attire-label { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .script-invitation { font-size: 2.3rem; }
  .heartfelt-message { font-size: 0.62rem; letter-spacing: 0.9px; }
  .script-signature { font-size: 1.2rem; }
}