/* ==========================================================================
   Midnight Waltz — Harsha K & Jishnu Wedding Invitation
   Exact visual & motion recreation
   ========================================================================== */

@font-face {
  font-family: 'Religath';
  src: url('../assets/fonts/religath.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Modernline';
  src: url('../assets/fonts/modernline.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-cream: #FDFBF7;
  --bg-card-cream: #F5EFE6;
  --bg-opening: #1A0A12;
  --text-bronze: #4A3E20;
  --text-gold-muted: #7A6840;
  --gold-accent: #B09060;
  --gold-frame: #B58A3C;
  --gold-timeline: #C09D5C;
  --gold-border-soft: rgba(197, 168, 128, 0.25);
  --olive-deep: #2B3B25;
  --olive-footer: #1E2B18;
  --olive-rsvp: #3D5236;
  --olive-label: #4E6540;
  --olive-quote: #3F4930;
  --burgundy-divider: rgba(123, 15, 26, 0.25);

  --font-display: 'Religath', 'Cinzel', serif;
  --font-script: 'Modernline', 'Parisienne', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-bronze);
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-cream);
  color: var(--text-bronze);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Opening Envelope Cover Overlay
   ========================================================================== */
.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
  cursor: pointer;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.opening-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg-opening);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .opening-stage {
    max-width: 480px;
  }
}

.opening-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  transform: scale(1.04);
}

.opening-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 10px;
  color: var(--gold-accent);
  filter: drop-shadow(0 0 8px rgba(176, 144, 96, 0.8));
  animation: sparkleFloat 3.6s ease-in-out infinite;
}

.sparkle-1 { top: 26%; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: 34%; right: 18%; animation-delay: 0.9s; }
.sparkle-3 { bottom: 28%; left: 24%; animation-delay: 1.7s; }
.sparkle-4 { bottom: 24%; right: 22%; animation-delay: 2.4s; }

@keyframes sparkleFloat {
  0%, 100% { opacity: 0.25; transform: translate(0, 0) scale(0.8); }
  50% { opacity: 0.95; transform: translate(4px, -8px) scale(1.25); }
}

.opening-prompt {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.opening-overlay.is-playing .opening-prompt {
  opacity: 0;
}

.opening-prompt-text {
  font-family: var(--font-cinzel);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--text-bronze);
  text-shadow: 0 0 16px rgba(176, 144, 96, 0.6), 0 1px 1px rgba(255, 255, 255, 0.9);
  animation: tapPulse 2.4s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

.opening-prompt-divider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opening-prompt-line {
  width: 24px;
  height: 0.8px;
  background-color: var(--text-bronze);
  opacity: 0.75;
}

.opening-prompt-star {
  font-size: 7px;
  color: var(--text-bronze);
  line-height: 1;
}

/* ==========================================================================
   Floating Music Toggle Button
   ========================================================================== */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(74, 62, 32, 0.82);
  color: var(--bg-cream);
  border: 1px solid rgba(253, 251, 247, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.25s ease, background-color 0.25s ease;
}

.music-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.music-toggle:hover {
  transform: scale(1.06);
  background-color: rgba(74, 62, 32, 0.95);
}

.music-toggle svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Main Wrapper & Responsive Watercolor Backgrounds
   ========================================================================== */
.invitation-main {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-cream);
  position: relative;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
}

/* ==========================================================================
   Section 1: Hero
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 45vh 24px 28px;
  text-align: center;
}

.hero-bg {
  background-image: url('../assets/bg/hero-desktop.webp');
  background-position: center top;
  transform: scale(1.12);
  transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.invitation-main.is-revealed .hero-bg {
  transform: scale(1);
}

@media (max-width: 1023px) {
  .hero-section {
    padding: 40svh 44px 32px;
  }
  .hero-bg {
    background-image: url('../assets/bg/hero-mobile.webp');
  }
}

.petals-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.falling-petal {
  position: absolute;
  top: -60px;
  width: 28px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(120, 40, 40, 0.12));
  will-change: transform, opacity;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -60px, 0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(var(--drift-x, 45px), 108svh, 0) rotate(var(--rot-end, 260deg)) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  width: 100%;
}

.hero-ornament {
  margin-bottom: 6px;
}

.save-the-date {
  font-family: var(--font-script);
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-bronze);
  margin: 0 0 4px;
  line-height: 1.2;
}

.couple-name-wrap {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1.04;
}

.couple-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-bronze);
  margin: 0;
}

.couple-name-shimmer {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(110deg, transparent 30%, rgba(181, 146, 60, 0.58) 50%, transparent 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  animation: goldShimmer 4.5s ease-in-out infinite;
}

@keyframes goldShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.couple-and {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--text-bronze);
  margin: 2px 0;
  line-height: 1.1;
}

.getting-married {
  font-family: var(--font-serif);
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-gold-muted);
  margin: 8px 0 10px;
}

.hero-dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-dot-line {
  flex: 1;
  height: 0.75px;
  background-color: var(--text-gold-muted);
  opacity: 0.7;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-gold-muted);
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  color: var(--text-bronze);
  margin-bottom: 4px;
}

.hero-date-month,
.hero-date-year {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.08em;
}

.hero-date-day {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1;
}

.hero-date-pipe {
  color: var(--text-gold-muted);
  opacity: 0.6;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.hero-weekday {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.14em;
  color: var(--text-bronze);
  margin: 2px 0;
}

.hero-time {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.1em;
  color: var(--text-bronze);
  margin: 0 0 10px;
}

.hero-pin {
  margin-bottom: 6px;
  opacity: 0.8;
}

.hero-venue-name {
  font-family: var(--font-serif);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-bronze);
  margin: 0 0 2px;
}

.hero-venue-loc {
  font-family: var(--font-serif);
  font-size: clamp(10.5px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-bronze);
  margin: 0 0 16px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-bronze);
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-cue-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   Shared Section Header Ornament
   ========================================================================== */
.lotus-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 10px;
}

.lotus-line {
  width: 26px;
  height: 0.75px;
  background-color: var(--gold-accent);
}

.section-script-title {
  font-family: var(--font-script);
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--text-bronze);
  margin: 0;
  font-weight: 400;
}

.section-serif-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 32px);
  color: var(--text-gold-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   Section 2: Our Moments (Sticky 270vh Polaroid Stack)
   ========================================================================== */
.moments-track {
  position: relative;
  width: 100%;
  height: 270vh;
}

.moments-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-bg {
  background-image: url('../assets/bg/photo-bg-desktop.webp');
}

@media (max-width: 1023px) {
  .photo-bg {
    background-image: url('../assets/bg/photo-bg-mobile.webp');
  }
}

.moments-header {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  padding: 0 16px;
  z-index: 4;
}

.polaroid-stage {
  position: relative;
  width: min(88vw, 460px);
  height: min(68vw, 360px);
  margin-top: 72px;
  z-index: 5;
}

.polaroid-card {
  position: absolute;
  inset: 0;
  background-color: var(--bg-cream);
  border: 1px solid rgba(181, 138, 60, 0.25);
  border-radius: 6px;
  padding: 12px 12px 14px;
  box-shadow: 0 18px 40px rgba(74, 62, 32, 0.14);
  will-change: transform, opacity;
  transition: transform 0.12s linear, opacity 0.12s linear;
}

.polaroid-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(181, 138, 60, 0.45);
  border-radius: 4px;
  padding: 6px 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-cream);
}

.polaroid-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background-color: #EFE8DA;
}

.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.polaroid-photo--couple-2 {
  object-position: 50% 24%;
}

.polaroid-photo--couple-3 {
  object-position: 50% 18%;
}

.polaroid-caption {
  margin: 8px 4px 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(11px, 1.15vw, 13px);
  line-height: 1.45;
  color: var(--olive-quote);
}

/* ==========================================================================
   Section 3: Welcome
   ========================================================================== */
.welcome-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}

.welcome-bg {
  background-image: url('../assets/bg/welcome-desktop.webp');
}

@media (max-width: 1023px) {
  .welcome-bg {
    background-image: url('../assets/bg/welcome-mobile.webp');
  }
}

.welcome-content {
  position: relative;
  z-index: 5;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-gold-muted);
  line-height: 1.2;
  margin: 6px 0 18px;
}

.welcome-rule {
  width: 44px;
  height: 0.75px;
  background-color: var(--gold-accent);
  margin: 0 auto 20px;
}

.welcome-body {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--text-bronze);
  margin: 0 0 28px;
  max-width: 520px;
}

.welcome-bottom-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.welcome-bottom-line {
  width: 30px;
  height: 0.75px;
  background-color: var(--gold-frame);
}

/* ==========================================================================
   Section 4: Our Venue
   ========================================================================== */
.venue-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12svh 24px 16svh;
  overflow: hidden;
}

.venue-bg {
  background-image: url('../assets/bg/venue-desktop.webp');
  background-position: center bottom;
}

@media (max-width: 1023px) {
  .venue-bg {
    background-image: url('../assets/bg/venue-mobile.webp');
  }
}

.venue-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-gold-muted);
  margin: 6px 0 8px;
}

.venue-address {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--text-bronze);
  margin: 0 0 22px;
}

.venue-qr-box {
  width: 106px;
  height: 106px;
  background-color: var(--bg-cream);
  border: 0.75px solid rgba(176, 144, 96, 0.35);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

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

.venue-qr-label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin: 0 0 18px;
}

.venue-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--gold-accent);
  border-radius: 4px;
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-bronze);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.venue-cta:hover {
  background-color: var(--bg-cream);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 62, 32, 0.12);
}

/* ==========================================================================
   Section 5: Wedding Schedule
   ========================================================================== */
.schedule-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background-color: var(--bg-cream);
  padding: 112px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.timeline {
  position: relative;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(transparent, rgb(192, 157, 92) 15%, rgb(192, 157, 92) 85%, transparent);
  opacity: 0.35;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
}

.timeline-node {
  grid-column: 2;
  justify-self: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  border: 1.5px solid var(--gold-timeline);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-timeline);
}

.timeline-card {
  background-color: var(--bg-card-cream);
  border-radius: 16px;
  border-bottom: 3px solid var(--gold-timeline);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(74, 62, 32, 0.05);
}

.timeline-card--right {
  grid-column: 3;
  margin-left: 16px;
}

.timeline-card--left {
  grid-column: 1;
  margin-right: 16px;
}

.timeline-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--gold-timeline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.timeline-time-badge {
  display: inline-block;
  background-color: var(--olive-deep);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.timeline-event-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--olive-deep);
  margin: 0;
}

@media (max-width: 767px) {
  .schedule-section {
    padding: 80px 18px;
  }
  .timeline-line {
    left: 14px;
    transform: none;
  }
  .timeline-row {
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }
  .timeline-node {
    grid-column: 1;
  }
  .timeline-card--right,
  .timeline-card--left {
    grid-column: 2;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   Section 6: RSVP Form
   ========================================================================== */
.rsvp-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 72px 16px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
}

.rsvp-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-cream);
  border: 1px solid rgba(74, 62, 32, 0.2);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(74, 62, 32, 0.08);
  text-align: center;
}

@media (max-width: 639px) {
  .rsvp-card {
    padding: 28px 20px;
    border-radius: 24px;
  }
}

.rsvp-kicker {
  font-family: var(--font-cinzel);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(74, 62, 32, 0.75);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.rsvp-heading {
  font-family: var(--font-cinzel);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-bronze);
  margin: 0 0 10px;
}

.rsvp-sub {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(74, 62, 32, 0.75);
  margin: 0 0 18px;
}

.rsvp-heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  width: 140px;
  color: var(--text-gold-muted);
  font-size: 11px;
}

.rsvp-heart-line {
  flex: 1;
  height: 0.75px;
  background-color: rgba(74, 62, 32, 0.25);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.rsvp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rsvp-label {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-bronze);
  margin-bottom: 6px;
}

.rsvp-label-row .rsvp-label {
  margin-bottom: 0;
}

.rsvp-label-meta {
  font-family: var(--font-cinzel);
  font-size: 10px;
  color: rgba(74, 62, 32, 0.7);
}

.rsvp-req {
  color: #9E3B3B;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid rgba(74, 62, 32, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-bronze);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--text-bronze);
  box-shadow: 0 0 0 3px rgba(74, 62, 32, 0.08);
}

.rsvp-attend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rsvp-attend-btn {
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(74, 62, 32, 0.25);
  background-color: #FFFFFF;
  color: rgba(74, 62, 32, 0.8);
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-attend-btn.is-active {
  background-color: var(--text-bronze);
  color: var(--bg-cream);
  border-color: var(--text-bronze);
}

.rsvp-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.rsvp-step-btn {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(74, 62, 32, 0.3);
  background-color: #FFFFFF;
  color: var(--text-bronze);
  font-family: var(--font-cinzel);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rsvp-step-btn:hover {
  background-color: var(--bg-card-cream);
}

.rsvp-step-display {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(74, 62, 32, 0.25);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-bronze);
}

.rsvp-helper {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11.5px;
  color: rgba(74, 62, 32, 0.65);
  text-align: center;
  margin: 6px 0 0;
}

.rsvp-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp-event-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.25px solid rgba(61, 82, 54, 0.35);
  background-color: #FFFFFF;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rsvp-event-item.is-selected {
  border-color: var(--olive-rsvp);
}

.rsvp-event-name {
  font-family: var(--font-cinzel);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-bronze);
  margin: 0 0 2px;
}

.rsvp-event-time {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: rgba(74, 62, 32, 0.65);
  margin: 0;
}

.rsvp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(74, 62, 32, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s ease;
}

.rsvp-event-item.is-selected .rsvp-check {
  background-color: var(--text-bronze);
  border-color: var(--text-bronze);
  color: #FFFFFF;
}

.rsvp-submit {
  width: 100%;
  border: none;
  border-radius: 9999px;
  background-color: var(--text-bronze);
  color: var(--bg-cream);
  padding: 14px 24px;
  font-family: var(--font-cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rsvp-submit:hover {
  background-color: #3A3018;
  transform: translateY(-1px);
}

.rsvp-success {
  display: none;
  padding: 20px 12px;
  text-align: center;
}

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

.rsvp-success-title {
  font-family: var(--font-cinzel);
  font-size: 18px;
  color: var(--text-bronze);
  margin: 0 0 8px;
}

.rsvp-success-msg {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(74, 62, 32, 0.8);
  margin: 0 0 18px;
}

/* ==========================================================================
   Section 7: Countdown
   ========================================================================== */
.countdown-section {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8%;
}

.countdown-bg {
  background-image: url('../assets/bg/countdown-desktop.webp');
  background-position: center top;
}

@media (max-width: 1023px) {
  .countdown-section {
    aspect-ratio: 9 / 14;
    min-height: 75svh;
    padding-bottom: 14%;
  }
  .countdown-bg {
    background-image: url('../assets/bg/countdown-mobile.webp');
  }
}

.leaves-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.falling-leaf {
  position: absolute;
  top: -50px;
  width: 18px;
  height: auto;
  will-change: transform, opacity;
  animation: leafFall linear infinite;
}

@keyframes leafFall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.78;
  }
  88% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(var(--drift-x, -40px), 100%, 0) rotate(var(--rot-end, 300deg));
    opacity: 0;
  }
}

.countdown-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 58vw;
}

@media (max-width: 767px) {
  .countdown-inner {
    max-width: 90vw;
  }
}

.countdown-heading {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.34em;
  color: var(--olive-deep);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 32px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(44px, 6vw, 76px);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 56px);
  line-height: 1.05;
  color: var(--olive-deep);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: clamp(7.5px, 0.85vw, 13px);
  letter-spacing: 0.2em;
  color: var(--olive-label);
  text-transform: uppercase;
  margin-top: 6px;
}

.countdown-sep {
  width: 1.5px;
  height: clamp(28px, 3.6vw, 48px);
  background-color: var(--burgundy-divider);
}

/* ==========================================================================
   Section 8: Footer (Domain Ads — Subtle Midnight Waltz Navy & Gold Accent)
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  padding: 36px 24px 28px;
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(216, 178, 110, 0.06) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 20 30 30 T60 30' fill='none' stroke='rgba(43,59,37,0.04)' stroke-width='1'/%3E%3Ccircle cx='30' cy='15' r='1.5' fill='rgba(216,178,110,0.09)'/%3E%3C/svg%3E");
  border-top: 1px solid rgba(176, 144, 96, 0.22);
  overflow: hidden;
  text-align: center;
}

.footer-branch {
  position: absolute;
  bottom: 10px;
  width: 78px;
  height: 44px;
  opacity: 0.35;
  pointer-events: none;
}

.footer-branch--left {
  left: 16px;
}

.footer-branch--right {
  right: 16px;
  transform: scaleX(-1);
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-powered {
  font-family: var(--font-cinzel);
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-bronze);
  margin: 0;
}

.footer-powered span {
  color: var(--gold-frame);
}

.footer-rule {
  width: 36px;
  height: 0.75px;
  background-color: var(--gold-accent);
  opacity: 0.65;
  margin: 2px 0;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(43, 59, 37, 0.75);
  margin: 0;
}

.footer-website {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-gold-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 144, 96, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-website:hover {
  color: var(--text-bronze);
  border-color: var(--text-bronze);
}

/* ==========================================================================
   Scroll Reveal Helper
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
