/* ============================================================
 * style.css — Template 02 Royal Navy Gold
 * Biru navy megah + bingkai emas ganda di tiap section.
 * Mobile-first (360–430px), rapi di desktop.
 * ============================================================ */

/* ---------- WAJIB (dari kontrak, warna disesuaikan tema) ---------- */

/* Kunci scroll saat cover / lightbox terbuka */
body.terkunci { overflow: hidden; }

/* Tombol musik mengambang */
#tombol-musik {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #c9a24b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(15, 30, 61, .92); color: #e8cf8f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
#tombol-musik .ikon-musik { display: inline-block; }
#tombol-musik.main .ikon-musik { animation: putar 3s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }

/* Lightbox galeri */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .88); padding: 24px;
}
.lightbox.buka { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lightbox-tutup {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
  background: rgba(255, 255, 255, .9); border: none;
}

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease; }
[data-reveal].tampil { opacity: 1; transform: none; }

/* Hormati preferensi gerak minimal */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Dasar ---------- */
:root {
  --navy: #0f1e3d;
  --navy-2: #16264c;
  --navy-3: #1d3260;
  --emas: #c9a24b;
  --emas-muda: #e8cf8f;
  --emas-gelap: #9a7a2e;
  --gading: #faf5ea;
  --gading-2: #f3ead6;
  --teks-gelap: #232c4e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--gading);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .font-judul {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.35;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

/* ---------- Section full-screen + bingkai emas ganda ---------- */
.layar {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
}

.layar.navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy) 100%); color: var(--gading); }
.layar.gading { background: linear-gradient(160deg, var(--gading) 0%, var(--gading-2) 100%); color: var(--teks-gelap); }

/* Kilau emas dekoratif untuk efek parallax ringan */
.dekor-kilau {
  position: absolute;
  width: 120%; height: 340px;
  left: -10%; top: -60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 75, .16), transparent 65%);
  pointer-events: none;
}
.dekor-kilau.bawah { top: auto; bottom: -60px; background: radial-gradient(ellipse at 50% 100%, rgba(201, 162, 75, .14), transparent 65%); }

/* Bingkai emas ganda khas Royal */
.bingkai {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  border: 5px double var(--emas);
  padding: 46px 26px;
  background: rgba(0, 0, 0, .12);
}
.layar.gading .bingkai { background: rgba(255, 255, 255, .35); }

.bingkai-dalam {
  border: 1px solid rgba(201, 162, 75, .55);
  padding: 30px 20px;
}

.kicker {
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--emas);
  margin-bottom: 1.2em;
}
.layar.gading .kicker { color: var(--emas-gelap); }

.judul-section { font-size: 30px; margin-bottom: .4em; }
.layar.navy .judul-section { color: var(--gading); }
.layar.gading .judul-section { color: var(--navy); }

.sub-judul { font-size: 15px; opacity: .85; margin-bottom: 1.8em; }

.pemisah { width: 190px; margin: 0 auto 1.6em; opacity: .95; }

/* ---------- Tombol (>=44px) ---------- */
.tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tombol-emas {
  background: linear-gradient(135deg, var(--emas-muda), var(--emas) 60%, var(--emas-gelap));
  color: #20304f;
  border: none;
  box-shadow: 0 6px 18px rgba(201, 162, 75, .35);
}
.tombol-emas:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 75, .45); }
.tombol-garis {
  background: transparent;
  color: var(--emas-muda);
  border: 1px solid var(--emas);
}
.tombol-garis:hover { background: rgba(201, 162, 75, .12); }
.layar.gading .tombol-garis { color: var(--emas-gelap); }
.tombol-kecil { min-height: 44px; padding: 8px 22px; font-size: 12px; }

.grup-tombol { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4em; }

/* ---------- Cover ---------- */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 75, .18), transparent 60%),
    linear-gradient(165deg, #0b1730 0%, var(--navy-2) 55%, #0b1730 100%);
  color: var(--gading);
  text-align: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#cover.terbuka { opacity: 0; visibility: hidden; }

.cover-bingkai {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  border: 5px double var(--emas);
  padding: 44px 26px 34px;
}
.cover-kicker { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--emas-muda); margin-bottom: 1em; }
.cover-nama { font-family: "Cinzel", serif; font-size: 40px; line-height: 1.25; margin: .3em 0; color: #fff; }
.cover-nama .dan { display: block; font-size: 26px; color: var(--emas); margin: .15em 0; }
.cover-tanggal { letter-spacing: .22em; font-size: 14px; color: var(--emas-muda); margin: 1em 0 2em; text-transform: uppercase; }
.cover-tamu-label { font-size: 13px; opacity: .8; margin-bottom: .3em; }
.cover-tamu-nama { font-family: "Cinzel", serif; font-size: 22px; color: var(--emas-muda); margin-bottom: 1.6em; }
.link-galeri {
  display: inline-block;
  margin-top: 1.6em;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--emas-muda);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
  opacity: .85;
}
.link-galeri:hover { opacity: 1; text-decoration: underline; }

/* ---------- Mempelai ---------- */
.pasangan { display: grid; gap: 26px; margin-top: 1.6em; }
@media (min-width: 560px) { .pasangan { grid-template-columns: 1fr 1fr; gap: 20px; } }

.kartu-mempelai {
  border: 1px solid rgba(201, 162, 75, .6);
  padding: 26px 18px;
  background: rgba(255, 255, 255, .04);
}
.layar.gading .kartu-mempelai { background: rgba(255, 255, 255, .6); }

.foto-mempelai {
  width: 150px; height: 190px;
  object-fit: cover;
  margin: 0 auto 1.1em;
  border: 3px double var(--emas);
  padding: 5px;
  background: var(--navy);
}
.nama-panggilan { font-family: "Cinzel", serif; font-size: 26px; color: var(--emas); margin-bottom: .2em; }
.layar.gading .nama-panggilan { color: var(--emas-gelap); }
.nama-lengkap { font-weight: 600; margin-bottom: .4em; }
.ket-orangtua { font-size: 14px; opacity: .85; margin-bottom: 0; }

.pemisah-pasangan {
  font-family: "Cinzel", serif;
  font-size: 44px;
  color: var(--emas);
  text-align: center;
  margin: .2em 0;
  line-height: 1;
}
@media (min-width: 560px) {
  .pemisah-pasangan { display: none; }
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1.6em 0 .6em;
  flex-wrap: wrap;
}
.countdown > div {
  min-width: 74px;
  padding: 14px 8px;
  border: 1px solid var(--emas);
  background: rgba(201, 162, 75, .08);
  text-align: center;
}
.countdown span[data-cd] {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 34px;
  color: var(--emas-muda);
  line-height: 1.1;
}
.layar.gading .countdown span[data-cd] { color: var(--emas-gelap); }
.countdown small {
  display: block;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: .4em;
}
.cd-selesai { font-family: "Cinzel", serif; font-size: 20px; color: var(--emas-muda); }

/* ---------- Acara ---------- */
.kartu-acara {
  border: 1px solid rgba(201, 162, 75, .6);
  padding: 30px 22px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .04);
}
.layar.gading .kartu-acara { background: rgba(255, 255, 255, .6); }
.kartu-acara:last-child { margin-bottom: 0; }
.jenis-acara {
  font-family: "Cinzel", serif;
  font-size: 24px;
  color: var(--emas);
  margin-bottom: .6em;
}
.layar.gading .jenis-acara { color: var(--emas-gelap); }
.waktu-acara { font-size: 17px; font-weight: 600; margin-bottom: .2em; }
.jam-acara { letter-spacing: .12em; font-size: 14px; opacity: .85; margin-bottom: 1em; }
.nama-tempat { font-weight: 600; margin-bottom: .2em; }
.alamat-tempat { font-size: 14px; opacity: .85; margin-bottom: 1.2em; }

/* ---------- Love story ---------- */
.linimasa { position: relative; margin-top: 2em; padding-left: 30px; text-align: left; }
.linimasa::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--emas), rgba(201, 162, 75, .15));
}
.momen { position: relative; margin-bottom: 2em; }
.momen:last-child { margin-bottom: 0; }
.momen::before {
  content: "";
  position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px;
  transform: rotate(45deg);
  background: var(--emas);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .2);
}
.momen-tahun {
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: .25em;
  color: var(--emas);
}
.layar.gading .momen-tahun { color: var(--emas-gelap); }
.momen h3 { font-size: 19px; margin: .3em 0 .4em; }
.momen p { font-size: 15px; opacity: .9; margin: 0; }

/* ---------- Galeri ---------- */
.grid-galeri {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.6em;
}
.grid-galeri figure { margin: 0; cursor: pointer; }
.grid-galeri img {
  width: 100%; height: 170px;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 75, .7);
  padding: 4px;
  background: rgba(255, 255, 255, .05);
  transition: transform .25s ease;
}
.grid-galeri figure:hover img { transform: scale(1.03); }

/* ---------- Amplop ---------- */
.rekening {
  border: 1px solid rgba(201, 162, 75, .6);
  padding: 24px 20px;
  margin: 0 auto 18px;
  max-width: 420px;
  background: rgba(255, 255, 255, .04);
}
.layar.gading .rekening { background: rgba(255, 255, 255, .6); }
.rek-bank { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--emas); margin-bottom: .4em; }
.layar.gading .rek-bank { color: var(--emas-gelap); }
.rek-nomor { font-family: "Cinzel", serif; font-size: 26px; letter-spacing: .08em; margin-bottom: .2em; }
.rek-nama { font-size: 14px; opacity: .85; margin-bottom: 1.1em; }

/* ---------- RSVP ---------- */
.form-rsvp { max-width: 460px; margin: 1.6em auto 0; text-align: left; }
.form-rsvp label { display: block; font-size: 14px; font-weight: 600; margin-bottom: .5em; }
.form-rsvp input[type="text"],
.form-rsvp input:not([type]),
.form-rsvp textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 1.1em;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--gading);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 162, 75, .6);
  border-radius: 2px;
}
.form-rsvp input::placeholder,
.form-rsvp textarea::placeholder { color: rgba(250, 245, 234, .5); }
.form-rsvp textarea { min-height: 110px; resize: vertical; }
.layar.gading .form-rsvp input[type="text"],
.layar.gading .form-rsvp input:not([type]),
.layar.gading .form-rsvp textarea { color: var(--teks-gelap); background: rgba(255,255,255,.7); }
.pilihan-hadir { display: flex; gap: 18px; margin-bottom: 1.1em; flex-wrap: wrap; }
.pilihan-hadir label {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 15px; margin: 0;
  min-height: 44px; cursor: pointer;
}
.pilihan-hadir input[type="radio"] { width: 20px; height: 20px; accent-color: var(--emas); }
.form-rsvp .tombol { width: 100%; }

/* ---------- Info ---------- */
.daftar-info { max-width: 480px; margin: 1.4em auto 0; text-align: left; }
.item-info { margin-bottom: 1.4em; }
.item-info h3 { font-size: 17px; color: var(--emas); margin-bottom: .3em; }
.layar.gading .item-info h3 { color: var(--emas-gelap); }
.item-info p { font-size: 15px; margin: 0; opacity: .92; }

/* ---------- Penutup & footer ---------- */
.teks-penutup { max-width: 520px; margin: 0 auto 1.6em; font-size: 16px; }
.salam-penutup { font-family: "Cinzel", serif; font-size: 20px; color: var(--emas-muda); margin: 1.4em 0 .4em; }
.nama-penutup { font-family: "Cinzel", serif; font-size: 24px; margin-bottom: .2em; }
.keluarga-penutup { font-size: 14px; opacity: .8; }

.footer {
  text-align: center;
  padding: 34px 20px 46px;
  font-size: 13px;
  color: rgba(250, 245, 234, .65);
  background: #0b1730;
}
.footer .link-galeri { margin-top: .6em; }

/* ---------- Utilitas ---------- */
.tengah { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .judul-section { font-size: 36px; }
  .cover-nama { font-size: 52px; }
  .bingkai { padding: 60px 48px; }
  .bingkai-dalam { padding: 40px 34px; }
  .grid-galeri img { height: 220px; }
}

/* Zadaya: kunci scroll horizontal agar mobile-friendly */
html, body { overflow-x: hidden; }
