/* ============================================================
   Joel & Favour Wedding — style.css
   Design System: Ivory Cream + Warm Gold + Wine Burgundy
   Typography: Cormorant Garamond (display) + Pinyon Script (accents) + Inter (body)
   ============================================================ */

/* ─── 1. TOKENS ──────────────────────────────────────────── */
:root {
  --ivory-cream:   #F3E5D8;
  --petal-white:   #FBF3E9;
  --warm-gold:     #C9A66B;
  --wine-burgundy: #6E2C3B;
  --dusty-peach:   #E8B4A0;
  --cocoa-brown:   #3B2A1E;
  --deep-wine:     #1C0910;   /* dark section backgrounds */
  --deep-cocoa:    #1A0E08;

  --thread-color:  #C9A66B;
  --thread-width:  2px;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-script:  'Pinyon Script', cursive;
  --ff-body:    'Inter', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 32px rgba(59,42,30,.07);
  --shadow-lift: 0 16px 48px rgba(59,42,30,.14);

  --transition-fast:   0.18s ease;
  --transition-medium: 0.35s ease;

  --max-width:    1100px;
  --section-pad:  5rem 1.5rem;
  --section-pad-sm: 3.5rem 1.5rem;
}

@media (max-width: 600px) {
  :root {
    --section-pad: 2.75rem 1.25rem;
    --section-pad-sm: 2.25rem 1.25rem;
  }
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--ivory-cream);
  color: var(--cocoa-brown);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Fix mobile background stretching by using a fixed pseudo-element */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(rgba(243, 229, 216, 0.88), rgba(243, 229, 216, 0.88)),
    url('../images/DSC_5754.jpg.jpeg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; }
ul, ol { list-style: none; }

/* ─── 3. FLOATING PETALS ─────────────────────────────────── */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  opacity: 0;
  animation: petal-fall linear infinite;
  will-change: transform, opacity;
}

@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(-40px) rotate(0deg) translateX(0); }
  8%   { opacity: 1; }
  90%  { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(var(--petal-rotate, 240deg)) translateX(var(--petal-drift, 60px));
  }
}

/* ─── 4. TYPOGRAPHY ──────────────────────────────────────── */
.display-name {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--wine-burgundy);
  letter-spacing: -0.01em;
}

.display-sub {
  font-family: var(--ff-display);
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--warm-gold);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: var(--wine-burgundy);
  line-height: 1.15;
}

/* The serif + italic script mix — like AJLINS */
.section-title em {
  font-family: var(--ff-script);
  font-size: 1.3em; /* Script fonts usually need a size bump */
  font-weight: 400;
  color: var(--warm-gold);
  line-height: 0.8;
  display: inline-block;
  transform: translateY(4px);
}

.section-title-light {
  color: var(--petal-white);
}
.section-title-light em {
  color: var(--dusty-peach);
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gold);
}

.eyebrow-light { color: rgba(201,166,107,.75); }

/* ─── 5. LAYOUT UTILITIES ────────────────────────────────── */
section[id] { scroll-margin-top: 80px; }
#gift { scroll-margin-top: 90px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: var(--section-pad); }
.section-pad-sm { padding: var(--section-pad-sm); }
.text-center { text-align: center; }

/* ─── 6. DARK SECTIONS ───────────────────────────────────── */
.section-dark {
  background-color: var(--deep-wine);
  background-image: 
    linear-gradient(rgba(28, 9, 16, 0.88), rgba(28, 9, 16, 0.88)),
    url('../images/DSC_5754.jpg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--petal-white);
  position: relative;
}

@media (max-width: 600px) {
  .section-dark {
    background-attachment: scroll;
  }
}
.section-dark .eyebrow { color: rgba(201,166,107,.7); }
.section-dark .section-title { color: var(--petal-white); }
.section-dark .section-title em { color: var(--dusty-peach); }

/* ─── 7. GOLD ORNAMENTS ──────────────────────────────────── */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  margin: 1rem auto;
}
.gold-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--warm-gold));
}
.gold-rule-line:last-child {
  background: linear-gradient(to left, transparent, var(--warm-gold));
}
.gold-rule-diamond {
  width: 5px; height: 5px;
  background: var(--warm-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.gold-rule-light .gold-rule-line {
  background: linear-gradient(to right, transparent, rgba(201,166,107,.5));
}
.gold-rule-light .gold-rule-line:last-child {
  background: linear-gradient(to left, transparent, rgba(201,166,107,.5));
}
.gold-rule-light .gold-rule-diamond { background: rgba(201,166,107,.6); }

.section-sep {
  width: 100%;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--warm-gold), transparent);
  margin: 0 auto;
}

/* ─── 8. BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--transition-fast), color var(--transition-fast),
              transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary {
  background: var(--wine-burgundy);
  color: var(--ivory-cream);
}
.btn-primary:hover {
  background: #5a2330;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(110,44,59,.28);
}
.btn-outline {
  background: transparent;
  color: var(--wine-burgundy);
  border: 1.5px solid var(--wine-burgundy);
}
.btn-outline:hover {
  background: var(--wine-burgundy);
  color: var(--ivory-cream);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(201,166,107,.1);
  color: var(--warm-gold);
  border: 1.5px solid rgba(201,166,107,.4);
}
.btn-ghost:hover {
  background: var(--warm-gold);
  color: var(--petal-white);
}
.btn-outline-light {
  background: transparent;
  color: rgba(251,243,233,.85);
  border: 1.5px solid rgba(251,243,233,.35);
}
.btn-outline-light:hover {
  background: rgba(251,243,233,.1);
  border-color: rgba(251,243,233,.6);
}

/* ─── 9. STICKY GIFT BUTTON ──────────────────────────────── */
.sticky-gift {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: var(--wine-burgundy);
  color: var(--petal-white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(110,44,59,.35);
  transition: all var(--transition-fast);
  opacity: 0;
  transform: translateY(12px);
  animation: sticky-appear 0.6s ease 2.5s forwards;
}
.sticky-gift:hover {
  background: #5a2330;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(110,44,59,.45);
}
@keyframes sticky-appear {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── 10. NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.125rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-medium), box-shadow var(--transition-medium);
}
.nav.scrolled {
  background: rgba(251,243,233,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(59,42,30,.07);
}
.nav-logo {
  font-family: var(--ff-script);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--wine-burgundy);
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ── Monogram mark ────────────────────────────────────────────
   The designer's F&J monogram, replacing the old script "F & J"
   lettering. It is a vector file, so it stays sharp at any size
   and needs no @2x variant. */
.nav-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .nav-logo img { height: 2.125rem; }
}
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cocoa-brown);
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--wine-burgundy); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 200;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--wine-burgundy);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--petal-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    font-size: 1.25rem;
    z-index: 150;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-hamburger { display: flex; }
  .nav-logo { z-index: 200; position: relative; }
}

@media (max-width: 600px) {
  .hero {
    padding: 7rem 1.25rem 5rem;
    min-height: 85svh;
  }
  .display-name {
    font-size: clamp(3.5rem, 15vw, 5.5rem);
  }
  .hero-ampersand {
    font-size: clamp(2.75rem, 12vw, 4.25rem);
    margin: -0.12em 0 -0.08em;
  }
  .hero-date-badge {
    padding: 0.4rem 0.9rem;
    gap: 0.35rem;
    max-width: 95%;
  }
  .badge-date {
    font-size: 0.78rem;
  }
  .badge-accent {
    font-size: 0.5rem;
  }
  .hero-countdown {
    margin: 0 auto 2.25rem;
    padding: 0.2rem;
  }
  .cd-unit {
    padding: 0.85rem 0.2rem;
  }
  .cd-number {
    font-size: 1.85rem;
  }
  .cd-label {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }
  .btn-play {
    padding: 0.85rem 1.75rem;
    font-size: 0.8rem;
  }
  .love-tales {
    padding-top: 1.5rem;
  }
}

/* ─── 11. HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 8.5rem 1.5rem 6.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 5%, rgba(201,166,107,.18) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 90%, rgba(232,180,160,.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(201,166,107,.10) 0%, transparent 60%),
    transparent;
}

.hero-halo {
  position: absolute;
  width: clamp(320px, 65vw, 680px);
  height: clamp(320px, 65vw, 680px);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,166,107,0.16) 0%, rgba(232,180,160,0.08) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-rise-centered {
  from { opacity: 0; transform: translate(-50%, 28px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Ornate Crest */
.hero-crest {
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: hero-rise 1.2s cubic-bezier(.22,1,.36,1) 0.1s forwards;
}

/* The monogram now stands on its own — the gold rings that used to frame
   it have been removed. Larger than the nav mark so the two read as a
   feature and a wordmark, not the same thing twice. No rotation on hover:
   a tilted letterform reads as a mistake, where a tilted crest did not. */
.crest-mark {
  height: 4.5rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(201,166,107,0.30));
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}

.hero-crest:hover .crest-mark {
  transform: scale(1.06);
}

@media (max-width: 600px) {
  .crest-mark { height: 3.5rem; }
}

/* Eyebrow Header */
.hero-eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: hero-rise 1s ease 0.35s forwards;
}

.hero-gold-line {
  width: clamp(30px, 6vw, 60px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--warm-gold));
}

.hero-eyebrow-wrap .hero-gold-line:last-child {
  background: linear-gradient(to left, transparent, var(--warm-gold));
}

.hero-eyebrow {
  margin-bottom: 0;
  letter-spacing: 0.32em;
  font-size: clamp(0.625rem, 1.2vw, 0.72rem);
  color: var(--cocoa-brown);
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
}

/* Names Area */
.hero-names {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: hero-rise 1.4s cubic-bezier(.22,1,.36,1) 0.55s forwards;
  line-height: 0.88;
}

.display-name {
  font-family: var(--ff-display);
  font-size: clamp(4.75rem, 13.5vw, 10rem);
  font-weight: 300;
  line-height: 0.85;
  color: var(--wine-burgundy);
  letter-spacing: -0.02em;
  display: inline-block;
  text-shadow: 0 4px 28px rgba(110,44,59,0.08);
}

.hero-ampersand {
  font-family: var(--ff-script);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;
  color: var(--warm-gold);
  display: block;
  line-height: 0.65;
  margin: -0.12em 0 -0.08em;
  text-shadow: 0 2px 24px rgba(201,166,107,0.45);
  position: relative;
  z-index: 3;
}

/* Date Badge */
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 0.75rem);
  padding: 0.45rem 1.4rem;
  background: rgba(251,243,233,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,166,107,0.35);
  border-radius: var(--radius-pill);
  margin: 1.25rem auto 1rem;
  opacity: 0;
  animation: hero-rise 1s ease 0.85s forwards;
  box-shadow: 0 4px 20px rgba(59,42,30,0.04);
}

.badge-accent {
  font-size: clamp(0.55rem, 1vw, 0.625rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--warm-gold);
}

.badge-diamond {
  font-size: 0.5rem;
  color: var(--warm-gold);
  opacity: 0.7;
}

.badge-date {
  font-family: var(--ff-display);
  font-size: clamp(0.8125rem, 1.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wine-burgundy);
}

.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cocoa-brown);
  opacity: 0;
  animation: hero-rise 1s ease 1.05s forwards;
  margin: 0.5rem auto 2.5rem;
  max-width: 540px;
  line-height: 1.4;
}

/* ── Countdown ── */
.hero-countdown {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 auto 3rem;
  max-width: 540px;
  width: 100%;
  opacity: 0;
  animation: hero-rise 1s ease 1.25s forwards;
  background: rgba(251,243,233,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201,166,107,0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 32px rgba(59,42,30,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 0.25rem 0.5rem;
}

.cd-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.5rem;
  position: relative;
}

.cd-unit + .cd-unit::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(201,166,107,0.3);
}

.cd-number {
  font-family: var(--ff-display);
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  font-weight: 300;
  color: var(--wine-burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 2.5ch;
  text-align: center;
}

.cd-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-top: 0.45rem;
}

/* ── Video CTA ── */
.hero-cta {
  opacity: 0;
  animation: hero-rise 1s ease 1.45s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 2.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--wine-burgundy), #521e2a);
  color: var(--petal-white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 28px rgba(110,44,59,0.28);
  border: 1px solid rgba(251,243,233,0.2);
  position: relative;
}

.btn-play:hover {
  background: linear-gradient(135deg, #5a2330, #421620);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 38px rgba(110,44,59,0.4);
}

.play-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(251,243,233,0.15);
  border: 1px solid rgba(251,243,233,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.play-circle svg {
  margin-left: 2px;
  color: var(--warm-gold);
}

.play-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gold);
  opacity: 0;
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-video-caption {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--cocoa-brown);
  opacity: 0.55;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: hero-rise-centered 1s ease 1.8s forwards;
}

.hero-scroll-label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gold);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--warm-gold), transparent);
  animation: scroll-grow 2s ease-in-out infinite;
}
@keyframes scroll-grow {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── 12. VIDEO MODAL ────────────────────────────────────── */
.video-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-medium);
}
.video-modal.open { opacity: 1; pointer-events: auto; }
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(12,5,3,.9);
  backdrop-filter: blur(6px);
}
.video-modal-inner {
  position: relative; z-index: 2;
  width: min(380px, 90vw);
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.93);
  transition: transform var(--transition-medium);
  box-shadow: 0 40px 80px rgba(0,0,0,.7);
}
.video-modal.open .video-modal-inner { transform: scale(1); }
.video-modal-inner video {
  width: 100%; height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.video-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  border: none; transition: background var(--transition-fast);
}
.video-modal-close:hover { background: rgba(255,255,255,.25); }

/* ─── 13. OUR LOVE TALES ─────────────────────────────────── */
.love-tales { padding: var(--section-pad); position: relative; }

.love-tales-header { text-align: center; margin-bottom: 3.5rem; }

.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

/* Golden Thread spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: var(--thread-width);
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--thread-color) 6%,
    var(--thread-color) 94%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0s;
}
.timeline.thread-drawn::before {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 2.5s cubic-bezier(.4,0,.2,1);
}

.timeline-beat {
  position: relative; z-index: 1;
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.timeline-beat.visible { opacity: 1; transform: translateY(0); }
.timeline-beat:nth-child(odd)  { flex-direction: row; }
.timeline-beat:nth-child(even) { flex-direction: row-reverse; }

/* Ornamental node instead of emoji */
.timeline-node {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--petal-white);
  border: 1.5px solid var(--warm-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--ivory-cream);
  align-self: flex-start;
  margin-top: 0.5rem;
}
.timeline-node-inner {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--warm-gold);
}

.timeline-beat-content {
  flex: 1;
  background: var(--petal-white);
  border-radius: var(--radius-md);
  padding: 1.375rem 1.625rem;
  box-shadow: var(--shadow-card);
  max-width: 270px;
}
.timeline-beat-title {
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--wine-burgundy);
  margin-bottom: 0.5rem;
}
.timeline-beat-text {
  font-size: 0.9125rem;
  line-height: 1.8;
  color: var(--cocoa-brown);
}

/* Hallelujah Challenge — max visual weight */
.timeline-beat.beat-hallelujah .timeline-node {
  width: 56px; height: 56px;
  background: var(--wine-burgundy);
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 6px var(--ivory-cream),
              0 0 0 0 rgba(201,166,107,0);
  animation: hallelujah-pulse 3.5s ease-in-out infinite;
}
.timeline-beat.beat-hallelujah .timeline-node-inner {
  width: 14px; height: 14px;
  background: var(--warm-gold);
}
@keyframes hallelujah-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--ivory-cream), 0 0 20px rgba(201,166,107,.3); }
  50%       { box-shadow: 0 0 0 6px var(--ivory-cream), 0 0 40px rgba(201,166,107,.65); }
}

.timeline-beat.beat-hallelujah .timeline-beat-content {
  border-left: 2.5px solid var(--warm-gold);
  background: linear-gradient(135deg, var(--petal-white) 0%, rgba(201,166,107,.06) 100%);
}

@media (max-width: 640px) {
  .timeline::before { left: 22px; }
  .timeline-beat { flex-direction: row !important; gap: 1rem; }
  .timeline-node { width: 38px; height: 38px; }
  .timeline-beat.beat-hallelujah .timeline-node { width: 46px; height: 46px; }
  .timeline-beat-content { max-width: 100%; }
}

/* ─── 14. SCHEDULE ───────────────────────────────────────── */
.schedule { padding: var(--section-pad); }
.schedule-header { text-align: center; margin-bottom: 3rem; }

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

.schedule-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 1.25rem;
}
.schedule-divider-line {
  width: 1.5px; flex: 1;
  background: linear-gradient(to bottom, transparent, var(--dusty-peach) 20%, var(--dusty-peach) 80%, transparent);
}
.schedule-divider-mark {
  width: 5px; height: 5px;
  background: var(--dusty-peach);
  transform: rotate(45deg);
  margin: 0.75rem 0;
}

.event-card {
  background: var(--petal-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.875rem;
  transition: box-shadow var(--transition-medium);
  opacity: 0; transform: translateY(18px);
}
.event-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow var(--transition-medium);
}
.event-card:hover { box-shadow: var(--shadow-lift); }

/* Ornamental icon — CSS cross / rings motif */
.event-ornament {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.event-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,166,107,.4));
}
.event-ornament-line:last-child {
  background: linear-gradient(to left, transparent, rgba(201,166,107,.4));
}
.event-ornament-mark {
  font-family: var(--ff-script);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--warm-gold);
  line-height: 0.8;
}

.event-time {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--wine-burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.event-title {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--cocoa-brown);
}
.event-venue {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--cocoa-brown);
  opacity: 0.8;
}
.event-date-tag {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gold);
}
.event-directions {
  display: flex; gap: 0.625rem; flex-wrap: wrap;
}
.event-map {
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201,166,107,.18);
}
.event-map iframe {
  width: 100%; height: 170px;
  border: none; display: block;
}

@media (max-width: 700px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .schedule-divider {
    flex-direction: row; padding: 0; gap: 1rem;
  }
  .schedule-divider-line {
    width: auto; height: 1.5px; flex: 1;
    background: linear-gradient(to right, transparent, var(--dusty-peach) 20%, var(--dusty-peach) 80%, transparent);
  }
}

/* ─── 15. COLOURS OF THE DAY (dark section) ──────────────── */
.colours { padding: var(--section-pad); text-align: center; }

.colours-header { margin-bottom: 2.5rem; }
.colours-note {
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(251,243,233,.6);
  margin-top: 0.75rem;
}

.colours-strand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 580px;
  margin: 0 auto;
  row-gap: 2rem;
}

.strand-thread {
  height: 1.5px;
  width: 28px;
  background: rgba(201,166,107,.35);
  flex-shrink: 0;
}

.swatch-wrapper {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
}
.swatch {
  width: 68px; height: 68px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}
.swatch:hover {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.swatch-name {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251,243,233,.55);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .strand-thread { width: 18px; }
  .swatch { width: 56px; height: 56px; }
}

/* ─── 16. GALLERY ────────────────────────────────────────── */
.gallery { padding: var(--section-pad); }
.gallery-header { text-align: center; margin-bottom: 2.5rem; }



.masonry-grid {
  columns: 3 240px;
  column-gap: 0.875rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.875rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--petal-white);
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.masonry-item.visible { opacity: 1; transform: scale(1); }

@media (max-width: 600px) {
  .masonry-grid {
    display: block !important;
    columns: auto !important;
    position: relative !important;
    width: 280px !important;
    height: 340px !important;
    margin: 2rem auto !important;
  }
  .masonry-item {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    margin: 0 !important;
    border: 8px solid #fff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    /* Removed display: none so they actually stack! */
    opacity: 1 !important;
    /* Added transition for smooth fly-away animation */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease !important;
    transform-origin: center center;
    cursor: pointer;
    /* HARDWARE ACCELERATION FOR PERFORMANCE */
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
  
  /* Class to animate the card flying off screen when tapped */
  .masonry-item.fly-away {
    transform: translate(-150%, -50px) rotate(-25deg) !important;
    opacity: 0 !important;
    pointer-events: none;
  }
  
  .masonry-item img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
  }
  .masonry-item-overlay { display: none !important; }

  .masonry-item:nth-child(1),
  .masonry-item:nth-child(2),
  .masonry-item:nth-child(3),
  .masonry-item:nth-child(4),
  .masonry-item:nth-child(5) {
    display: block !important;
  }

  .masonry-item:nth-child(5) { transform: rotate(-8deg) translate(-10px, 10px) !important; z-index: 1 !important; }
  .masonry-item:nth-child(4) { transform: rotate(6deg) translate(15px, -5px) !important; z-index: 2 !important; }
  .masonry-item:nth-child(3) { transform: rotate(-4deg) translate(-5px, -15px) !important; z-index: 3 !important; }
  .masonry-item:nth-child(2) { transform: rotate(3deg) translate(10px, 10px) !important; z-index: 4 !important; }
  .masonry-item:nth-child(1) { transform: rotate(0deg) translate(0, 0) !important; z-index: 5 !important; }

  .masonry-item:hover { z-index: 10 !important; }

}
.masonry-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.55s ease;
}
.masonry-item:hover img { transform: scale(1.04); }

.masonry-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,9,16,.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex; align-items: flex-end;
  padding: 1rem;
}
.masonry-item:hover .masonry-item-overlay { opacity: 1; }
.masonry-item-view {
  color: rgba(251,243,233,.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10,4,2,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-medium);
  padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  max-width: min(90vw, 920px);
  max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,.7);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed; z-index: 10;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: 1.125rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 0.75rem; letter-spacing: 0.15em;
}

/* ─── 17. GIFT / DONATIONS ───────────────────────────────── */
.gift { padding: var(--section-pad); }
.gift-header { text-align: center; margin-bottom: 2.75rem; }

.gift-card {
  max-width: 500px; margin: 0 auto;
  background: var(--petal-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.gift-card-subtitle {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--cocoa-brown);
  opacity: 0.65;
  margin-bottom: 1.875rem;
  line-height: 1.7;
}
.gift-nigeria-btns {
  display: flex; gap: 0.875rem;
  justify-content: center; flex-wrap: wrap;
}

/* Stripe form */
.stripe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.stripe-input-group {
  position: relative;
  width: 100%;
  max-width: 200px;
}
.currency-symbol {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--cocoa-brown);
  font-weight: 500;
  pointer-events: none;
}
.stripe-amount-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1.5rem;
  font-family: var(--ff-body);
  border: 1.5px solid rgba(201,166,107,0.4);
  border-radius: var(--radius-md);
  background: var(--ivory-cream);
  color: var(--wine-burgundy);
  transition: all 0.3s ease;
  outline: none;
}
.stripe-amount-input:focus {
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 3px rgba(201,166,107,0.15);
}
.stripe-submit-btn {
  width: 100%;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* Wise certificate */
.wise-certificate {
  background: var(--ivory-cream);
  border: 1px solid rgba(201,166,107,.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
}
.wise-certificate-header {
  display: flex; align-items: center; gap: 0.875rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,166,107,.18);
}
.wise-logo-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--wine-burgundy);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.wise-cert-title {
  font-family: var(--ff-display);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--wine-burgundy);
}
.wise-cert-sub {
  font-size: 0.72rem;
  color: var(--cocoa-brown); opacity: 0.55;
  margin-top: 0.1rem;
}
.wise-field {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(201,166,107,.1);
}
.wise-field:last-child { border-bottom: none; }
.wise-field-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-gold); flex-shrink: 0; min-width: 90px;
}
.wise-field-value {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem; color: var(--cocoa-brown); font-weight: 600;
}
.copy-btn {
  padding: 0.2rem 0.575rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(201,166,107,.3);
  color: var(--warm-gold);
  font-size: 0.68rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast); flex-shrink: 0;
}
.copy-btn:hover { background: var(--warm-gold); color: white; }
.copy-btn.copied { background: #4caf50; border-color: #4caf50; color: white; }
.wise-currency-header {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(59,42,30,.4);
  padding: 0.625rem 0 0.25rem;
}

/* ─── 18. RSVP (dark section) ────────────────────────────── */
.rsvp { padding: var(--section-pad); }
.rsvp-header { text-align: center; margin-bottom: 2.75rem; }

.rsvp-card {
  max-width: 520px; margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,166,107,.15);
  position: relative;
  backdrop-filter: blur(4px);
}

/* Golden Thread left edge */
.rsvp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 2rem; bottom: 2rem;
  width: 2.5px;
  background: linear-gradient(to bottom, transparent, rgba(201,166,107,.6) 20%, rgba(201,166,107,.6) 80%, transparent);
  border-radius: 0 2px 2px 0;
}

.rsvp-question {
  font-family: var(--ff-display);
  font-size: 1.625rem; font-weight: 400;
  color: var(--petal-white);
  margin-bottom: 0.375rem;
  text-align: center;
}
.rsvp-question-sub {
  font-size: 0.875rem; font-style: italic;
  color: rgba(251,243,233,.5);
  text-align: center; margin-bottom: 2rem;
}

.rsvp-choice-btns {
  display: flex; gap: 1rem; justify-content: center;
}
.rsvp-choice {
  flex: 1; max-width: 190px;
  padding: 1.125rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-display);
  font-size: 1.0625rem; font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}
.rsvp-choice-yes {
  background: var(--wine-burgundy);
  color: var(--petal-white);
  border-color: var(--wine-burgundy);
}
.rsvp-choice-yes:hover {
  background: #5a2330; border-color: #5a2330;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(110,44,59,.4);
}
.rsvp-choice-no {
  background: transparent;
  color: rgba(251,243,233,.75);
  border-color: rgba(201,166,107,.3);
}
.rsvp-choice-no:hover {
  border-color: rgba(201,166,107,.6);
  color: var(--petal-white);
  transform: translateY(-3px);
}

.rsvp-step-2 {
  display: none;
  margin-top: 1.875rem;
  padding-top: 1.875rem;
  border-top: 1px solid rgba(201,166,107,.15);
}
.rsvp-step-2.visible { display: block; }

.rsvp-attending-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(201,166,107,.8);
  margin-bottom: 1.5rem;
}
.rsvp-attending-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm-gold);
  flex-shrink: 0;
}

.rsvp-fields { display: flex; flex-direction: column; gap: 1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.3rem; }
.field-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(201,166,107,.7);
}
.field-input {
  padding: 0.8125rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,166,107,.2);
  background: rgba(255,255,255,.05);
  color: var(--petal-white);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.field-input:focus {
  outline: none;
  border-color: rgba(201,166,107,.5);
  box-shadow: 0 0 0 3px rgba(201,166,107,.08);
}
.field-input::placeholder { color: rgba(251,243,233,.2); }

.rsvp-error-msg {
  display: none;
  background: rgba(220, 53, 69, 0.1);
  color: #d32f2f;
  border-left: 3px solid #d32f2f;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: left;
  border-radius: 0 4px 4px 0;
}

.rsvp-submit {
  width: 100%; padding: 0.9375rem;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--wine-burgundy);
  color: var(--petal-white);
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
}
.rsvp-submit:hover {
  background: #5a2330;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(110,44,59,.45);
}
.rsvp-submit:disabled { opacity: 0.5; pointer-events: none; }

/* Confirmation */
.rsvp-confirmation { display: none; text-align: center; padding: 1.5rem 1rem; }
.rsvp-confirmation.visible { display: block; }
.rsvp-confirmation-ornament {
  font-family: var(--ff-display);
  font-size: 2rem; font-style: italic; font-weight: 300;
  color: var(--warm-gold); margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
/* Gold monogram, for the dark RSVP panel */
.rsvp-confirmation-ornament img {
  height: 3.25rem;
  width: auto;
  display: block;
  margin: 0 auto;
}
.rsvp-confirmation-title {
  font-family: var(--ff-display);
  font-size: 1.75rem; font-weight: 400;
  color: var(--petal-white); margin-bottom: 0.75rem;
}
.rsvp-confirmation-text {
  font-size: 0.9375rem; font-style: italic;
  color: rgba(251,243,233,.65); line-height: 1.75;
}

/* ─── 19. FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--deep-cocoa);
  color: rgba(251,243,233,.55);
  padding: 3rem 1.5rem 6.5rem;
  text-align: center;
}
.footer-monogram {
  font-family: var(--ff-script);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--warm-gold);
  margin-bottom: -0.25rem;
}
.footer-names {
  font-family: var(--ff-display);
  font-size: 1.875rem; font-weight: 300;
  color: var(--petal-white);
  margin-bottom: 0.25rem;
}
.footer-date {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(201,166,107,.6);
  margin-bottom: 2rem;
}
.footer-links {
  display: flex; gap: 2rem;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(251,243,233,.45);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--warm-gold); }
.footer-divider {
  width: 50px; height: 1px;
  background: rgba(201,166,107,.2);
  margin: 0 auto 1.5rem;
}
.footer-attribution {
  font-size: 0.68rem;
  color: rgba(251,243,233,.25);
  line-height: 1.7;
}
.footer-attribution a { color: rgba(201,166,107,.45); }
.footer-attribution a:hover { color: rgba(201,166,107,.75); }

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

/* ─── 21. REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-content, .hero-eyebrow, .hero-tagline,
  .hero-countdown, .hero-cta, .hero-scroll,
  .sticky-gift { opacity: 1; transform: none; animation: none; }
  .timeline-beat, .event-card, .masonry-item, .reveal { opacity: 1; transform: none; }
}

/* ─── 22. UTILITIES ──────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (min-width: 601px) {
  .masonry-item.hidden-desktop-item {
    display: none !important;
  }
}

/* ─── 23. VENDORS PAGE & SECTION ───────────────────────────── */
.vendors {
  position: relative;
  background-color: var(--petal-white);
  border-top: 1px solid rgba(201, 166, 107, 0.2);
}

.vendors-header {
  margin-bottom: 4rem;
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .vendors-grid {
    gap: 2.5rem;
  }
}

.vendor-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(201, 166, 107, 0.25);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.vendor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--warm-gold), var(--dusty-peach));
  opacity: 0.5;
  transition: opacity var(--transition-medium);
}

.vendor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(201, 166, 107, 0.5);
}

.vendor-card:hover::before {
  opacity: 1;
}

.vendor-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.5rem;
  background: var(--petal-white);
  color: var(--wine-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(201, 166, 107, 0.4);
  transition: background var(--transition-medium), color var(--transition-medium);
}

.vendor-card:hover .vendor-icon {
  background: var(--wine-burgundy);
  color: var(--petal-white);
  box-shadow: inset 0 0 0 1px var(--wine-burgundy);
}

.vendor-icon svg {
  width: 24px;
  height: 24px;
}

.vendor-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vendor-role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 0.75rem;
}

.vendor-name {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  color: var(--wine-burgundy);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.vendor-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--cocoa-brown);
}

.vendor-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(251, 243, 233, 0.4);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.vendor-contact a:hover {
  color: var(--wine-burgundy);
  background: rgba(201, 166, 107, 0.15);
}

.vendor-contact a svg {
  color: var(--warm-gold);
}
