/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --green-dark:    #3e4826;
  --green:         #68873c;
  --red:           #751e1a;
  --terracotta:    #cb672d;
  --ink:           #3b393b;
  --ink-deep:      #220200;
  --cream:         #fff8ef;
  --cream-warm:    #f5f0e8;
  --white:         #ffffff;
  --shadow:        rgba(0,0,0,0.18);

  --font-script:   'Hurricane', Georgia, serif;
  --font-serif:    Georgia, 'Times New Roman', serif;
  --font-sans:     'Georama', system-ui, sans-serif;
  --font-ui:       'Gudea', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-silk: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent; /* remove blue tap flash on mobile */
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Don't show the text-selection highlight when tapping/pressing interactive elements */
a, button, .nav-burger, .accom-btn, .hero-cta, .nav-rsvp-pill,
.lang-pill, .sound-btn, .day-night-toggle, [data-nav], [role="button"] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Ensure [hidden] always wins over any display property */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { font-family: var(--font-serif); background: var(--cream); color: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; }

/* ── Fade-up animations ───────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.12s; }
.fade-up.d2 { transition-delay: 0.26s; }
.fade-up.d3 { transition-delay: 0.40s; }
.fade-up.d4 { transition-delay: 0.54s; }


/* Scroll hearts */
.scroll-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 22px;
  color: #8fa878;
  opacity: 0;
  user-select: none;
  animation: heartFloat 2s var(--ease-out) forwards;
}
@keyframes heartFloat {
  0%   { opacity: 0;    transform: translateY(0) scale(0.7); }
  20%  { opacity: 0.6;  transform: translateY(-12px) scale(1); }
  100% { opacity: 0;    transform: translateY(-52px) scale(1); }
}

/* Accordion open animation */
/* Collapsible accordion body (FAQ + Gifts) — animates height on open/close */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-silk);
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,248,239,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(62,72,38,0.08);
  transition: background 0.3s;
}
#site-nav.scrolled { background: rgba(255,248,239,0.97); }
.nav-logo {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--green-dark);
  letter-spacing: 2px;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-rsvp-pill {
  background: var(--green-dark);
  color: var(--cream) !important;
  padding: 6px 14px;
  border-radius: 9999px;
}
.nav-burger {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--green-dark);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Hide nav entirely until user scrolls */
  #site-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
  }
  #site-nav.scrolled {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
}

/* When the mobile menu is open, keep the bar visible & above the overlay so the
   burger (now an X) stays clickable; drop the bar's own background. */
#site-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  z-index: 300;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Burger → cross: top/bottom bars rotate to meet, middle fades out */
#site-nav.open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#site-nav.open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#site-nav.open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
#nav-mobile {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
#nav-mobile.open { opacity: 1; transform: translateY(0); pointer-events: all; }

/* Menu items rise + fade in, staggered, once the overlay opens */
#nav-mobile .nav-mobile-logo,
#nav-mobile a {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
#nav-mobile.open .nav-mobile-logo,
#nav-mobile.open a { opacity: 1; transform: translateY(0); }
#nav-mobile.open .nav-mobile-logo { transition-delay: 0.10s; }
#nav-mobile.open a:nth-of-type(1) { transition-delay: 0.16s; }
#nav-mobile.open a:nth-of-type(2) { transition-delay: 0.21s; }
#nav-mobile.open a:nth-of-type(3) { transition-delay: 0.26s; }
#nav-mobile.open a:nth-of-type(4) { transition-delay: 0.31s; }
#nav-mobile.open a:nth-of-type(5) { transition-delay: 0.36s; }

/* The burger morphs into the X, so hide the separate close button */
.nav-mobile-close {
  display: none;
  position: absolute; top: 20px; right: 20px;
  color: var(--ink);
  padding: 8px;
}
.nav-mobile-logo {
  font-family: var(--font-script); font-size: 2rem;
  color: var(--green-dark); letter-spacing: 3px;
}
#nav-mobile a {
  font-family: var(--font-ui);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink);
}
#nav-mobile .nav-rsvp-pill {
  background: var(--green-dark); color: var(--cream);
  padding: 10px 28px; border-radius: 9999px;
}


/* ─────────────────────────────────────────────────────────────── */
/* 1. HERO                                                         */
/* ─────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  background: url('assets/hero.png') center center / cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  overflow: hidden;
}

/* Night illustration layer — cross-fades in/out on toggle */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/Nighthero.png') center center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  z-index: 0;
}
#hero.night-mode::before { opacity: 1; }

/* Tint overlay — fades in with the night image for text legibility */
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15, 20, 10, 0);
  transition: background 0.9s ease;
  pointer-events: none;
  z-index: 0;
}
#hero.night-mode::after { background: rgba(15, 20, 10, 0.15); }

/* Smoothly fade the hero text colors between day and night */
.hero-date, .hero-location,
#hero-partner1, #hero-partner2, .hero-amp,
.hero-cta-label, #hero-scroll-btn {
  transition: color 0.9s ease;
}

/* Top-right controls */
.hero-top-right {
  position: absolute; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 5px;
  align-items: flex-end;
  z-index: 10;
}

/* Language pill */
.lang-selector { position: relative; }
.lang-pill {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 4px 5px 4px 4px;
  cursor: pointer;
}
.lang-pill-inner {
  background: white;
  border-radius: 12px;
  padding: 5px 8px;
  display: flex; align-items: center;
}
.lang-code {
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: 1.2px;
  color: var(--ink); text-transform: uppercase;
}
.lang-chevron { color: var(--ink); }
.lang-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 60px;
  z-index: 20;
}
.lang-menu.open { display: flex; }
.lang-option {
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: 1.2px;
  color: var(--ink); text-transform: uppercase;
  padding: 7px 12px; border-radius: 7px;
  text-align: center;
  transition: background 0.15s;
}
.lang-option:hover { background: var(--cream); }

/* Day/night toggle */
.day-night-toggle {
  display: flex;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 4px;
}
.dn-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
  border-radius: 14px;
  color: var(--ink);
  transition: background 0.2s;
}
.dn-btn[aria-pressed="true"] { background: white; }

/* Hero center — Figma places text group at ~33% from top (50% − 115px in 665px frame) */
.hero-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 26px;
  text-align: center;
  position: absolute;
  top: 33%;
  left: 50%; transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: 2px;
  color: var(--green-dark);
  text-transform: uppercase;
}
.hero-names {
  font-family: var(--font-script);
  font-weight: 400;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.hero-names span { display: block; }
#hero-partner1, #hero-partner2 {
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  color: var(--green-dark);
  letter-spacing: 3px;
}
.hero-amp {
  font-size: clamp(1.7rem, 9vw, 2.4rem);
  color: var(--green);
  letter-spacing: 4px;
}
.hero-location {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: 2px;
  color: var(--green-dark);
  text-transform: uppercase;
}

/* Night mode text */
#hero.night-mode .hero-date,
#hero.night-mode .hero-location { color: rgba(255,248,239,0.8); }
#hero.night-mode #hero-partner1,
#hero.night-mode #hero-partner2 { color: rgba(255,248,239,0.95); }
#hero.night-mode .hero-amp { color: rgba(104,135,60,0.9); }

/* Hero CTA */
.hero-cta {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.hero-cta-label {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: 2.5px;
  color: var(--green-dark); text-transform: uppercase;
}
#hero-scroll-btn {
  color: var(--green-dark);
  animation: bounce 1.8s ease-in-out infinite;
}
#hero.night-mode .hero-cta-label,
#hero.night-mode #hero-scroll-btn { color: rgba(255,248,239,0.8); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}


/* ─────────────────────────────────────────────────────────────── */
/* 2. COUNTDOWN                                                    */
/* ─────────────────────────────────────────────────────────────── */
#countdown {
  position: relative;
  background: url('assets/countdown-bg.png') center / cover no-repeat;
  min-height: 230px;
  box-shadow: 0 2.5px 2.5px rgba(0,0,0,0.25);
  overflow: hidden;
}
.countdown-stage {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 38px 24px 48px;
  text-align: center;
}
.countdown-deco {
  position: absolute;
  pointer-events: none;
}
.countdown-deco-left {
  width: 63px;
  left: 13px;
  top: 120px;
  transform: scaleY(-1);
  transform-origin: center center;
}
.countdown-deco-right {
  width: 80px;
  right: 24px;
  top: 9px;
}
.countdown-inner { position: relative; z-index: 1; }
.countdown-label-sm {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 10px;
}
.countdown-heading {
  font-family: var(--font-script);
  font-size: 1.875rem; font-weight: 400;
  color: var(--green);
  margin-bottom: 22px;
}
.countdown-grid {
  display: flex; justify-content: center;
  gap: 26.875px;
}
.countdown-unit { text-align: center; }
.countdown-number {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.847rem;
  color: var(--green);
  letter-spacing: 1.2px;
  line-height: 30px;
  margin-bottom: 10px;
}
.countdown-unit-label {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: 2.5px;
  color: var(--ink-deep);
  text-transform: uppercase;
}


/* ─────────────────────────────────────────────────────────────── */
/* 3. OUR STORY                                                    */
/* ─────────────────────────────────────────────────────────────── */
#our-story {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
  background: #7a9060; /* fallback while bg loads */
}
#our-story::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/story-bg.png') center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
#our-story > * { position: relative; z-index: 1; }

.story-heading-group {
  text-align: center;
  padding: 0 32px;
  margin-bottom: 26px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.story-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}
#our-story h2 {
  font-family: var(--font-script);
  font-size: 1.9rem; font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--ink);
}

/* Marquee wrapper — overflow-x scroll, scrollbar hidden */
.story-cards-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0 32px;
  cursor: grab;
  user-select: none;
}
.story-cards-wrap::-webkit-scrollbar { display: none; }
.story-cards-wrap.dragging { cursor: grabbing; }
/* Inner strip — JS drives a continuous transform (auto-scroll + drag) */
.story-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  padding-left: 32px;
  padding-right: 32px;
  width: max-content;
  will-change: transform;
}

/* Polaroid cards */
.polaroid {
  flex-shrink: 0;
  width: 280px;
  background: var(--white);
  padding: 12px;
  filter: drop-shadow(0px 4px 11.75px rgba(0,0,0,0.25));
  border-radius: 3px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s;
}
.polaroid:first-child  { transform: rotate(-4deg); }
.polaroid:nth-child(3) { transform: rotate(2deg); }
.polaroid:nth-child(4) { transform: rotate(-1.5deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.03) !important; z-index: 2; }

.polaroid > img {
  width: 100%;
  aspect-ratio: 256 / 268;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}
.polaroid-text {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 5px;
  text-align: right;
}
.polaroid-location {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 1.63px;
  color: var(--ink);
}
/* Green caption style (first card) */
.polaroid-title.green {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1.2;
}
/* Red caption style — same font and colour as green */
.polaroid-title.red {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1.2;
}


/* ─────────────────────────────────────────────────────────────── */
/* 4. LOCATION                                                     */
/* ─────────────────────────────────────────────────────────────── */
#location {
  position: relative;
  padding: 64px 0;
  display: flex; flex-direction: column;
  align-items: center; gap: 48px;
  text-align: center;
  background: #fff8ef;
}

/* ── Top group: heading + card ── */
.location-top {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.location-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.location-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink); text-transform: uppercase;
}
.location-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--green); letter-spacing: 0.56px;
}

/* Polaroid venue card — exact Figma dimensions */
.location-card {
  width: 271px;
  height: 342px;
  border-radius: 5px;
  background: rgba(251,248,241,0.92);
  box-shadow: 0 23px 46px -25px rgba(0,0,0,0.1);
  position: relative;
  flex-shrink: 0;
}
/* White shadow layer underneath */
.location-card-inner {
  position: absolute; inset: 0;
  background: white;
  border-radius: 5px;
  box-shadow: 0 23px 46px -25px rgba(0,0,0,0.1);
}
/* Photo — padded inside card */
.location-photo {
  position: absolute;
  top: 11px; left: 15px;
  width: 241px; height: 252px;
  object-fit: cover;
  display: block;
}
/* Text block — right-aligned at bottom of card */
.location-card-text {
  position: absolute;
  right: 17px; left: 46px;
  top: 270px;
  text-align: right;
}
.location-city {
  font-family: var(--font-serif);
  font-size: 8.8px; letter-spacing: 2.46px;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 5px;
}
.location-venue-name {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.13rem; letter-spacing: 0.06px;
  color: var(--green);
  line-height: 1.25;
}

/* ── Bottom group: coords + button ── */
.location-bottom {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.location-coords {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1rem; letter-spacing: 1.75px;
  color: var(--green); text-transform: uppercase;
}
.location-maps-btn {
  display: flex; align-items: center; gap: 5px;
  background: white;
  border-radius: 47px;
  padding: 8px 12px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 0.05px;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}
.location-maps-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.13); }


/* ─────────────────────────────────────────────────────────────── */
/* 5. TIMELINE                                                     */
/* ─────────────────────────────────────────────────────────────── */
#timeline {
  position: relative;
  background: url('assets/timeline-bg.png') center center / cover no-repeat;
  overflow: hidden;
}
#timeline::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,248,239,0.55);
  pointer-events: none;
}
.timeline-stage {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px 56px;
  text-align: center;
}

/* Sun at top */
.timeline-sun {
  display: block;
  width: 83px; height: auto;
  margin: 0 auto 24px;
  position: relative; z-index: 1;
}

.timeline-content { position: relative; z-index: 1; }
.timeline-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink); text-transform: capitalize;
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--green);
  margin-bottom: 24px;
}
.timeline-date {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 12px; letter-spacing: 3.5px;
  color: var(--green);
  text-transform: capitalize;
  margin-bottom: 20px;
}
#timeline-list { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.timeline-time {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 12px; letter-spacing: 1.7px;
  color: var(--ink);
}
.timeline-event {
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
}
.timeline-divider {
  width: 1px; height: 14px;
  background: rgba(88,93,101,0.35);
  border-radius: 34px;
}

/* Tile — in document flow, centred below events */
.timeline-tile {
  display: block;
  width: 70px; height: auto;
  margin: 28px auto 0;
  position: relative; z-index: 1;
}

/* Scattered decorative illustrations */
.timeline-deco {
  position: absolute;
  pointer-events: none;
}
/* fish — left, angled pointing toward centre */
.timeline-deco-1 { width: 68px;  top: 255px; left: 5px;   transform: rotate(-8deg); }
/* orange — right, slight lean */
.timeline-deco-2 { width: 52px;  top: 295px; right: 14px; transform: rotate(-8deg); }
/* leafs / olive branch — left, natural diagonal */
.timeline-deco-3 { width: 68px;  top: 455px; left: 12px;  transform: rotate(-10deg); }
/* olive oil bottle — right, slight tilt */
.timeline-deco-4 { width: 50px;  top: 510px; right: 14px; transform: rotate(6deg); }


/* ─────────────────────────────────────────────────────────────── */
/* 6. DRESSCODE                                                    */
/* ─────────────────────────────────────────────────────────────── */
#dresscode {
  position: relative;
  background: url('assets/dresscode-bg.png') center center / cover no-repeat;
  padding: 64px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
#dresscode::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,248,239,0.6);
  pointer-events: none;
}
.dresscode-heading,
.dresscode-illustration,
.dresscode-name,
.dresscode-body { position: relative; }

.dresscode-label {
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 10px;
}
.dresscode-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--green);
}
.dresscode-illustration {
  width: min(245px, 70vw);
  aspect-ratio: 245 / 152;
  overflow: hidden;
  flex-shrink: 0;
}
.dresscode-illustration img {
  width: 100%;
  height: 134.13%;
  display: block;
  object-fit: fill;
}
.dresscode-name {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 14px;
  line-height: 17.188px;
  color: var(--green);
}
.dresscode-body {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 17.188px;
  letter-spacing: 1px;
  color: var(--ink);
  width: 100%;
  max-width: 420px;
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────── */
/* FOOTER                                                          */
/* ─────────────────────────────────────────────────────────────── */
#site-footer {
  position: relative;
  background: url('assets/dresscode-bg.png') center / cover no-repeat;
  height: 140px;
  overflow: hidden;
}

.footer-stage {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative lemons */
.footer-deco {
  position: absolute;
  pointer-events: none;
}
.footer-deco-left {
  width: 63px;
  left: 0;
  top: 25px;
  transform: rotate(30deg);
  transform-origin: center center;
}
.footer-deco-right {
  width: 89px;
  right: 0;
  top: 6px;
  transform: rotate(-18.73deg);
  transform-origin: center center;
}

/* Centre content */
.footer-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  padding: 0 32px;
}
.footer-names {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1;
}
.footer-name {
  color: var(--ink);
  letter-spacing: 3.375px;
}
.footer-amp {
  color: var(--green);
  letter-spacing: 3.75px;
}
.footer-meta {
  font-family: var(--font-serif);
  font-size: 7.125px;
  letter-spacing: 1.875px;
  text-transform: capitalize;
  color: var(--ink);
  line-height: 10px;
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────── */
/* 7. TRANSPORT                                                    */
/* ─────────────────────────────────────────────────────────────── */
#transport {
  background: var(--cream);
  padding: 64px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
.transport-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  width: 100%;
}
.transport-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  text-transform: capitalize;
  color: var(--ink);
}
.transport-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--green);
}
.transport-text {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ink);
  text-align: center;
  width: 100%;
  max-width: 420px;
}
.transport-img {
  width: 147px;
  height: 133px;
  object-fit: cover;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────── */
/* 11. RSVP                                                        */
/* ─────────────────────────────────────────────────────────────── */
#rsvp {
  position: relative;
  background: url('assets/accommodation-bg.png') center / cover no-repeat;
  padding: 64px 32px 56px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

/* Heading */
.rsvp-heading-group {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center; width: 100%;
}
.rsvp-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  text-transform: capitalize;
  color: var(--ink);
}
.rsvp-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--ink);
}
.rsvp-deadline {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ink);
  text-align: center;
}

/* Card (shared by form + thank you) */
.rsvp-card {
  background: #f9f8f5;
  border: 0.625px solid #f9f8f5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 0.625px 0.625px rgba(0,0,0,0.05);
  backdrop-filter: blur(1.25px);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Form fields ── */
#rsvp-form { display: flex; flex-direction: column; gap: 17.5px; }

.rsvp-field { display: flex; flex-direction: column; gap: 12px; }

.rsvp-field-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 1px;
  color: var(--ink);
}

.rsvp-input {
  width: 100%;
  background: #f7f6f2;
  border: 0.625px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.rsvp-input:focus { border-color: var(--terracotta); }
.rsvp-input::placeholder { color: var(--terracotta); opacity: 0.8; }

.rsvp-textarea { min-height: 50px; resize: vertical; }

/* Radio */
.rsvp-radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.rsvp-radio-label {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink); cursor: pointer;
}
.rsvp-radio-label input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 10px; height: 10px; flex-shrink: 0;
  border: 0.625px solid var(--ink);
  border-radius: 50%;
  position: relative; cursor: pointer;
  transition: border-color 0.2s;
}
.rsvp-radio-label input[type="radio"]:checked {
  border-color: var(--terracotta);
}
.rsvp-radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Checkbox */
.rsvp-checkbox-label {
  display: flex; align-items: center; gap: 7.5px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink); cursor: pointer;
}
.rsvp-checkbox-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 10px; height: 10px; flex-shrink: 0;
  border: 0.625px solid var(--ink);
  border-radius: 2.5px;
  position: relative; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.rsvp-checkbox-label input[type="checkbox"]:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.rsvp-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 2.5px;
  width: 4px; height: 6px;
  border: 1.2px solid white;
  border-top: none; border-left: none;
  transform: rotate(40deg);
}

/* Companions */
.rsvp-companions-hint {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 1px;
  color: var(--ink); line-height: 1.5;
  margin-top: -6px;
}
.rsvp-companion-summary {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}
.rsvp-companion-summary:empty { display: none; }
.rsvp-companion-count {
  display: flex; align-items: center; gap: 2.5px;
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 1px;
  color: var(--ink);
}
#rsvp-companions-list {
  display: flex; flex-direction: column; gap: 8px;
}
.rsvp-companion-btns { display: flex; gap: 7.5px; flex-wrap: wrap; }
.rsvp-add-btn {
  display: flex; align-items: center; gap: 6.25px;
  background: #f7f6f2;
  border: 0.625px solid var(--ink);
  border-radius: 23px;
  padding: 8px 12px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink); cursor: pointer;
  transition: background 0.2s;
}
.rsvp-add-btn:hover { background: #eeede8; }

/* Each companion card */
.rsvp-companion-row {
  display: flex; flex-direction: column; gap: 10px;
  background: white;
  border-radius: 8px;
  padding: 16px;
}
.rsvp-companion-header {
  display: flex; align-items: center; justify-content: space-between;
}
.rsvp-companion-label {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
}
.rsvp-companion-fields {
  display: flex; flex-direction: column; gap: 6px;
}
.rsvp-companion-input {
  border-color: var(--terracotta) !important;
}
.rsvp-companion-remove {
  background: none; border: none;
  display: flex; align-items: center;
  cursor: pointer; opacity: 0.45; padding: 0;
  transition: opacity 0.2s;
}
.rsvp-companion-remove:hover { opacity: 1; }

/* Error */
.rsvp-error {
  font-family: var(--font-serif);
  font-size: 11px; letter-spacing: 0.5px;
  color: #b81c1c; text-align: center;
}

/* Submit button */
.rsvp-submit-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--terracotta);
  border: none; border-radius: 16.25px;
  padding: 12px;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--cream); cursor: pointer;
  transition: opacity 0.2s;
}
.rsvp-submit-btn:hover { opacity: 0.88; }
.rsvp-submit-btn:disabled { opacity: 0.55; cursor: default; }

/* ── Thank you state ── */
.rsvp-thankyou {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  text-align: center;
  padding: 64px 24px;
}
.rsvp-thankyou-img {
  width: 78px; height: 72px;
  object-fit: contain; flex-shrink: 0;
}
.rsvp-thankyou-text {
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
}
.rsvp-thankyou-heading {
  font-family: var(--font-script);
  font-size: 1.25rem; font-weight: 400;
  color: var(--ink); letter-spacing: 1px;
  line-height: 1.4;
}
.rsvp-thankyou-sub {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 1px;
  color: var(--ink); line-height: 1.6;
  max-width: 279px;
}


/* ─────────────────────────────────────────────────────────────── */
/* 10. FAQ                                                         */
/* ─────────────────────────────────────────────────────────────── */
#faq {
  background: var(--cream);
  padding: 64px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.faq-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  width: 100%; text-align: center;
}
.faq-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  text-transform: capitalize;
  color: var(--ink);
}
.faq-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--green);
}
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.faq-item {
  border: 0.625px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 0.12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-btn:hover { background: rgba(0,0,0,0.03); }
.faq-chevron {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer-inner {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ink);
  padding: 0 16px 14px;
}


/* ─────────────────────────────────────────────────────────────── */
/* 9. GIFTS                                                        */
/* ─────────────────────────────────────────────────────────────── */
#gifts {
  position: relative;
  background: url('assets/dresscode-bg.png') center / cover no-repeat;
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}

.gifts-deco { width: 91px; height: 40px; object-fit: contain; flex-shrink: 0; }
.gifts-deco-top  { /* upright — as-is */ }
.gifts-deco-bottom { /* gifts2.png is already the mirrored version */ }

.gifts-heading {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  width: 100%;
}
.gifts-label {
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink);
}
.gifts-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  color: var(--ink);
}

/* White card */
.gifts-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 15px;
  box-shadow: 0 0.625px 0.625px rgba(0,0,0,0.05);
  backdrop-filter: blur(1.25px);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}
.gifts-intro {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 17.344px;
  letter-spacing: 1px;
  color: var(--ink);
}

/* Option rows */
.gifts-options {
  display: flex; flex-direction: column; gap: 12px;
}
.gifts-option {
  border: 0.625px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.gifts-option-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.6);
  border: none;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.gifts-option-btn:hover { background: rgba(255,255,255,0.85); }
.gifts-chevron {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.gifts-option.open .gifts-chevron {
  transform: rotate(180deg);
}
.gifts-option-details { background: rgba(255,255,255,0.6); }
.gifts-option-details-inner {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ink);
  padding: 0 16px 12px;
}


/* ─────────────────────────────────────────────────────────────── */
/* 8. ACCOMMODATION                                                */
/* ─────────────────────────────────────────────────────────────── */
#accommodation {
  position: relative;
  background: url('assets/accommodation-bg.png') center / cover no-repeat;
  padding: 64px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  overflow: hidden;
}

.accom-heading {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
}
.accom-label {
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 2.4px;
  color: var(--ink);
}
.accom-title {
  font-family: var(--font-script);
  font-size: 1.75rem; font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.accom-intro {
  font-family: var(--font-serif);
  font-size: 12px; line-height: 1.6;
  letter-spacing: 1px;
  color: var(--ink);
  text-align: center;
  white-space: pre-wrap;
  width: 100%;
  max-width: 420px;
}

.accom-cards {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
  max-width: 420px;
}

/* Hotel card */
.accom-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 0.625px 0.625px rgba(0,0,0,0.05);
  backdrop-filter: blur(1.25px);
  width: 100%;
}
.accom-card-info {
  display: flex; flex-direction: column; gap: 12px;
}
.accom-card-name {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 20px;
  line-height: 1.2;
  color: var(--green);
}
.accom-card-location {
  display: flex; align-items: center; gap: 2.5px;
}
.accom-card-location img {
  width: 16px; height: 16px; flex-shrink: 0;
}
.accom-card-location span {
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: #050018;
  line-height: 17.344px;
}
.accom-card-desc {
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
  line-height: 1.5;
}
.accom-card-discount {
  display: flex; align-items: center; gap: 2.5px;
  flex-wrap: wrap;
}
.accom-card-discount-text {
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ink);
  line-height: 17.344px;
  white-space: nowrap;
}
.accom-code-badge {
  background: #e1edd1;
  border-radius: 2.5px;
  padding: 4px 8px;
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 10px;
  color: var(--green);
  line-height: 12.5px;
  white-space: nowrap;
}

/* View hotel button */
.accom-btn {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  background: var(--terracotta);
  border-radius: 16.875px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--cream);
  transition: opacity 0.2s;
}
.accom-btn:hover { opacity: 0.85; }
.accom-btn img {
  width: 16px; height: 16px; flex-shrink: 0;
}
.accom-btn span {
  font-family: var(--font-serif);
  font-size: 14px; letter-spacing: 0.05px;
  color: var(--cream);
  line-height: 17.344px;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────── */
/* SOUND BUTTON                                                    */
/* ─────────────────────────────────────────────────────────────── */
.sound-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 50;
  transition: transform 0.15s, background 0.2s;
}
.sound-btn:hover { transform: scale(1.08); }


/* ─────────────────────────────────────────────────────────────── */
/* ENVELOPE INTRO                                                  */
/* ─────────────────────────────────────────────────────────────── */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.9s ease;
}
#envelope-overlay.dissolving {
  opacity: 0;
  pointer-events: none;
}
/* During Summer.mp4 the overlay becomes one viewport tall and absolute, so the
   guest can scroll past it into the invite while the video plays. */
#envelope-overlay.scrollable {
  position: absolute;
  bottom: auto;
  height: 100svh;
}
#envelope-video,
#summer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Crossfade: envelope fades out as Summer fades in over it */
#envelope-video { transition: opacity 0.6s ease; }
#summer-video   { opacity: 0; transition: opacity 0.6s ease; }
#summer-video.show { opacity: 1; }

/* Hero text over Summer.mp4 — same position/styling as the real hero (top 33%) */
#envelope-hero-text {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
#envelope-hero-text.show { opacity: 1; }
.eht-date, .eht-location {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: 2px;
  color: var(--green-dark);
  text-transform: uppercase;
}
.eht-names {
  font-family: var(--font-script);
  font-weight: 400;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.eht-p1, .eht-p2 {
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  color: var(--green-dark);
  letter-spacing: 3px;
}
.eht-amp {
  font-size: clamp(1.7rem, 9vw, 2.4rem);
  color: var(--green);
  letter-spacing: 4px;
}
/* Cloned hero controls (language, day/night, "Celebrate with us") over Summer.mp4 */
#envelope-hero-extras {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;        /* visual only during the intro */
  opacity: 0;
  transition: opacity 0.6s ease;
}
#envelope-hero-extras.show { opacity: 1; }
/* The cloned scroll arrow lost its id-based styling — restore green + bounce */
#envelope-hero-extras .hero-cta button {
  color: var(--green-dark);
  animation: bounce 1.8s ease-in-out infinite;
}
#envelope-tap-hint {
  position: absolute;
  bottom: 14%;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s ease;
}
#envelope-tap-hint.hidden {
  opacity: 0;
  pointer-events: none;
}
.envelope-hint-text {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(62, 72, 38, 0.85);
  text-shadow: 0 1px 6px rgba(255,248,239,0.6);
  animation: hint-pulse 2s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.4; }
}
