/* ===== FLORAL PASTEL — Dimas & Wulan ===== */
:root {
  --blush: #f9d5e0;
  --blush-deep: #e8a0b8;
  --peach: #fde8d8;
  --lavender: #e6ddf5;
  --sage: #d8e6d4;
  --cream: #fef9f4;
  --rose: #c97b8e;
  --rose-dark: #a85d72;
  --plum: #6b4a5a;
  --gold: #c9a96a;
  --white: #fffdfb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--plum);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }

/* ---------- falling petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.petal {
  position: absolute; top: -30px;
  font-size: 18px; opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .7; }
  100% { transform: translateY(105vh) rotate(340deg); opacity: 0; }
}

/* ---------- cover ---------- */
#cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  transition: opacity .8s, visibility .8s;
}
#cover.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-bg { position: absolute; inset: 0; }
.cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(107,74,90,.55), rgba(201,123,142,.45) 55%, rgba(107,74,90,.75));
}
.cover-inner { position: relative; z-index: 2; padding: 2rem; animation: coverIn 1.2s ease both; }
@keyframes coverIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.cover-eyebrow { letter-spacing: .35em; text-transform: uppercase; font-size: .75rem; margin-bottom: 1rem; opacity: .9; }
.floral-divider { color: var(--blush); font-size: 1.4rem; margin: .8rem 0; letter-spacing: .5em; }
.cover-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  line-height: 1.15; font-weight: 400;
  text-shadow: 0 3px 20px rgba(0,0,0,.35);
}
.cover-amp { font-size: .6em; color: var(--blush); }
.cover-date { margin-top: 1rem; letter-spacing: .2em; font-size: .9rem; }
.cover-guest { margin-top: 1.8rem; font-size: .85rem; opacity: .9; }
.cover-guest span { font-weight: 600; font-size: 1rem; color: #fff; }
#open-invitation {
  margin-top: 1.6rem; padding: .9rem 2.6rem;
  font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: .1em;
  color: #fff; background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(201,123,142,.5);
  animation: btnFloat 2.4s ease-in-out infinite;
}
@keyframes btnFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
#open-invitation:hover { transform: scale(1.05); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 1.4rem; text-align: center; position: relative; }
.section:nth-of-type(even) { background: linear-gradient(180deg, #fff, var(--cream)); }
.eyebrow {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--rose); margin-bottom: .6rem; font-weight: 500;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  color: var(--plum); margin-bottom: 2rem; font-weight: 600;
}
.muted { color: #9a7f8d; font-size: .92rem; max-width: 480px; margin: 0 auto 1.6rem; }

/* ---------- hero ---------- */
.hero { background:
  radial-gradient(600px 300px at 15% 10%, rgba(249,213,224,.5), transparent),
  radial-gradient(600px 300px at 85% 20%, rgba(230,221,245,.5), transparent),
  radial-gradient(500px 260px at 50% 90%, rgba(253,232,216,.5), transparent),
  var(--cream);
}
.script-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  color: var(--plum); line-height: 1.25; font-weight: 400;
}
.script-names .amp { color: var(--rose); font-size: .7em; }
.hero-date { letter-spacing: .25em; color: var(--rose-dark); font-weight: 500; margin: 1rem 0 1.8rem; }
.hero-frame {
  max-width: 420px; margin: 0 auto 2rem;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  border: 6px solid #fff;
  outline: 2px solid var(--blush);
  box-shadow: 0 20px 60px rgba(201,123,142,.3);
}
.hero-frame img { width: 100%; height: 480px; object-fit: cover; }
.countdown { display: flex; gap: .8rem; justify-content: center; margin-bottom: 2.2rem; }
.countdown div {
  background: #fff; border: 1px solid var(--blush); border-radius: 16px;
  min-width: 68px; padding: .8rem .4rem;
  box-shadow: 0 6px 20px rgba(201,123,142,.15);
}
.countdown span { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--rose-dark); font-weight: 700; }
.countdown small { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: #a98a97; }
.verse { max-width: 520px; margin: 0 auto; font-style: italic; color: #8a6f7d; font-size: .92rem; }
.verse span { display: block; margin-top: .6rem; font-style: normal; font-weight: 600; color: var(--rose); }

/* ---------- save the date ---------- */
.std-card {
  max-width: 400px; margin: 0 auto;
  background: #fff; border-radius: 24px; padding: 2.5rem 2rem;
  border: 1px solid var(--blush);
  box-shadow: 0 16px 50px rgba(201,123,142,.2);
  position: relative; overflow: hidden;
}
.std-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(300px 150px at 50% 0%, rgba(249,213,224,.4), transparent);
  pointer-events: none;
}
.std-day { letter-spacing: .3em; text-transform: uppercase; color: var(--rose); font-size: .85rem; }
.std-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 700; color: var(--plum); line-height: 1.1;
}
.std-month { letter-spacing: .2em; color: #a98a97; margin-bottom: 1rem; }

/* ---------- buttons ---------- */
.btn, .btn-outline {
  display: inline-block; padding: .85rem 2.2rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: .05em;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s;
}
.btn {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(201,123,142,.4);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,123,142,.55); }
.btn-outline {
  background: transparent; color: var(--rose-dark);
  border: 2px solid var(--blush-deep);
}
.btn-outline:hover { background: var(--blush); }

/* ---------- couple ---------- */
.persons { display: flex; flex-direction: column; gap: 2.5rem; max-width: 560px; margin: 0 auto; }
.person-photo {
  width: 190px; height: 190px; margin: 0 auto 1.2rem;
  border-radius: 50%; overflow: hidden;
  border: 5px solid #fff; outline: 3px solid var(--blush);
  box-shadow: 0 14px 40px rgba(201,123,142,.3);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--plum); }
.person-role { color: var(--rose); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; margin: .3rem 0 .8rem; }
.ig-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--rose-dark); text-decoration: none; font-weight: 500; font-size: .92rem;
  border: 1.5px solid var(--blush); padding: .4rem 1.1rem; border-radius: 999px;
  margin-bottom: 1rem; transition: background .25s;
}
.ig-link:hover { background: var(--blush); }
.ig-link svg { width: 17px; height: 17px; }
.parents { font-size: .9rem; color: #8a6f7d; }
.addr { font-size: .82rem; color: #b09aa6; font-style: italic; }
.couple-amp { font-family: 'Great Vibes', cursive; font-size: 3.5rem; color: var(--blush-deep); line-height: 1; }

/* ---------- love story ---------- */
.timeline { max-width: 560px; margin: 0 auto; text-align: left; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blush), var(--blush-deep), var(--lavender));
}
.tl-item { position: relative; margin-bottom: 2.2rem; }
.tl-dot {
  position: absolute; left: -2rem; top: 4px; width: 18px; height: 18px;
  background: #fff; border: 4px solid var(--blush-deep); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
}
.tl-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: .9rem; box-shadow: 0 10px 30px rgba(201,123,142,.2); }
.tl-date { font-size: .75rem; letter-spacing: .3em; color: var(--rose); font-weight: 600; }
.tl-body h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--plum); margin: .2rem 0 .4rem; }
.tl-body p:last-child { font-size: .9rem; color: #8a6f7d; }

/* ---------- events ---------- */
.event-cards { display: flex; flex-direction: column; gap: 1.4rem; max-width: 560px; margin: 0 auto; }
.event-card {
  background: #fff; border-radius: 24px; padding: 2.2rem 1.8rem;
  border: 1px solid var(--blush);
  box-shadow: 0 14px 44px rgba(201,123,142,.18);
}
.event-flower { font-size: 2.4rem; margin-bottom: .6rem; }
.event-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--plum); margin-bottom: .4rem; }
.event-date { color: var(--rose-dark); font-weight: 600; }
.event-time { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--plum); margin: .4rem 0; }
.event-venue { color: #8a6f7d; font-size: .9rem; margin-bottom: 1.2rem; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
  max-width: 640px; margin: 0 auto;
}
.gallery-grid img {
  width: 100%; height: 190px; object-fit: cover; border-radius: 16px;
  cursor: pointer; transition: transform .3s;
  border: 3px solid #fff; box-shadow: 0 8px 24px rgba(201,123,142,.15);
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ---------- gift ---------- */
.gift-card {
  max-width: 420px; margin: 0 auto 1.2rem;
  background: #fff; border-radius: 20px; padding: 1.8rem;
  border: 1px solid var(--blush);
  box-shadow: 0 12px 36px rgba(201,123,142,.16);
}
.bank-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto .5rem; border-radius: 50%; }
.gift-bank { font-weight: 600; letter-spacing: .2em; color: var(--plum); font-size: .85rem; }
.gift-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--rose-dark); letter-spacing: .08em; margin: .3rem 0; }
.gift-name { color: #8a6f7d; font-size: .88rem; margin-bottom: 1rem; }
.copy-btn {
  padding: .6rem 1.8rem; border-radius: 999px; cursor: pointer;
  background: var(--blush); color: var(--rose-dark); border: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .85rem;
}
.copy-btn:hover { background: var(--blush-deep); color: #fff; }

/* ---------- forms ---------- */
form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
input, textarea {
  font-family: 'Poppins', sans-serif; font-size: .95rem;
  padding: .9rem 1.2rem; border-radius: 14px;
  border: 1.5px solid var(--blush); background: #fff; color: var(--plum);
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--blush-deep); box-shadow: 0 0 0 3px rgba(249,213,224,.4); }
.rsvp-choice { display: flex; gap: 1rem; justify-content: center; }
.rsvp-choice label {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--blush); border-radius: 999px;
  padding: .6rem 1.4rem; font-size: .9rem;
}
.rsvp-choice input { width: auto; accent-color: var(--rose); }
.rsvp-thanks { color: var(--rose-dark); font-weight: 500; margin-top: 1rem; }
.btn-voice {
  padding: .7rem 1.4rem; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1.5px dashed var(--blush-deep); color: var(--rose-dark);
  font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 500;
}
.btn-voice.recording { background: #ffeaea; border-color: #e05a5a; color: #c0392b; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.voice-status { font-size: .82rem; color: #8a6f7d; }
.voice-preview { width: 100%; margin-top: .4rem; }
.wishes-list { max-width: 560px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.wish-card {
  background: #fff; border-radius: 16px; padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--blush-deep);
  box-shadow: 0 6px 20px rgba(201,123,142,.1);
}
.wish-card .wish-name { font-weight: 600; color: var(--rose-dark); font-size: .92rem; }
.wish-card .wish-text { color: #6b5560; font-size: .9rem; margin-top: .3rem; }
.wish-card audio { width: 100%; margin-top: .5rem; }

/* ---------- footer / order ---------- */
footer { background: linear-gradient(180deg, var(--cream), var(--blush)); padding: 4rem 1.4rem 2rem; text-align: center; }
.order-eyebrow { letter-spacing: .35em; text-transform: uppercase; font-size: .72rem; color: var(--rose-dark); }
.order-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--plum); margin: .8rem 0 1.4rem; }
.order-btn {
  display: inline-block; padding: 1rem 2.8rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(201,123,142,.45);
  animation: btnFloat 2.6s ease-in-out infinite;
}
.order-note { margin-top: 1rem; font-size: .82rem; color: #a98a97; }
.order-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 2.5rem; color: var(--rose-dark); font-weight: 600; font-size: .9rem; }
.order-brand img { border-radius: 50%; }

/* ---------- music toggle ---------- */
.music-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
  font-size: 1.4rem; box-shadow: 0 8px 24px rgba(201,123,142,.5);
  display: flex; align-items: center; justify-content: center;
}
.music-toggle.playing .mt-icon { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(60,35,48,.92); }
.lb-stage { position: relative; z-index: 2; max-width: 92vw; }
.lb-stage img { max-height: 80vh; border-radius: 12px; border: 4px solid #fff; }
.lb-counter { text-align: center; color: #fff; margin-top: .6rem; font-size: .85rem; }
.lb-btn {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--rose-dark);
  font-size: 1.4rem; cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .persons { flex-direction: row; align-items: flex-start; max-width: 760px; }
  .person { flex: 1; }
  .couple-amp { align-self: center; }
  .event-cards { flex-direction: row; }
  .event-card { flex: 1; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid img { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .petal { display: none; }
  #open-invitation, .order-btn { animation: none; }
}
