/* ─── GLOBAL RESET ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar (cosmetic — scroll still works) */
html { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }

button,
a,
input,
select,
textarea,
[role="button"],
[role="option"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(130, 91, 64, 0.4);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --cream:        #f5f3ee;
  --terracotta:   #c65d3b;
  --coral:        #c9623e;
  --green-dark:   rgba(61, 80, 63, 0.92);
  --brown-dark:   #4d3120;
  --brown-mid:    #825b40;
  --brown-btn:    #d87953;
  --polaroid-bg:  #edece4;
  --form-bg:      #f9f8f5;
  --input-bg:     #f7f6f2;
  --input-border: #c4b9b0;
  --white:        #ffffff;
}

body {
  font-family: Georgia, serif;
  color: var(--brown-mid);
  background: var(--cream);
  overflow-x: clip;
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────────────────── */
.display       { font-family: 'Gravitas One', cursive; }
.ui-label      { font-family: 'Mooli', sans-serif; }
.mono          { font-family: Menlo, 'Courier New', monospace; }

/* ─── SECTION LAYOUT ─────────────────────────────────────────────────────── */
section { position: relative; }

/* ─── CONTENT MAX-WIDTH ──────────────────────────────────────────────────── */
/* Backgrounds stay full-width; only text & cards are capped at 480px        */
#countdown > *,
#location > *,
#dresscode > *,
#accommodation > *,
#transport > *,
#faq > *,
#rsvp > *,
footer > * {
  max-width: 480px;
  box-sizing: border-box;
}

/* Items that should stretch to full available width within the 480px cap */
#faq-list,
#accommodation-list,
.rsvp-header-group,
#rsvp-card,
.accommodation-intro,
.faq-heading,
.faq-label,
.transport-body,
.transport-note,
.location-heading-group,
.dresscode-heading-group,
.dresscode-title,
.dresscode-body,
.countdown-heading-group {
  width: 100%;
}

/* ─── FADE-UP SCROLL REVEAL ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.22s; }
.fade-up.d3 { transition-delay: 0.38s; }
.fade-up.d4 { transition-delay: 0.55s; }
.fade-up.d5 { transition-delay: 0.70s; }


/* ─── SITE NAV ───────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
#site-nav.scrolled {
  pointer-events: auto;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(77, 49, 32, 0.08);
}

.nav-logo {
  font-family: 'Gravitas One', cursive;
  font-size: 15px;
  color: var(--brown-dark);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  white-space: nowrap;
}
#site-nav.scrolled .nav-logo {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#site-nav.scrolled .nav-links {
  opacity: 1;
  pointer-events: auto;
}
.nav-links a {
  font-family: 'Mooli', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terracotta); }

.nav-rsvp-pill {
  border: 1.5px solid var(--terracotta) !important;
  color: var(--terracotta) !important;
  border-radius: 999px;
  padding: 6px 16px !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-rsvp-pill:hover {
  background: var(--terracotta) !important;
  color: #fff !important;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#site-nav.scrolled .nav-burger {
  opacity: 1;
  pointer-events: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown-dark);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
#site-nav.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#site-nav.open .nav-burger span:nth-child(2) { opacity: 0; }
#site-nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
#nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-logo {
  font-family: 'Gravitas One', cursive;
  font-size: 24px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
#nav-mobile a {
  font-family: 'Mooli', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
#nav-mobile a:hover { color: var(--terracotta); }
#nav-mobile .nav-rsvp-pill {
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta) !important;
  border-radius: 999px;
  padding: 10px 32px;
  margin-top: 8px;
}
#nav-mobile .nav-rsvp-pill:hover {
  background: var(--terracotta) !important;
  color: #fff !important;
}
.nav-mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brown-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.nav-mobile-close:hover { background: rgba(130, 91, 64, 0.1); }

@media (max-width: 699px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 1. HERO */
/* ─────────────────────────────────────────────────────────────────────────── */
#hero {
  height: 100vh;        /* reliable across all browsers and iframe contexts */
  min-height: 600px;    /* floor for very small screens */
  background: #ede5d6; /* warm sand — matches illustration sky while hero-day.jpg loads */
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Background layers — divs fill the hero reliably without any img height:auto issues */
#hero-day-layer,
#hero-night-layer {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

#hero-day-layer   { background-image: url('assets/hero-day.jpg'); }
#hero-night-layer { background-image: url('assets/hero-night.png'); }

#hero.hero-day   #hero-day-layer   { opacity: 1; }
#hero.hero-night #hero-night-layer { opacity: 1; }

/* Hero background video — plays after envelope, sits above image layers */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
/* Visible while playing (no day/night class set) */
#hero:not(.hero-day):not(.hero-night) #hero-video { opacity: 1; }
/* Faded out when user manually picks a mode, or video has ended */
#hero-video.faded { opacity: 0; }

/* Subtle gradient overlay at bottom — sits above video so it darkens both images & video */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(77, 49, 32, 0) 0%,
    rgba(77, 49, 32, 0.05) 75%,
    rgba(77, 49, 32, 0.55) 100%
  );
  z-index: 2;
}

#hero > *:not(#hero-day-layer):not(#hero-night-layer):not(#hero-video) {
  z-index: 3;
}

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

/* ── Language selector ── */
.lang-selector { position: relative; }

.lang-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;                       /* matches toggle height */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 999px;
  padding: 0 10px 0 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-pill:hover { background: rgba(255, 255, 255, 0.75); }

.lang-active-pill {
  display: flex;
  align-items: center;
}
.lang-code {
  font-family: 'Mooli', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #3f3830;
}
.lang-chevron {
  color: #3f3830;
  transition: transform 0.25s;
}
.lang-selector.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  background: var(--form-bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(77, 49, 32, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 72px;
}
.lang-selector.open .lang-menu { display: flex; }

.lang-option {
  font-family: 'Mooli', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brown-dark);
  background: none;
  border: none;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.lang-option:hover,
.lang-option.active { background: rgba(198, 93, 59, 0.08); color: var(--terracotta); }

/* ── Day / Night Toggle ── */
.sunset-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  border-radius: 999px;
  padding: 4px;
}

.sunset-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(63, 56, 48, 0.55);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.sunset-btn[aria-pressed="true"] {
  background: #ffffff;
  color: var(--terracotta);
}
.sunset-btn:hover:not([aria-pressed="true"]) {
  background: rgba(255, 255, 255, 0.4);
  color: #3f3830;
}

/* Night mode — keep toggle readable on dark background */
#hero.hero-night .sunset-toggle {
  background: rgba(255, 255, 255, 0.25);
}
#hero.hero-night .sunset-btn {
  color: rgba(255, 255, 255, 0.6);
}
#hero.hero-night .sunset-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.9);
  color: var(--terracotta);
}
#hero.hero-night .lang-pill {
  background: rgba(255, 255, 255, 0.25);
}
#hero.hero-night .lang-code,
#hero.hero-night .lang-chevron {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Hero night mode: "Celebrate with us" label ── */
#hero.hero-night .hero-cta-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Hero center content ── */
.hero-center-group {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26.25px;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.hero-date {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 1.875px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color 1.4s ease;
}

.hero-names {
  font-family: 'Gravitas One', cursive;
  font-size: clamp(17px, 4.5vw, 26px);
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 3.375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  line-height: 21.563px;
  transition: color 1.4s ease;
}
.hero-names .amp {
  font-size: clamp(18px, 4.8vw, 28px);  /* amp is slightly larger than names per Figma */
  color: var(--terracotta);
  letter-spacing: 3.75px;
  line-height: 21.563px;
}

/* Day mode — darken text for readability on bright image */
#hero.hero-day .hero-names,
#hero.hero-day .hero-date,
#hero.hero-day .hero-location {
  color: var(--brown-dark);
  text-shadow: none;
}
#hero.hero-day .hero-names .amp {
  color: var(--terracotta);
}


.hero-location {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 1.875px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  transition: color 1.4s ease;
}

/* CTA arrow at bottom */
.hero-cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-cta-label {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(86, 56, 37, 0.8);
}
#hero-scroll-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  animation: bounce-arrow 2.2s ease-in-out infinite;
}
#hero-scroll-btn:hover {
  color: #ffffff;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Sound button — fixed bottom-right */
.sound-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: background 0.2s, transform 0.15s;
}
.sound-btn:hover {
  background: var(--brown-btn);
  transform: scale(1.06);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 2. COUNTDOWN  (inside #story-track sticky area) */
/* ─────────────────────────────────────────────────────────────────────────── */
#story-track {
  position: relative;
}
#story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#countdown {
  background: url('assets/countdown.png') center center / cover no-repeat;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  padding: 40px 31px 46px;
  text-align: center;
}

.countdown-deco {
  display: none;
}

.countdown-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11.875px;
}

.cd-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6c4b34;
}

.countdown-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #65452f;
  font-weight: 400;
  letter-spacing: 0.5625px;
  text-shadow: 0px 0.625px 1.25px rgba(54, 77, 99, 0.1);
}

.countdown-line {
  width: 40px;
  height: 0.625px;
  background: rgba(88, 93, 101, 0.25);
  margin: 0 auto;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;
  padding: 10px 42px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.countdown-number {
  font-family: 'Gravitas One', cursive;
  font-size: clamp(26px, 7vw, 30px);
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: 1.2px;
}
.countdown-label {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6a4a32;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 3. OUR STORY */
/* ─────────────────────────────────────────────────────────────────────────── */
#our-story {
  flex: 1 1 auto;
  background: url('assets/Our story.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 48px;
  overflow: hidden;
  position: relative;
}

.story-heading-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.story-chapeau {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.story-heading-group h2 {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.5625px;
}

.story-cards-wrap {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  flex-shrink: 0;
}
.story-cards-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 64px;
  padding: 8px calc(50% - 140px) 24px;
  align-items: flex-start;
  will-change: transform;
  width: max-content;
}

/* Story polaroid card */
.story-card {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 349px;
  background: var(--polaroid-bg);
  border-radius: 3px;
  padding: 12px;
  box-shadow: 0 4px 11.75px rgba(0,0,0,0.25);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.story-card:nth-child(odd)  { transform: rotate(-4deg); }
.story-card:nth-child(even) { transform: rotate(3deg); }
.story-card:hover { transform: rotate(0) scale(1.04); }

.story-card-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
}
.story-card-caption {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 100%;
}
.story-card-location {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #64432e;
  line-height: normal;
}
.story-card-text {
  font-family: 'Gravitas One', cursive;
  font-size: 17px;
  color: #cc6642;
  font-weight: 400;
  line-height: normal;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 4. LOCATION */
/* ─────────────────────────────────────────────────────────────────────────── */
#location {
  background: var(--terracotta);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  position: relative;
  overflow: hidden;
}

.location-heading-group { }
.location-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--polaroid-bg);
  margin-bottom: 12px;
}
.location-heading {
  font-family: 'Gravitas One', cursive;
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 400;
  color: var(--polaroid-bg);
  letter-spacing: 0.5625px;
  white-space: nowrap;
}

.location-polaroid {
  display: flex;
  flex-direction: column;
  background: rgba(251, 248, 241, 0.92);
  border-radius: 3px;
  padding: 12px;
  box-shadow: 0 4px 11.75px rgba(0,0,0,0.25);
  width: 280px;
  height: 349px;
  margin: 0;
  gap: 12px;
}
.location-polaroid img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  display: block;
}
.location-polaroid-caption {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.location-polaroid-sub {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #64432e;
  line-height: normal;
}
.location-polaroid-name {
  font-family: 'Gravitas One', cursive;
  font-size: 17px;
  color: #cc6642;
  font-weight: 400;
  line-height: normal;
}

.location-coords {
  font-family: 'Gravitas One', cursive;
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 1.75px;
  text-transform: uppercase;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #714d36;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.05px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}
.maps-btn:hover {
  background: #fff;
  color: #714d36;
}
.maps-btn img { filter: none; }

/* ─────────────────────────────────────────────────────────────────────────── */
/* 5. PROGRAM */
/* ─────────────────────────────────────────────────────────────────────────── */
#program {
  background: var(--cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.program-flags {
  width: 100%;
  height: 59px;
  background: url('assets/flags.svg') repeat-x left top;
  background-size: auto 59px;
  display: block;
  flex-shrink: 0;
}

.program-inner {
  width: 100%;
  max-width: 480px;
  padding: 19px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}

.program-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.program-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #d3704b;
  font-weight: 400;
  letter-spacing: 0.5625px;
}
.program-date {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 12px;
  color: #d77650;
  letter-spacing: 3.5px;
}

/* Centered timeline */
.program-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  width: 100%;
}
.program-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}
.program-time {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #6a4731;
  letter-spacing: 1.6875px;
  text-transform: capitalize;
}
.program-event {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 12px;
  color: #6a4731;
  letter-spacing: 2.8px;
  text-transform: capitalize;
}
.program-divider {
  width: 0.625px;
  height: 12.5px;
  background: rgba(88, 93, 101, 0.35);
}

.program-bottom-img {
  width: 100%;
  display: block;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 6. DRESSCODE */
/* ─────────────────────────────────────────────────────────────────────────── */
#dresscode {
  background: var(--cream);
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.dresscode-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dresscode-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #d3704b;
}
.dresscode-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #d3704b;
  font-weight: 400;
  letter-spacing: 0.5625px;
}

.dresscode-illustration {
  width: 100%;
}
.dresscode-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.dresscode-title {
  font-family: Georgia, serif;
  font-size: 16px;
  color: var(--brown-mid);
  font-weight: 400;
  letter-spacing: 0.5625px;
  text-align: center;
}

.dresscode-body {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 17.188px;
  color: var(--brown-mid);
  text-align: center;
  letter-spacing: 0.3125px;
  white-space: pre-wrap;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 7. ACCOMMODATION */
/* ─────────────────────────────────────────────────────────────────────────── */
#accommodation {
  background: url('assets/Accomodation.png') center center / cover no-repeat;
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19.375px;
  position: relative;
}
#accommodation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 80, 63, 0.62);
  pointer-events: none;
  z-index: 0;
}
#accommodation > * {
  position: relative;
  z-index: 1;
}

.accommodation-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.accommodation-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.accommodation-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5625px;
}

.accommodation-intro {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 17.188px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.3125px;
  max-width: 480px;
  white-space: pre-wrap;
}

#accommodation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

/* Hotel card */
.hotel-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 0.625px 0.625px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(1.25px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hotel-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hotel-name {
  font-family: 'Gravitas One', cursive;
  font-size: 18px;
  color: #d97c55;
  font-weight: 400;
  line-height: normal;
}
.hotel-location-row {
  display: flex;
  align-items: center;
  gap: 2.5px;
}
.hotel-location-row img {
  flex-shrink: 0;
  display: inline-block;
}
.hotel-location {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 12px;
  color: #7c563c;
  letter-spacing: 0.05px;
}
.hotel-desc {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: normal;
  color: #825b40;
  letter-spacing: 0.05px;
}
.hotel-discount {
  display: flex;
  align-items: center;
  gap: 2.5px;
  flex-wrap: wrap;
}
.hotel-discount-prefix {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #0f1c00;
  letter-spacing: 0.05px;
}
.hotel-code {
  font-family: Menlo, 'Courier New', monospace;
  background: rgba(80, 97, 81, 0.15);
  color: #506151;
  padding: 1.25px 5px;
  border-radius: 2.5px;
  font-size: 8.75px;
}
.hotel-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #d87953;
  color: #fff;
  border-radius: 16.875px;
  padding: 8px 12px;
  font-family: Georgia, serif;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  letter-spacing: 0.05px;
}
.hotel-btn:hover { background: var(--terracotta); }

/* ─────────────────────────────────────────────────────────────────────────── */
/* 8. TRANSPORT */
/* ─────────────────────────────────────────────────────────────────────────── */
#transport {
  background: var(--cream);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19.375px;
}

.transport-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.transport-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.transport-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #d3704b;
  font-weight: 400;
  letter-spacing: 0.5625px;
}
.transport-body {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 17.344px;
  color: #6a4731;
  text-align: center;
  letter-spacing: 0.05px;
  max-width: 320px;
}
.transport-illustration {
  width: 311px;
  max-width: 100%;
  height: auto;
}
.transport-note {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 17.344px;
  color: #6a4731;
  text-align: center;
  letter-spacing: 0.05px;
  max-width: 270px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 9. GIFTS */
/* ─────────────────────────────────────────────────────────────────────────── */
#gifts {
  background: var(--coral);
  padding: 0;
  text-align: center;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gifts-deco {
  width: 100%;
  height: 59px;
  background: url('assets/flagswhite.svg') repeat-x left top;
  background-size: auto 59px;
  display: block;
  flex-shrink: 0;
}

.gifts-inner {
  width: 100%;
  max-width: 480px;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19.375px;
}

.gifts-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.gifts-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
}
.gifts-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5625px;
}

.gifts-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 0.625px 0.625px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(1.25px);
  -webkit-backdrop-filter: blur(1.25px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}
.gifts-message {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 17.344px;
  color: #835c41;
  text-align: left;
  letter-spacing: 0.05px;
  width: 100%;
}

/* Accordion items container */
#gifts-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Accordion — full-width rounded rows */
.accordion-item {
  border: 0.625px solid #c3b2a5;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  padding: 4px 0;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.accordion-label {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #835c41;
  letter-spacing: 0.05px;
}
.chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  display: inline-flex;
  color: #835c41;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
}
.accordion-detail {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.65;
  color: var(--brown-mid);
  padding: 4px 16px 14px;
  white-space: pre-line;
  text-align: left;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 10. FAQ */
/* ─────────────────────────────────────────────────────────────────────────── */
#faq {
  background: var(--cream);
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19.375px;
}

.faq-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.faq-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.faq-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 22px;
  color: #d3704b;
  font-weight: 400;
  letter-spacing: 0.5625px;
}

#faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.faq-item {
  border: 0.625px solid #b5a295;
  border-radius: 12px;
  overflow: hidden;
  padding: 4px 0;
  width: 100%;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.faq-q {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #714d36;
  flex: 1;
  letter-spacing: 0.05px;
  line-height: 17.344px;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: #714d36;
  display: inline-flex;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a {
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.65;
  color: var(--brown-mid);
  padding: 4px 16px 14px;
}

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

.rsvp-header-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rsvp-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rsvp-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
}
.rsvp-heading {
  font-family: 'Gravitas One', cursive;
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5625px;
}
.rsvp-deadline-text {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #fff;
  text-align: center;
}
.rsvp-deadline {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #fff;
}

#rsvp-card {
  background: var(--form-bg);
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(1.25px);
  text-align: left;
}

.rsvp-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 17.5px;
}
.rsvp-field-label {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.05px;
  color: #0f1c00;
}
.rsvp-radio-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rsvp-radio-option {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--brown-dark);
}
.rsvp-radio-option input[type="radio"] {
  accent-color: var(--terracotta);
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.rsvp-input,
.rsvp-textarea {
  background: #f7f6f2;
  border: 0.625px solid #766f67;
  border-radius: 8px;
  padding: 12px;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--brown-dark);
  width: 100%;
  transition: border-color 0.2s;
}
.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: #766f67;
}
.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--terracotta);
  outline: none;
}
.rsvp-textarea {
  min-height: 96px;
  resize: vertical;
}

.rsvp-companions-desc {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--brown-mid);
  line-height: 1.5;
}
.rsvp-add-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rsvp-add-btn {
  background: #f7f6f2;
  border: 0.625px solid #3f3830;
  color: #3f3830;
  border-radius: 23px;
  padding: 8px 12px;
  font-family: Georgia, serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.rsvp-add-btn:hover {
  background: #edecea;
}

.rsvp-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--brown-dark);
}
.rsvp-checkbox-row input[type="checkbox"] {
  accent-color: var(--terracotta);
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* Hide empty companion containers so they don't create flex gaps */
#companion-counter:empty,
#companion-list:empty {
  display: none;
}

/* Companion card */
.companion-card {
  background: rgba(198, 93, 59, 0.05);
  border: 1px solid rgba(198, 93, 59, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.companion-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.companion-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--brown-dark);
}
.companion-icon {
  width: 16px; height: 16px;
  opacity: 0.7;
}
.trash-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brown-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.trash-btn:hover { background: rgba(198, 93, 59, 0.1); }

/* Submit button */
#rsvp-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  background: #d77852;
  color: #fff;
  border: none;
  border-radius: 16.25px;
  padding: 12px;
  font-family: Georgia, serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
#rsvp-submit:hover { background: #d77852; }
#rsvp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.rsvp-success {
  text-align: center;
  padding: 32px 0;
}
.rsvp-success-text {
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--brown-dark);
  margin-top: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 12. ENVELOPE OVERLAY */
/* ─────────────────────────────────────────────────────────────────────────── */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1c0e06;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.9s ease;
}

#envelope-overlay.dissolving {
  opacity: 0;
  pointer-events: none;
}

#envelope-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#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: 'Mooli', sans-serif;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: capitalize;
  color: rgba(255, 255, 255, 0.85);
  animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.4;  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 13. FOOTER */
/* ─────────────────────────────────────────────────────────────────────────── */
footer#footer {
  background: url('assets/Footer.png') center center / cover no-repeat;
  padding: 39px 24px 40px;
  text-align: center;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin: 0 auto;
}

.footer-names {
  font-family: 'Gravitas One', cursive;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-name {
  font-size: 17px;
  color: #4d3120;
  letter-spacing: 3.375px;
  text-transform: uppercase;
}
.footer-amp {
  font-size: 18.75px;
  color: #be5333;
  letter-spacing: 3.75px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.875px;
  text-transform: uppercase;
  color: #4d3120;
  line-height: normal;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* MOBILE BREAKPOINTS */
/* ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 599px) {
  .hero-center-group { white-space: normal; padding: 0 24px; }
  .countdown-grid    { gap: 20px; }
  .story-cards-track { gap: 32px; padding: 8px calc(50% - 140px) 24px; }
  #rsvp-card         { padding: 24px 18px; }
  /* location polaroid keeps fixed 180px width per design */

}
