/* ════════════════════════════════════════════════════════
   styles.css — Earvin & Plexy Wedding Invitation
   Palette: cream · blush · sage · rose · warm ivory
════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Colours */
  --cream:      #faf6f0;
  --warm:       #f0ebe0;
  --blush:      #f5e8e8;
  --blush-mid:  #e9c2c4;
  --rose:       #b87878;
  --rose-dark:  #7d5252;
  --sage:       #b8c4a9;
  --sage-dark:  #7a9470;
  --dark:       #3a2f2f;
  --muted:      #7a6868;
  --border:     rgba(184,120,120,.2);
  --card-bg:    rgba(255,252,248,.92);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  /* Layout */
  --container:   min(900px, 92vw);
  --section-pad: clamp(64px, 10vw, 120px);

  /* Radii */
  --radius:    18px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow:    0 4px 24px rgba(58,47,47,.07);
  --shadow-lg: 0 8px 40px rgba(58,47,47,.12);

  /* Animation */
  --ease-out: cubic-bezier(.25,.46,.45,.94);
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
}

h2 {
  font-size: clamp(36px, 6vw, 58px);
  font-style: italic;
  margin-bottom: .9rem;
}

h3 {
  font-size: clamp(20px, 3vw, 27px);
  font-style: italic;
  font-weight: 500;
}

p  { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .6rem;
  display: block;
}

/* ── Layout ────────────────────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}

section {
  padding: var(--section-pad) 0;
  text-align: center;
}

.section--blush  { background: var(--blush); }
.section--warm   { background: var(--warm); }
.section--marble { background: var(--cream); }

/* ── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  650ms var(--ease-out),
    transform 650ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 13px 34px;
  cursor: pointer;
  border: none;
  transition: background .22s, color .22s, transform .15s, box-shadow .22s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 18px rgba(184,120,120,.32);
}
.btn--primary:hover {
  background: var(--rose-dark);
  box-shadow: 0 6px 22px rgba(184,120,120,.44);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(232,178,178,.06);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

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

/* ── HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
  background: var(--cream);
}

/* Botanical corner SVGs */
.botanical {
  position: absolute;
  width: clamp(140px, 22vw, 270px);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.botanical--tl { top: 0;    left: 0;   }
.botanical--tr { top: 0;    right: 0;  transform: scaleX(-1); }
.botanical--bl { bottom: 0; left: 0;   transform: scaleY(-1); }
.botanical--br { bottom: 0; right: 0;  transform: scale(-1);  }

@media (max-width: 480px) {
  .botanical--bl, .botanical--br { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow--hero {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* Names */
.names {
  font-size: clamp(72px, 15vw, 130px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .08em;
  margin-bottom: 2rem;
  animation: shimmer-name 4s ease-in-out infinite alternate;
}
.name-amp {
  font-size: .34em;
  font-style: normal;
  font-weight: 300;
  color: var(--rose);
  letter-spacing: .12em;
  line-height: 1.7;
  animation: none;
}

@keyframes shimmer-name {
  from { text-shadow: 0 0 0 transparent; }
  to   { text-shadow: 0 2px 24px rgba(184,120,120,.15); }
}

.hero-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .4px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero-details li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-details .icon { color: var(--rose); opacity: .85; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

/* ── COUNTDOWN ─────────────────────────────────────── */
#countdown { padding: 52px 0; }

.countdown-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--rose-dark);
  margin-bottom: 2rem;
  font-weight: 400;
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 2vw, 20px);
  flex-wrap: wrap;
}

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

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 80px);
  font-weight: 500;
  line-height: 1;
  color: var(--dark);
  transition: transform .15s;
}
.countdown-num.tick {
  transform: scale(1.06);
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 62px);
  color: var(--blush-mid);
  line-height: 1;
  padding-top: 2px;
  align-self: flex-start;
}

.countdown-done {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--rose);
}

/* ── SECTION PARALLAX BACKGROUNDS ──────────────────── */
/*
  Sections with parallax get a .parallax-bg div as their first
  child.  JS translateY's that div on scroll.  A ::after
  pseudo-element acts as the cream readability overlay.
  Sections WITHOUT parallax use static CSS multi-backgrounds
  defined in the "Section photo backgrounds" block below.
*/

/* Sections that host a parallax background */
#hero, #venue, #dresscode, #about, #entourage {
  position: relative;
  overflow: hidden;
}

/* The scrolling photo layer (JS moves this) */
.parallax-bg {
  position: absolute;
  inset: -30% 0;          /* oversized so translateY has room */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: none;
  z-index: 0;
  pointer-events: none;
}

/* Cream overlay — above photo (z:1), below content (z:2) */
#hero::after,
#venue::after,
#dresscode::after,
#about::after,
#entourage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
#hero::after      { background: rgba(250,246,240,.76); }
#venue::after     { background: rgba(250,246,240,.82); }
#dresscode::after { background: rgba(250,246,240,.80); }
#about::after     { background: rgba(240,235,224,.82); }
#entourage::after { background: rgba(250,246,240,.80); }

/* Lift all visible content above the overlay */
#hero .botanical {
  z-index: 2; /* already position:absolute */
}
#hero .container,
#venue .container,
#dresscode .container,
#about .container,
#entourage .container {
  position: relative;
  z-index: 2;
}

/* Photo assignments for parallax sections */
#hero .parallax-bg      { background-image: url('assets/bg-roses-white.png'); }
#venue .parallax-bg     { background-image: url('assets/bg-gypsophila.png'); }
#dresscode .parallax-bg { background-image: url('assets/bg-roses-white.png'); }
#about .parallax-bg     { background-image: url('assets/bg-petals.png'); }
#entourage .parallax-bg {
  background-image: url('assets/bg-wedding.png');
  background-position: center 40%;
}

/* Mobile: disable parallax movement (iOS can't handle it) */
@media (max-width: 768px) {
  .parallax-bg {
    inset: 0;
    will-change: auto;
  }
}

/* ── VENUE ─────────────────────────────────────────── */
.venue-sub  {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .5px;
  margin-bottom: .25rem;
}
.venue-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 40vw, 400px);
  border: 0;
}

/* ── TIMELINE ──────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: start;
  gap: 0 28px;
  width: 100%;
  max-width: 660px;
  padding: 28px 0;
  position: relative;
}

/* Alternate sides */
.timeline-item:nth-child(odd)  .tl-time { text-align: right; order: 0; }
.timeline-item:nth-child(odd)  .tl-dot  { order: 1; }
.timeline-item:nth-child(odd)  .tl-body { order: 2; text-align: left; }

.timeline-item:nth-child(even) .tl-time { order: 2; text-align: left; }
.timeline-item:nth-child(even) .tl-dot  { order: 1; }
.timeline-item:nth-child(even) .tl-body { order: 0; text-align: right; }

.tl-time {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-style: italic;
  color: var(--rose);
  padding-top: 4px;
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--rose);
  margin-top: 2px;
  justify-self: center;
  position: relative;
  z-index: 1;
  transition: transform .2s;
}
.timeline-item:hover .tl-dot {
  transform: scale(1.3);
  background: var(--rose);
}

.tl-body h3 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: .3rem;
  transition: color .2s;
}
.timeline-item:hover .tl-body h3 { color: var(--rose); }

.tl-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 580px) {
  .timeline::before { left: 14px; transform: none; }

  .timeline-item {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    gap: 0 18px;
    padding: 20px 0;
  }
  .timeline-item:nth-child(odd)  .tl-time,
  .timeline-item:nth-child(even) .tl-time {
    order: 1; text-align: left; grid-column: 2;
  }
  .timeline-item:nth-child(odd)  .tl-dot,
  .timeline-item:nth-child(even) .tl-dot {
    order: 0; grid-row: 1 / 3; grid-column: 1; justify-self: start; margin-top: 4px;
  }
  .timeline-item:nth-child(odd)  .tl-body,
  .timeline-item:nth-child(even) .tl-body {
    order: 2; text-align: left; grid-column: 2;
  }
}

/* ── DRESS CODE ────────────────────────────────────── */
.dresscode-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
@media (max-width: 620px) {
  .dresscode-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.dresscode-ladies h3,
.dresscode-gents h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.dresscode-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

.swatch-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px; /* room for tooltip */
}

.swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  cursor: default;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  outline: none;
}
.swatch:hover,
.swatch:focus {
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.swatch::after {
  content: attr(data-label);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .5px;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.swatch:hover::after,
.swatch:focus::after { opacity: 1; }

.gents-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.gents-photo-img {
  width: 90px;
  height: 115px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.gents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding-top: 2px;
}
.gents-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.gents-list div { display: flex; flex-direction: column; gap: 1px; }
.gents-list strong { font-size: 14px; font-weight: 500; }
.gents-list span { font-size: 12px; color: var(--muted); }

/* ── HOTEL REMINDER ────────────────────────────────── */
.info-body {
  max-width: 600px;
  margin: 1.75rem auto 0;
  text-align: left;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.info-body p { margin: 0; line-height: 1.8; }

/* ── NOTE CARDS (About + Gifts) ────────────────────── */
.note-card {
  max-width: 600px;
  margin: 2rem auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.85;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.note-heart {
  display: block;
  font-size: 22px;
  color: var(--rose);
  font-style: normal;
  margin-bottom: .4rem;
}

/* Bank details (hidden by default via comment in HTML) */
.bank-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* ── ENTOURAGE ─────────────────────────────────────── */
.entourage-group { margin-top: 3rem; }

.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: center;
}
@media (max-width: 480px) {
  .sponsors-grid { grid-template-columns: 1fr; }
}

.entourage-role {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .8rem;
  display: block;
  text-align: center;
}

.entourage-side {
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: .8rem;
  text-align: center;
}

/* Parents grid */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: center;
}
@media (max-width: 480px) {
  .parents-grid { grid-template-columns: 1fr; }
}
.parent-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .3rem;
  display: block;
}
.parent-name {
  font-size: 15px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
}

.sponsors-grid ul li,
.bridal-grid ul li {
  font-size: 14px;
  color: var(--dark);
  line-height: 2;
  font-weight: 300;
}

.entourage-divider {
  color: var(--blush-mid);
  font-size: 16px;
  letter-spacing: 4px;
  margin: 2.5rem 0 0;
}

.bridal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: center;
}
@media (max-width: 480px) {
  .bridal-grid { grid-template-columns: 1fr; }
}

.role-tag {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(184,120,120,.1);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 7px;
  vertical-align: middle;
  white-space: nowrap;
}

.bearers-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem auto 0;
  max-width: 560px;
}
.bearers-grid > div { min-width: 130px; text-align: center; }
.bearer-name {
  font-size: 15px;
  color: var(--dark);
  font-weight: 300;
}

/* ── RSVP CTA BAND (mid-page) ──────────────────────── */
.rsvp-cta {
  padding: clamp(52px, 9vw, 96px) 0;
  text-align: center;
  background:
    linear-gradient(rgba(245,232,232,.84), rgba(245,232,232,.84)),
    url('assets/bg-roses-pink.png') center / cover no-repeat;
}
.rsvp-cta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--dark);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ── RSVP ──────────────────────────────────────────── */
.rsvp-deadline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2rem;
}
.rsvp-deadline strong { color: var(--dark); font-weight: 500; }

.btn--rsvp-main {
  font-size: 14px;
  padding: 16px 44px;
  letter-spacing: 2px;
}

.rsvp-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  text-align: left;
}

.form-row { display: flex; flex-direction: column; gap: .45rem; }

.form-row label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dark);
}
.required-mark { color: var(--rose); }
.optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--dark);
  background: rgba(255,252,248,.85);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #b0a0a0; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3.5px rgba(184,120,120,.13);
  background: rgba(255,252,248,1);
}

.form-row input.is-error,
.form-row select.is-error { border-color: #c04040; }

.form-row textarea { resize: vertical; min-height: 88px; }

/* Custom select caret */
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6868' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

.field-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #c04040;
  min-height: 16px;
}

/* Attending pill group */
.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill { flex: 1; min-width: 148px; cursor: pointer; }
.pill input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  transition: all .2s;
  background: rgba(255,252,248,.85);
  user-select: none;
}
.pill input:checked + span {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,120,120,.32);
}
.pill:hover span { border-color: var(--rose); color: var(--rose); }
.pill input:checked + span:hover { color: #fff; }

/* Guests row visibility */
#guests-row {
  transition: opacity .3s, max-height .4s;
  max-height: 100px;
  overflow: hidden;
}
#guests-row.hidden {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
  margin: 0 !important;
  gap: 0 !important;
}

.form-error {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: #c04040;
  background: rgba(192,64,64,.07);
  border-radius: var(--radius-sm);
  padding: 12px;
}

/* Success state */
.rsvp-success {
  max-width: 420px;
  margin: 1.5rem auto;
  text-align: center;
  animation: fadeUp .55s var(--ease-out) both;
}
.success-heart {
  display: block;
  font-size: 44px;
  color: var(--rose);
  font-style: normal;
  margin-bottom: 1rem;
  animation: heartbeat 1.4s ease-in-out infinite;
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 42px;
  font-style: italic;
  margin-bottom: .75rem;
}
.rsvp-success p { font-size: 16px; }
.success-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-top: .5rem;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── CONTACT ───────────────────────────────────────── */
.contact-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: #3a2f2f;
  color: rgba(255,245,235,.85);
  text-align: center;
  padding: 56px 24px 44px;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2rem;
}
.footer-line {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: rgba(255,245,235,.22);
  display: block;
}
.footer-heart { color: var(--blush-mid); font-size: 15px; }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,245,235,.72);
  margin-bottom: .3rem;
}
.footer-with-love {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: rgba(255,245,235,.45);
  margin-bottom: .3rem;
}
.footer-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 400;
  color: rgba(255,245,235,.95);
  margin-bottom: 1.75rem;
}
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .5px;
  color: rgba(255,245,235,.32);
  margin: 0;
}

/* ── Section photo backgrounds (static sections) ────── */
/*
  Parallax sections (#hero, #venue, #dresscode, #about,
  #entourage) use .parallax-bg + ::after defined above.
  The sections below use a static CSS multi-background:
  gradient overlay on top of the photo — no extra HTML needed.
*/

#countdown {
  background:
    linear-gradient(rgba(245,232,232,.82), rgba(245,232,232,.82)),
    url('assets/bg-roses-pink.png') center / cover no-repeat;
}

#timeline {
  background:
    linear-gradient(rgba(250,246,240,.82), rgba(250,246,240,.82)),
    url('assets/bg-petals.png') center / cover no-repeat;
}

#hotel-reminder {
  background:
    linear-gradient(rgba(250,246,240,.84), rgba(250,246,240,.84)),
    url('assets/bg-gypsophila.png') center / cover no-repeat;
}

#gifts {
  background:
    linear-gradient(rgba(250,246,240,.83), rgba(250,246,240,.83)),
    url('assets/bg-roses-white.png') center / cover no-repeat;
}

#rsvp {
  background:
    linear-gradient(rgba(245,232,232,.84), rgba(245,232,232,.84)),
    url('assets/bg-roses-pink.png') center / cover no-repeat;
}

#contact {
  background:
    linear-gradient(rgba(250,246,240,.82), rgba(250,246,240,.82)),
    url('assets/bg-roses-white.png') center / cover no-repeat;
}

/* ── Reduced-motion override ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .names  { animation: none; }
  .success-heart { animation: none; }
  .countdown-num { transition: none; }
}
