/* ============================================================
   FANDI & RANIA — Adat Minang theme (built from scratch)
   maroon #3d0d0d • gold #d4af37 • emerald accents • cream text
   Gonjong roof bands + songket dividers (pure CSS/SVG)
   ============================================================ */
:root {
  --maroon: #3d0d0d;
  --maroon-deep: #2a0808;
  --maroon-band: #4a0f0f;
  --maroon: #7a1e1e;
  --gold: #d4af37;
  --gold-light: #f0d98c;
  --cream: #f7efdc;
  --cream-dim: #e0d0a8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--maroon);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scroll is locked until the cover is opened */
body:not(.opened) { overflow: hidden; height: 100vh; }

/* ==================== COVER ==================== */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

#cover.open {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#cover .gonjong-band { position: absolute; left: 0; width: 100%; height: 150px; }
#cover .gonjong-top { top: 0; }
#cover .gonjong-bottom { bottom: 0; }

.cover-inner {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 520px;
  animation: rise 1.2s ease both;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover-eyebrow {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-light);
}

.cover-salam {
  font-size: clamp(3rem, 12vw, 4.6rem);
  color: var(--gold);
  font-style: italic;
  margin: 0.4rem 0 0.2rem;
  text-shadow: 0 2px 18px rgba(212, 175, 55, 0.35);
}

.cover-sub { color: var(--cream-dim); font-style: italic; }

.cover-names {
  margin: 1.4rem 0 0.4rem;
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cover-names .amp {
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
}

.cover-date {
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.cover-guest p { font-size: 0.85rem; color: var(--cream-dim); }
.cover-guest strong { font-size: 1.15rem; color: var(--gold-light); }

#open-invitation {
  position: relative;
  z-index: 5;
  margin-top: 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.9rem 2.6rem;
  border-radius: 999px;
  border: 2px solid #fff3c4;
  background: linear-gradient(135deg, #b8931f, var(--gold));
  color: var(--maroon-deep);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35), 0 0 30px rgba(212, 175, 55, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: coverRise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 1.05s forwards, btnPulse 2s ease-in-out 2s infinite;
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35), 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.8); }
}
#open-invitation:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5); }

/* ==================== MAIN ==================== */
#main { position: relative; }

section { padding: 3.5rem 1.25rem; text-align: center; max-width: 900px; margin: 0 auto; }

.section-eyebrow {
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
.section-title {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--cream);
  font-style: italic;
  margin: 0.3rem 0 0.4rem;
}
.section-sub { color: var(--cream-dim); font-style: italic; margin-bottom: 2rem; }

/* Mega-mendung arch bands */
.gonjong-band { display: block; width: 100%; height: 120px; }
.gonjong-top { margin-bottom: -1px; }
.gonjong-bottom { margin-top: -1px; }

/* Gonjong emblem */
.gonjong-orn { width: 54px; height: auto; flex: 0 0 auto; }
.gonjong-orn.flip { transform: scaleX(-1); }

/* ==================== HERO ==================== */
.hero { max-width: none; padding: 0; }
.hero-body { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }

.bismillah {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.salam {
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.hero-lead {
  max-width: 560px;
  margin: 1rem auto 2rem;
  color: var(--cream-dim);
  font-style: italic;
}

.couple-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
}

.couple-names { flex: 1; max-width: 480px; }

.person h3 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  color: var(--cream);
  font-style: italic;
}
.person p { font-size: 0.88rem; color: var(--cream-dim); }

.couple-amp {
  font-size: 2.6rem;
  color: var(--gold);
  font-style: italic;
  margin: 0.6rem 0;
}

.hero-date { color: var(--gold-light); letter-spacing: 1px; }
.hero-date strong { font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase; }

/* ==================== WAVE DIVIDERS ==================== */
.songket-div {
  height: 60px;
  overflow: hidden; line-height: 0; background: var(--maroon); }
.songket-div svg {
  width: 100%;
  height: 60px;
  display: block; }

/* ==================== RANGKAIAN ACARA ==================== */
.ritual-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .ritual-cards { grid-template-columns: 1fr 1fr; }
  .ritual:last-child { grid-column: 1 / -1; }
}

.ritual {
  position: relative;
  background: linear-gradient(160deg, #234d35 0%, #1d4230 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px 4px 18px 4px;
  padding: 1.6rem 1.2rem 1.4rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ritual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background:
    radial-gradient(circle at 12px 0, rgba(201,162,39,0.55) 12px, transparent 13px);
  background-size: 32px 26px;
  background-repeat: repeat-x;
  opacity: 0.8;
}
.ritual:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }

.ritual-time {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  letter-spacing: 2px;
  font-size: 0.85rem;
}
.ritual h3 { color: var(--gold); font-style: italic; font-size: 1.35rem; margin: 0.7rem 0 0.4rem; }
.ritual p { color: var(--cream-dim); font-size: 0.94rem; }

.venue-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.6);
  border-radius: 14px;
  padding: 1.6rem;
  max-width: 480px;
  margin: 0 auto;
}
.venue-label { letter-spacing: 4px; text-transform: uppercase; font-size: 0.7rem; color: var(--gold); }
.venue-card h3 { font-size: 1.6rem; font-style: italic; margin: 0.3rem 0; }
.venue-card p { color: var(--cream-dim); margin-bottom: 1rem; }

.btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover { background: var(--gold); color: var(--maroon-deep); }

/* ==================== COUNTDOWN MEDALLION ==================== */
.medallion {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 1.8rem;
  background: radial-gradient(ellipse at 50% 20%, #234d35 0%, var(--maroon-deep) 75%);
  border: 2px solid var(--gold);
  border-radius: 50% / 12%;
}
.medal-wave { width: 70%; height: 20px; margin: 0 auto; display: block; }
.medal-wave.flip-v { transform: scaleY(-1); }

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.cd-cell {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 0.8rem 0.2rem;
}
.cd-cell span { display: block; font-size: clamp(1.5rem, 8vw, 2.2rem); color: var(--gold); }
.cd-cell label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cream-dim); }
.cd-date { color: var(--cream-dim); font-style: italic; font-size: 0.9rem; }

/* ==================== GALLERY ==================== */
.gallery-sec { max-width: 1000px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* ==================== AMPLOP DIGITAL ==================== */
.gift-card {
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(160deg, #234d35 0%, #173326 100%);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.bank-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-bottom: 0.8rem; }
.bank-name { color: var(--gold-light); letter-spacing: 1px; }
.bank-number {
  font-size: 1.35rem;
  letter-spacing: 3px;
  color: var(--cream);
  margin: 0.7rem 0 0.3rem;
  word-break: break-all;
}
.bank-owner { color: var(--cream-dim); font-style: italic; margin-bottom: 1.4rem; }

.btn-gold {
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #b8931f, var(--gold));
  color: var(--maroon-deep);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4); }

/* ==================== GUESTBOOK ==================== */
.guestbook-sec { max-width: 640px; }

/* ---------- voice comment ---------- */
.voice-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.btn-voice {
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-voice:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35); }
.btn-voice.recording {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
  animation: voicePulse 1.2s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(179, 38, 30, 0); }
}
.voice-status { font-size: 0.85rem; color: var(--gold); opacity: 0.9; }
.voice-preview { width: 100%; margin-top: 0.2rem; }
.wish-audio { width: 100%; margin-top: 0.6rem; height: 40px; }

#wish-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
#wish-name, #wish-message {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  resize: vertical;
}
#wish-name::placeholder, #wish-message::placeholder { color: rgba(217, 203, 166, 0.6); }
#wish-name:focus, #wish-message:focus { outline: 2px solid var(--gold); }

#wishes-list { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }

.wish {
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1.1rem;
}
.wish-name { color: var(--gold-light); font-style: italic; }
.wish-time { font-size: 0.72rem; color: rgba(217, 203, 166, 0.65); letter-spacing: 1px; }
.wish-text { margin-top: 0.3rem; color: var(--cream); }

.wishes-empty, .wishes-error {
  text-align: center;
  color: var(--cream-dim);
  font-style: italic;
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  background: var(--maroon-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}
.gonjong-orn-foot { width: 44px; margin-bottom: 1rem; }

.foot-thanks { color: var(--cream-dim); font-style: italic; }
.foot-names { font-size: 1.8rem; font-style: italic; color: var(--gold); margin: 0.4rem 0 2rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  padding: 0.9rem 1.4rem;
  text-align: left;
}
.brand-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.brand-name { color: var(--gold-light); letter-spacing: 1px; }
.brand-tag { color: var(--cream-dim); font-size: 0.88rem; }

/* ---------- ORDER / CTA (hidup) ---------- */
.order-sec {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,162,39,0.14), transparent 70%),
    linear-gradient(160deg, #3d0d0d 0%, #122a1e 55%, #3d0d0d 100%);
  background-size: 100% 100%, 200% 200%;
  animation: orderBgShift 9s ease-in-out infinite alternate;
}
@keyframes orderBgShift {
  0% { background-position: 0 0, 0% 0%; }
  100% { background-position: 0 0, 100% 100%; }
}
.order-waves { position: absolute; inset: auto 0 0 0; height: 120px; overflow: hidden; opacity: 0.9; pointer-events: none; }
.order-waves .ow { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.order-waves .ow1 { animation: waveFlow 14s linear infinite; }
.order-waves .ow2 { animation: waveFlow 9s linear infinite reverse; }
@keyframes waveFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.order-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.order-eyebrow {
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
  animation: orderFloat 4s ease-in-out infinite;
}
.order-title {
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.8rem;
  text-shadow: 0 2px 24px rgba(201,162,39,0.35);
}
.order-sub { color: var(--cream-dim); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.6rem; }
.order-brand { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-bottom: 1.8rem; }
.order-logo {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  border: 2px solid rgba(201,162,39,0.7);
  box-shadow: 0 0 18px rgba(201,162,39,0.45);
  animation: orderLogoGlow 3s ease-in-out infinite;
}
@keyframes orderLogoGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(201,162,39,0.35); transform: scale(1); }
  50% { box-shadow: 0 0 26px rgba(201,162,39,0.7); transform: scale(1.05); }
}
.order-brand-name {
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-light); font-size: 0.95rem; margin: 0;
}
.btn-order {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 1.05rem 2.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3c565, #d4af37 60%, #a88420);
  color: #3d0d0d;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  animation: orderPulse 2.4s ease-in-out infinite;
}
@keyframes orderPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(201,162,39,0.45); transform: scale(1); }
  50% { box-shadow: 0 6px 38px rgba(201,162,39,0.85); transform: scale(1.045); }
}
.btn-order:active { transform: scale(0.97); }
.btn-order-shine {
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg);
  animation: orderShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orderShine {
  0% { left: -80%; }
  55%, 100% { left: 130%; }
}
.order-note { margin-top: 1.1rem; color: var(--gold-light); font-size: 0.85rem; letter-spacing: 0.5px; }
@keyframes orderFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ============================================================
   UPGRADE PACK — Adat Minang: lightbox, reveal, ambient,
   micro-interactions, cover entrance, flowing mega mendung
   (appended 10 Okt 2026 — vanilla CSS only)
   ============================================================ */

/* ---------- 1. LIGHTBOX GALERI ---------- */
.gallery img { cursor: zoom-in; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 18, 13, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
#lightbox.show { opacity: 1; pointer-events: auto; }

#lightbox .lb-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.12);
  transform: scale(0.92);
  transition: transform 0.35s ease;
  user-select: none;
}
#lightbox.show .lb-img { transform: scale(1); }
#lightbox .lb-img.swap { animation: lbIn 0.32s ease; }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  font-family: inherit;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: var(--gold-light);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: scale(1.08);
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  letter-spacing: 3px;
  font-size: 0.95rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.3rem 1.2rem;
}

/* ---------- 2. REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 3. ANIMASI AMBIENT ---------- */
/* Mega mendung "mengalir": wave 200% lebar, geser -50% = 1 viewBox penuh (seamless) */
.songket-div {
  height: 60px;
  overflow: hidden; overflow: hidden; animation: waveBob 9s ease-in-out infinite; }
.songket-div svg {
  width: 100%;
  height: 60px;
  display: block;
  width: 200%;
  max-width: none;
  animation: waveFlow 60s linear infinite;
}
@keyframes waveFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes waveBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Shimmer emas menyapu garis pembatas */
.songket-div {
  height: 60px;
  overflow: hidden; position: relative; }
.songket-div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(212, 175, 55, 0.22) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmerSweep 7s linear infinite;
  pointer-events: none;
}
@keyframes shimmerSweep {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Emblem gonjong: glow emas berdenyut */
.gonjong-orn {
  animation: gonjongPulse 3.5s ease-in-out infinite;
}
@keyframes gonjongPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); }
  50% { filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.95)); }
}

/* ---------- 4. MICRO-INTERACTIONS ---------- */
.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
}

.ritual:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(212, 175, 55, 0.18);
}

.gift-card, .venue-card, .brand {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gift-card:hover, .venue-card:hover, .brand:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 26px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover { transform: translateY(-2px) scale(1.04); }
.btn-ghost { transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.btn-ghost:hover { transform: scale(1.04); }

/* Tombol buka undangan: glow pulse */
#open-invitation { animation: coverRise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 1.05s forwards, btnGlow 2.4s ease-in-out 2s infinite; }
#open-invitation:hover { transform: translateY(-2px) scale(1.05); }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 6px 38px rgba(212, 175, 55, 0.75), 0 0 18px rgba(212, 175, 55, 0.5); }
}

/* Angka countdown: scale kecil saat nilai berubah */
.cd-cell span.tick { animation: tickPop 0.5s ease; display: inline-block; }
@keyframes tickPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32); color: var(--gold-light); }
  100% { transform: scale(1); }
}

/* ---------- 5. COVER ENTRANCE DRAMATIS ---------- */
.cover-inner { animation: none; }
.cover-inner > * {
  opacity: 0;
  animation: coverRise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.cover-inner > :nth-child(1) { animation-delay: 0.05s; }
.cover-inner > :nth-child(2) { animation-delay: 0.22s; }
.cover-inner > :nth-child(3) { animation-delay: 0.39s; }
.cover-inner > :nth-child(4) { animation-delay: 0.56s; }
.cover-inner > :nth-child(5) { animation-delay: 0.73s; }
.cover-inner > :nth-child(6) { animation-delay: 0.9s; }
.cover-inner > :nth-child(7) { animation-delay: 1.05s; }
@keyframes coverRise {
  from { opacity: 0; transform: translateY(34px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   UPGRADE PACK 2 — foto profil mempelai + background foto tiap
   section (full-bleed, overlay hijau, parallax ringan)
   ============================================================ */

/* ---------- PHOTO SECTIONS (full-bleed + overlay + parallax) ---------- */
.photo-sec { position: relative; overflow: hidden; }
.sec-bg {
  position: absolute;
  top: -14%; left: 0; right: 0; height: 128%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.sec-bg[data-bg="couple-1.jpg"] { background-image: url("couple-1.jpg"); }
.sec-bg[data-bg="couple-2.jpg"] { background-image: url("couple-2.jpg"); }
.sec-bg[data-bg="couple-3.jpg"] { background-image: url("couple-3.jpg"); }
.photo-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,42,31,0.9) 0%, rgba(26,58,42,0.82) 50%, rgba(18,42,31,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}
.photo-sec > *:not(.sec-bg) { position: relative; z-index: 2; }
.photo-sec .section-title,
.photo-sec .section-eyebrow,
.photo-sec .section-sub,
.photo-sec .bismillah,
.photo-sec .salam,
.photo-sec .hero-lead,
.photo-sec .person h3,
.photo-sec .hero-date,
.photo-sec .cd-date,
.photo-sec .venue-card h3 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* ---------- PROFIL MEMPELAI ---------- */
.profile-sec { max-width: 900px; }
.profile-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .profile-cards { flex-direction: row; justify-content: center; align-items: stretch; }
}
.profile-card {
  flex: 1;
  max-width: 340px;
  background: linear-gradient(160deg, #234d35 0%, #173326 100%);
  border: 2px solid var(--gold);
  border-radius: 20px 6px 20px 6px;
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 175, 55, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px 4px 14px 4px;
  pointer-events: none;
}
.profile-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.25);
}
.profile-photo {
  width: 190px;
  height: 240px;
  margin: 0 auto 1.1rem;
  border-radius: 110px 110px 16px 16px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.35);
  position: relative;
  z-index: 1;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.profile-card:hover .profile-photo img { transform: scale(1.06); }
.profile-card h3 {
  font-size: 1.65rem;
  font-style: italic;
  color: var(--cream);
  position: relative;
  z-index: 1;
}
.profile-role {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0.35rem 0 0.7rem;
  position: relative;
  z-index: 1;
}
.profile-parents {
  color: var(--cream-dim);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.profile-child {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.profile-address {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(217, 203, 166, 0.75);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.profile-amp {
  font-size: 3rem;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
  align-self: center;
}

/* ---------- LOVE STORY ---------- */
.lovestory-sec { max-width: 900px; }
.lovestory-timeline {
  position: relative;
  margin-top: 2.5rem;
  padding: 0.5rem 0 1rem;
}
.lovestory-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}
.love-item {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding-left: 58px;
  margin-bottom: 1.8rem;
}
.love-item:last-child { margin-bottom: 0; }
.love-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--maroon-deep);
  border: 3px solid var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.75);
  z-index: 1;
}
.love-photo {
  flex-shrink: 0;
  width: 118px;
  height: 148px;
  border-radius: 14px 4px 14px 4px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.25);
  transform: rotate(-2deg);
  transition: transform 0.35s ease;
}
.love-item:nth-child(even) .love-photo { transform: rotate(2deg); }
.love-item:hover .love-photo { transform: rotate(0deg) scale(1.05); }
.love-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.love-item:hover .love-photo img { transform: scale(1.08); }
.love-body {
  flex: 1;
  background: linear-gradient(160deg, #234d35 0%, #173326 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 14px 4px 14px 4px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.love-body::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px 3px 10px 3px;
  pointer-events: none;
}
.love-year {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--maroon-deep);
  background: linear-gradient(135deg, #b8931f, var(--gold));
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.love-body h3 {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0.45rem;
  position: relative;
}
.love-body p { font-size: 0.9rem; color: var(--cream-dim); line-height: 1.7; position: relative; }
/* Animasi fade-in bergantian: ganjil dari kiri, genap dari kanan */
.love-item.reveal { transform: translateX(-46px); }
.love-item:nth-child(even).reveal { transform: translateX(46px); }
.love-item.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .love-item.reveal { transform: none; }
}
@media (min-width: 640px) {
  .lovestory-timeline::before { left: 50%; margin-left: -1.5px; }
  .love-item {
    width: 50%;
    padding-left: 0;
    padding-right: 2.6rem;
    margin-bottom: 2.4rem;
  }
  .love-item::before { left: auto; right: -11px; }
  .love-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.6rem;
  }
  .love-item:nth-child(even)::before { right: auto; left: -11px; }
  .love-photo { width: 132px; height: 164px; }
}

/* ---------- SAVE THE DATE ---------- */
.savethedate-sec { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.std-day {
  font-size: clamp(1.4rem, 6vw, 2rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.std-date {
  font-size: clamp(6rem, 28vw, 11rem);
  line-height: 1;
  color: var(--gold);
  font-style: italic;
  margin: 0.4rem 0;
  text-shadow: 0 4px 30px rgba(212, 175, 55, 0.45), 0 2px 14px rgba(0, 0, 0, 0.8);
  animation: stdGlow 3.5s ease-in-out infinite;
}
@keyframes stdGlow {
  0%, 100% { text-shadow: 0 4px 30px rgba(212, 175, 55, 0.35), 0 2px 14px rgba(0, 0, 0, 0.8); }
  50% { text-shadow: 0 4px 44px rgba(212, 175, 55, 0.7), 0 2px 14px rgba(0, 0, 0, 0.8); }
}
.std-month {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  letter-spacing: 4px;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.std-note {
  margin-top: 1.2rem;
  color: var(--cream-dim);
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* ---------- AKAD & RESEPSI CARDS ---------- */
.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 680px;
  margin: 2rem auto 0;
}
@media (min-width: 640px) { .event-cards { grid-template-columns: 1fr 1fr; } }
.event-card {
  background: linear-gradient(160deg, rgba(35, 77, 53, 0.92) 0%, rgba(23, 51, 38, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 20px 6px 20px 6px;
  padding: 2rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 175, 55, 0.22);
}
.event-label {
  display: inline-block;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--maroon-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.event-card h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cream);
}
.event-date {
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin: 0.4rem 0;
}
.event-time {
  color: var(--cream-dim);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.event-place {
  color: var(--cream-dim);
  font-style: italic;
  margin-bottom: 1.3rem;
  line-height: 1.6;
}

/* ---------- RSVP FORM ---------- */
.rsvp-sec { max-width: 560px; }
#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 1.8rem 1.4rem;
  margin-top: 1.5rem;
}
#rsvp-name, #rsvp-guests {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
}
#rsvp-name::placeholder { color: rgba(217, 203, 166, 0.6); }
#rsvp-name:focus, #rsvp-guests:focus { outline: 2px solid var(--gold); }
#rsvp-guests option { background: var(--maroon-deep); color: var(--cream); }
.rsvp-attendance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.rsvp-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--cream-dim);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rsvp-option input { accent-color: var(--gold); }
.rsvp-option:has(input:checked) {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold-light);
}
.rsvp-guests-label {
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--cream-dim);
  margin-bottom: -0.4rem;
}
.rsvp-msg {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-style: italic;
}
.rsvp-msg.ok { background: rgba(212, 175, 55, 0.15); border: 1px solid var(--gold); color: var(--gold-light); }
.rsvp-msg.err { background: rgba(180, 60, 60, 0.15); border: 1px solid #b43c3c; color: #f0b0b0; }

/* ---------- AKSESIBILITAS: hormati prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .songket-div svg, .songket-div, .songket-div::after, .gonjong-orn,
  #open-invitation, .cover-inner > *,
  .order-sec, .order-waves .ow, .order-eyebrow, .order-logo, .btn-order, .btn-order-shine {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover-inner > * { opacity: 1; }
}

/* ---------- Music toggle (floating) ---------- */
#music-toggle {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  background: #3d0d0d;
  color: #d4af37;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 0 4px rgba(201,162,39,0.15);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}
body.opened #music-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
#music-toggle:active { transform: scale(0.92); }
#music-toggle .mt-icon { display: inline-block; }
#music-toggle.playing {
  animation: mtPulse 2.2s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 14px rgba(201,162,39,0.55);
}
@keyframes mtPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 6px rgba(201,162,39,0.35); }
  50% { box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 18px rgba(201,162,39,0.7); }
}

/* ---------- Instagram di profil mempelai ---------- */
.profile-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.profile-ig:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
  color: #fff3c4;
}
.profile-ig .ig-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
