/* ============================================================
   CONFIG — CSS custom properties
   ============================================================ */
:root {
  /* Brand palette (based on references: sage + blush + cream) */
  --sage:         #6b7c5a;
  --sage-dark:    #4e5e40;
  --sage-mid:     #7d8f68;
  --sage-light:   #b5c98a;
  --sage-pale:    #e2ebd3;

  --blush:        #edc4cc;
  --blush-dark:   #d4a0aa;
  --mauve:        #b08595;
  --rose:         #c97080;

  --cream:        #faf6f0;
  --parchment:    #f5ede5;
  --white:        #ffffff;

  --dark:         #3a3330;
  --dark-mid:     #5a4e49;
  --text:         #3a3330;
  --text-muted:   #8a7e79;

  --gold:         #c9a98a;
  --gold-light:   #edddd0;

  /* Typography */
  --font-script:  'Great Vibes', cursive;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', Arial, sans-serif;

  /* Spacing */
  --section-py:   5.5rem;
  --container:    1100px;
  --radius:       14px;
  --radius-sm:    7px;
}

/* ============================================================
   FALLING PETALS
   ============================================================ */
.petal {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  animation: petalFall linear forwards;
  user-select: none;
}

@keyframes petalFall {
  0%   { transform: translateY(-30px)  rotate(0deg)   translateX(0px);   opacity: .85; }
  40%  { transform: translateY(40vh)   rotate(160deg) translateX(35px);  opacity: .65; }
  70%  { transform: translateY(72vh)   rotate(280deg) translateX(-15px); opacity: .4;  }
  100% { transform: translateY(108vh)  rotate(400deg) translateX(20px);  opacity: 0;   }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .65s ease, visibility .65s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner { text-align: center; }

.preloader__eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-mid);
  opacity: 0;
  transform: translateY(18px);
  animation: preUp .6s ease .2s forwards;
}

.preloader__names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  color: var(--text);
  margin: .5rem 0;
  opacity: 0;
  transform: translateY(18px);
  animation: preUp .6s ease .5s forwards;
}

.preloader__ornament {
  display: flex;
  justify-content: center;
  margin: .75rem 0;
  opacity: 0;
  transform: translateY(18px);
  animation: preUp .6s ease .8s forwards;
}
.preloader__ornament svg { width: min(320px, 70vw); }

.preloader__date {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px);
  animation: preUp .6s ease 1s forwards;
}

@keyframes preUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   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: 400;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: .75rem;
}
.section-eyebrow--light { color: var(--blush); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto .5rem;
  line-height: 1.75;
}
.section-sub--light { color: rgba(255,255,255,.65); }

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

.botanical-line {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.botanical-line svg { width: min(500px, 90vw); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-py) 0; }

/* ============================================================
   WAVE SEPARATORS
   ============================================================ */
.wave {
  display: block;
  line-height: 0;
  overflow: hidden;
  margin: -2px 0;
}
.wave svg { display: block; width: 100%; }

.wave--cream-to-sage  { background: var(--cream); }
.wave--sage-to-cream  { background: var(--sage); }
.wave--cream-to-blush { background: var(--cream); }
.wave--blush-to-cream { background: var(--parchment); }
.wave--cream-to-dark  { background: var(--cream); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background .4s, box-shadow .4s, padding .3s;
}

.nav.scrolled {
  background: rgba(250, 246, 240, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(58,51,48,.07);
  padding: .85rem 2rem;
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .25s;
}
.nav__links a:hover { color: var(--sage); }

.nav__cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: .45rem 1.2rem;
  border-radius: 2rem;
}
.nav__cta:hover { background: var(--sage-dark) !important; color: var(--white) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 5rem 2rem 3rem;
  z-index: 99;
  box-shadow: 0 4px 32px rgba(58,51,48,.1);
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.nav__mobile.open { transform: translateY(0); }

.nav__mobile-link {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.hero__bg {
  position: absolute;
  top: -100px;
  left: 0; right: 0;
  height: calc(100% + 200px);
  will-change: transform;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(237,196,204,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(181,201,138,.35) 0%, transparent 52%),
    radial-gradient(ellipse at 55% 85%, rgba(201,169,138,.3) 0%, transparent 48%),
    linear-gradient(150deg, #fdf6f2 0%, #faf6ef 55%, #f5f0e8 100%);
  /* To use your own photo: replace above with
     background-image: url('images/hero.jpg');
     background-size: cover; background-position: center; */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,246,240,.18);
}

/* Botanical corner decorations */
.hero__botanical {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero__botanical--tl {
  top: 0; left: 0;
  width: min(220px, 30vw);
  height: auto;
}
.hero__botanical--br {
  bottom: 0; right: 0;
  width: min(220px, 30vw);
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 1.25rem;
}

.hero__ornament {
  display: flex;
  justify-content: center;
  margin: .75rem 0;
}
.hero__ornament svg { width: min(320px, 75vw); }

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: .01em;
}

.hero__invite {
  font-family: var(--font-heading);
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.25rem 0 .75rem;
  line-height: 1.8;
}

.hero__date {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: .06em;
}

.hero__location {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .6rem;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2.2s infinite;
  z-index: 2;
  transition: border-color .3s;
}
.hero__scroll:hover { border-color: var(--gold); }
.hero__scroll svg { width: 16px; height: 16px; fill: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  background: var(--sage);
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
}

.countdown .section-eyebrow { color: var(--blush); }
.countdown .section-title--light { color: var(--white); }

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 3vw, 2rem);
  flex-wrap: wrap;
}

/* Flip timer */
.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.flip-card {
  --fc-h: 110px;
  --fc-hh: 55px;
  position: relative;
  width: 90px;
  height: var(--fc-h);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  perspective: 600px;
}

.fc-half {
  position: absolute;
  left: 0; right: 0;
  height: var(--fc-hh);
  overflow: hidden;
  background: rgba(255,255,255,.13);
}
.fc-half--top {
  top: 0;
  border-radius: 8px 8px 0 0;
  border-bottom: 1.5px solid rgba(0,0,0,.2);
}
.fc-half--bot {
  bottom: 0;
  border-radius: 0 0 8px 8px;
}

.fc-half span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--fc-h);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: .02em;
}
.fc-half--bot span { margin-top: calc(-1 * var(--fc-hh)); }

/* Flap animation overlays */
.fc-flap--top,
.fc-flap--bot {
  position: absolute;
  left: 0; right: 0;
  height: var(--fc-hh);
  overflow: hidden;
  z-index: 3;
  backface-visibility: hidden;
}
.fc-flap--top {
  top: 0;
  border-radius: 8px 8px 0 0;
  transform-origin: bottom center;
  border-bottom: 1.5px solid rgba(0,0,0,.2);
  background: rgba(255,255,255,.18);
}
.fc-flap--bot {
  bottom: 0;
  border-radius: 0 0 8px 8px;
  transform-origin: top center;
  background: rgba(255,255,255,.13);
}

.fc-flap--top span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--fc-h);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: .02em;
}
.fc-flap--bot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--fc-h);
  margin-top: calc(-1 * var(--fc-hh));
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: .02em;
}

.fc-flap--top.animate {
  animation: fcFlipTop .3s cubic-bezier(.4,0,.2,1) forwards;
}
.fc-flap--bot.animate {
  animation: fcFlipBot .3s cubic-bezier(.4,0,.2,1) .15s both;
}

@keyframes fcFlipTop {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(-90deg); }
}
@keyframes fcFlipBot {
  from { transform: rotateX(90deg); }
  to   { transform: rotateX(0deg); }
}

.countdown__label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.countdown__sep {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  color: rgba(255,255,255,.3);
  line-height: 1;
  align-self: flex-start;
  margin-top: .1em;
  padding-bottom: 1.5rem;
}

.countdown__flowers {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.countdown__flowers svg { width: min(800px, 100%); }

/* ============================================================
   PROGRAMME
   ============================================================ */
.programme { background: var(--cream); }

.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.timeline__item {
  display: grid;
  grid-template-columns: 100px 60px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__left { text-align: right; }

.timeline__time {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--sage-mid);
  line-height: 1;
}

.timeline__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(201,169,138,.18);
}
.timeline__icon svg { width: 32px; height: 32px; }

.timeline__line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  margin-top: 8px;
}
.timeline__item:last-child .timeline__line { display: none; }

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .4rem;
  padding-top: .6rem;
}

.timeline__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   VENUE
   ============================================================ */
.venue {
  background: var(--parchment);
  position: relative;
  padding-bottom: 0;
}

.venue__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
  padding-bottom: var(--section-py);
}

.venue__info .section-eyebrow { margin-bottom: .5rem; }
.venue__info .section-title   { text-align: left; margin-bottom: .75rem; }

.venue__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .3rem;
}

.venue__address {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: .04em;
}

.venue__note {
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.65;
}

.venue__maps-link {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-mid);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .25s;
}
.venue__maps-link:hover { color: var(--sage-dark); }

.venue__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(58,51,48,.12);
  aspect-ratio: 4/3;
}
.venue__map iframe { width: 100%; height: 100%; border: none; }

.venue__estate {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.venue__estate svg { width: min(800px, 100%); }

/* ============================================================
   DRESSCODE
   ============================================================ */
.dresscode { background: var(--cream); }

.dresscode__swatches {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.swatch__circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow:
    0 6px 24px rgba(58,51,48,.14),
    inset 0 1px 2px rgba(255,255,255,.5);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}

.swatch:hover .swatch__circle {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 36px rgba(58,51,48,.2);
}

.swatch__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--text-muted);
  text-align: center;
}

.swatch__hex {
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--gold);
  font-family: monospace;
}

.dresscode__note {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: linear-gradient(180deg, var(--cream), var(--parchment));
}

.req { color: var(--rose); }

/* White card */
.rsvp__box {
  max-width: 660px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.75rem;
  box-shadow: 0 20px 60px rgba(107,143,113,.11);
  border: 1px solid var(--sage-pale);
}

/* Form groups */
.fg { margin-bottom: 1.6rem; }

.fg > label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .55rem;
}

.fg input[type="text"],
.fg input[type="number"],
.fg textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.fg input::placeholder,
.fg textarea::placeholder { color: var(--text-muted); }
.fg input:focus,
.fg textarea:focus {
  border-color: var(--sage-mid);
  box-shadow: 0 0 0 3px rgba(107,124,90,.13);
}
.fg textarea { min-height: 90px; }

/* Radio tiles */
.radios { display: flex; gap: .75rem; flex-wrap: wrap; }

.rt { flex: 1; min-width: 120px; }
.rt input[type="radio"] { display: none; }
.rt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: .8rem 1rem;
  border: 1.5px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--text);
  transition: all .25s;
  text-align: center;
}
.rt label:hover {
  border-color: var(--sage-mid);
  background: var(--parchment);
}
.rt input[type="radio"]:checked + label {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.rt--alt input[type="radio"]:checked + label {
  background: var(--blush-dark);
  border-color: var(--blush-dark);
  color: var(--white);
}

/* Checkbox grid (alcohol) */
.cbgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .6rem;
}

.cb input[type="checkbox"] { display: none; }
.cb label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .65rem .75rem;
  border: 1.5px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--text);
  transition: all .25s;
  text-align: center;
}
.cb label:hover { border-color: var(--sage-mid); }
.cb input[type="checkbox"]:checked + label {
  background: #7aafc8;
  border-color: #7aafc8;
  color: var(--white);
}

/* Children count sub-field */
.child-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, margin-top .4s ease;
  margin-top: 0;
}
.child-detail.open { max-height: 70px; margin-top: .75rem; }
.child-detail input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--sage-pale);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .25s;
}
.child-detail input:focus { border-color: var(--sage-mid); }

/* Show/hide attending-only fields */
.attending-only {
  overflow: hidden;
  max-height: 400px;
  transition: max-height .45s ease, opacity .3s ease, margin-bottom .4s;
}
.attending-only.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--sage-dark), var(--sage-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  margin-top: .5rem;
  box-shadow: 0 6px 22px rgba(107,143,113,.3);
}
.btn-submit:hover  {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(107,143,113,.42);
}
.btn-submit:active  { transform: scale(.98); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Success state */
.rsvp__success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.25rem;
}

.rsvp__success h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: .75rem;
}
.rsvp__success p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer__botanical { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.footer__botanical svg { width: min(400px, 70vw); }

.footer__names {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--blush);
  margin-bottom: .35rem;
}

.footer__date {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.footer__love { font-size: .8rem; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* stagger children */
.section-header.reveal .section-eyebrow { transition-delay: 0s; }
.section-header.reveal .section-title   { transition-delay: .08s; }
.section-header.reveal .section-sub     { transition-delay: .15s; }

.timeline__item.reveal:nth-child(1) { transition-delay: 0s; }
.timeline__item.reveal:nth-child(2) { transition-delay: .15s; }

.swatch:nth-child(1) { transition-delay: 0s; }
.swatch:nth-child(2) { transition-delay: .08s; }
.swatch:nth-child(3) { transition-delay: .16s; }
.swatch:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 840px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }

  .venue__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .venue__info .section-title { text-align: center; }
  .venue__info .section-eyebrow { text-align: center; display: block; }
  .venue__name, .venue__address, .venue__note { text-align: center; }
  .venue__maps-link { display: block; text-align: center; }
}

@media (max-width: 640px) {
  :root { --section-py: 3.5rem; }

  .timeline__item {
    grid-template-columns: 70px 50px 1fr;
    gap: 0 1rem;
  }

  .timeline__time { font-size: 1.6rem; }
  .timeline__icon { width: 44px; height: 44px; }
  .timeline__icon svg { width: 26px; height: 26px; }

  .swatch__circle { width: 78px; height: 78px; }
  .dresscode__swatches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    justify-items: center;
  }

  .rsvp__form { padding: 1.75rem 1.25rem; }

  .flip-card { --fc-h: 80px; --fc-hh: 40px; width: 66px; }
  .countdown__sep { display: none; }
  .countdown__grid { gap: 1.25rem; }
}

@media (max-width: 420px) {
  .timeline__item { grid-template-columns: 60px 44px 1fr; gap: 0 .75rem; }
  .timeline__time { font-size: 1.3rem; }
}

/* ============================================================
   MUSIC BUTTON
   ============================================================ */
.music-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250,246,240,.93);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-light);
  box-shadow: 0 4px 20px rgba(58,51,48,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(58,51,48,.2);
}
.music-btn__state {
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--sage);
}
