/* ============================================================
   BEAUTY & THE BEAST WEDDING INVITATION — MASTER STYLESHEET
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Great+Vibes&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* ---- Gold palette (slightly warmer/brighter) ---- */
  --gold:        #D4AF5C;
  --gold-light:  #F0D48A;
  --gold-dark:   #9A7820;
  /* ---- Lightened navy palette ---- */
  --navy:        #1A2E5A;
  --navy-mid:    #253F72;
  --navy-light:  #3A5898;
  --deep-black:  #0E1A30;
  /* ---- Warm wood tones for door ---- */
  --wood-dark:   #3B1F0A;
  --wood-mid:    #5C2E0E;
  --wood-light:  #8B4513;
  --wood-grain:  #7A3B10;
  --iron-dark:   #2A2A2A;
  --iron-mid:    #4A4A4A;
  /* ---- Rose ---- */
  --rose-red:    #9B1010;
  --rose-bright: #D42040;
  --cream:       #FDF6E3;
  /* ---- Glass colours ---- */
  --glass-blue:  rgba(40, 90, 170, 0.50);
  --glass-teal:  rgba(25, 130, 140, 0.45);
  --glass-amber: rgba(190, 130, 25, 0.45);
  --lead-color:  #1A1A1A;
  /* ---- Fonts ---- */
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-script:  'Great Vibes', cursive;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--deep-black);
  color: var(--gold);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* On touch/mobile devices hide the custom cursor entirely */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  #rose-cursor { display: none !important; }
}

/* ---------- Custom Red Rose Cursor ---------- */
#rose-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
  filter: drop-shadow(0 0 6px rgba(196, 30, 58, 0.8));
}

/* ---------- Scroll Arrow ---------- */
.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 2rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}
.scroll-arrow svg { fill: var(--gold); opacity: 0.85; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ---------- Section Base ---------- */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Door section needs visible overflow for panel swing animation */
#door-section {
  overflow: visible !important;
}

/* ============================================================
   SECTION 1 — STAINED GLASS ARCH DOOR
   ============================================================ */
#door-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a1628 0%, #060C1A 100%);
  flex-direction: column;
}

.door-wrapper {
  position: relative;
  width: min(480px, 92vw);
  height: min(720px, 138vw);
  cursor: none;
  overflow: visible;
}

/* Outer stone arch frame — warm stone/sandstone for chapel feel */
.arch-frame {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(160deg, #4a3520 0%, #3a2812 40%, #4e3a22 100%);
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 60px rgba(212, 175, 92, 0.3),
    0 0 120px rgba(212, 175, 92, 0.15);
  border: 4px solid var(--gold);
}

/* The two door panels */
.door-panels {
  position: absolute;
  inset: 20px;
  display: flex;
  gap: 0;
  border-radius: 46% 46% 0 0 / 28% 28% 0 0;
  /* overflow:hidden clips panels to the arch shape at rest;
     JS switches this to visible just before the swing starts */
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 2000px;
  z-index: 5;
}

.door-panel {
  flex: 1;
  background: linear-gradient(90deg, #4A2508 0%, #7A3B10 40%, #8B4513 60%, #7A3B10 80%, #4A2508 100%);
  position: relative;
  overflow: hidden;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 1.4s;
  transform-origin: left center;
  border: 2px solid var(--gold-dark);
  backface-visibility: hidden;
  will-change: transform;
}

.door-panel.right-panel {
  transform-origin: right center;
}

/* Stained glass SVG overlay on each panel */
.door-panel .glass-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.92;
}

/* Door handle — wrought iron ring knocker */
.door-handle {
  position: absolute;
  bottom: 36%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8)) drop-shadow(0 0 4px rgba(212,175,92,0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.door-handle:hover {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.9)) drop-shadow(0 0 10px rgba(212,175,92,0.5));
  transform: translateX(-50%) scale(1.08);
}

/* Open state — panels swing fully behind the arch frame */
.door-panel.open-left  { transform: perspective(2000px) rotateY(-175deg); }
.door-panel.open-right { transform: perspective(2000px) rotateY(175deg); }

/* Reveal behind door */
.door-reveal {
  position: absolute;
  inset: 20px;
  border-radius: 46% 46% 0 0 / 28% 28% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #253F72 0%, #1A2E5A 60%, #0E1A30 100%);
  opacity: 0;
  /* Begin fading in as soon as the door starts opening (0.4s delay),
     taking 2s to fully appear — so content gradually reveals with the swing */
  transition: opacity 2s ease 0.4s;
  padding: 1.5rem 1.2rem;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;
  pointer-events: none;
}
.door-reveal.visible {
  opacity: 1;
  pointer-events: all;
}

.couple-photo-placeholder {
  /* Larger photo — fills more of the arch reveal area */
  width: min(200px, 40vw);
  height: min(200px, 40vw);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.9rem;
  font-family: var(--font-heading);
  box-shadow: 0 0 40px rgba(212,175,92,0.5), 0 0 80px rgba(212,175,92,0.2);
  overflow: hidden;
  flex-shrink: 0;
}
.couple-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal-names {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--gold-light);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(201,168,76,0.6);
}

.reveal-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-top: 0.6rem;
  text-transform: uppercase;
}

.reveal-invite {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--rose-bright);
  margin-top: 0.4rem;
  text-shadow: 0 0 15px rgba(196,30,58,0.5);
}

/* Knock hint text */
.knock-hint {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.75;
  animation: pulse-hint 2.5s infinite;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ============================================================
   SECTION 2 — COUNTDOWN TIMER
   ============================================================ */
#countdown-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #1A2E5A 50%, #0E1A30 100%);
  position: relative;
}

.stained-glass-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 60px, rgba(201,168,76,0.3) 60px, rgba(201,168,76,0.3) 62px),
    repeating-linear-gradient(90deg,  transparent, transparent 60px, rgba(201,168,76,0.3) 60px, rgba(201,168,76,0.3) 62px),
    repeating-linear-gradient(45deg,  transparent, transparent 80px, rgba(30,80,160,0.2) 80px,  rgba(30,80,160,0.2) 82px),
    repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(30,80,160,0.2) 80px,  rgba(30,80,160,0.2) 82px);
  pointer-events: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Stained glass window frame for countdown */
.countdown-window {
  position: relative;
  width: min(700px, 95vw);
  padding: 3rem 2rem;
  background: linear-gradient(135deg,
    rgba(13,27,62,0.85) 0%,
    rgba(20,50,100,0.75) 50%,
    rgba(13,27,62,0.85) 100%);
  border: 3px solid var(--gold-dark);
  border-radius: 50% 50% 0 0 / 15% 15% 0 0;
  box-shadow:
    inset 0 0 60px rgba(201,168,76,0.08),
    0 0 40px rgba(201,168,76,0.2),
    0 0 80px rgba(13,27,62,0.5);
  text-align: center;
}

.countdown-window::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 48% 48% 0 0 / 14% 14% 0 0;
  pointer-events: none;
}

/* Stained glass rose decoration */
.glass-rose-top {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.countdown-grid {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 30px rgba(201,168,76,0.7), 0 0 60px rgba(201,168,76,0.3);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0.8;
}

.countdown-separator {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  align-self: flex-start;
  padding-top: 0.1em;
  opacity: 0.6;
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.6; } 50% { opacity: 0.15; } }

.wedding-date-display {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold-light);
  margin-top: 1rem;
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
}

.wedding-time-display {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.wedding-black-tie {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  text-shadow: 0 0 15px rgba(212,175,92,0.5);
}

/* ============================================================
   SECTION 3 — VENUE
   ============================================================ */
#venue-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #152240 100%);
}

.venue-window {
  width: min(800px, 95vw);
  background: linear-gradient(135deg,
    rgba(13,27,62,0.9) 0%,
    rgba(20,50,100,0.8) 50%,
    rgba(13,27,62,0.9) 100%);
  border: 3px solid var(--gold-dark);
  border-radius: 50% 50% 0 0 / 12% 12% 0 0;
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(201,168,76,0.2);
}

.venue-window::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 48% 48% 0 0 / 11% 11% 0 0;
  pointer-events: none;
}

.venue-name {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201,168,76,0.5);
  margin-bottom: 0.5rem;
}

.venue-address {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.map-container {
  width: 100%;
  height: 320px;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(201,168,76,0.2);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: sepia(20%) saturate(120%) hue-rotate(190deg) brightness(0.85);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.map-link-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.7rem 2rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.map-link-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   SECTION 4 — LOVE STORY
   ============================================================ */
#story-section {
  min-height: 100vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #1A2E5A 40%, #0E1A30 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-container {
  max-width: 860px;
  width: 100%;
}

.story-chapter {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.story-chapter:nth-child(even) { flex-direction: row-reverse; }

.story-rose-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 10px rgba(196,30,58,0.6));
}

.story-text-block {
  flex: 1;
}

.story-chapter-title {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 15px rgba(201,168,76,0.4);
}

.story-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.9;
  color: var(--cream);
  font-weight: 300;
}

.story-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

/* Rose petal decorations */
.rose-petal-left, .rose-petal-right {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}
.rose-petal-left  { left: -80px; top: 20%; }
.rose-petal-right { right: -80px; top: 60%; }

/* ============================================================
   SECTION 5 — PHOTO BOOK
   ============================================================ */
#photobook-section {
  min-height: 100vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #152240 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-wrapper {
  position: relative;
  width: min(860px, 96vw);
  perspective: 2000px;
}

.book {
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  z-index: 10;
  box-shadow: 0 0 15px rgba(201,168,76,0.4);
}

.book-pages {
  display: flex;
  width: 100%;
  min-height: 520px;
  position: relative;
}

.book-page {
  flex: 1;
  background: linear-gradient(135deg, #f5edd6 0%, #ede0c0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.book-page.left-page {
  border-radius: 8px 0 0 8px;
  box-shadow: inset -5px 0 15px rgba(0,0,0,0.2);
}

.book-page.right-page {
  border-radius: 0 8px 8px 0;
  box-shadow: inset 5px 0 15px rgba(0,0,0,0.2);
}

.book-page img {
  max-width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 3px solid var(--gold-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.photo-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border: 3px dashed var(--gold-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  gap: 0.5rem;
}

.photo-placeholder .photo-num {
  font-family: var(--font-display);
  font-size: 2rem;
  opacity: 0.4;
}

.book-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.book-nav-btn {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.book-nav-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy);
}
.book-nav-btn:disabled { opacity: 0.3; cursor: default; }

.book-page-indicator {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* Page turn animation */
.page-turn-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240,220,160,0.9), rgba(250,235,180,0.95));
  transform-origin: left center;
  animation: pageTurn 0.6s ease-in-out forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes pageTurn {
  from { transform: perspective(2000px) rotateY(0deg); opacity: 1; }
  to   { transform: perspective(2000px) rotateY(-180deg); opacity: 0; }
}

/* ============================================================
   SECTION 6 — DRESS CODE
   ============================================================ */
#dresscode-section {
  min-height: 80vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #1A2E5A 50%, #0E1A30 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dresscode-window {
  width: min(700px, 95vw);
  background: linear-gradient(135deg,
    rgba(13,27,62,0.9) 0%,
    rgba(20,50,100,0.8) 50%,
    rgba(13,27,62,0.9) 100%);
  border: 3px solid var(--gold-dark);
  border-radius: 50% 50% 0 0 / 15% 15% 0 0;
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(201,168,76,0.2);
}

.dresscode-window::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 48% 48% 0 0 / 14% 14% 0 0;
  pointer-events: none;
}

.dresscode-badge {
  display: inline-block;
  border: 2px solid var(--gold);
  padding: 0.4rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.dresscode-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.9;
  color: var(--cream);
  font-weight: 300;
  text-align: left;
  margin-top: 1rem;
}

.dresscode-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.dresscode-item {
  padding: 1rem;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(13,27,62,0.5);
}

.dresscode-item h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.dresscode-item p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   SECTION 7 — ACCOMMODATION
   ============================================================ */
#accommodation-section {
  min-height: 100vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #152240 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: min(900px, 95vw);
  margin-top: 2rem;
}

.accom-tile {
  position: relative;
  background: linear-gradient(135deg,
    rgba(13,27,62,0.9) 0%,
    rgba(20,50,100,0.8) 100%);
  border: 2px solid var(--gold-dark);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.accom-tile::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201,168,76,0.2);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.accom-tile:hover {
  box-shadow: 0 0 30px rgba(201,168,76,0.4);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.accom-tile:hover::before { border-color: rgba(201,168,76,0.5); }

/* Stained glass mini pattern on tile */
.accom-tile-glass {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem;
}

.accom-tile-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.accom-tile-dist {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.75;
}

/* Modal / Pop-up */
.accom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,12,26,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.accom-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.accom-modal {
  width: min(500px, 92vw);
  background: linear-gradient(135deg, #0d1b3e, #060c1a);
  border: 2px solid var(--gold);
  padding: 2.5rem 2rem;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 0 60px rgba(201,168,76,0.3);
}
.accom-modal-overlay.active .accom-modal { transform: scale(1); }

.accom-modal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,168,76,0.2);
  pointer-events: none;
}

.accom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.accom-modal-close:hover { background: var(--gold); color: var(--navy); }

.accom-modal-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.accom-modal-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.accom-modal-link {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.accom-modal-link:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   SECTION 8 — GIFTS
   ============================================================ */
#gifts-section {
  min-height: 80vh;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #0E1A30 0%, #1A2E5A 50%, #0E1A30 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gifts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: min(700px, 95vw);
  margin-top: 2rem;
}

.gift-panel {
  background: linear-gradient(135deg,
    rgba(13,27,62,0.9) 0%,
    rgba(20,50,100,0.8) 100%);
  border: 2px solid var(--gold-dark);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gift-panel::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,168,76,0.2);
  pointer-events: none;
}

.gift-panel:hover {
  box-shadow: 0 0 30px rgba(201,168,76,0.35);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.gift-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }

.gift-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gift-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.7;
  font-weight: 300;
}

.gift-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}
.gift-link:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   SECTION 9 — RSVP
   ============================================================ */
#rsvp-section {
  min-height: 100vh;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(180deg, #0E1A30 0%, #1A2E5A 40%, #0E1A30 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-hero-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold-light);
  text-align: center;
  text-shadow:
    0 0 30px rgba(201,168,76,0.6),
    0 0 60px rgba(201,168,76,0.3);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.rsvp-sub {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.rsvp-form-wrapper {
  width: min(680px, 95vw);
  background: linear-gradient(135deg,
    rgba(13,27,62,0.92) 0%,
    rgba(20,50,100,0.82) 50%,
    rgba(13,27,62,0.92) 100%);
  border: 2px solid var(--gold-dark);
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 0 60px rgba(201,168,76,0.15);
}

.rsvp-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,168,76,0.2);
  pointer-events: none;
}

.rsvp-guest-name {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(201,168,76,0.4);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(13,27,62,0.7);
  border: 1px solid var(--gold-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201,168,76,0.2);
}
.form-select option { background: var(--navy); color: var(--cream); }

.rsvp-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  cursor: pointer;
}

.rsvp-radio-label input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.allergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.allergy-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  cursor: pointer;
}

.allergy-checkbox-label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.rsvp-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.rsvp-submit-btn:hover {
  color: var(--navy);
}
.rsvp-submit-btn:hover::before { transform: scaleX(1); }

.rsvp-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.rsvp-success.visible { display: block; }

.rsvp-success-title {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.rsvp-success-msg {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep-black);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.footer-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.6;
  text-transform: uppercase;
}

/* ============================================================
   GLOBAL DECORATIVE ELEMENTS
   ============================================================ */

/* Gold divider with rose */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(600px, 90vw);
  margin: 0 auto 2rem;
}
.gold-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}
.gold-divider-rose { color: var(--rose-bright); font-size: 1.2rem; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .story-chapter, .story-chapter:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dresscode-items { grid-template-columns: 1fr; }
  .gifts-grid { grid-template-columns: 1fr; }
  .book-pages { flex-direction: column; }
  .book-page.left-page, .book-page.right-page { border-radius: 4px; }
  .book-spine { display: none; }
}

/* Accommodation: 3 cols → 2 cols at 700px → 1 col at 400px */
@media (max-width: 700px) {
  .accommodation-grid { grid-template-columns: repeat(2, 1fr); }
}

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