/* ==========================================================================
   CHÂTEAU (v1.2) — AA STUDIO DIGITAL WEDDING INVITATION
   Theme: French Baroque / Bridgerton Luxury Romance
   Layout:
     - CR crest pinned to top on Page 1
     - All page-down / next-page buttons pinned to bottom
     - Section titles vertically centered between navbar and card content
     - Expanded "Messages of Love" wishes box
     - Closing signature & logo pinned to bottom on Page 8
     - Full PC & Mobile responsive 100dvh snap engine
   ========================================================================== */

:root {
  --chateau-blue: #547391;
  --chateau-blue-deep: #2c4156;
  --chateau-blue-soft: #8da4b5;
  --chateau-blue-light: #eaf1f7;
  --chateau-blue-tint: #f2f7fb;
  --chateau-silver: #9aaec0;
  --chateau-silver-shimmer: #dce5ec;
  --paper-ivory: #faf7f2;
  --paper-card: #ffffff;
  --ink-dark: #1b2836;
  --ink-soft: #4a5c6e;
  --line-subtle: rgba(84, 115, 145, 0.22);
  --shadow-soft: 0 6px 20px rgba(44, 65, 86, 0.07);
  --shadow-card: 0 10px 30px rgba(44, 65, 86, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ===== RESET & NATIVE SNAP SCROLL ENGINE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-size: 16px;
  background-color: var(--paper-ivory);
  color: var(--ink-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--paper-ivory);
  color: var(--ink-dark);
  line-height: 1.5;
}

/* Every Section is Strictly 100dvh (One Full Screen on both PC & Mobile) */
.section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--paper-ivory);
  box-sizing: border-box;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 52px 20px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Subtle French Damask Background Overlay */
.section-damask-bg,
.hero-damask-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/damask-bg.jpg');
  background-repeat: repeat;
  background-size: 320px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.5), transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* ===== FLOATING AUDIO TOGGLE ===== */
.floating-music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--chateau-silver);
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(8px);
  color: var(--chateau-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 4px 18px rgba(44, 65, 86, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

.floating-music-btn .music-disc {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.floating-music-btn.playing .music-disc {
  animation: spinRecord 8s linear infinite;
}

.music-note-icon {
  width: 18px;
  height: 18px;
}

.music-wave-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--chateau-blue);
  opacity: 0;
  pointer-events: none;
}

.floating-music-btn.playing .music-wave-ring {
  animation: pulseWave 3.6s ease-out infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== STICKY LUXURY TOP NAVBAR ===== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-subtle);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(44, 65, 86, 0.06);
}

.top-navbar.nav-visible {
  transform: translateY(0);
}

.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--chateau-blue-deep);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--chateau-blue-deep);
  background-color: var(--chateau-blue-light);
}

/* ===== TITLE ZONE (BALANCED GAP ABOVE CONTENT CARD) ===== */
.section-header-zone {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.section-kicker {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--chateau-blue);
  margin-bottom: 2px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--chateau-blue-deep);
}

.filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 5px auto 0;
  width: 150px;
}

.filigree-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chateau-silver), transparent);
}

.filigree-flourish {
  font-size: 13px;
  color: var(--chateau-blue);
}

/* ===== PINNED NEXT-PAGE BUTTON (BOTTOM CENTER OF EVERY SLIDE) ===== */
.next-page-pill {
  position: absolute;
  bottom: 14px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--chateau-blue);
  text-decoration: none;
  padding: 6px 18px;
  border: 1px solid var(--chateau-silver);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(44, 65, 86, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  z-index: 50;
  white-space: nowrap;
  cursor: pointer;
}

.next-page-pill:hover {
  background: var(--chateau-blue-deep);
  color: #fff;
  border-color: var(--chateau-blue-deep);
  transform: translateX(-50%) translateY(-2px) !important;
}

/* ===== PAGE 1: COVER / HERO ===== */
.hero-content {
  padding: 24px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.hero-top-crest-zone {
  flex: 0 0 auto;
  margin-top: 6px;
}

.hero-crest-wrap {
  position: relative;
  width: 105px;
  height: 105px;
  margin: 0 auto;
}

.hero-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--chateau-silver);
  box-shadow: 0 4px 18px rgba(44, 65, 86, 0.2);
}

.crest-frame-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--chateau-silver);
  animation: rotateDashed 45s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-center-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--chateau-blue);
  font-weight: 600;
}

.hero-couple-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -4px 0;
}

.hero-script-name {
  font-family: 'Pinyon Script', cursive;
  font-size: 54px;
  color: var(--chateau-blue-deep);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(44, 65, 86, 0.1);
}

.hero-ampersand {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--chateau-silver);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-dark);
}

.hero-venue {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--ink-soft);
}

.hero-guest-card {
  width: 100%;
  max-width: 360px;
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.guest-badge-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--chateau-blue);
  margin-bottom: 3px;
}

.guest-name-text {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue-deep);
  margin-bottom: 3px;
}

.guest-subtext {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.35;
}

.hero-scroll-btn {
  position: absolute;
  bottom: 14px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--chateau-blue-deep);
  animation: bounceHint 3.6s infinite ease-in-out;
  z-index: 50;
  cursor: pointer;
}

.scroll-btn-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.scroll-btn-chevron {
  font-size: 18px;
  line-height: 1;
}

@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ===== PAGE 2: OUR STORY ===== */
.story-parchment-card {
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 18px 22px 14px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.story-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--chateau-blue);
  line-height: 1.4;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 8px;
}

.story-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: justify;
}

.story-botanical-accent {
  width: 100%;
  height: 56px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.story-floral-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}

/* ===== PAGES 3 & 4: THE BRIDE & THE GROOM ===== */
.profile-card {
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: left;
  margin-bottom: 10px;
}

.profile-frame-wrap {
  position: relative;
  width: 145px;
  height: 195px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(44, 65, 86, 0.18);
  background: #f0ebe3;
  flex-shrink: 0;
}

.profile-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-canvas-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 242, 0.4);
  pointer-events: none;
}

.canvas-monogram {
  font-family: 'Pinyon Script', cursive;
  font-size: 60px;
  color: var(--chateau-blue-deep);
  line-height: 1;
}

.canvas-sub {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--chateau-blue);
  font-weight: 600;
  margin-top: -6px;
}

.frame-shimmer-effect {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  animation: frameGleam 10s infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes frameGleam {
  0%, 70% { left: -150%; }
  100% { left: 200%; }
}

.profile-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-fullname {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--chateau-blue-deep);
}

.profile-parents {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.profile-parents strong {
  color: var(--ink-dark);
  font-weight: 600;
}

.profile-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--chateau-blue);
  line-height: 1.4;
  padding: 4px 10px;
  border-left: 2px solid var(--chateau-silver);
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--chateau-blue);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--chateau-blue-light);
  transition: all 0.2s;
  width: fit-content;
  margin-top: 2px;
}

.profile-social-link:hover {
  background: var(--chateau-blue-deep);
  color: #fff;
}

.social-icon {
  width: 12px;
  height: 12px;
}

/* ===== PAGE 5: THE DETAILS ===== */
.details-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 820px;
}

.details-card {
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.details-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 3px;
}

.card-icon {
  font-size: 14px;
}

.card-heading {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--chateau-blue-deep);
}

.time-venue-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--chateau-blue);
  letter-spacing: 1px;
}

.event-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.card-inner-divider {
  height: 1px;
  background: var(--line-subtle);
  margin: 8px auto;
  width: 80%;
}

.venue-name-bold {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-dark);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.venue-address-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.btn-chateau-action {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue-deep);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--chateau-blue);
  border-radius: 16px;
  background: var(--chateau-blue-light);
  transition: all 0.2s;
}

.btn-chateau-action:hover {
  background: var(--chateau-blue-deep);
  color: #fff;
}

.dresscode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dresscode-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue);
}

.palette-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sw-blue { background-color: #547391; }
.sw-ivory { background-color: #faf7f2; }
.sw-silver { background-color: #9aaec0; }
.sw-navy { background-color: #1b2836; }

.dresscode-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
}

/* Countdown Bar */
.countdown-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--paper-card);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--chateau-silver-shimmer);
  box-shadow: var(--shadow-soft);
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cd-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--chateau-blue-deep);
  line-height: 1;
}

.cd-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cd-sep {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--chateau-silver);
  margin-top: -6px;
}

.btn-save-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--chateau-silver);
  padding: 6px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-date:hover {
  background: var(--chateau-blue-deep);
  color: #fff;
}

/* ===== PAGE 6: PALACE SALON GALLERY ===== */
.gallery-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 2px;
}

.gallery-salon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 960px;
  margin-bottom: 10px;
}

.salon-frame-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #eae5dc;
  box-shadow: 0 4px 14px rgba(44, 65, 86, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.salon-frame-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(44, 65, 86, 0.24);
}

.salon-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.salon-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 242, 0.35);
  padding: 4px;
}

.roman-numeral {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--chateau-blue-deep);
  line-height: 1;
}

.chapter-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-style: italic;
  color: var(--chateau-blue-deep);
  text-align: center;
  line-height: 1.15;
  margin-top: 3px;
}

.frame-click-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44, 65, 86, 0.75);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 7.5px;
  letter-spacing: 1px;
  text-align: center;
  padding: 3px 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.salon-frame-card:hover .frame-click-hint {
  opacity: 1;
}

/* Staggered Gallery Reveal Animation */
.salon-frame-card {
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.gallery-section.in-view .salon-frame-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-section.in-view .gal-stagger-1 { transition-delay: 0.15s; }
.gallery-section.in-view .gal-stagger-2 { transition-delay: 0.38s; }
.gallery-section.in-view .gal-stagger-3 { transition-delay: 0.61s; }
.gallery-section.in-view .gal-stagger-4 { transition-delay: 0.84s; }
.gallery-section.in-view .gal-stagger-5 { transition-delay: 1.07s; }
.gallery-section.in-view .gal-stagger-6 { transition-delay: 1.30s; }

/* Metallic Silver Sheen across Gallery Frames */
.salon-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.7) 50%, rgba(220, 229, 236, 0.8) 55%, transparent 80%);
  pointer-events: none;
  z-index: 3;
}

.gallery-section.in-view .salon-shimmer {
  animation: silverGleam 4.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-section.in-view .gal-stagger-1 .salon-shimmer { animation-delay: 0.45s; }
.gallery-section.in-view .gal-stagger-2 .salon-shimmer { animation-delay: 0.70s; }
.gallery-section.in-view .gal-stagger-3 .salon-shimmer { animation-delay: 0.95s; }
.gallery-section.in-view .gal-stagger-4 .salon-shimmer { animation-delay: 1.20s; }
.gallery-section.in-view .gal-stagger-5 .salon-shimmer { animation-delay: 1.45s; }
.gallery-section.in-view .gal-stagger-6 .salon-shimmer { animation-delay: 1.70s; }

@keyframes silverGleam {
  0% { left: -150%; }
  100% { left: 200%; }
}

/* ===== PAGE 7: WEDDING GIFT / AMPLOP ===== */
.gift-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 520px;
  margin-top: 2px;
}

.gift-envelope-card {
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  margin-bottom: 10px;
}

.envelope-top-accent {
  display: flex;
  justify-content: center;
  margin-top: -6px;
  margin-bottom: 2px;
}

.envelope-seal-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(44, 65, 86, 0.2);
}

.bank-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bank-account-box {
  background: var(--chateau-blue-tint);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: left;
}

.bank-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.bank-brand {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--chateau-blue-deep);
}

.bank-holder {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: var(--ink-soft);
}

.bank-num-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-number {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-dark);
}

.btn-copy-rek {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: var(--chateau-blue);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-copy-rek:hover {
  background: var(--chateau-blue-deep);
}

.btn-copy-rek.copied {
  background: #27ae60 !important;
}

.btn-qris-chateau {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: var(--paper-card);
  color: var(--chateau-blue-deep);
  border: 1px solid var(--chateau-blue);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-qris-chateau:hover {
  background: var(--chateau-blue-deep);
  color: #fff;
}

.qris-btn-icon {
  width: 15px;
  height: 15px;
}

/* ===== PAGE 8: RSVP & GUEST BOOK (UNIFIED) ===== */
.rsvp-section .section-inner {
  padding-bottom: 74px; /* Room for pinned footer at bottom */
}

.rsvp-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 22px;
  width: 100%;
  max-width: 920px;
  align-items: stretch;
}

.rsvp-form-card,
.wishes-board-card {
  background: var(--paper-card);
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.chateau-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: space-between;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 7px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  border: 1px solid var(--chateau-silver);
  border-radius: 4px;
  background: var(--chateau-blue-tint);
  color: var(--ink-dark);
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--chateau-blue-deep);
  background: #fff;
}

.btn-submit-rsvp {
  margin-top: 4px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--chateau-blue-deep);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.btn-submit-rsvp:hover {
  background: var(--chateau-blue);
}

.form-toast-success {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  color: #1e7e34;
  background: #e8f5e9;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  margin-top: 4px;
}

/* Expanded Wishes Board Card */
.wishes-board-card {
  justify-content: flex-start;
}

.wishes-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.board-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--chateau-blue);
}

.board-count {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Taller, Expanded Wishes List */
.wishes-list {
  max-height: 220px;
  min-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--chateau-silver) transparent;
}

.wishes-list::-webkit-scrollbar {
  width: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
  background-color: var(--chateau-silver);
  border-radius: 4px;
}

.wish-item {
  background: var(--chateau-blue-tint);
  border: 1px solid var(--line-subtle);
  border-radius: 4px;
  padding: 8px 10px;
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.wish-author {
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--chateau-blue-deep);
}

.wish-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}

.wish-tag.hadir { background: #e8f5e9; color: #1e7e34; }
.wish-tag.tidak { background: #ffebee; color: #c62828; }
.wish-tag.ragu { background: #fff8e1; color: #f57f17; }

.wish-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--ink-dark);
  line-height: 1.35;
  font-style: italic;
}

.wish-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 8.5px;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 3px;
}

/* Footer Pinned at Bottom of Last Page */
.chateau-footer {
  position: absolute;
  bottom: 12px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 2px;
  z-index: 30;
  pointer-events: auto;
}

.footer-crest-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--chateau-blue);
  margin: 0 auto 1px;
}

.footer-dot {
  font-size: 9px;
}

.footer-closing {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-align: center !important;
  width: 100%;
  margin: 0 auto;
}

.footer-closing strong {
  color: var(--chateau-blue-deep);
  font-weight: 600;
}

.footer-brand-aa {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  gap: 6px;
  margin: 2px auto 0;
  width: 100%;
}

.footer-aa-logo-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.footer-site-link {
  color: var(--chateau-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ===== MODAL POPUPS (QRIS & GALLERY LIGHTBOX) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 40, 54, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--chateau-silver);
  padding: 18px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-header {
  margin-bottom: 10px;
}

.modal-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--chateau-blue);
  display: block;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--chateau-blue-deep);
}

.qris-image-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  background: #fff;
  border: 1px solid var(--chateau-silver-shimmer);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.qris-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qris-modal-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Lightbox Modal */
.gallery-modal-card {
  max-width: 360px;
  width: 90vw;
  padding: 18px 16px 14px;
}

.modal-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 3/4;
  height: auto;
  max-height: 60vh;
  margin: 0 auto 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 65, 86, 0.3);
  background: #ece7de;
}

#gallery-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-caption-wrap {
  margin-top: 6px;
  text-align: center;
}

.modal-chapter-text {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--chateau-blue-deep);
  margin-bottom: 3px;
}

.modal-caption-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}

/* ===== STAGGERED ENTRANCE ANIMATIONS ===== */
.anim-up,
.anim-up-delay-1,
.anim-up-delay-2,
.anim-up-delay-3,
.anim-up-delay-4 {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.section.in-view .anim-up,
.section.in-view .anim-up-delay-1,
.section.in-view .anim-up-delay-2,
.section.in-view .anim-up-delay-3,
.section.in-view .anim-up-delay-4 {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.in-view .anim-up { transition-delay: 0.15s; }
.section.in-view .anim-up-delay-1 { transition-delay: 0.45s; }
.section.in-view .anim-up-delay-2 { transition-delay: 0.75s; }
.section.in-view .anim-up-delay-3 { transition-delay: 1.05s; }
.section.in-view .anim-up-delay-4 { transition-delay: 1.35s; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (PC / TABLET / MOBILE)
   ========================================================================== */

/* Mobile Landscape & Tablets (max-width: 860px) */
@media (max-width: 860px) {
  .details-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .bank-accounts-grid {
    grid-template-columns: 1fr;
  }
  .gallery-salon-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 520px;
  }
  .rsvp-wrapper {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .wishes-list {
    max-height: 150px;
    min-height: 120px;
  }
}

/* Smartphones (max-width: 600px) */
@media (max-width: 600px) {
  .section-inner {
    padding: 48px 16px 48px;
  }

  /* All Pages from Page 2 to Page 8: Title locked precisely at user's mark (~20% from top of screen) */
  .section:not(#home) .section-inner {
    padding-top: 14vh;
    padding-top: 14dvh;
    padding-bottom: 84px;
    justify-content: flex-start;
    align-items: center;
  }

  .section-header-zone {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 8px;
  }

  .nav-links {
    gap: 8px;
  }
  .nav-link {
    font-size: 9.5px;
    letter-spacing: 1px;
    padding: 3px 5px;
  }

  .next-page-pill {
    bottom: 12px;
    font-size: 8.5px;
    padding: 5px 14px;
  }
  .section-title {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  .section-kicker {
    font-size: 8.5px;
    letter-spacing: 2px;
  }
  .filigree-divider {
    width: 120px;
    margin: 3px auto 0;
  }

  /* Center Content Cards Truly Between Title and Bottom Pill (Raised Up by ~34px) */
  .story-parchment-card,
  .profile-card,
  .gift-envelope-card,
  .gallery-salon-grid {
    margin-top: auto !important;
    margin-bottom: auto !important;
    position: relative;
    top: -16px;
  }

  /* Raise Attendance Box on Mobile to clear footer */
  .rsvp-wrapper {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .details-cards-grid {
    margin-top: auto !important;
    margin-bottom: 6px !important;
    position: relative;
    top: -14px;
  }

  .countdown-bar-wrap {
    margin-top: 0 !important;
    margin-bottom: auto !important;
    position: relative;
    top: -14px;
  }

  /* Page 1: Hero */
  .hero-content {
    padding: 16px 16px 48px;
  }
  .hero-crest-wrap {
    width: 84px;
    height: 84px;
  }
  .hero-script-name {
    font-size: 42px;
  }
  .hero-ampersand {
    font-size: 18px;
  }
  .hero-guest-card {
    max-width: 320px;
    padding: 10px 14px;
  }
  .guest-name-text {
    font-size: 15px;
  }

  /* Page 2: Story */
  .story-parchment-card {
    max-width: 360px;
    padding: 12px 14px 8px;
    gap: 6px;
    margin-bottom: 6px;
  }
  .story-quote {
    font-size: 13.5px;
    padding-bottom: 5px;
  }
  .story-text {
    font-size: 12px;
    line-height: 1.35;
  }
  .story-botanical-accent {
    height: 40px;
  }

  /* Pages 3 & 4: Bride & Groom */
  .profile-card {
    flex-direction: column;
    max-width: 330px;
    padding: 10px 14px;
    gap: 6px;
    text-align: center;
    margin-bottom: 6px;
  }
  .profile-frame-wrap {
    width: 115px;
    height: 150px;
  }
  .canvas-monogram {
    font-size: 48px;
  }
  .profile-fullname {
    font-size: 15px;
  }
  .profile-parents {
    font-size: 12px;
  }
  .profile-quote {
    font-size: 11px;
    border-left: none;
    border-top: 1px solid var(--chateau-silver);
    border-bottom: 1px solid var(--chateau-silver);
    padding: 2px 0;
  }
  .profile-social-link {
    margin: 0 auto;
  }

  /* Page 5: Details */
  .details-cards-grid {
    max-width: 340px;
    gap: 6px;
  }
  .details-card {
    padding: 7px 10px;
  }
  .card-heading {
    font-size: 11px;
  }
  .event-time {
    font-size: 10px;
  }
  .event-desc, .venue-address-text {
    font-size: 11px;
  }
  .card-inner-divider {
    margin: 4px auto;
  }
  .countdown-bar-wrap {
    margin-top: 4px;
    margin-bottom: 6px;
  }
  .countdown-timer {
    padding: 4px 10px;
    gap: 4px;
  }
  .cd-num {
    font-size: 15px;
  }
  .cd-lbl {
    font-size: 6.5px;
  }

  /* Page 6: Gallery */
  .gallery-subtitle {
    font-size: 11.5px;
    margin-top: 1px;
  }
  .gallery-salon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 340px;
    margin-bottom: 6px;
  }
  .roman-numeral {
    font-size: 20px;
  }
  .chapter-tag {
    font-size: 8px;
  }

  /* Page 7: Gift */
  .gift-subtitle {
    font-size: 11.5px;
    margin-top: 1px;
  }
  .gift-envelope-card {
    max-width: 330px;
    padding: 10px 12px;
    gap: 6px;
    margin-bottom: 6px;
  }
  .envelope-seal-img {
    width: 38px;
    height: 38px;
  }
  .bank-account-box {
    padding: 5px 8px;
  }
  .bank-number {
    font-size: 13.5px;
  }

  /* Page 8: RSVP & Wishes (Elevated attendance box & centered footer) */
  .rsvp-section .section-inner {
    padding-top: 12vh;
    padding-top: 12dvh;
    padding-bottom: 68px;
    justify-content: flex-start;
    align-items: center;
  }
  .rsvp-wrapper {
    max-width: 335px;
    gap: 5px;
  }
  .rsvp-form-card, .wishes-board-card {
    padding: 7px 10px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .form-input, .form-select, .form-textarea {
    padding: 3px 6px;
    font-size: 11px;
  }
  .form-label {
    font-size: 8px;
    margin-bottom: 1px;
  }
  /* Compact wishes box so it never touches footer */
  .wishes-list {
    max-height: 105px;
    min-height: 75px;
  }
  .btn-submit-rsvp {
    padding: 5px 8px;
    font-size: 8.5px;
    margin-top: 2px;
  }
  .chateau-footer {
    bottom: 8px;
    max-width: 300px;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-closing {
    font-size: 11.5px;
    text-align: center !important;
  }
  .footer-brand-aa {
    font-size: 8px;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   DESKTOP & LARGE SCREEN ENHANCEMENTS (min-width: 900px)
   Transforms the PC view into a Grand French Manor Editorial Exhibition
   ========================================================================== */
@media (min-width: 900px) {
  /* Subtle outer baroque estate frame */
  .section::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(154, 174, 192, 0.32);
    pointer-events: none;
    z-index: 10;
    border-radius: 4px;
  }

  .section-damask-bg,
  .hero-damask-bg {
    opacity: 0.15;
    background-size: 380px;
  }

  .section-inner {
    max-width: 1140px;
    padding: 60px 32px 56px;
  }

  /* Header & Title Enhancements */
  .section-header-zone {
    margin-bottom: 24px;
  }
  .section-kicker {
    font-size: 12px;
    letter-spacing: 4.5px;
    margin-bottom: 4px;
  }
  .section-title {
    font-size: 34px;
    letter-spacing: 3px;
  }
  .filigree-divider {
    width: 220px;
    margin: 8px auto 0;
  }
  .filigree-flourish {
    font-size: 16px;
  }

  /* Navbar */
  .top-navbar {
    height: 54px;
  }
  .nav-brand {
    font-size: 17px;
    letter-spacing: 3px;
  }
  .nav-links {
    gap: 24px;
  }
  .nav-link {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 6px 12px;
  }

  /* Page 1: Hero Cover */
  .hero-content {
    gap: 16px;
    padding: 40px 32px 64px;
  }
  .hero-crest-wrap {
    width: 125px;
    height: 125px;
  }
  .hero-eyebrow {
    font-size: 13px;
    letter-spacing: 5px;
  }
  .hero-couple-title {
    gap: 16px;
    margin: -2px 0;
  }
  .hero-script-name {
    font-size: 70px;
  }
  .hero-ampersand {
    font-size: 28px;
  }
  .hero-date {
    font-size: 15px;
    letter-spacing: 2.5px;
  }
  .hero-venue {
    font-size: 12px;
    letter-spacing: 3px;
  }
  .hero-guest-card {
    max-width: 460px;
    padding: 16px 26px;
  }
  .guest-badge-label {
    font-size: 10.5px;
    letter-spacing: 3px;
  }
  .guest-name-text {
    font-size: 21px;
  }
  .guest-subtext {
    font-size: 14.5px;
  }

  /* Page 2: Our Story (Grand Editorial Manuscript) */
  .story-parchment-card {
    max-width: 820px;
    padding: 30px 44px 24px;
    gap: 14px;
    border: 1.5px solid var(--chateau-silver);
    box-shadow: 0 16px 45px rgba(44, 65, 86, 0.12);
  }
  .story-quote {
    font-size: 21px;
    padding-bottom: 12px;
    line-height: 1.5;
    text-align: center;
  }
  .story-text {
    font-size: 16.5px;
    line-height: 1.8;
    text-align: center;
    max-width: 740px;
    margin: 0 auto;
  }
  .story-botanical-accent {
    height: 72px;
    margin-top: 8px;
  }

  /* Pages 3 & 4: The Bride & The Groom */
  .profile-card {
    max-width: 780px;
    padding: 26px 36px;
    gap: 32px;
    box-shadow: 0 16px 45px rgba(44, 65, 86, 0.12);
    border: 1.5px solid var(--chateau-silver);
  }
  .profile-frame-wrap {
    width: 185px;
    height: 250px;
  }
  .canvas-monogram {
    font-size: 72px;
  }
  .profile-fullname {
    font-size: 23px;
    letter-spacing: 1.5px;
  }
  .profile-parents {
    font-size: 14.5px;
    line-height: 1.55;
  }
  .profile-quote {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 16px;
    border-left: 2px solid var(--chateau-silver);
  }
  .profile-social-link {
    font-size: 13px;
    padding: 6px 14px;
  }

  /* Page 5: The Details */
  .details-cards-grid {
    max-width: 940px;
    gap: 24px;
  }
  .details-card {
    padding: 20px 24px;
  }
  .card-heading {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .event-time {
    font-size: 14px;
  }
  .event-desc,
  .venue-address-text {
    font-size: 14px;
  }
  .venue-name-bold {
    font-size: 15px;
  }
  .countdown-bar-wrap {
    margin-top: 14px;
    gap: 16px;
  }
  .countdown-timer {
    padding: 8px 22px;
    gap: 16px;
  }
  .cd-num {
    font-size: 26px;
  }
  .cd-lbl {
    font-size: 9.5px;
  }
  .btn-save-date {
    font-size: 11.5px;
    padding: 9px 20px;
  }

  /* Page 6: Palace Gallery (Versailles Grand Salon Exhibition - Fit without cut-off) */
  .gallery-section .section-inner {
    padding-top: 54px;
    padding-bottom: 48px;
    justify-content: center;
  }
  .gallery-subtitle {
    font-size: 13.5px;
    margin-top: 2px;
    max-width: 600px;
  }
  .gallery-salon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.8vh, 16px);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
  }
  .salon-frame-card {
    height: clamp(100px, 20vh, 175px);
    width: auto;
    aspect-ratio: 3/4;
    max-width: 220px;
    margin: 0 auto;
  }
  .salon-frame-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .roman-numeral {
    font-size: clamp(20px, 3.2vh, 28px);
  }
  .chapter-tag {
    font-size: clamp(8px, 1.4vh, 11px);
  }

  /* Page 7: Wedding Gift */
  .gift-subtitle {
    font-size: 15px;
    max-width: 680px;
    margin: 4px auto 0;
  }
  .gift-envelope-card {
    max-width: 780px;
    padding: 26px 36px;
    gap: 18px;
    box-shadow: 0 16px 45px rgba(44, 65, 86, 0.12);
    border: 1.5px solid var(--chateau-silver);
  }
  .envelope-seal-img {
    width: 54px;
    height: 54px;
  }
  .bank-accounts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .bank-brand {
    font-size: 13.5px;
  }
  .bank-holder {
    font-size: 13px;
  }
  .bank-number {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .btn-copy-rek {
    font-size: 11px;
    padding: 4px 12px;
  }
  .btn-qris-chateau {
    font-size: 12px;
    padding: 10px 24px;
  }

  /* Page 8: RSVP & Guest Book */
  .rsvp-wrapper {
    max-width: 980px;
    gap: 28px;
  }
  .rsvp-form-card,
  .wishes-board-card {
    padding: 20px 24px;
    box-shadow: 0 16px 45px rgba(44, 65, 86, 0.12);
  }
  .form-label {
    font-size: 10.5px;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 13px;
  }
  .wishes-list {
    min-height: 200px;
    max-height: 240px;
  }
  .chateau-footer {
    bottom: 16px;
  }
  .footer-closing {
    font-size: 14.5px;
  }
  .footer-brand-aa {
    font-size: 12px;
  }

  /* Pinned Next-Page Navigation Pill on PC */
  .next-page-pill {
    bottom: 22px;
    font-size: 10.5px;
    padding: 8px 22px;
  }
  .hero-scroll-btn {
    bottom: 22px;
  }
}

/* ===== PROGRAM OF THE DAY (TIMELINE) & PREWEDDING FILM (VIDEO) ===== */
.timeline-section .section-inner,
.video-section .section-inner {
  justify-content: center;
  align-items: center;
}

.chateau-timeline-wrapper {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(44, 65, 86, 0.09);
  padding: clamp(12px, 2vh, 20px) clamp(16px, 3vw, 24px);
  margin: 0 auto;
  position: relative;
}

.chateau-timeline-items {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 14px);
  position: relative;
}

.chateau-timeline-items::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: rgba(197, 160, 89, 0.35);
  z-index: 0;
}

.chateau-timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.timeline-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 2px 8px rgba(44, 65, 86, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.timeline-body {
  flex: 1;
  text-align: left;
}

.timeline-time {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #9c7a3c;
  background: rgba(197, 160, 89, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
}

.timeline-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--chateau-blue-deep);
  letter-spacing: 1.5px;
  margin: 2px 0 1px;
}

.timeline-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.2;
}

/* Château Video Section */
.chateau-video-box {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(44, 65, 86, 0.12);
  padding: clamp(10px, 1.8vh, 16px);
  margin: 0 auto;
}

.chateau-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.chateau-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .chateau-timeline-wrapper,
  .chateau-video-box {
    margin-top: auto !important;
    margin-bottom: auto !important;
    position: relative;
    top: -14px;
    max-width: 92%;
  }
}


