/* ===== Fonts ===== */
@font-face {
  font-family: 'Great Vibes';
  src: url('assets/GreatVibes-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Classica Two';
  src: url('assets/Classica Two.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Photograph Signature';
  src: url('assets/Photograph Signature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'QEBEV';
  src: url('assets/QEBEV.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Romantically';
  src: url('assets/Romantically.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'QEDavidReid';
  src: url('assets/QEDavidReid.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables & Base ===== */
:root {
  --cream: #faf8f5;
  --cream-dark: #f0ebe3;
  --gold: #c9a962;
  --gold-light: #e8dcc4;
  --charcoal: #2c2c2c;
  --blush: #e8d5d5;
  --paper: #fdfbf7;
  --paper-shadow: rgba(44, 44, 44, 0.15);
  --envelope: #f5f0e8;
  --envelope-dark: #e8e0d5;
  --wax-red: #8b2942;
  --wax-dark: #6b1f32;
  --wax-highlight: #a83d52;
}

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

/* overflow-x:hidden on both html & body promotes overflow-y to auto on each → nested scroll ports
   (fast vertical swipes feel "stuck"). clip + overflow-y:visible keeps one viewport scroller.
   Smooth scroll fights touch momentum — only enable for precise pointers. */
html {
  scroll-behavior: auto;
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overscroll-behavior-x: none;
}

/* ===== Music mute (fixed top-left) ===== */
.music-mute-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.92);
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(44, 44, 44, 0.08);
}

.music-mute-btn:hover {
  background: var(--gold);
  color: white;
}

.music-mute-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.music-mute-btn__icon {
  display: none;
  width: 1.5rem;
  height: 1.5rem;
}

.music-mute-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.music-mute-btn:not(.music-mute-btn--muted) .music-mute-btn__icon--on,
.music-mute-btn.music-mute-btn--muted .music-mute-btn__icon--off {
  display: block;
}

.music-mute-btn.music-mute-btn--muted:not(:hover) {
  color: var(--charcoal);
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  gap: 4px;
}

.lang-btn {
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gold);
  color: white;
}

/* ===== Invitation Section (envelope photo animation) ===== */
.invitation-section {
  position: relative;
  min-height: 100vh;
  display: block;
  padding: 0;
  background-color: #000;
  overflow: hidden;
  transition: opacity 1.2s ease, transform 0.8s ease, background-color 1.2s ease;
}

/* Fade-out state: crossfade with main content */
.invitation-section--fade-out {
  opacity: 0;
  pointer-events: none;
}

.invitation-section.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  display: none;
}

/* Ivory fade state at the end of the animation */
.invitation-section--ivory {
  background-color: var(--cream);
}

/* Hint text over the envelope – positioned over top flap (JS sets --hint-left, --hint-top, --hint-font-size from flap geometry) */
.invitation-hint {
  position: fixed;
  left: var(--hint-left, 50%);
  top: var(--hint-top, 33.33%);
  transform: translate(-50%, -50%) rotate(-0.2deg);
  z-index: 950;
  margin: 0;
  font-family: 'Photograph Signature', 'Cormorant Garamond', serif;
  font-size: var(--hint-font-size, clamp(2.475rem, 7.875vw, 3.6rem));
  font-weight: 500;
  color: #000b1e;
  letter-spacing: 0.02em;
  opacity: 0.8;
  mix-blend-mode: multiply;
  filter: url('#ink-bleed') blur(0.3px);
  text-shadow:
    0.5px 0.5px 1px rgba(0, 0, 0, 0.1),
    -0.2px -0.2px 0.5px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  white-space: nowrap;
  max-width: 90vw;
  /* No transitions by default — JS sets position/size on load; avoids “animating in” first line */
  transition: none;
  pointer-events: none;
}

.invitation-hint.invitation-hint--animates {
  /* Opacity-only: second line size comes from `--seal-nudge` instantly, no font-size tween */
  transition: opacity 0.45s ease;
}

/* Fade out before swapping to the “click the seal” line */
.invitation-hint--swap-out {
  opacity: 0;
}

/* Second hint line: smaller than the main invitation line */
.invitation-hint--seal-nudge {
  font-size: calc(var(--hint-font-size, clamp(2.475rem, 7.875vw, 3.6rem)) * 0.68);
}

/* Russian: Cyrillic reads better in Classica Two — ~20% smaller than flap-based `--hint-font-size` (still scales with viewport) */
html:lang(ru) .invitation-hint {
  font-family: 'Classica Two', 'Cormorant Garamond', serif;
  font-size: calc(var(--hint-font-size, clamp(2.475rem, 7.875vw, 3.6rem)) * 0.8);
  transform: translate(-50%, calc(-50% + 13px)) rotate(-0.2deg); /* 13px lower than flap-based position */
}

html:lang(ru) .invitation-hint.invitation-hint--seal-nudge {
  font-size: calc(var(--hint-font-size, clamp(2.475rem, 7.875vw, 3.6rem)) * 0.68 * 0.8);
}

/* Small/touch screens: no filter so text renders at full resolution (avoids blurry SVG filter layer) */
@media (max-width: 768px), (hover: none) {
  .invitation-hint {
    filter: none;
    mix-blend-mode: normal;
  }
}

.invitation-hint--fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Envelope stage: full-screen photo that zooms slightly in */
.envelope-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 3s linear, opacity 0.4s ease;
  z-index: 10;
}

.envelope-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
}

/* Show landscape by default */
.envelope-photo--portrait {
  display: none;
}

/* On portrait devices, prefer the portrait envelope photo */
@media (orientation: portrait) {
  .envelope-photo--landscape {
    display: none;
  }

  .envelope-photo--portrait {
    display: block;
  }
}

/* Transparent hit area centered over the seal region */
.envelope-seal-hit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Zoom state when envelope is clicked: slowly zoom to 200% */
.envelope-stage--zoom {
  transform: scale(2);
  z-index: 900;
}

/* (Flap overlay styles removed; animation now only zooms + fades to main page) */


@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== Main Content ===== */
.main-content {
  display: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  min-height: 100vh;
  max-width: 100%;
  /* Avoid overflow-x on <main>: with overflow-y visible browsers may promote it to a scroll box and vertical scroll feels “stuck”. */
}

.main-content.visible {
  display: block;
}

/* During reveal: overlay on top of invitation so we fade in over ivory (no sudden reveal) */
.main-content.visible.main-content--overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

/* Banner Section */
.banner-section {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.banner-photo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: white;
}

.banner-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(44, 44, 44, 0.25) 0%,
    rgba(44, 44, 44, 0.55) 100%
  );
}

.banner-overlay-spacer {
  flex: 1 0 0;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.banner-overlay-content {
  flex: 2 0 0;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (orientation: portrait) {
  .banner-overlay-content {
    padding: 0 24px;
    box-sizing: border-box;
  }
}

.banner-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: bannerReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.banner-subtitle {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  animation: bannerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes bannerReveal {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* Scroll reveal: fade in + slight vertical nudge (translateX caused horizontal overflow on narrow viewports) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Countdown Section */
.countdown-section {
  padding: 48px 24px 40px;
  background: var(--cream);
  text-align: center;
}

.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.countdown-done {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  margin: 0 auto 28px;
  max-width: 28rem;
  text-align: center;
  line-height: 1.4;
}

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.countdown-item {
  flex: 1 1 100px;
  min-width: 90px;
  padding: 20px 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--paper-shadow);
  border-left: 4px solid var(--gold);
}

.countdown-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
}

.countdown-unit {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  margin-top: 4px;
}

/* Welcome Section */
.welcome-section {
  padding: 60px 24px 40px;
  text-align: center;
}

.welcome-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

/* Details Section */
.details-section {
  padding: 40px 24px 60px;
}

.details-section .section-title {
  margin-bottom: 32px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-card {
  background: white;
  padding: 40px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 24px var(--paper-shadow);
  text-align: center;
  border-left: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 0; /* lets long words/URLs shrink inside padded cards on narrow screens */
}

.details-section .detail-card:nth-of-type(1) { animation-delay: 0.1s; }
.details-section .detail-card:nth-of-type(2) { animation-delay: 0.25s; }
.details-section .detail-card:nth-of-type(3) { animation-delay: 0.4s; }
.details-section .detail-card:nth-of-type(4) { animation-delay: 0.55s; }

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--paper-shadow);
}

/* Dress code: women / men columns */
.detail-card--dresscode .dresscode-intro {
  max-width: 36rem;
  margin: 0 auto 24px;
  text-align: center;
}

.dresscode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}

.dresscode-col {
  padding: 24px 20px 28px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--gold-light);
}

.dresscode-gender-icon {
  display: block;
  margin: 0 auto 14px;
  line-height: 0;
}

.dresscode-gender-icon img {
  display: block;
  width: 7.5rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.dresscode-col__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.dresscode-col__text {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.75;
}

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

/* Transport: bus route timeline (line + circles) */
.transport-alternative {
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.transport-route {
  max-width: 380px;
  margin: 20px auto 0;
  text-align: left;
}

.transport-route--return {
  margin-top: 28px;
}

.transport-route__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px 0;
  padding-left: 28px;
}

.transport-route__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Line runs only between stops (from each dot centre to the next) — no tail past the last point */
.transport-route__leg:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 13px;
  z-index: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold));
  border-radius: 1px;
}

.transport-route__leg {
  position: relative;
  padding: 0 0 18px 28px;
  min-height: 2.5rem;
}

.transport-route__leg:last-child {
  padding-bottom: 0;
}

.transport-route__marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-sizing: border-box;
  background: white;
  border: 3px solid var(--gold);
  z-index: 1;
}

.transport-route__leg--stop .transport-route__marker {
  background: var(--cream);
  border-width: 3px;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.transport-route__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.25rem;
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
}

.transport-route__place {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.35;
  text-align: left;
  min-width: 0;
}

.transport-route__time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}

/* Program Section */
.program-section {
  padding: 40px 24px 60px;
  background: var(--cream-dark);
}

.program-section .section-title {
  margin-bottom: 28px;
}

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
}

.program-item {
  display: grid;
  grid-template-columns: 2.5rem 4rem 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 16px var(--paper-shadow);
  border-left: 4px solid var(--gold);
}

.program-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 2rem;
  height: 2rem;
  color: var(--gold);
}
.program-icon .material-symbols-outlined {
  font-size: 2rem;
  color: currentColor;
}

.program-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 3.5rem;
}

.program-activity {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Stagger scroll-reveal on program lines */
.program-section .program-item.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.program-section .program-item.scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.program-section .program-item.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.program-section .program-item.scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.program-section .program-item.scroll-reveal:nth-child(5) { transition-delay: 0.32s; }

/* Wider than body text — extends 30px into card padding each side only (.detail-card padding unchanged) */
.venue-photo {
  width: calc(100% + 60px);
  max-width: none;
  margin: 20px -30px;
  border-radius: 8px;
  overflow: hidden;
}

.venue-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(30%);
}

.venue-map {
  margin-top: 24px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.venue-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.venue-map-link:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.venue-map-link:hover .venue-map-link__icon {
  color: white;
}

.venue-map-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.venue-map-link__icon {
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  transition: color 0.2s ease;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  color: var(--gold);
}
.detail-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: currentColor;
}

.detail-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.detail-value {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.transport-alternative a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.transport-alternative a:hover {
  color: var(--charcoal);
}

/* Story Section */
.story-section {
  padding: 60px 24px;
  background: var(--cream-dark);
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--charcoal);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* RSVP Section */
.rsvp-section {
  padding: 60px 24px;
}

.rsvp-text {
  text-align: center;
  margin-bottom: 16px;
  color: var(--charcoal);
  opacity: 0;
  animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.rsvp-form {
  max-width: 28rem;
  margin: 28px auto 0;
  padding: 28px 24px 32px;
  text-align: left;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--paper-shadow);
  border-left: 4px solid var(--gold);
  opacity: 0;
  animation: cardReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.62s forwards;
}

.rsvp-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rsvp-form__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.rsvp-form__input,
.rsvp-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.rsvp-form__input:focus,
.rsvp-form__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.25);
}

.rsvp-form__input.rsvp-form__input--invalid {
  border-color: #9b2c2c;
  box-shadow: 0 0 0 2px rgba(155, 44, 44, 0.2);
}

.rsvp-form__fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.rsvp-form__legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 0;
}

.rsvp-form__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
  cursor: pointer;
}

.rsvp-form__choice input {
  margin-top: 0.35em;
  accent-color: var(--gold);
}

.rsvp-form__choice--plus-one {
  margin-bottom: 8px;
}

.rsvp-form__plus-one-field {
  margin-top: -4px;
}

/* [hidden] alone loses to .rsvp-form__field { display: flex } — force hide when collapsed */
.rsvp-form__plus-one-field[hidden] {
  display: none !important;
}

.rsvp-form__turnstile {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  min-height: 4.5rem;
}

.rsvp-form__status {
  min-height: 1.5em;
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--charcoal);
  text-align: center;
}

.rsvp-form__status.rsvp-form__status--success {
  color: #2d6a4f;
}

.rsvp-form__status.rsvp-form__status--error {
  color: #9b2c2c;
}

.rsvp-form__submit {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rsvp-form__submit:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.rsvp-form__submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Presents Section */
.presents-section {
  padding: 60px 24px;
  background: var(--cream-dark);
}

.presents-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--paper-shadow);
  opacity: 0;
  transform: translateY(24px);
  animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.presents-card .detail-icon {
  margin-bottom: 16px;
}

.presents-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 60px 24px;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}

.faq-item:first-child {
  border-top: 1px solid var(--cream-dark);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item.faq-item--open .faq-question::after,
.faq-question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
  transition: max-height 0.3s ease;
}

.faq-answer--open {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Visa & entry requirements */
.visa-section {
  padding: 60px 24px;
  background: var(--cream);
}

.visa-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 24px var(--paper-shadow);
  border-left: 4px solid var(--gold);
  text-align: left;
}

.visa-content__icon {
  margin: 0 auto 16px;
}

.visa-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.visa-line:last-of-type {
  margin-bottom: 0;
}

.visa-line a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visa-line a:hover {
  color: var(--charcoal);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(16px);
  animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.details-section .section-title { animation-delay: 0.08s; }
.story-section .section-title { animation-delay: 0.15s; }
.visa-section .section-title { animation-delay: 0.12s; }
.presents-section .section-title { animation-delay: 0.1s; }
.faq-section .section-title { animation-delay: 0.1s; }
.rsvp-section .section-title { animation-delay: 0.5s; }

.section-subtitle {
  text-align: center;
  color: var(--charcoal);
  opacity: 0;
  margin-bottom: 48px;
  animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Footer */
.footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--charcoal);
  color: white;
}

.footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
}

