/* ============================================================
   EBUBE & TIMI — WEDDING INVITATION
   styles.css

   PLACEHOLDER ASSETS (swap these in before deploying):
   ─ images/couple.jpg  → couple's pre-wedding photo
   ─ audio/trad-song.mp3  → Traditional wedding background music
   ─ audio/white-song.mp3 → White wedding background music

   OFFICIAL COLOURS: Sage Green (#5F7A5E) · Blush Pink (#E8839A)
   Gold (#D4AF37) is accent-only — used sparingly.
============================================================ */


/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Primary brand colours */
  --teal:        #5F7A5E;
  --teal-mid:    #4A6649;
  --teal-light:  #C5D9C4;
  --teal-wash:   #EDF4EC;

  --pink:        #E8839A;
  --pink-light:  #FFB7C5;
  --pink-wash:   #FDF0F3;

  /* Accent — used sparingly for warmth */
  --gold:        #C9A84C;
  --gold-light:  #F0DFA0;

  /* Backgrounds */
  --ivory:       #FDFAF6;
  --ivory-soft:  #F7F3ED;
  --white:       #FFFFFF;

  /* Text */
  --text-dark:   #1A1A1A;
  --text-mid:    #444444;
  --text-soft:   #888888;

  /* Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Montserrat', sans-serif;

  /* Tokens */
  --radius:      1rem;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.07);
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}


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

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

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #FDF0F3 0%, #F9F5F0 40%, #EDF4EC 100%);
  color: var(--text-dark);
  overflow: hidden; /* locked until envelope opens */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Each section sits on white/ivory cards so the gradient peeks between them */
.section { background: transparent; }
.hero, .countdown, .itinerary { background: transparent; }

/* Do NOT apply display:block globally to svg — breaks inline icons */
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }


/* ── SHARED SECTION SHELL ───────────────────────────────── */
.section {
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.4rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 2rem;
}


/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
  width: 100%;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.97); }

/* Teal filled — primary action on trad card */
.btn--teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--teal:hover, .btn--teal:focus-visible {
  background: var(--teal-mid);
  box-shadow: 0 4px 16px rgba(0,77,64,0.3);
}

/* Pink filled — primary action on white wedding card */
.btn--pink {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.btn--pink:hover, .btn--pink:focus-visible {
  background: var(--pink-light);
  box-shadow: 0 4px 16px rgba(232,131,154,0.35);
}

/* Pink ghost — secondary action */
.btn--ghost {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--pink-wash);
}

/* RSVP — large, pink-dominant CTA */
.btn--rsvp {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  border-color: transparent;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  box-shadow: 0 6px 20px rgba(232,131,154,0.35);
}
.btn--rsvp:hover, .btn--rsvp:focus-visible {
  box-shadow: 0 8px 24px rgba(232,131,154,0.5);
  transform: translateY(-2px);
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ============================================================
   ENVELOPE OVERLAY — Realistic illustrated envelope
   Sage green · white watercolour florals · gold foil · pink wax seal
   Blush pink background · "Click here to open" beneath
============================================================ */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  /* Blush pink — matching reference */
  background: #F5E6EA;
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(255,200,215,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(232,131,154,0.18) 0%, transparent 50%);
  transition: opacity 0.7s ease;
  overflow: hidden;
}

.envelope-bg { display: none; } /* replaced by CSS background */

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

/* "Click here to open" prompt beneath envelope */
#envelope-overlay .env-cta-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(60,60,60,0.7);
  text-align: center;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

/* ── Envelope canvas wrapper ── */
#envelope {
  position: relative;
  width: min(420px, 88vw);
  cursor: pointer;
  outline: none;
  /* Soft card shadow — matches reference */
  filter:
    drop-shadow(0 20px 50px rgba(0,0,0,0.22))
    drop-shadow(0 6px 16px rgba(0,0,0,0.14));
  transition: transform 0.25s ease, filter 0.25s ease;
}
#envelope:hover {
  transform: translateY(-4px);
  filter:
    drop-shadow(0 28px 60px rgba(0,0,0,0.28))
    drop-shadow(0 8px 20px rgba(0,0,0,0.16));
}
#envelope:focus-visible {
  outline: 3px solid rgba(232,131,154,0.6);
  outline-offset: 8px;
  border-radius: 8px;
}

/* The envelope is drawn entirely in a canvas element by JS */
#env-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Seal pulse overlay — positioned absolutely over canvas */
.env-seal {
  position: absolute;
  /* JS will set exact top/left via style attribute */
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  pointer-events: all;
  z-index: 5;

  /* Hyper-realistic blush pink wax seal */
  background: radial-gradient(
    circle at 30% 26%,
    #FFEEF2 0%,
    #FFCCD8 10%,
    #F0A0B8 25%,
    #E8839A 42%,
    #C85878 62%,
    #A03560 80%,
    #C06080 100%
  );
  box-shadow:
    0 0 0 2.5px rgba(240,160,180,0.7),
    0 0 0 5px rgba(192,88,120,0.3),
    0 6px 28px rgba(232,131,154,0.85),
    0 10px 35px rgba(192,88,120,0.45),
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 -3px 7px rgba(100,20,40,0.3),
    inset 0 3px 9px rgba(255,220,230,0.55),
    inset 2px 2px 5px rgba(255,200,215,0.4),
    inset -2px -2px 7px rgba(120,30,60,0.4);

  animation: seal-glow 3s ease-in-out infinite;
}
.env-seal:hover { transform: translate(-50%,-50%) scale(1.08); }
.env-seal.hidden { opacity: 0; pointer-events: none; }

/* Botanical stamp impression */
.env-seal::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, rgba(255,220,230,0.12) 0%, transparent 60%);
  border: 1px solid rgba(120,30,60,0.28);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}
/* Flower stamp lines */
.env-seal::after {
  content: '';
  position: absolute;
  inset: 20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cg fill='none' stroke='rgba(120,30,60,0.45)' stroke-width='0.9'%3E%3Ccircle cx='25' cy='25' r='9'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(0 25 25)'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(60 25 25)'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(120 25 25)'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(180 25 25)'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(240 25 25)'/%3E%3Cellipse cx='25' cy='13' rx='4.5' ry='8.5' transform='rotate(300 25 25)'/%3E%3Ccircle cx='25' cy='25' r='2.5' fill='rgba(120,30,60,0.4)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

@keyframes seal-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2.5px rgba(240,160,180,0.7),
      0 0 0 5px rgba(192,88,120,0.3),
      0 6px 28px rgba(232,131,154,0.85),
      0 10px 35px rgba(192,88,120,0.45),
      0 6px 14px rgba(0,0,0,0.35),
      inset 0 -3px 7px rgba(100,20,40,0.3),
      inset 0 3px 9px rgba(255,220,230,0.55),
      inset 2px 2px 5px rgba(255,200,215,0.4),
      inset -2px -2px 7px rgba(120,30,60,0.4);
  }
  50% {
    box-shadow:
      0 0 0 3.5px rgba(240,160,180,0.85),
      0 0 0 8px rgba(192,88,120,0.2),
      0 8px 42px rgba(232,131,154,1),
      0 14px 50px rgba(192,88,120,0.6),
      0 0 22px rgba(255,180,200,0.55),
      0 6px 14px rgba(0,0,0,0.35),
      inset 0 -3px 7px rgba(100,20,40,0.28),
      inset 0 4px 11px rgba(255,220,230,0.65),
      inset 2px 2px 7px rgba(255,200,215,0.5),
      inset -2px -2px 7px rgba(120,30,60,0.35);
  }
}

/* "E & T" and "Tap to Open" text on seal */
.env-seal__initials {
  font-family: 'Great Vibes', cursive;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(120,30,60,0.5);
  position: relative; z-index: 2;
  line-height: 1;
}
.env-seal__cta {
  font-family: var(--font-body);
  font-size: 0.33rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(120,30,60,0.4);
  position: relative; z-index: 2;
}

/* ── Inner card — hidden, rises on open ── */
.env-body { display: none; } /* replaced by canvas */
.env-flap { display: none; }
.env-fold { display: none; }
.env-body::before, .env-body::after { display: none; }
.env-flap::after { display: none; }
.env-invited { display: none; } /* drawn directly on canvas */

.env-card {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, 120vh);
  width: min(400px, 90vw);
  background: #FDFAF6;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  z-index: 9998;
  opacity: 1;
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23FDFAF6'/%3E%3Cpath d='M0 2h4M2 0v4' stroke='rgba(0,0,0,0.012)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 4px 4px;
  pointer-events: none;
}
.env-card.rise {
  transform: translate(-50%, -60vh);
  opacity: 0;
}

.env-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.4rem;
}
.env-card__names {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1.15;
}
.env-card__names span { color: var(--pink); font-size: 1.4rem; }
.env-card__date {
  font-family: var(--font-body);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ============================================================
   SVG ENVELOPE SHELL + FLAP ANIMATION
============================================================ */

/* Wrapper constrains the SVG width */
.env-shell {
  position: relative;
  width: 100%;
}

/* The SVG itself — responsive, drop shadow via CSS as backup */
.env-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Flap group — transforms around the top edge of the envelope */
.env-flap-grp {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.env-flap-grp.flap-open {
  transform: rotateX(185deg);
}

/* "Tap to open" tiny label over seal area */
.env-tap-cta {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 0.42rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   AUDIO BUTTON
============================================================ */
.audio-btn-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}
.audio-hint {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.6;
}
.audio-btn {
  position: relative;
  bottom: auto;
  right: auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0,0,0,0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.audio-btn:hover { background: var(--teal-wash); border-color: var(--teal); }
.audio-btn.playing .audio-icon {
  animation: vinyl-spin 5s linear infinite;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
.audio-icon { width: 22px; height: 22px; display: block; }


/* ============================================================
   SECTION A — HERO  (dramatic wedding invite style)
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ivory);
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  max-width: 100%;
}

/* Soft radial glow behind content */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(253,250,246,0.0) 0%, rgba(253,250,246,0.95) 65%),
    linear-gradient(160deg, rgba(232,131,154,0.08) 0%, rgba(95,122,94,0.07) 100%);
  z-index: 0;
}

/* Ornament containers — top-left, top-right, bottom-left, bottom-right */
.hero__ornament {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero__ornament--tl { top: -10px; left: -10px; width: min(220px, 42vw); }
.hero__ornament--tr { top: -10px; right: -10px; width: min(200px, 38vw); transform: scaleX(-1); }
.hero__ornament--bl { bottom: -10px; left: -10px; width: min(180px, 35vw); transform: scaleY(-1); }
.hero__ornament--br { bottom: -10px; right: -10px; width: min(160px, 32vw); transform: scale(-1,-1); }

/* Falling petal canvas */
#petal-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Rings ornament — centred top */
.hero__rings {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.7;
}

/* Wine glasses — centred bottom */
.hero__glasses {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  width: 48px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Decorative colour blobs — kept but smaller */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero__blob--teal {
  width: 300px; height: 300px;
  background: var(--teal);
  top: -100px; left: -100px;
}
.hero__blob--pink {
  width: 250px; height: 250px;
  background: var(--pink);
  bottom: -80px; right: -80px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-mid);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__names {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.hero__name {
  display: block;
  font-size: clamp(3.8rem, 14vw, 5.5rem);
  color: var(--teal);
  letter-spacing: 0.01em;
}
.hero__name--bride { color: var(--pink); }
.hero__name--groom { color: var(--teal); }
.hero__ampersand {
  display: block;
  font-size: 2rem;
  color: var(--pink);
  font-style: italic;
  margin: 0.15rem 0;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 1.4rem;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero__divider-line {
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal-light));
}
.hero__divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--teal-light));
}
.hero__divider-heart {
  color: var(--pink);
  font-size: 0.85rem;
  line-height: 1;
}

.hero__date-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}



}

/* Desktop — wide cinematic strip */
@media (min-width: 768px) {
  .couple-photo {
    height: 60vh;
    max-height: 640px;
  }
  .couple-photo__img {
    object-position: center 22%;
  }
}

.couple-photo__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0,77,64,0.78) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.couple-photo__caption span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


/* ============================================================
   SECTION B — COUNTDOWN
============================================================ */
.countdown {
  background: var(--teal);
  max-width: 100%;
  padding: 4rem 1.5rem;
  text-align: center;
}
.countdown .section__eyebrow { color: var(--pink-light); opacity: 0.9; }
.countdown .section__heading { color: #fff; margin-bottom: 2.5rem; }

.countdown__track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  max-width: 340px;
  margin: 0 auto;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}
.countdown__number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.countdown__label {
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
}
.countdown__colon {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--pink-light);
  line-height: 1.05;
  padding-top: 0.05rem;
}


/* ============================================================
   SECTION C — EVENTS
============================================================ */
.events { background: var(--ivory); }

.events__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}
.event-card__band {
  height: 4px;
}
.event-card--trad .event-card__band {
  background: linear-gradient(to right, var(--teal), var(--teal-mid));
}
.event-card--white .event-card__band {
  background: linear-gradient(to right, var(--pink), var(--pink-light));
}

.event-card__body { padding: 1.4rem; }

.event-card__type {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-mid);
  margin-bottom: 0.3rem;
}
.event-card__type--pink { color: var(--pink); }

.event-card__date {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.event-card__venue-block {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.venue-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--teal-mid);
  stroke: var(--teal-mid);
  display: inline-block; /* NOT block — must sit inline in flex */
}
.event-card--white .venue-svg {
  color: var(--pink);
  stroke: var(--pink);
}
.event-card__venue-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}
.event-card__venue-area {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-soft);
}

.event-card__btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.event-card__btn-group .btn { margin-top: 0; }
.event-card .btn { margin-top: 1rem; }




/* ============================================================
   VENUE PHOTOS — 2-up grid (entrance + hall) per venue
============================================================ */
.venue-photos {
  margin: 1rem 0 0.25rem;
}

.venue-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.venue-fig {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--teal-wash);
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--teal-light);
}
.venue-fig--pink {
  background: var(--pink-wash);
  border-color: var(--pink-light);
}

/* Placeholder state — shown via onerror until real image loads */
.venue-fig--missing {
  display: flex;
  align-items: center;
  justify-content: center;
}
.venue-fig--missing::after {
  content: 'Photo coming soon';
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.4;
}
.venue-fig--missing .venue-img { display: none; }

.venue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--ease);
}
.venue-fig:hover .venue-img,
.venue-fig:focus-within .venue-img {
  transform: scale(1.04);
}

/* Caption bar at bottom of each photo */
.venue-fig__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  background: linear-gradient(to top, rgba(0,77,64,0.82) 0%, transparent 100%);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.venue-fig--pink .venue-fig__label {
  background: linear-gradient(to top, rgba(232,131,154,0.82) 0%, transparent 100%);
}
.venue-fig__icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: inline-block;
  stroke: #fff;
  color: #fff;
}

/* Spacing for the reception venue-block when it follows a photo grid */
.venue-block--spaced {
  margin-top: 1.25rem;
}

/* ============================================================
   SECTION D — TIMELINE
============================================================ */
.itinerary { background: var(--teal-wash); }
.itinerary .section__heading { color: var(--teal); }

.timeline {
  position: relative;
  padding-left: 2.75rem;
}
/* Vertical track */
.timeline::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal-light), var(--pink-light));
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateX(-0.75rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline__item.lit {
  opacity: 1;
  transform: translateX(0);
}

.timeline__node {
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, background 0.4s ease;
  flex-shrink: 0;
}
.timeline__item.lit .timeline__node {
  border-color: var(--teal);
  background: var(--teal-wash);
}

.timeline-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  color: var(--teal-mid);
  stroke: var(--teal-mid);
}
.timeline__item.lit .timeline-svg {
  color: var(--teal);
  stroke: var(--teal);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.timeline__desc {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-mid);
  line-height: 1.55;
}


/* ============================================================
   SECTION E — DRESS CODE & REGISTRY
============================================================ */
.details { background: var(--ivory); }

.dress-code { margin-bottom: 2.5rem; }

.dress-code__intro {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  font-style: italic;
  text-align: center;
}

.dress-code__swatches {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.swatch__circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
}
.swatch__circle--teal  { background: var(--teal); }
.swatch__circle--pink  { background: var(--pink); }
.swatch__name {
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

.registry {
  background: var(--pink-wash);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  border: 1px dashed rgba(232,131,154,0.35);
}
.registry__note {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.registry__placeholder {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  background: var(--pink-light);
  border: 1px solid var(--pink);
}
.registry__placeholder-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #fff;
  font-weight: 600;
}


/* ============================================================
   SECTION F — CALENDAR & RSVP
============================================================ */
.rsvp { background: var(--teal-wash); text-align: center; }
.rsvp .section__heading { margin-bottom: 1.5rem; }

/* Calendar */
.calendar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
}
.calendar__header { margin-bottom: 0.75rem; }
.calendar__month {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 400;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-head {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  padding: 0.2rem 0 0.3rem;
}
.cal-cell {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-dark);
  text-align: center;
  padding: 0.35rem 0.05rem;
  border-radius: 0.3rem;
  line-height: 1.2;
}
.cal-cell--trad {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}
.cal-cell--white {
  background: var(--pink);
  color: #fff;
  font-weight: 600;
}
.cal-cell--trad small,
.cal-cell--white small {
  display: block;
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  opacity: 0.88;
  text-transform: uppercase;
}
.calendar__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: var(--text-soft);
}
.legend__swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.2rem;
}
.legend__swatch--trad  { background: var(--teal); }
.legend__swatch--white { background: var(--pink); }

/* RSVP CTA */
.rsvp__cta { text-align: center; }
.rsvp__prompt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--teal);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.footer__names {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.6rem;
}
.footer__divider {
  color: var(--pink-light);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}


/* ============================================================
   MAIN SITE VISIBILITY
============================================================ */
#main-site {
  opacity: 0;
  transition: opacity 0.85s var(--ease) 0.25s;
}
#main-site.visible { opacity: 1; }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 400px) {
  .hero__name      { font-size: 4.6rem; }
  .countdown__number { font-size: 3.6rem; }
  .countdown__unit { min-width: 68px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .timeline__item,
  #main-site,
  .env-card,
  .env-flap {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .audio-btn.playing .audio-icon { animation: none !important; }
  .env-seal { animation: none !important; }
}


/* ============================================================
   ASO EBI SECTION
============================================================ */
.aso-ebi {
  background: var(--teal-wash);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--teal-light);
  margin-top: 2rem;
}
.aso-ebi__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.aso-ebi__note {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.aso-ebi__bank {
  background: var(--white);
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--teal-light);
  margin-bottom: 0.75rem;
}
.aso-ebi__bank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--teal-wash);
}
.aso-ebi__bank-row:last-child { border-bottom: none; }
.aso-ebi__bank-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  min-width: 110px;
}
.aso-ebi__bank-value {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Copy button on account number */
.copy-trigger {
  cursor: pointer;
  border-bottom: 1px dashed var(--teal-light);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.copy-trigger:hover { color: var(--teal); }
.copy-trigger.copied { color: var(--teal); }
.copy-icon {
  width: 13px; height: 13px;
  display: inline-block;
  color: var(--teal-mid);
  stroke: var(--teal-mid);
  vertical-align: middle;
}
.aso-ebi__receipt-note {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--teal-mid);
  margin-top: 0.85rem;
  text-align: center;
  font-weight: 500;
}


/* ============================================================
   RSVP EMBEDDED FORM
============================================================ */
.rsvp__form-wrap {
  margin-top: 1.5rem;
  text-align: center;
}
.rsvp__prompt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.rsvp__iframe-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--teal-light);
  /* Fixed height — Google Forms needs explicit height to render */
  height: 680px;
}
.rsvp__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.rsvp__fallback {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-soft);
}
.rsvp__fallback-link {
  color: var(--teal-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Wider iframe on desktop */
@media (min-width: 768px) {
  .rsvp__iframe-shell { height: 760px; }
}


/* ============================================================
   DRESS CODE — EXTENDED STYLES
   Accessory note (fila / gele) + trad burgundy swatch
============================================================ */
.dress-code__accessory {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-mid);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}
.dress-code__fila,
.dress-code__gele {
  font-weight: 600;
  font-style: normal;
}
.dress-code__fila { color: var(--teal); }
.dress-code__gele { color: var(--pink); }

/* Burgundy swatch — inline style used directly in trad HTML */
/* (no extra CSS needed — swatch uses inline background colour) */


/* ============================================================
   ASO EBI SWATCH — diagonal sage green + pink stripe
============================================================ */
.swatch__circle--asoebi {
  background: linear-gradient(
    135deg,
    var(--teal)  0%,
    var(--teal)  49%,
    var(--pink)  51%,
    var(--pink)  100%
  );
}

/* ============================================================
   COUPLE PHOTO — robust rendering for any image format/dimension
   Container holds fixed height at each breakpoint.
   img fills it with object-fit:cover regardless of orientation.
============================================================ */
.couple-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  /* Mobile default — portrait-friendly */
  height: min(75vw, 480px);
  background: var(--teal-wash); /* placeholder bg while image loads */
}

.couple-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%; /* bias toward top — keeps faces visible */
}

@media (min-width: 480px) {
  .couple-photo { height: 500px; }
}

@media (min-width: 768px) {
  .couple-photo { height: min(60vh, 640px); }
  .couple-photo__img { object-position: center 25%; }
}

/* Caption overlay */
.couple-photo__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(95,122,94,0.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}
.couple-photo__caption span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


/* ============================================================
   WELCOME SECTION
   Inspired by the "Love Like Nile" reference — soft ivory bg,
   Great Vibes script title, gold diamond divider, centred body
============================================================ */
.welcome-section {
  background: var(--ivory-soft, #F4EFE8);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Subtle border top and bottom to frame the section */
  border-top: 1px solid rgba(95,122,94,0.1);
  border-bottom: 1px solid rgba(95,122,94,0.1);
}
/* Faint watermark circle behind text */
.welcome-section::before {
  content: 'E T';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 300;
  color: rgba(95,122,94,0.05);
  pointer-events: none;
  letter-spacing: 2rem;
  white-space: nowrap;
}
.welcome__inner {
  position: relative; z-index: 1;
  max-width: 400px; margin: 0 auto;
}
.welcome__title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1;
}
.welcome__divider {
  display: flex; align-items: center; gap: 0.6rem;
  justify-content: center; margin-bottom: 1.75rem;
}
.welcome__line {
  flex: 1; max-width: 60px; height: 1px;
  background: var(--teal-light);
}
.welcome__diamond {
  color: var(--gold, #C9A84C);
  font-size: 0.65rem;
}
.welcome__body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  font-weight: 300;
}
.welcome__sign {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--teal);
}


/* ============================================================
   FAQ SECTION — accordion style
============================================================ */
.faq {
  background: var(--pink-wash);
  text-align: center;
}
.faq__title {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.faq__divider {
  display: flex; align-items: center; gap: 0.6rem;
  justify-content: center; margin-bottom: 1.25rem;
}
.faq__line {
  flex: 1; max-width: 50px; height: 1px;
  background: var(--pink-light);
}
.faq__diamond { color: var(--gold, #C9A84C); font-size: 0.65rem; }
.faq__subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem; color: var(--text-mid);
  line-height: 1.6; margin-bottom: 2rem;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
.faq__list {
  display: flex; flex-direction: column; gap: 0.75rem;
  text-align: left;
}
.faq__item {
  background: var(--white);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.faq__question {
  width: 100%; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--teal);
  text-align: left; line-height: 1.4;
  transition: background 0.2s;
}
.faq__question:hover { background: var(--teal-wash); }
.faq__chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--pink); stroke: var(--pink);
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}
.faq__answer {
  padding: 0 1.25rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem; color: var(--text-mid);
  line-height: 1.65;
}
.faq__answer[hidden] { display: none; }


/* ============================================================
   GLAMOUR UPGRADES — wedding of the century feel
============================================================ */

/* Global petal canvas — sits behind everything */
#global-petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Section headings — more dramatic */
.section__heading {
  font-family: 'Great Vibes', cursive !important;
  font-size: 2.8rem !important;
  font-weight: 400 !important;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* Section eyebrows — gold accent */
.section__eyebrow {
  color: var(--gold) !important;
  letter-spacing: 0.28em;
}

/* Cards — elevated with richer shadow */
.event-card, .calendar, .registry, .aso-ebi {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* Countdown numbers — Great Vibes */
.countdown__number {
  font-family: 'Great Vibes', cursive !important;
  font-size: 3.8rem !important;
}

/* Timeline titles — more elegant */
.timeline__title {
  font-family: 'Great Vibes', cursive !important;
  font-size: 1.6rem !important;
}

/* FAQ — LEGIBILITY FIX */
/* Use Cormorant Garamond instead of Great Vibes for readability */
.faq__question {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  font-style: italic;
  color: var(--teal) !important;
  letter-spacing: 0.01em;
}
.faq__answer p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* Welcome section title */
.welcome__title {
  font-size: 4rem !important;
}

/* Footer names */
.footer__names {
  font-family: 'Great Vibes', cursive !important;
  font-size: 2.8rem !important;
}

/* Envelope "You are invited" text on flap */
.env-invited {
  position: absolute;
  top: 28%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.3);
  white-space: nowrap;
  z-index: 11;
  pointer-events: none;
  letter-spacing: 0.02em;
}


/* ============================================================
   CUSTOM RSVP FORM — Option A (approval-before-sheet)
============================================================ */
.rsvp-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--teal-light);
  text-align: left;
}

.rsvp-form__field {
  margin-bottom: 1.25rem;
}

.rsvp-form__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.rsvp-form__req {
  color: var(--pink);
  font-size: 0.75rem;
}

.rsvp-form__hint {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.rsvp-form__input,
.rsvp-form__select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--teal-light);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dark);
  background: var(--ivory);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.rsvp-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F7A5E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.rsvp-form__input:focus,
.rsvp-form__select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(95,122,94,0.12);
}

.rsvp-form__input:invalid:not(:placeholder-shown),
.rsvp-form__select:invalid:not([value=""]) {
  border-color: var(--pink);
}

.rsvp-form__submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Status messages */
.rsvp-form__status {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}
.rsvp-form__status:not(:empty) { display: block; }

.rsvp-form__status--info {
  background: var(--teal-wash);
  color: var(--teal);
  border: 1px solid var(--teal-light);
}
.rsvp-form__status--success {
  background: #F0F9F0;
  color: #2E6B2E;
  border: 1px solid #A8D8A8;
  font-size: 0.82rem;
}
.rsvp-form__status--error {
  background: var(--pink-wash);
  color: #8B2040;
  border: 1px solid var(--pink-light);
}


/* ============================================================
   RSVP — THANK YOU + RESPONDED STATES
============================================================ */

/* Thank you panel — shown after successful submission */
.rsvp-thankyou {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(95,122,94,0.15);
}
.rsvp-thankyou__heart {
  font-size: 2.5rem;
  color: var(--pink);
  margin-bottom: 1rem;
  animation: heartbeat 1.2s ease-in-out 2;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}
.rsvp-thankyou__title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.rsvp-thankyou__sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.rsvp-thankyou__close {
  background: none;
  border: 1.5px solid var(--teal-light);
  color: var(--teal);
  border-radius: 2rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rsvp-thankyou__close:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Already-responded panel — shown on return visits */
.rsvp-responded {
  background: var(--teal-wash);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--teal-light);
}
.rsvp-responded__icon {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.rsvp-responded__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.rsvp-responded__sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-bottom: 0;
}



.hero__families {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem auto 0.75rem;
  max-width: 320px;
}

.hero__family {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero__family-label {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__family-name {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero__family-divider {
  width: 1px;
  height: 36px;
  background: var(--teal-light);
  flex-shrink: 0;
}

.hero__blessing {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0.5rem auto 1.25rem;
  max-width: 300px;
}


/* ============================================================
   HERO — FAMILIES HEADER (top of invite, above names)
   Styled after the reference: "The Families of / parents / cordially invite..."
============================================================ */
.hero__families-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(95,122,94,0.15);
}

.hero__families-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.hero__families-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.hero__family-group {
  text-align: center;
}

.hero__family-parents {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  font-style: normal;
}

.hero__family-parents em {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero__families-amp {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--teal);
  display: block;
  line-height: 1;
  margin: 0.1rem 0;
}

.hero__families-invite {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Landing page variants */
.land-families {
  text-align: center;
  margin: 1rem 0 1.5rem;
  padding: 0 0.5rem;
}

.land-families-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.land-families-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.land-family-parents {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.land-family-parents em {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.land-families-amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--sage, #5F7A5E);
  display: block;
  line-height: 1;
}

.land-families-invite {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.6;
}
/* ============================================================
   HERO — FAMILIES HEADER (above names, below rings)
   Mobile-first, scales up cleanly for tablet and desktop
============================================================ */

/* Position the hero section as a flex column so families
   header sits at the very top, Ebube & Timi dominates centre */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

.hero__families-header {
  width: 100%;
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(95,122,94,0.12);
  background: transparent;
  position: relative;
  z-index: 2;
}

.hero__families-label {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
  display: block;
}

.hero__families-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.hero__family-group {
  text-align: center;
}

.hero__family-parents {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.hero__family-parents em {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.hero__families-amp {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--teal);
  display: block;
  line-height: 1.2;
  margin: 0.05rem 0;
}

.hero__families-invite {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.7;
  display: block;
}

/* ── Tablet (≥600px) ── */
@media (min-width: 600px) {
  .hero__families-header {
    padding: 1.75rem 2rem 1.25rem;
  }
  .hero__families-names {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  .hero__families-amp {
    display: inline;
    font-size: 1.1rem;
    margin: 0 0.25rem;
  }
  .hero__family-parents {
    font-size: 0.95rem;
  }
  .hero__families-label {
    font-size: 0.55rem;
  }
  .hero__families-invite {
    font-size: 0.58rem;
  }
}

/* ── Desktop (≥900px) ── */
@media (min-width: 900px) {
  .hero__families-header {
    padding: 2rem 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: auto;
    border-radius: 0 0 8px 8px;
    border-left: 1px solid rgba(95,122,94,0.1);
    border-right: 1px solid rgba(95,122,94,0.1);
  }
  .hero__family-parents {
    font-size: 1rem;
  }
  .hero__families-label {
    font-size: 0.58rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.75rem;
  }
  .hero__families-invite {
    font-size: 0.6rem;
  }
}

/* Ensure hero__content (names) is centred and dominant */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Names should be the visual hero — push up size on larger screens */
@media (min-width: 600px) {
  .hero__names {
    font-size: clamp(3.5rem, 8vw, 6rem) !important;
  }
}
@media (min-width: 900px) {
  .hero__names {
    font-size: clamp(4.5rem, 9vw, 7.5rem) !important;
  }
  .hero__content {
    padding: 3rem 2rem 2.5rem;
  }
}

/* ============================================================
   HERO — FAMILIES HEADER
   Stacked cleanly above the names on all screen sizes
============================================================ */

/* Hero is a full-height flex column — families at top, names centred */
.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative;
}

/* Families header — full width strip at top */
.hero__families-header {
  width: 100%;
  text-align: center;
  padding: 4.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(95,122,94,0.12);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.hero__families-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

/* Names ALWAYS stack vertically on mobile */
.hero__families-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.hero__family-group {
  text-align: center;
}

.hero__family-parents {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.55;
}

.hero__family-parents em {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.hero__families-amp {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--teal);
  line-height: 1.3;
  margin: 0.1rem 0;
}

.hero__families-invite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.7;
  margin-top: 0.4rem;
}

/* Hero content — names fill the remaining space, centred */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* ── Tablet (≥600px) — parent names go side by side ── */
@media (min-width: 600px) {
  .hero__families-header {
    padding: 5.5rem 2rem 1.5rem;
    max-width: 680px;
    margin: 0 auto;
  }
  .hero__families-names {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
  }
  .hero__families-amp {
    display: inline;
    margin: 0 0.2rem;
  }
  .hero__family-parents {
    font-size: 0.92rem;
  }
  .hero__families-label {
    font-size: 0.55rem;
  }
}

/* ── Desktop (≥960px) ── */
@media (min-width: 960px) {
  .hero__families-header {
    max-width: 820px;
    padding: 6rem 3rem 1.75rem;
  }
  .hero__family-parents { font-size: 0.98rem; }
  .hero__families-label { font-size: 0.58rem; letter-spacing: 0.32em; }
  .hero__families-invite { font-size: 0.56rem; }
  .hero__content { padding: 3.5rem 2rem 3rem; }
  .hero__names { font-size: clamp(4rem, 9vw, 7rem) !important; }
  .hero__rings { top: 1.75rem; width: 64px; }
}

/* Tablet ring positioning */
@media (min-width: 600px) and (max-width: 959px) {
  .hero__rings { top: 1.5rem; width: 60px; }
}



/* ============================================================
   FAMILY SIDE SELECTION POPUP
============================================================ */
.family-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.family-popup--visible {
  opacity: 1;
}
.family-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60,50,50,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.family-popup__card {
  position: relative;
  z-index: 1;
  background: #FDFAF6;
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.12);
  animation: popup-rise 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popup-rise {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}
.family-popup__rings {
  width: 48px;
  margin: 0 auto 1.1rem;
  opacity: 0.8;
}
.family-popup__title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.family-popup__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.family-popup__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.family-popup__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.1rem 0.75rem;
  border-radius: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: var(--white);
}
.family-popup__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.family-popup__btn--bride {
  border-color: var(--pink);
  background: linear-gradient(135deg, #FFF5F7 0%, #FFEEF2 100%);
}
.family-popup__btn--bride:hover { border-color: #E8839A; }
.family-popup__btn--groom {
  border-color: var(--teal-light);
  background: linear-gradient(135deg, #F5F9F5 0%, #EDF4EC 100%);
}
.family-popup__btn--groom:hover { border-color: var(--teal); }
.family-popup__btn-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.family-popup__btn--bride .family-popup__btn-label { color: var(--pink); }
.family-popup__btn--groom .family-popup__btn-label { color: var(--teal); }
.family-popup__btn-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
}

/* Bank details side label */
.aso-ebi__bank-side {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--teal-light);
}

/* Switch side button */
.aso-ebi__switch-btn {
  background: none;
  border: 1px solid var(--teal-light);
  color: var(--teal);
  border-radius: 2rem;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.aso-ebi__switch-btn:hover {
  background: var(--teal);
  color: #fff;
}

/* Bank animate on switch */
.bank--animate {
  animation: bank-fade-in 0.5s ease both;
}
@keyframes bank-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Aso Ebi receipt WhatsApp link */
.aso-ebi__receipt-link {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal);
  transition: color 0.2s, border-color 0.2s;
}
.aso-ebi__receipt-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}
.aso-ebi__receipt-link strong {
  font-weight: 700;
}


/* Event card time */
.event-card__time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}
.event-card--white .event-card__time { color: var(--pink); }


/* ============================================================
   COMBINED RSVP FORM — /both/ page section labels
============================================================ */
.rsvp-form__section-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(95,122,94,0.15);
}
.rsvp-form__section-label--trad  { color: #6D1A2A; }
.rsvp-form__section-label--white { color: var(--pink); }
.rsvp-form__section-label:first-of-type { margin-top: 0.25rem; }


/* ============================================================
   SWIPE CAROUSEL — used on /both/ page for countdown + itinerary
   Generic component: .swipe-wrap > .swipe-tabs, .swipe-viewport, .swipe-dots
============================================================ */
.swipe-wrap {
  width: 100%;
}

.swipe-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.swipe-tab {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  color: var(--text-soft);
}

.swipe-tab--trad  { border-color: #6D1A2A; color: #6D1A2A; }
.swipe-tab--white { border-color: var(--pink); color: var(--pink); }

.swipe-tab--trad.active  { background: #6D1A2A; color: #fff; }
.swipe-tab--white.active { background: var(--pink); color: #fff; }

.swipe-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.swipe-viewport:active { cursor: grabbing; }

.swipe-track {
  display: flex;
  will-change: transform;
}

.swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.15rem;
}

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(95,122,94,0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.swipe-dot.active {
  background: var(--teal);
  transform: scale(1.3);
}
