/* ── CUSTOM SCRIPT FONT ─────────────────────────────────────── */
@font-face {
  font-family: 'SloopScript';
  src: url('CountryClub-Script-Exfontedd5.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --cream:      #E8E1D1;
  --rose:       #C38380;
  --dusty-pink: #B77D77;
  --terracotta: #A86A65;
  --rust:       #9F544A;
  --clay:       #9C7164;
  --taupe:      #AB9882;

  --bg:         #EDE7D9;
  --card-bg:    #F4F0E8;
  --text-main:  #7A4B46;
  --text-light: #AB9882;
  --border:     rgba(168,106,101,0.25);

  --font-serif: 'IM Fell English', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
  --font-body:  'Jost', 'Gill Sans', sans-serif;

  --shadow-card: 0 8px 40px rgba(130,80,70,0.10), 0 2px 8px rgba(130,80,70,0.07);
  --shadow-text: 0 2px 12px rgba(130,80,70,0.13);
  --radius: 4px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Paper grain texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── INTRO OVERLAY ──────────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle paper texture on overlay bg */
#intro-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── ENVELOPE SCENE ─────────────────────────────────────────── */
.intro-envelope-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Nudge up slightly to visually counteract the hint text below */
  padding-bottom: 60px;
}

.env-img-wrap {
  position: absolute;
  width: min(1000px, 96vw);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.env-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Strip the black background from the PNG using multiply blend */
  mix-blend-mode: multiply;
  display: block;
}

/* Closed envelope */
.env-closed-wrap {
  cursor: pointer;
  animation: envFadeIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity  0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.env-closed-wrap:hover {
  transform: scale(1.025) translateY(-4px);
}

/* "Click to open" hint */
.env-hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.75;
  white-space: nowrap;
  animation: hintPulse 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transition: opacity 0.4s ease;
}

.env-closed-wrap.clicked .env-hint {
  opacity: 0;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.85; }
}

/* Open envelope — hidden until click */
.env-open-wrap {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(6px);
  transition: opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.env-open-wrap.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Closed envelope floats up and fades out on click */
.env-closed-wrap.clicked {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04) translateY(-10px);
  pointer-events: none;
  transition: opacity    0.65s cubic-bezier(0.4, 0, 0.6, 1),
              transform  0.65s cubic-bezier(0.4, 0, 0.6, 1),
              visibility 0s   linear 0.65s;
}

@keyframes envFadeIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
#main-site { position: relative; z-index: 1; }

#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

/* Nav text white when transparent (over hero photo) */
#site-nav:not(.scrolled) .nav-monogram { color: rgba(244,240,232,0.92); }
#site-nav:not(.scrolled) .nav-links a  { color: rgba(244,240,232,0.82); }
#site-nav:not(.scrolled) .nav-links a:hover { color: #fff; }

#site-nav.scrolled {
  padding: 10px 48px;
  background: rgba(237,231,217,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-monogram {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--terracotta); }

/* ── SECTION COMMONS ────────────────────────────────────────── */
section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'SloopScript', var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: normal;
  color: var(--terracotta);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: var(--shadow-text);
}

/* ── SCROLL TEXT REVEAL (Framer TextScroll equivalent) ──────── */
.text-scroll-section {
  position: relative;
  height: 500vh;
  overflow: visible;
  margin-bottom: 0;
}

.text-scroll-sticky {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 5vw;
  pointer-events: none;
  z-index: 1;
}

/* Label: "Our Story" — letter reveal */
.text-scroll-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
  white-space: pre-wrap;
}

/* Title: "A Love Worth Celebrating" — word reveal */
.text-scroll-title {
  font-family: 'SloopScript', var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: normal;
  color: var(--terracotta);
  line-height: 1.15;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

/* Divider */
.text-scroll-divider {
  width: 300px;
  max-width: 90%;
  margin-bottom: 32px;
  opacity: 0;
}

/* Body paragraphs */
.text-scroll-body {
  max-width: 600px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--clay);
  white-space: pre-wrap;
  margin-bottom: 0;
}

/* Signature */
.text-scroll-sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-top: 24px;
  white-space: pre-wrap;
}

/* Individual animated tokens */
.ts-token {
  display: inline;
  opacity: 0;
}
.ts-token.ts-letter {
  display: inline-block;
}
/* Ghost layer */
.ts-ghost {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.15;
}

/* ── BIBLE VERSE ─────────────────────────────────────────────── */
.bible-verse-block {
  text-align: center;
  padding: 48px 5vw 40px;
  max-width: 560px;
  margin: 0 auto;
}

.bible-verse-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--terracotta);
  line-height: 1.7;
  margin-bottom: 12px;
}

.bible-verse-ref {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.85;
}

.story-divider {
  width: 300px;
  max-width: 90%;
  margin: 0 auto 48px;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(195,131,128,0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(168,106,101,0.06), transparent);
}

.hero-floral-left,
.hero-floral-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 600px;
  pointer-events: none;
}
.hero-floral-left  { left: 0; }
.hero-floral-right { right: 0; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  transition-delay: 0.1s;
}

.hero-names {
  font-family: 'SloopScript', var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 400;
  font-style: normal;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(130,80,70,0.15);
  transition-delay: 0.2s;
}

.hero-names span { color: var(--rose); }

/* ── HERO SLIDESHOW ─────────────────────────────────────────── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  transform: scale(1.04);
  animation: heroZoom 8s ease-in-out infinite alternate;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30,12,8,0.38) 0%,
    rgba(20,8,5,0.52) 50%,
    rgba(30,12,8,0.60) 100%
  );
}

/* Keep text above slideshow */
#hero .hero-floral-left,
#hero .hero-floral-right { z-index: 2; }

#hero .hero-inner { z-index: 3; }

/* Adjust text colors to pop on photo background */
#hero .hero-tag    { color: rgba(244,220,210,0.85); }
#hero .hero-names  { color: #F4EDE8; text-shadow: 0 4px 28px rgba(0,0,0,0.45); }
#hero .hero-names span { color: rgba(220,165,155,0.95); }
#hero .hero-date   { color: rgba(244,220,210,0.9); }
#hero .hero-location { color: rgba(220,200,190,0.8); }
#hero .hero-date-line { background: linear-gradient(to right, transparent, rgba(220,165,155,0.7), transparent); }

/* Placeholder span now unused but keep graceful */
.arch-photo-placeholder span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: 0.7;
}

.arch-photo-placeholder img {
  border-radius: 140px 140px 0 0;
}

.arch-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(168,106,101,0.18));
}

.hero-date-block {
  display: flex;
  align-items: center;
  gap: 16px;
  transition-delay: 0.4s;
}

.hero-date-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--border);
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--taupe);
  transition-delay: 0.5s;
}

/* ── OUR STORY ──────────────────────────────────────────────── */
.section-story {
  background: var(--card-bg);
  max-width: 100%;
}

.story-text {
  max-width: 600px;
  margin: 0 auto 56px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--clay);
}

.story-text p { margin-bottom: 18px; }

.story-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terracotta) !important;
  margin-top: 24px !important;
}

/* ── VIDEO PLAYER ───────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  transition-delay: 0.2s;
}

.video-frame-border {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  pointer-events: none;
  z-index: 3;
  box-shadow: var(--shadow-card);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #2a1a16;
  border-radius: var(--radius);
  overflow: hidden;
}

#main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,15,10,0.35);
  transition: opacity 0.4s;
  z-index: 2;
}

.video-overlay.hidden { opacity: 0; pointer-events: none; }

.video-play-btn svg { width: 68px; height: 68px; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.video-play-btn:hover svg { transform: scale(1.08); }

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(30,15,10,0.7));
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-container:hover .video-controls { opacity: 1; }
.video-controls.always-show { opacity: 1; }

.vc-btn { color: #F4F0E8; display: flex; align-items: center; }
.vc-btn svg { width: 18px; height: 18px; }

.vc-progress {
  flex: 1;
  height: 2px;
  background: rgba(244,240,232,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.vc-bar {
  height: 100%;
  background: var(--rose);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.vc-time {
  font-size: 0.7rem;
  color: rgba(244,240,232,0.8);
  font-family: var(--font-body);
  min-width: 32px;
}

.video-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 20px;
}

/* ── PHOTOSTRIP ─────────────────────────────────────────────── */
/* ── PHOTOSTRIP MARQUEE ─────────────────────────────────────── */
.photostrip-section {
  background: #1e110e;
  padding: 0;
  overflow: hidden;
  position: relative;
  line-height: 0;
  font-size: 0;
  display: block;
  margin-bottom: -1px;
}

.film-strip-top,
.film-strip-bottom {
  background: #1e110e;
  height: 22px;
  position: relative;
  z-index: 2;
}

.film-holes::before {
  content: '';
  display: block;
  width: 100%;
  height: 10px;
  margin: 6px 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 10px,
    rgba(237,231,217,0.22) 10px, rgba(237,231,217,0.22) 22px,
    transparent 22px, transparent 36px
  );
}

.film-holes::before {
  content: '';
  display: block;
  width: 100%;
  height: 10px;
  margin: 6px 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0px, transparent 10px,
    rgba(237,231,217,0.22) 10px, rgba(237,231,217,0.22) 22px,
    transparent 22px, transparent 36px
  );
}

.marquee-track {
  overflow: hidden;
  padding: 0;
  background: #1e110e;
}

.marquee-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.strip-photo {
  /* Portrait default — 3:4 ratio (200×260 px).
   * Used for all portrait-oriented images in the marquee. */
  width: 200px;
  height: 260px;
  flex-shrink: 0;
  background-color: #2a1a17;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  filter: sepia(0.25) saturate(0.9) brightness(0.95);
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
  transition: filter 0.3s, transform 0.3s;
}

/* Landscape variant — 4:3 ratio (347×260 px).
 * Apply .strip-photo--landscape to any <div class="strip-photo">
 * that holds a landscape-oriented photo so its width matches the
 * image's natural proportions and it doesn't appear oversized or
 * unnaturally cropped next to the portrait stills. */
.strip-photo--landscape {
  width: 347px;
  height: 260px;
}

.strip-photo:hover {
  filter: sepia(0) saturate(1) brightness(1.05);
  transform: scale(1.03);
}

/* ── DETAILS / VENUE ────────────────────────────────────────── */
/*
 * Two-layer background:
 *  1. Warm cream overlay (rgba 248,244,238 at 0.80) keeps all venue
 *     text, cards, and buttons fully legible over the floral print.
 *  2. venuedetailsbg.jpg — a soft watercolour floral — tiles seamlessly.
 *
 * background-attachment: scroll — mandatory for iOS Safari; using
 * "fixed" triggers a well-known blank/clip paint bug on iPhone/iPad.
 *
 * overflow-x: hidden + width: 100% prevent any subpixel tile edge
 * from causing horizontal scroll on iOS narrow viewports.
 */
.section-details {
  background-image:
    linear-gradient(
      rgba(248, 244, 238, 0.80),
      rgba(248, 244, 238, 0.80)
    ),
    url('venuedetailsbg.jpg');
  background-repeat: repeat;
  background-size: 520px auto;
  background-position: top left;
  background-attachment: scroll;
  overflow-x: hidden;
  width: 100%;
}

.venue-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ── Venue Card ── */
.venue-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.venue-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 56px rgba(130,80,70,0.16), 0 4px 16px rgba(130,80,70,0.1);
}

/* Photo area */
.venue-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.venue-photo {
  position: absolute;
  inset: 0;
  background-color: #c9b5a8;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.venue-card:hover .venue-photo { transform: scale(1.04); }

.venue-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,12,8,0.08) 0%,
    rgba(30,12,8,0.38) 100%
  );
}

.venue-photo-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.92);
  background: rgba(30,12,8,0.35);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border: 1px solid rgba(195,131,128,0.35);
  border-radius: 2px;
  white-space: nowrap;
}

/* Info area */
.venue-info {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

/* Icon wrapper: column stack guarantees the SVG icon always sits
   above any sibling content; no float or absolute positioning that
   could let lines drift on iOS. */
.venue-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.venue-icon svg { width: 36px; height: 36px; margin-bottom: 4px; }

/* Thin decorative rule drawn strictly beneath the icon SVG */
.venue-icon::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(168, 106, 101, 0.45),
    transparent
  );
  margin-top: 2px;
}

.venue-time {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1.4;
  margin: 4px 0;
}

.venue-address {
  font-size: 0.82rem;
  color: var(--clay);
  line-height: 1.65;
}

.venue-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 2px;
  margin-top: 8px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.venue-map-btn svg { width: 14px; height: 14px; }

.venue-map-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #F4F0E8;
}

.venue-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  align-self: stretch;
}

.venue-orn svg { height: 200px; width: 40px; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.section-timeline { background: var(--card-bg); }

.timeline-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.tl-leaf {
  grid-column: 2;
  width: 22px;
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
}

.timeline-item[data-side="left"]  .tl-leaf { grid-column: 2; }
.timeline-item[data-side="left"]  .tl-content { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-item[data-side="right"] .tl-leaf { grid-column: 2; }
.timeline-item[data-side="right"] .tl-content { grid-column: 3; text-align: left; }

.tl-time {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

.tl-event {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--terracotta);
}

/* ── DRESS CODE ─────────────────────────────────────────────── */
.section-dresscode { background: var(--bg); }

.dresscode-text {
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--clay);
}

.dresscode-text p { margin-bottom: 16px; }
.dresscode-text em { font-family: var(--font-serif); font-style: italic; color: var(--terracotta); font-size: 1.02rem; }

.palette-swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.swatch {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 4px 16px rgba(130,80,70,0.2);
  position: relative;
  cursor: default;
  transition: transform 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  overflow: visible;
}

.swatch:hover { transform: scale(1.1) translateY(-4px); }

.swatch span {
  position: absolute;
  bottom: -22px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  white-space: nowrap;
}

/* ── DRESS PINSPIRATION ──────────────────────────────────────── */
.pinspiration-wrap {
  margin: 40px auto 0;
  max-width: 680px;
  text-align: center;
  padding: 0 5vw;
}

.pinspiration-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

.pinspiration-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 32px rgba(130,80,70,0.15);
}

/* ── ENTOURAGE ──────────────────────────────────────────────── */
.section-entourage {
  /*
   * Two-layer background:
   *  1. A warm cream overlay (rgba) keeps text legible and cohesive with --card-bg
   *  2. The embossed floral image tiles seamlessly beneath it
   *
   * background-attachment: scroll (NOT fixed) — avoids the iOS Safari
   * known bug where fixed backgrounds are clipped or fail to paint inside
   * scroll containers on iPhone/iPad.
   */
  background-image:
    linear-gradient(
      rgba(244, 240, 232, 0.80),
      rgba(244, 240, 232, 0.80)
    ),
    url('floral-wallpaper.jpg');

  background-repeat: repeat;
  background-size: 400px auto;
  background-position: top left;
  background-attachment: scroll;

  /* Prevent any subpixel gap between tiles on retina screens */
  image-rendering: auto;
}

/* Mobile: slightly smaller tile so the floral texture stays well-proportioned */
@media (max-width: 600px) {
  .section-entourage {
    background-size: 260px auto;
  }
}

.entourage-block {
  max-width: 540px;
  margin: 0 auto 32px;
}

.entourage-group-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.entourage-block p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
}

.entourage-block p em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-right: 4px;
}

.entourage-floral-divider {
  max-width: 200px;
  margin: 16px auto 32px;
}

.entourage-floral-divider svg { width: 100%; }

.entourage-two-col {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.entourage-two-col .entourage-block {
  min-width: 180px;
  margin-bottom: 0;
}

/* ── GIFT REGISTRY ──────────────────────────────────────────── */
.section-gift {
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: local;
}

.gift-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-icon { width: 56px; height: 56px; margin-bottom: 12px; }

.gift-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clay);
  max-width: 480px;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.section-faq { background: var(--card-bg); }

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

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

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--terracotta);
  gap: 16px;
  transition: color 0.25s;
}

.faq-q:hover { color: var(--rust); }

.faq-arrow {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--rose);
  transition: transform 0.35s;
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-a.open {
  max-height: 300px;
  padding-bottom: 18px;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--clay);
  line-height: 1.85;
}

/* ── HASHTAG SECTION ─────────────────────────────────────────── */
.section-hashtag {
  background: var(--card-bg);
  padding: 80px 24px;
  text-align: center;
}

.hashtag-inner {
  max-width: 560px;
  margin: 0 auto;
}

.hashtag-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}

.hashtag-tag {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-style: italic;
  color: var(--terracotta);
  margin: 20px 0 24px;
  letter-spacing: 0.02em;
}

.hashtag-sub {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--clay);
  max-width: 420px;
  margin: 0 auto;
}

/* ── RSVP & SEAT FINDER — shared CTA sections ───────────────── */
.section-cta-pair {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(195,131,128,0.09), transparent);
  padding: 100px 24px;
}

/* ── GUEST PHOTO ALBUM — rose wallpaper background ──────────────
 * Override the shared .section-cta-pair bg for this section only.
 *
 * Two-layer technique:
 *  1. A warm cream overlay (0.76 opacity) keeps the text, desc copy,
 *     and CTA button crisp and legible over the floral pattern.
 *     0.76 is intentionally lighter than other sections so the roses
 *     show through elegantly without competing with the content.
 *  2. guestphotoalbumbg.jpg — vintage rose scatter — tiles seamlessly.
 *
 * background-attachment: scroll (NOT fixed) — mandatory for iOS Safari;
 * "fixed" triggers a well-known blank/clip paint bug on iPhone/iPad.
 * overflow-x: hidden prevents any subpixel tile edge causing
 * horizontal scroll on narrow iOS viewports.
 * ────────────────────────────────────────────────────────────── */
#photoalbum {
  background-image:
    linear-gradient(
      rgba(248, 244, 238, 0.76),
      rgba(248, 244, 238, 0.76)
    ),
    url('guestphotoalbumbg.jpg');
  background-repeat: repeat;
  background-size: 500px auto;
  background-position: top left;
  background-attachment: scroll;
  overflow-x: hidden;
  width: 100%;
}

/* Mobile: smaller tile keeps rose scale elegant on narrow screens */
@media (max-width: 600px) {
  #photoalbum {
    background-size: 300px auto;
  }
}

/* ── Album preview strip ─────────────────────────────────────────
 * A row of polaroid-style thumbnails sits between the divider and
 * the CTA button. Uses a fixed row height so portrait and landscape
 * photos share the same visual weight — landscape thumbs are wider
 * (4:3 ratio) while portrait thumbs are narrower (3:4 ratio), but
 * both stay at the same height so the strip stays uniform.
 * ────────────────────────────────────────────────────────────── */
.album-preview-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 24px 0 36px;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
}

/* Portrait thumbnail — default (3:4 aspect ratio at 150px height) */
.album-thumb {
  flex-shrink: 0;
  height: 150px;
  width: 113px;
  background-color: #d8c8c0;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  box-shadow:
    0 4px 18px rgba(130, 80, 70, 0.18),
    0 1px 4px rgba(130, 80, 70, 0.10),
    0 0 0 3px rgba(244, 240, 232, 0.85);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

/* Landscape thumbnail — wider box (4:3 aspect ratio at 150px height) */
.album-thumb--landscape {
  width: 200px;
  height: 150px;
}

/* Gentle alternating tilt for a casual, candid feel */
.album-thumb:nth-child(1) { transform: rotate(-2deg); }
.album-thumb:nth-child(2) { transform: rotate( 1.5deg); }
.album-thumb:nth-child(3) { transform: rotate(-1deg); }
.album-thumb:nth-child(4) { transform: rotate( 2deg); }
.album-thumb:nth-child(5) { transform: rotate(-1.5deg); }

.album-thumb:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.04) !important;
  box-shadow:
    0 12px 36px rgba(130, 80, 70, 0.24),
    0 0 0 3px rgba(244, 240, 232, 0.95);
}

/* Mobile: 3 thumbs visible, proportionally smaller */
@media (max-width: 640px) {
  .album-preview-strip { gap: 8px; }

  .album-thumb {
    height: 110px;
    width: 83px;
  }

  .album-thumb--landscape {
    width: 147px;
    height: 110px;
  }

  /* Hide 4th and 5th thumb on narrow screens to avoid overflow */
  .album-thumb:nth-child(n+4) { display: none; }
}

.section-cta-pair--alt {
  background: var(--card-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(195,131,128,0.07), transparent);
}

.cta-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-desc {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 6px;
}

.cta-desc strong { color: var(--terracotta); font-weight: 500; }

.cta-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--taupe);
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 32px;
}

/* Shared button base */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 44px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.28s, color 0.28s, transform 0.22s, box-shadow 0.28s;
}

.cta-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Filled — RSVP */
.cta-btn--primary {
  background: var(--terracotta);
  color: #F4F0E8;
  border: 1px solid var(--terracotta);
  box-shadow: 0 6px 28px rgba(168,106,101,0.28);
}

.cta-btn--primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(159,84,74,0.34);
}

/* Outlined — Seat Finder */
.cta-btn--outline {
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
}

.cta-btn--outline:hover {
  background: var(--terracotta);
  color: #F4F0E8;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(168,106,101,0.22);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #2a1a16;
  text-align: center;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-monogram {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: rgba(195,131,128,0.8);
  letter-spacing: 0.05em;
}

.footer-date {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(171,152,130,0.7);
}

.footer-hashtag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(195,131,128,0.6);
  font-style: italic;
  font-family: var(--font-serif);
}

.footer-rule {
  width: 60px;
  height: 1px;
  background: rgba(195,131,128,0.3);
  margin: 8px 0;
}

.footer-credit {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(171,152,130,0.45);
}

.footer-credit a { color: rgba(195,131,128,0.55); transition: color 0.25s; }
.footer-credit a:hover { color: rgba(195,131,128,0.9); }

/* ── LIVE GUESTBOOK ─────────────────────────────────────────── */
.section-guestbook {
  /*
   * Two-layer background:
   *  1. A warm cream-white overlay keeps all text, form fields, and
   *     message cards fully legible over the botanical print beneath.
   *     The overlay value (rgba 248,244,238 at 0.82) is slightly lighter
   *     than --card-bg so the wisteria motifs remain a subtle hint
   *     rather than a dominant texture.
   *  2. The vintage botanical wallpaper tiles seamlessly under the overlay.
   *
   * background-attachment: scroll (NOT fixed) — avoids the iOS Safari
   * known clipping / blank-paint bug inside scroll containers on
   * iPhone and iPad.
   *
   * overflow-x: hidden prevents any subpixel tile edge from causing
   * horizontal scroll on narrow viewports (iOS safe-area quirk).
   */
  background-image:
    linear-gradient(
      rgba(248, 244, 238, 0.82),
      rgba(248, 244, 238, 0.82)
    ),
    url('messagebg.jpg');

  background-repeat: repeat;
  background-size: 480px auto;
  background-position: top left;
  background-attachment: scroll;

  overflow-x: hidden;
  width: 100%;
  padding: 100px 24px 80px;
}

/* Mobile: smaller tile keeps the botanical motifs well-proportioned
   on narrow screens without the repeat feeling too dense */
@media (max-width: 600px) {
  .section-guestbook {
    background-size: 280px auto;
  }
}

.guestbook-form-wrap {
  max-width: 560px;
  margin: 0 auto 64px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
}

.gb-input,
.gb-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none;
}

.gb-input::placeholder,
.gb-textarea::placeholder {
  color: var(--taupe);
  opacity: 0.7;
}

.gb-input:focus,
.gb-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(195,131,128,0.12);
}

.gb-textarea { min-height: 110px; }

.gb-submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.gb-status {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--taupe);
  opacity: 0;
  transition: opacity 0.4s;
  flex: 1;
}

.gb-status.visible  { opacity: 1; }
.gb-status.success  { color: var(--terracotta); }
.gb-status.error    { color: var(--rust); }

/* Messages feed */
.guestbook-feed-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
  margin-bottom: 28px;
}

/* Scroll wrapper — fixed height, scrollable */
.guestbook-feed-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.guestbook-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-height: 500px;   /* roughly 2 rows visible */
  overflow-y: auto;
  padding: 4px 4px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--rose) transparent;
}

.guestbook-feed::-webkit-scrollbar {
  width: 6px;
}
.guestbook-feed::-webkit-scrollbar-track {
  background: transparent;
}
.guestbook-feed::-webkit-scrollbar-thumb {
  background: var(--rose);
  border-radius: 99px;
  opacity: 0.6;
}

/* "Scroll to see more" hint — shown only when overflow exists */
.gb-scroll-hint {
  display: none;
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.gb-scroll-hint.visible {
  display: flex;
}

.gb-scroll-hint svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  animation: gbBounce 1.4s ease-in-out infinite;
}

@keyframes gbBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

.gb-message-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: gbCardIn 0.5s ease both;
  min-height: 160px;
}

@keyframes gbCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gb-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #F4F0E8;
  flex-shrink: 0;
}

.gb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gb-card-body { display: flex; flex-direction: column; gap: 5px; }

.gb-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1.2;
}

.gb-card-time {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.gb-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--clay);
  line-height: 1.7;
}

.gb-feed-empty {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--taupe);
  padding: 32px 0;
  grid-column: 1 / -1;
}

.gb-load-more {
  display: none !important; /* replaced by scroll behaviour */
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-nav { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.65rem; }

  section { padding: 72px 20px; }

  .hero-floral-left,
  .hero-floral-right { width: 80px; opacity: 0.5; }

  /* ── Mobile timeline: single left-rail layout ── */
  .timeline-container {
    padding: 20px 20px 20px 52px;
    position: relative;
  }

  /* Vertical rail sits at 20px from the left edge of the container */
  .timeline-line {
    left: 20px;
    transform: none;
  }

  /* Switch items from grid to a simple row so the leaf can sit on the rail */
  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    margin-bottom: 32px;
    position: relative;
  }

  /* Circle leaf: absolutely centered on the rail */
  .tl-leaf {
    position: absolute;
    left: -42px;            /* (52px container padding) - half of 22px leaf = center on rail at 20px */
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    padding: 0;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Content always flows to the right, full width */
  .timeline-item .tl-content,
  .timeline-item[data-side="left"]  .tl-content,
  .timeline-item[data-side="right"] .tl-content {
    width: 100%;
    grid-column: unset;
    grid-row: unset;
    margin: 0 !important;
    padding: 0 0 0 8px;
    text-align: left !important;
  }

  .gb-submit-row {
    justify-content: center;
  }

  .entourage-two-col { gap: 32px; }

  .rsvp-form-wrap { padding: 28px 20px; }
  .guestbook-form-wrap { padding: 28px 20px; }
  .gb-message-card { padding: 16px 14px; }
  .guestbook-feed { grid-template-columns: repeat(2, 1fr); max-height: 520px; }

  .corner { width: 70px; height: 70px; }

  /* ── Venue / Details section — mobile background tile ── */
  /* Smaller tile on narrow screens keeps floral motifs well-proportioned */
  .section-details {
    background-size: 320px auto;
  }

  /* ── Venue ornament divider — rotate to horizontal on stacked layout ──
   * When flex-wrap fires and the two venue cards stack vertically,
   * the ornament sits between them. Rotating 90° turns the vertical
   * stem-and-leaf SVG into a natural horizontal separator, keeping
   * the decorative lines strictly below the card above and above the
   * card below — no lines floating beside or overlapping icons. */
  .venue-orn {
    width: 100%;
    height: 48px;
    flex-direction: row;
  }

  .venue-orn svg {
    width: 200px;
    height: 40px;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-arch-frame { width: 220px; height: 300px; }
  .hero-names { font-size: 3rem; }
  .palette-swatches { gap: 10px; }
  .swatch { width: 52px; height: 52px; }
}
/* ============================================================
   MUSIC PLAYER
   ============================================================ */

/* ── Floating pill ── */
/* ── Music widget wrapper (pill + player in one anchored container) ── */
#music-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

#music-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: #1C1208;
  border: 1px solid rgba(193,163,100,0.25);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(193,163,100,0.08);
  user-select: none;
  position: relative;
  z-index: 2;
}
#music-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(193,163,100,0.18);
}
#music-widget.player-open #music-pill {
  display: none;
}
.music-pill-icon {
  width: 20px;
  height: 20px;
  color: #C1A364;
  flex-shrink: 0;
}
.music-pill-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: #D4B87A;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Player — expands upward from inside the widget ── */
#music-player {
  width: 320px;
  background: linear-gradient(160deg, #1E140A 0%, #150F06 60%, #1A1108 100%);
  border: 1px solid rgba(193,163,100,0.18);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(193,163,100,0.06);
  padding: 20px;
  font-family: var(--font-body);
  color: #D4C4A0;
  /* collapsed */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  order: -1; /* renders above pill in the flex column */
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease;
}
#music-player.open {
  max-height: 600px;
  opacity: 1;
  overflow: visible;
}

/* Header */
.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.mp-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A6840;
}
.mp-close {
  color: #7A6840;
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.2s;
  padding: 0 2px;
}
.mp-close:hover { color: #C1A364; }

/* Now playing area */
.mp-now-playing {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Vinyl */
.mp-vinyl {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2C2010, #0E0A04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  transition: transform 0.1s;
}
.mp-vinyl.spinning {
  animation: vinyl-spin 4s linear infinite;
}
@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.mp-vinyl-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.mp-vinyl-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0px,
    transparent 3px,
    rgba(255,255,255,0.025) 3px,
    rgba(255,255,255,0.025) 4px
  );
}
.mp-vinyl-label {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #C1A364 0%, #8B6E3A 60%, #5E4A20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}
.mp-vinyl-hole {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1E140A;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

/* Song info */
.mp-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
  position: relative;
}
/* Needle */
.mp-needle {
  position: absolute;
  top: -20px;
  left: -2px;
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, #C1A364, #8B6E3A);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(-10deg);
  transition: transform 0.6s ease;
  box-shadow: 1px 0 4px rgba(0,0,0,0.5);
}
.mp-needle.playing { transform: rotate(5deg); }

.mp-song-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #E8D8A8;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-song-artist {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A6840;
  margin-bottom: 10px;
}

/* Visualizer bars (playing state) */
.mp-visualizer {
  display: none;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}
.mp-visualizer.active { display: flex; }
.mp-visualizer span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #C1A364;
  animation: bar-bounce 0.8s ease-in-out infinite alternate;
}
.mp-visualizer span:nth-child(1) { animation-duration: 0.7s;  height: 8px;  animation-delay: 0s; }
.mp-visualizer span:nth-child(2) { animation-duration: 0.9s;  height: 14px; animation-delay: 0.1s; }
.mp-visualizer span:nth-child(3) { animation-duration: 0.65s; height: 18px; animation-delay: 0.05s; }
.mp-visualizer span:nth-child(4) { animation-duration: 0.85s; height: 11px; animation-delay: 0.15s; }
.mp-visualizer span:nth-child(5) { animation-duration: 0.75s; height: 7px;  animation-delay: 0.08s; }
@keyframes bar-bounce {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

/* Idle dots (paused state) */
.mp-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 18px;
}
.mp-dots.hidden { display: none; }
.mp-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4A3820;
}

/* Progress */
.mp-progress-wrap { margin-bottom: 14px; }
.mp-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(193,163,100,0.15);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  margin-bottom: 6px;
}
.mp-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #C1A364, #E8D8A8);
  border-radius: 99px;
  width: 0%;
  pointer-events: none;
}
.mp-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C1A364;
  box-shadow: 0 0 6px rgba(193,163,100,0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.mp-progress-bar:hover .mp-progress-thumb { opacity: 1; }
.mp-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: #4A3820;
  letter-spacing: 0.05em;
}

/* Controls */
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.mp-btn {
  color: #A08050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s;
}
.mp-btn:hover { color: #C1A364; }
.mp-btn svg { width: 18px; height: 18px; }
.mp-play-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3A2810, #1A1008);
  border: 1px solid rgba(193,163,100,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  color: #E8D8A8;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mp-play-pause:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 12px rgba(193,163,100,0.2);
  transform: scale(1.06);
}
.mp-play-pause svg { width: 20px; height: 20px; }

/* Playlist toggle */
.mp-playlist-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A6840;
  cursor: pointer;
  padding: 8px 0;
  border-top: 1px solid rgba(193,163,100,0.1);
  transition: color 0.2s;
  user-select: none;
}
.mp-playlist-toggle:hover { color: #C1A364; }
.mp-playlist-toggle svg { width: 14px; height: 14px; }
.mp-playlist-toggle.open::before { content: '▲ '; font-size: 0.5rem; }
.mp-playlist-toggle:not(.open)::before { content: '▲ '; font-size: 0.5rem; opacity: 0.5; }

/* Playlist */
.mp-playlist {
  display: none;
  border-top: 1px solid rgba(193,163,100,0.08);
  margin-top: 4px;
}
.mp-playlist.open { display: block; }

.mp-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(193,163,100,0.07);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.mp-track:last-child { border-bottom: none; }
.mp-track:hover { background: rgba(193,163,100,0.06); }
.mp-track.active { background: rgba(193,163,100,0.1); }

.mp-track-num {
  font-size: 0.65rem;
  color: #4A3820;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.mp-track.active .mp-track-num { color: transparent; }
.mp-track-info { flex: 1; min-width: 0; }
.mp-track-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: #D4C4A0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-track.active .mp-track-name { color: #E8D8A8; }
.mp-track-artist {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A4830;
}
.mp-track-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C1A364;
  flex-shrink: 0;
  opacity: 0;
  box-shadow: 0 0 6px rgba(193,163,100,0.7);
}
.mp-track.active .mp-track-dot { opacity: 1; }

/* Mobile responsiveness */
@media (max-width: 380px) {
  #music-widget { right: 16px; bottom: 20px; }
  #music-player { width: calc(100vw - 32px); }
}
/* ============================================================
   RSVP REMINDER BANNER
   ============================================================ */
.rsvp-reminder {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rose);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(130, 70, 65, 0.18), 0 2px 8px rgba(130, 70, 65, 0.10);
  transition: bottom 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.rsvp-reminder--visible {
  bottom: 20px;
  opacity: 1;
  pointer-events: all;
}

.rsvp-reminder__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.rsvp-reminder__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(195, 131, 128, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}

.rsvp-reminder__icon svg {
  width: 18px;
  height: 18px;
}

.rsvp-reminder__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rsvp-reminder__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--terracotta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rsvp-reminder__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--clay);
  opacity: 0.85;
}

.rsvp-reminder__sub strong {
  color: var(--terracotta);
  font-weight: 600;
}

.rsvp-reminder__btn {
  flex-shrink: 0;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.rsvp-reminder__btn:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

.rsvp-reminder__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--clay);
  opacity: 0.5;
  transition: opacity 0.2s;
  line-height: 0;
}

.rsvp-reminder__close:hover { opacity: 1; }
.rsvp-reminder__close svg { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .rsvp-reminder__title { font-size: 0.88rem; }
  .rsvp-reminder__btn { padding: 7px 11px; font-size: 0.68rem; }
}
/* ══════════════════════════════════════════
   COUNTDOWN SECTION
══════════════════════════════════════════ */
.section-countdown {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.countdown-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 0.1s linear;
}

.countdown-overlay {
  display: none;
}

.countdown-inner {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
}

.countdown-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  color: #4A3728;
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
  transition: opacity 0.15s ease;
}

.countdown-num.flip {
  opacity: 0;
}

.countdown-word {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7A5C4A;
  margin-top: 0.5rem;
  display: block;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #C38380;
  opacity: 0.7;
  align-self: flex-start;
  padding: 0 0.5rem;
  margin-top: 0.2rem;
  line-height: 1;
}

.countdown-date-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #E8D9C5;
  opacity: 0.7;
  margin-top: 2.8rem;
  text-transform: uppercase;
}

.countdown-date-tag { display: none; }

/* Mobile */
@media (max-width: 600px) {
  .countdown-unit { min-width: 60px; }
  .countdown-sep { padding: 0 0.2rem; }
  .countdown-num { font-size: clamp(2rem, 11vw, 3rem); }
  .section-countdown { min-height: 40vh; }
}
/* ── PETAL CANVAS ────────────────────────────────────────────── */
#petalCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ── CURSOR PETAL — all styling handled by JS inline ── */
#cursorPetal {
  display: none; /* JS sets display:block on desktop */
}