/* ============================================================
 * style.css — Template 25 Jawa Fairytale
 * Marun tua + dusty rose + emas + krem hangat.
 * Nuansa klasik Jawa vintage sinematik malam hari.
 * Heading: Cormorant Garamond | Nama: Pinyon Script | Body: Jost
 * ============================================================ */

:root {
  --sage: #7a3b3b;
  --sage-tua: #542727;
  --sage-gelap: #3a1b1b;
  --sage-muda: #b76e79;
  --sage-halus: #f3e2d8;
  --krem: #f8f1e3;
  --krem-gelap: #f0e0c6;
  --krem-trans: rgba(248, 241, 227, 0.9);
  --coklat: #a06a42;
  --coklat-tua: #6f452b;
  --gold: #c9a227;
  --gold-muda: #f6e7c6;
  --gold-glow: 0 0 20px rgba(201, 162, 39, 0.4);
  --teks: #3a2a22;
  --teks-muda: #6f5b4c;
  --putih: #ffffff;
  --glass-bg: rgba(255, 253, 248, 0.92);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-bayang: 0 16px 42px rgba(84, 39, 39, 0.14), 0 2px 6px rgba(0, 0, 0, 0.03);
  --radius-kartu: 22px;
  --radius-tombol: 999px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Jost", "Segoe UI", sans-serif;
  background-color: var(--krem);
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(183, 110, 121, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(201, 162, 39, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(122, 59, 59, 0.16) 0%, transparent 60%);
  color: var(--teks);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, .font-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--sage-tua);
  font-weight: 600;
  line-height: 1.25;
}

body.terkunci { overflow: hidden; }

/* ============================================================
 * FULL ANIMASI: DEBU EMAS MELAYANG (kunang-kunang malam)
 * ============================================================ */
.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 65;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 40% 40%, rgba(246, 231, 198, 0.95), rgba(201, 162, 39, 0.55));
  border-radius: 50%;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.7));
  animation: fallAndSway linear infinite;
  opacity: 0.8;
}

.petal:nth-child(even) {
  background: radial-gradient(ellipse at 35% 35%, rgba(244, 232, 207, 0.9), rgba(197, 160, 89, 0.6));
  border-radius: 0 50% 50% 50%;
  width: 14px;
  height: 22px;
}

.petal:nth-child(1)  { left: 6%;  animation-duration: 13s; animation-delay: 0s;   width: 16px; height: 26px; }
.petal:nth-child(2)  { left: 16%; animation-duration: 18s; animation-delay: 2.5s; width: 20px; height: 32px; }
.petal:nth-child(3)  { left: 28%; animation-duration: 15s; animation-delay: 1.2s; width: 14px; height: 22px; }
.petal:nth-child(4)  { left: 42%; animation-duration: 17s; animation-delay: 4.8s; width: 18px; height: 28px; }
.petal:nth-child(5)  { left: 56%; animation-duration: 14s; animation-delay: 0.8s; width: 22px; height: 34px; }
.petal:nth-child(6)  { left: 68%; animation-duration: 19s; animation-delay: 3.2s; width: 15px; height: 24px; }
.petal:nth-child(7)  { left: 78%; animation-duration: 16s; animation-delay: 5.5s; width: 19px; height: 30px; }
.petal:nth-child(8)  { left: 88%; animation-duration: 12s; animation-delay: 1.8s; width: 16px; height: 26px; }
.petal:nth-child(9)  { left: 94%; animation-duration: 20s; animation-delay: 3.9s; width: 12px; height: 20px; }

@keyframes fallAndSway {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    transform: translateX(50px) rotate(180deg) scale(1);
  }
  90% {
    opacity: 0.75;
  }
  100% {
    top: 105vh;
    transform: translateX(-40px) rotate(360deg) scale(0.9);
    opacity: 0;
  }
}

/* ============================================================
 * FLOATING VINYL DISC MUSIC PLAYER DENGAN AUDIO EQUALIZER
 * ============================================================ */
#tombol-musik {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(79, 94, 69, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#tombol-musik:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79, 94, 69, 0.3);
}

.vinyl-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, #c5a059 4px, #1a1e17 5px, #1a1e17 7px, #2f382a 8px, #1a1e17 12px, #364030 14px, #181d15 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.vinyl-center-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #c5a059;
}

#tombol-musik.main .vinyl-disc {
  animation: spinVinyl 4.5s linear infinite;
}

@keyframes spinVinyl {
  100% { transform: rotate(360deg); }
}

.musik-label-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.musik-label-teks {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage-tua);
  line-height: 1.2;
}

.musik-eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  margin-top: 3px;
}

.musik-eq span {
  width: 2.5px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}

#tombol-musik.main .musik-eq span:nth-child(1) { animation: soundWave 0.7s infinite alternate ease-in-out; }
#tombol-musik.main .musik-eq span:nth-child(2) { animation: soundWave 0.9s infinite 0.2s alternate ease-in-out; }
#tombol-musik.main .musik-eq span:nth-child(3) { animation: soundWave 0.6s infinite 0.4s alternate ease-in-out; }
#tombol-musik.main .musik-eq span:nth-child(4) { animation: soundWave 0.8s infinite 0.1s alternate ease-in-out; }

@keyframes soundWave {
  0%   { height: 3px; }
  100% { height: 12px; }
}

/* ============================================================
 * COVER (HALAMAN PERTAMA DENGAN PREWEDDING & TRANSPARANSI)
 * ============================================================ */
#cover {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease, transform 0.9s ease;
}

#cover.terbuka {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

/* Background Prewedding dengan Animasi Ken Burns Zoom Lembut */
.cover-bg-image {
  position: absolute;
  inset: -25px;
  background-image: url("img/cover-bg.jpg");
  background-size: cover;
  background-position: center 25%;
  animation: kenBurnsCover 24s ease-in-out infinite alternate;
  filter: brightness(0.85) contrast(1.08) saturate(1.05);
  z-index: 1;
}

@keyframes kenBurnsCover {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.09) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1.04) translate(1%, 0.5%);
  }
}

/* Lapisan Gradasi Transparansi Gelap & Hangat — nuansa malam marun */
.cover-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(84, 39, 39, 0.42) 0%, rgba(26, 14, 14, 0.84) 80%),
    linear-gradient(180deg, rgba(26, 14, 14, 0.42) 0%, rgba(38, 20, 20, 0.62) 45%, rgba(18, 10, 10, 0.93) 100%);
  z-index: 2;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* Ornamen Daun Sudut Cover */
.cover-ornamen {
  position: absolute;
  width: 140px;
  height: 140px;
  color: rgba(244, 232, 207, 0.45);
  pointer-events: none;
  z-index: 3;
}
.cover-ornamen.ok-tl { top: 12px; left: 12px; }
.cover-ornamen.ok-tr { top: 12px; right: 12px; transform: rotate(90deg); }
.cover-ornamen.ok-bl { bottom: 12px; left: 12px; transform: rotate(270deg); }
.cover-ornamen.ok-br { bottom: 12px; right: 12px; transform: rotate(180deg); }

/* Kartu Glassmorphism Tengah */
.cover-card {
  position: relative;
  z-index: 10;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 24px 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: coverCardIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes coverCardIn {
  0% { opacity: 0; transform: translateY(35px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Badge Foto Prewedding Transparan di Cover */
.cover-avatar-container {
  position: relative;
  margin-bottom: 14px;
}

.cover-avatar-aura {
  position: absolute;
  inset: -6px;
  border-radius: 100px 100px 30px 30px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.55), transparent 70%);
  animation: pulseAura 3.5s infinite alternate ease-in-out;
  z-index: 0;
}

@keyframes pulseAura {
  0%   { opacity: 0.4; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1.06); }
}

.cover-avatar-arch {
  position: relative;
  width: 124px;
  height: 154px;
  border-radius: 90px 90px 24px 24px;
  overflow: hidden;
  border: 2px solid rgba(244, 232, 207, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 1;
  background: #2b3326;
}

.cover-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s ease;
}

.cover-avatar-arch:hover .cover-avatar-img {
  transform: scale(1.06);
}

.cover-avatar-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 26, 18, 0.6) 100%);
  pointer-events: none;
}

.cover-subjudul {
  font-size: 0.76rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-muda);
  margin-bottom: 6px;
  opacity: 0.95;
  font-weight: 500;
}

.cover-nama {
  font-size: clamp(2.6rem, 11vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 4px;
}

.cover-dan {
  display: block;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold-muda);
  margin: 2px 0;
}

.cover-tanggal-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gold-muda);
  margin: 10px 0 16px;
}

.cover-tamu-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 22px;
}

.cover-untuk {
  font-size: 0.78rem;
  color: rgba(244, 232, 207, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cover-tamu {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #ffffff;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

/* Tombol Buka Undangan Glowing & Shimmer */
.btn-buka-undangan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f4e8cf 0%, #c5a059 100%);
  color: #2e3627;
  font-family: "Jost", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(244, 232, 207, 0.6);
  animation: pulseButton 2.4s infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
  overflow: hidden;
}

.btn-buka-undangan:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-buka-undangan:active {
  transform: scale(0.98);
}

@keyframes pulseButton {
  0% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(244, 232, 207, 0.55); }
  70% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(244, 232, 207, 0); }
  100% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(244, 232, 207, 0); }
}

.buka-icon {
  font-size: 1.15rem;
}

.buka-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shimmerMove 3.5s infinite;
}

@keyframes shimmerMove {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

.cover-petunjuk {
  font-size: 0.72rem;
  color: rgba(244, 232, 207, 0.75);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

/* ============================================================
 * TOMBOL UMUM & LINK
 * ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 30px;
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-tombol);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-sage {
  background: var(--sage-tua);
  color: #fffdf8;
  border-color: var(--sage-tua);
  box-shadow: 0 6px 18px rgba(79, 94, 69, 0.25);
}
.btn-sage:hover {
  background: var(--sage-gelap);
  box-shadow: 0 8px 22px rgba(79, 94, 69, 0.35);
  transform: translateY(-1px);
}

.btn-garis {
  background: rgba(255, 255, 255, 0.6);
  color: var(--sage-tua);
  border-color: var(--sage);
}
.btn-garis:hover {
  background: rgba(125, 140, 111, 0.15);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-muda), var(--gold));
  color: #2f382a;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.35);
}
.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-kecil {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 0.82rem;
}

.kembali-geleri {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--sage-tua);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(125, 140, 111, 0.25);
  transition: background 0.2s;
}
.kembali-geleri:hover {
  background: #ffffff;
  color: var(--sage-gelap);
}

.kembali-di-cover {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 20;
  color: var(--gold-muda);
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* ============================================================
 * KONTEN UTAMA & SECTION (DENGAN TRANSPARANSI & GLASSMORPHISM)
 * ============================================================ */
#konten {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  max-width: 620px;
  margin: 36px auto;
  padding: 56px 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-kartu);
  box-shadow: var(--glass-bayang);
}

.rata-kiri   { text-align: left; }
.rata-kanan  { text-align: right; }
.rata-tengah, .tengah { text-align: center; }

.judul-section {
  font-size: clamp(2rem, 7vw, 2.7rem);
  margin-bottom: 6px;
  color: var(--sage-tua);
}

.subjudul-section {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coklat-tua);
  margin-bottom: 8px;
  font-weight: 600;
}

.pembatas {
  display: inline-block;
  width: 70px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  margin: 12px 0 20px;
  border-radius: 2px;
}

.rata-kanan .pembatas {
  background: linear-gradient(270deg, var(--sage), var(--gold));
}

.teks-isi {
  color: var(--teks-muda);
  font-size: 1.02rem;
}
.teks-isi p + p { margin-top: 10px; }

/* Ornamen Daun di Sudut Section */
.ornamen {
  position: absolute;
  width: 80px;
  height: 80px;
  color: var(--sage);
  opacity: 0.35;
  pointer-events: none;
}
.ornamen-tl { top: 12px; left: 12px; }
.ornamen-tr { top: 12px; right: 12px; transform: rotate(90deg); }
.ornamen-br { bottom: 12px; right: 12px; transform: rotate(180deg); }
.ornamen-bl { bottom: 12px; left: 12px; transform: rotate(270deg); }

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].tampil {
  opacity: 1;
  transform: none;
}

/* ============================================================
 * SECTION 1: SALAM & AYAT AL-QUR'AN
 * ============================================================ */
.ayat-box {
  background: rgba(125, 140, 111, 0.08);
  border: 1px solid rgba(125, 140, 111, 0.22);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 24px;
  text-align: center;
}

.bismillah-arab {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  color: var(--sage-tua);
  margin-bottom: 12px;
  line-height: 1.3;
}

.ayat-terjemahan {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--teks);
  line-height: 1.6;
}

.ayat-surah {
  display: block;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coklat-tua);
  margin-top: 12px;
}

/* ============================================================
 * SECTION 2: KEDUA MEMPELAI
 * ============================================================ */
.kartu-mempelai {
  display: flex;
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(125, 140, 111, 0.28);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(79, 94, 69, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kartu-mempelai:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 94, 69, 0.14);
}

.rata-kanan .kartu-mempelai {
  flex-direction: row-reverse;
  text-align: right;
}

.mempelai-foto-arch {
  width: 126px;
  height: 162px;
  border-radius: 70px 70px 18px 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold-muda);
  box-shadow: 0 6px 16px rgba(79, 94, 69, 0.18);
  background: var(--krem-gelap);
  position: relative;
}

.foto-mempelai {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mempelai-foto-arch:hover .foto-mempelai {
  transform: scale(1.08);
}

.nama-mempelai {
  font-size: 1.7rem;
  color: var(--sage-tua);
  margin-bottom: 4px;
}

.anak-ke {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coklat-tua);
  font-weight: 500;
  margin-bottom: 8px;
}

.ortu {
  font-size: 0.94rem;
  color: var(--teks-muda);
  line-height: 1.5;
}
.ortu strong { color: var(--teks); font-weight: 600; }

.pemisah-dan {
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold);
  margin: 18px 0 2px;
}

/* ============================================================
 * SECTION 3: COUNTDOWN WAKTU BAHAGIA
 * ============================================================ */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.countdown > div {
  background: linear-gradient(145deg, var(--sage-tua), var(--sage-gelap));
  color: #fffdf8;
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(79, 94, 69, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.countdown > div::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 0 0;
}

.countdown span[data-cd] {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-muda);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.countdown small {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ============================================================
 * SECTION 4: ACARA & GOOGLE MAPS INTERAKTIF
 * ============================================================ */
.kartu-acara {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 140, 111, 0.32);
  border-top: 5px solid var(--sage);
  border-radius: var(--radius-kartu);
  padding: 28px 22px;
  margin-top: 24px;
  box-shadow: var(--glass-bayang);
  text-align: center;
}

.kartu-acara h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.acara-tanggal {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--teks);
}

.acara-jam {
  color: var(--coklat-tua);
  font-weight: 500;
  margin-bottom: 12px;
}

.acara-tempat {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  color: var(--sage-tua);
  font-weight: 600;
}

.acara-alamat {
  font-size: 0.95rem;
  color: var(--teks-muda);
  margin: 6px 0 20px;
}

.aksi-acara {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* WIDGET GOOGLE MAPS INTERAKTIF */
.maps-widget {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(125, 140, 111, 0.35);
  border-radius: 20px;
  padding: 20px 18px 24px;
  box-shadow: 0 10px 28px rgba(79, 94, 69, 0.1);
  text-align: center;
}

.maps-widget-header {
  margin-bottom: 14px;
}

.maps-widget-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sage-tua);
  margin-bottom: 10px;
}

.maps-tabs {
  display: inline-flex;
  background: var(--krem-gelap);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
}

.map-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teks-muda);
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-tab-btn.aktif {
  background: var(--sage-tua);
  color: #fffdf8;
  box-shadow: 0 2px 8px rgba(79, 94, 69, 0.3);
}

.map-iframe-container {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(125, 140, 111, 0.25);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.06);
  margin-top: 14px;
  background: #eae5d8;
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-nav-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ============================================================
 * SECTION 5: LOVE STORY TIMELINE
 * ============================================================ */
#timeline {
  margin-top: 30px;
  position: relative;
}

.tl-item {
  position: relative;
  padding: 0 0 32px 36px;
  text-align: left;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(var(--sage-muda), var(--gold));
  border-radius: 2px;
}

.tl-item:last-child::before { display: none; }

.tl-item::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--krem);
  border: 3px solid var(--sage);
  box-shadow: 0 0 0 4px rgba(125, 140, 111, 0.2);
}

.tl-tahun {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fffdf8;
  background: var(--sage-tua);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(79, 94, 69, 0.2);
}

.tl-isi h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.tl-isi p {
  font-size: 0.98rem;
  color: var(--teks-muda);
}

/* ============================================================
 * SECTION 6: GALERI FOTO
 * ============================================================ */
.grid-galeri {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.g-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(125, 140, 111, 0.3);
  box-shadow: 0 6px 18px rgba(79, 94, 69, 0.12);
  aspect-ratio: 4 / 3;
  background: var(--krem-gelap);
  position: relative;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.g-item:hover img {
  transform: scale(1.08);
}

.g-item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(47, 56, 42, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g-item:hover::after {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 12, 0.92);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.lightbox.buka { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: zoomLight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLight {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-tutup {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  color: #333;
  transition: background 0.2s;
}

.lightbox-tutup:hover { background: #ffffff; }

/* ============================================================
 * SECTION 7: AMPLOP DIGITAL + QRIS + VIP GUEST PASS QR
 * ============================================================ */
.amplop-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 20px;
}

.amplop-tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--sage-muda);
  background: rgba(255, 255, 255, 0.7);
  font-family: "Jost", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage-tua);
  cursor: pointer;
  transition: all 0.25s ease;
}

.amplop-tab-btn.aktif {
  background: var(--sage-tua);
  color: #ffffff;
  border-color: var(--sage-tua);
  box-shadow: 0 4px 14px rgba(79, 94, 69, 0.25);
}

/* Kartu Bank */
.rek-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(125, 140, 111, 0.3);
  border-radius: var(--radius-kartu);
  padding: 22px;
  margin-top: 16px;
  box-shadow: 0 6px 18px rgba(79, 94, 69, 0.08);
  text-align: left;
}

.rek-bank {
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--coklat-tua);
  font-weight: 600;
  margin-bottom: 4px;
}

.rek-nomor {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--sage-tua);
  overflow-wrap: anywhere;
}

.rek-nama {
  font-size: 0.95rem;
  color: var(--teks-muda);
  margin: 4px 0 14px;
}

/* KARTU QRIS RESMI */
.qris-card {
  background: #ffffff;
  border: 1.5px solid #d41427;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  margin-top: 18px;
  text-align: center;
}

.qris-header {
  background: #d41427;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.qris-badge-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.qris-gpn-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  color: #d41427;
  padding: 2px 8px;
  border-radius: 4px;
}

.qris-body {
  padding: 24px 18px 20px;
}

.qris-merchant-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.qris-nmid {
  font-size: 0.78rem;
  color: #777;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.qris-canvas-wrapper {
  display: inline-flex;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qris-canvas-wrapper img,
.qris-canvas-wrapper canvas {
  display: block;
  width: 200px;
  height: 200px;
}

.qris-supported {
  font-size: 0.8rem;
  color: #666;
  margin-top: 14px;
  line-height: 1.4;
}

/* VIP GUEST CHECK-IN PASS CARD */
.vip-pass-card {
  margin-top: 34px;
  background: linear-gradient(135deg, #374330 0%, #20271c 100%);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 20px;
  padding: 24px 20px;
  color: #fffdf8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.vip-pass-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.25), transparent 70%);
}

.vip-pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(244, 232, 207, 0.25);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.vip-tag {
  background: rgba(197, 160, 89, 0.25);
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: var(--gold-muda);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 999px;
}

.vip-inv-no {
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  color: rgba(244, 232, 207, 0.7);
}

.vip-pass-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.vip-pass-info { flex: 1; }

.vip-guest-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(244, 232, 207, 0.75);
}

.vip-guest-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  color: #ffffff;
  margin: 2px 0 6px;
  line-height: 1.2;
}

.vip-guest-details {
  font-size: 0.82rem;
  color: rgba(244, 232, 207, 0.8);
  line-height: 1.4;
}

.vip-qr-wrapper {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.vip-qr-wrapper img,
.vip-qr-wrapper canvas {
  width: 90px;
  height: 90px;
  display: block;
}

.vip-pass-note {
  font-size: 0.74rem;
  color: rgba(244, 232, 207, 0.7);
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ============================================================
 * SECTION 8: RSVP VIA WHATSAPP
 * ============================================================ */
.form-rsvp {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(125, 140, 111, 0.3);
  border-radius: var(--radius-kartu);
  padding: 26px 22px;
  margin-top: 24px;
  box-shadow: var(--glass-bayang);
  text-align: left;
}

.form-rsvp label.blok {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 14px 0 6px;
  color: var(--teks);
}

.form-rsvp input[type="text"],
.form-rsvp textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  color: var(--teks);
  border: 1px solid var(--sage-muda);
  border-radius: 12px;
  background: var(--krem);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-rsvp textarea { min-height: 110px; resize: vertical; }

.form-rsvp input:focus, .form-rsvp textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(125, 140, 111, 0.2);
}

.pilihan-hadir {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pilihan-hadir label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid var(--sage-muda);
  border-radius: 999px;
  font-size: 0.92rem;
  background: #ffffff;
  transition: all 0.2s;
}

.pilihan-hadir input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage-tua);
}

.form-rsvp .btn { width: 100%; margin-top: 22px; }

/* ============================================================
 * SECTION 9: INFO & DRESSCODE
 * ============================================================ */
.info-box {
  background: rgba(125, 140, 111, 0.09);
  border: 1px dashed var(--sage);
  border-radius: 16px;
  padding: 22px;
  margin-top: 16px;
  text-align: left;
}

.info-box h3 { font-size: 1.3rem; margin-bottom: 6px; }
.info-box p { font-size: 0.97rem; color: var(--teks-muda); }

/* ============================================================
 * PENUTUP & KREDIT
 * ============================================================ */
#penutup {
  padding-bottom: 96px;
  margin-bottom: 24px;
}

.penutup-nama {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--sage-tua);
  margin: 22px 0 4px;
}

.penutup-salam {
  font-size: 1.05rem;
  color: var(--teks-muda);
  margin-top: 18px;
}

.kredit {
  margin-top: 28px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teks-muda);
  opacity: 0.8;
}

/* ============================================================
 * RESPONSIVE (DESKTOP & TABLET)
 * ============================================================ */
@media (min-width: 640px) {
  .section {
    padding: 72px 42px;
    margin: 48px auto;
  }
  .cover-card {
    padding: 40px 32px 36px;
    max-width: 480px;
  }
  .cover-avatar-arch {
    width: 136px;
    height: 172px;
  }
  .cover-nama {
    letter-spacing: 1px;
  }
  .grid-galeri {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .mempelai-foto-arch {
    width: 142px;
    height: 180px;
  }
  .cover-ornamen {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .kartu-mempelai {
    flex-direction: column !important;
    text-align: center !important;
  }
  .rata-kanan .kartu-mempelai {
    text-align: center !important;
  }
  .mempelai-foto-arch {
    margin: 0 auto 12px;
  }
  .vip-pass-content {
    flex-direction: column;
    text-align: center;
  }
  .vip-qr-wrapper {
    margin-top: 10px;
  }
}

/* Aksesibilitas: Kurangi animasi bila user memilih reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .cover-bg-image { animation: none; }
  .petal { display: none; }
}

/* ============================================================
 * TEMA 25 JAWA FAIRYTALE — override khas
 * Kaligrafi script untuk nama, akordeon kisah cinta,
 * tautan Instagram mempelai, kartu kirim kado.
 * ============================================================ */

/* Nama mempelai dengan font kaligrafi script yang elegan */
.cover-nama,
.nama-mempelai,
.penutup-nama {
  font-family: "Pinyon Script", "Cormorant Garamond", cursive;
  font-weight: 400;
}
.cover-nama {
  font-size: clamp(3rem, 13vw, 4.4rem);
  color: #fffdf8;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5), 0 0 34px rgba(201, 162, 39, 0.35);
}
.nama-mempelai { font-size: clamp(1.9rem, 7.5vw, 2.5rem); }
.penutup-nama {
  font-size: clamp(2.2rem, 9vw, 3rem);
  color: var(--sage-tua);
}

/* Ornamen ukiran sudut bernuansa emas */
.ornamen,
.cover-ornamen {
  color: rgba(201, 162, 39, 0.55);
}

/* Tautan Instagram mempelai */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  color: var(--sage-tua);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: rgba(201, 162, 39, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
  min-height: 44px;
}
.ig-link:hover {
  background: rgba(201, 162, 39, 0.2);
  transform: translateY(-1px);
}

/* Akordeon kisah cinta */
.akordeon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.akordeon-item {
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass-bg);
  box-shadow: var(--glass-bayang);
}
.akordeon-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(135deg, rgba(84, 39, 39, 0.06), rgba(201, 162, 39, 0.1));
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-height: 56px;
}
.akordeon-tahun {
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--putih);
  background: var(--sage-tua);
  border-radius: 12px;
  padding: 6px 12px;
  letter-spacing: 1px;
}
.akordeon-judul {
  flex: 1 1 auto;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sage-tua);
}
.akordeon-ikon {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.akordeon-btn[aria-expanded="true"] .akordeon-ikon {
  transform: rotate(180deg);
}
.akordeon-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.akordeon-panel.terbuka {
  max-height: 400px;
}
.akordeon-panel p {
  padding: 4px 18px 18px;
  color: var(--teks-muda);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Kartu kirim kado fisik */
.kado-card {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: var(--radius-kartu);
  background: linear-gradient(150deg, rgba(84, 39, 39, 0.07), rgba(201, 162, 39, 0.12));
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: var(--glass-bayang);
  text-align: center;
}
.kado-label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--sage-tua);
  margin-bottom: 8px;
}
.kado-alamat {
  color: var(--teks-muda);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

/* Kartu acara ala kartu fisik dengan hiasan bawah */
.kartu-acara {
  position: relative;
  overflow: hidden;
}
.kartu-acara::after {
  content: "❧ ❦ ❧";
  display: block;
  text-align: center;
  color: var(--gold);
  opacity: 0.7;
  font-size: 1.1rem;
  letter-spacing: 8px;
  margin-top: 14px;
}
