/* ── VARIABLES ── */
:root {
  --cream:      #FDF8F4;
  --blush:      #FAE8EA;
  --rose:       #E8B4B8;
  --rose-mid:   #D4919A;
  --rose-deep:  #B8697A;
  --gold:       #C9A96E;
  --gold-light: #E8D5B0;
  --dark:       #3D2020;
  --text:       #4A2E30;
  --text-mid:   #8C6060;
  --text-light: #C0A0A0;
  --white:      #FFFFFF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ── PETALS ── */
#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -30px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(0) translateX(0)   rotate(0deg);   opacity: .75; }
  50%  { transform: translateY(50vh) translateX(30px) rotate(360deg); opacity: .5; }
  100% { transform: translateY(105vh) translateX(-20px) rotate(720deg); opacity: 0; }
}

/* ── LAYOUT ── */
section { position: relative; z-index: 1; padding: 90px 20px; }
.container { max-width: 820px; margin: 0 auto; text-align: center; }

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

/* ── GOLD DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  max-width: 320px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { color: var(--gold); font-size: 16px; }

/* ── LABELS & TITLES ── */
.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--text);
  font-size: clamp(30px, 5vw, 50px);
  margin-bottom: 20px;
}
.title em { font-style: italic; color: var(--rose-deep); }

/* ══ HERO ══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(30,15,15,.35) 0%, rgba(30,15,15,.55) 100%),
    url('/static/images/hero.jpg') 40% 25% / cover no-repeat;
  padding: 60px 20px 80px;
}
.hero-wrap { position: relative; display: inline-block; margin-top: 260px; }

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-label-top {
  position: absolute;
  top: 56px;
  left: 20px;
  right: 20px;
  text-align: center;
  margin-bottom: 0;
  z-index: 2;
}
.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 10vw, 88px);
  font-weight: 400;
  line-height: .95;
  color: rgba(255,255,255,.75);
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-amp {
  display: block;
  font-style: italic;
  color: var(--rose);
  font-size: .62em;
  line-height: 1.15;
}
.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 3.5vw, 28px);
  color: rgba(255,255,255,.9);
  letter-spacing: 2px;
  margin: 28px 0 6px;
}
.btn-primary {
  display: inline-block;
  padding: 17px 48px;
  background: linear-gradient(135deg, #C8697A, #D4919A);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 10px 34px rgba(184,105,122,.38);
  transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(184,105,122,.48);
}
.scroll-hint {
  margin-top: 44px;
  color: rgba(255,255,255,.8);
  font-size: 22px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ══ QUOTE ══ */
#quote {
  background: linear-gradient(160deg, #FDE8EA 0%, #FDF3F5 100%);
  padding: 80px 20px;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  line-height: .6;
  color: var(--rose);
  opacity: .4;
}
.quote-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3.5vw, 34px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 22px;
}
.quote-credit {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ══ STORY ══ */
#story { background: var(--cream); }
.story-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.95;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
}

/* ══ COUNTDOWN ══ */
#countdown {
  background: linear-gradient(160deg, #3D2020 0%, #271010 100%);
  padding: 90px 20px;
}
#countdown .label { color: rgba(232,180,184,.7); }
#countdown .title { color: #fff; font-size: clamp(18px, 3vw, 28px); }

.timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 3vw, 36px);
  margin-top: 48px;
  flex-wrap: wrap;
}
.t-block { text-align: center; min-width: 72px; }
.t-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 9vw, 80px);
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  display: block;
  transition: transform .15s;
}
.t-num.tick { transform: scale(1.08); }
.t-lbl {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(192,160,160,.7);
  margin-top: 8px;
}
.t-sep {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 7vw, 66px);
  color: var(--gold);
  line-height: 1.15;
  padding-top: 4px;
}

/* ══ EVENTS ══ */
#events { background: var(--cream); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 680px;
  margin: 44px auto 0;
}
@media (max-width: 560px) { .events-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: 22px;
  padding: 40px 28px 36px;
  box-shadow: 0 6px 44px rgba(200,105,122,.08);
  border: 1px solid rgba(232,180,184,.28);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 54px rgba(200,105,122,.15);
}
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card-type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
}
.card-detail {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 300;
}
.card-time {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 4px;
}

.dresscode-note {
  margin: 30px auto 0;
  max-width: 500px;
  padding: 18px 28px;
  background: rgba(232,180,184,.1);
  border-radius: 14px;
  border: 1px solid rgba(232,180,184,.25);
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
}
.dresscode-note strong { color: var(--gold); font-weight: 600; }

/* ══ RSVP ══ */
#rsvp {
  background: linear-gradient(150deg, #D4919A 0%, #C8697A 100%);
  padding: 90px 20px;
}
#rsvp .label  { color: rgba(255,255,255,.65); }
#rsvp .title  { color: #fff; }
.rsvp-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,.82);
  margin-bottom: 42px;
}

.rsvp-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rsvp-form input,
.rsvp-form select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 13px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: background .25s, border-color .25s;
}
.rsvp-form input::placeholder { color: rgba(255,255,255,.65); }
.rsvp-form input:focus,
.rsvp-form select:focus {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.7);
}

.rsvp-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 13px;
  background: rgba(255,255,255,.14);
  text-align: left;
}
.rsvp-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
}
.rsvp-check input[type="checkbox"] {
  width: 19px; height: 19px;
  flex-shrink: 0;
  accent-color: var(--rose-deep);
  cursor: pointer;
}

.rsvp-btn {
  padding: 18px 44px;
  background: #fff;
  color: var(--rose-deep);
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .3s, box-shadow .3s, opacity .3s;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.rsvp-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
}
.rsvp-btn:disabled { opacity: .6; cursor: wait; }

.rsvp-error {
  display: none;
  max-width: 440px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  background: rgba(0,0,0,.15);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
}

.rsvp-ok {
  display: none;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 40px 30px;
  color: #fff;
}
.rsvp-ok h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-style: italic;
  margin-bottom: 10px;
}
.rsvp-ok p { font-size: 15px; opacity: .85; line-height: 1.6; }

/* ══ FOOTER ══ */
#footer {
  background: var(--dark);
  padding: 70px 20px;
  text-align: center;
}
.footer-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-style: italic;
  color: var(--rose);
  margin-bottom: 10px;
}
.footer-date {
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-note {
  font-size: 11px;
  color: rgba(255,255,255,.2);
  letter-spacing: 2px;
  margin-top: 28px;
  font-weight: 300;
}

/* ══ FIXED UI ══ */
.music-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B8697A, #C9A96E);
  border: none;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  transition: transform .3s;
  user-select: none;
}
.music-btn:hover { transform: scale(1.12); }
.music-btn.playing { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
  0%,100% { box-shadow: 0 6px 24px rgba(184,105,122,.35); }
  50%      { box-shadow: 0 6px 36px rgba(184,105,122,.7); }
}

.top-btn {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rose);
  cursor: pointer;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--rose-deep);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
}
.top-btn.show { opacity: 1; transform: translateY(0); }
.top-btn:hover { transform: scale(1.06); }

@media (max-width: 400px) {
  .hero-names { font-size: 56px; }
  .timer { gap: 8px; }
  .t-sep { display: none; }
}
