/* invite-structure.css - lapisan struktur bersih di atas style.css warisan.
   Tujuan: ritme section konsisten, nav aksesibel, responsif, status offline jelas.
   Tidak mengubah ID lama agar JS (scrollTo*, konfir, kado) tetap jalan. */

:root {
  --brand: #ff9c1f;
  --ink: #1d1d1d;
  --paper: #ffffff;
  --shell: 500px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
}

/* Skip link: hanya terlihat saat fokus keyboard. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000000;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Kerangka mobile: semua konten utama max 500px, sejajar fix-menu. */
#page,
.mob-con {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

/* style.css memberi .mob-con overflow:hidden dan #page height:100%, sehingga
   semua konten di bawah 5.296px (galeri, kado, penutup) terpotong dan tidak bisa
   dijangkau scroll. Halaman dibiarkan tumbuh setinggi isinya. */
.mob-con {
  overflow: visible;
}
#page {
  height: auto;
}

/* Hero: blok "We Invited You To" + nama mempelai menempel di dasar
   (#fun-div-id14 bottom:0, anaknya top:105px). Wadahnya dibentang setinggi hero
   lalu isinya dipusatkan. Tinggi hero dan slide Splide TIDAK diubah. */
#fun-div-id14 {
  top: 0 !important;
  bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fun-div-id15 {
  top: 0 !important;
  width: 100%;
}

/* Panel offcanvas warisan: 270x12.418px, pointer-events auto, tombol buka/tutupnya
   sudah tidak terlihat. Di layar >=768px panel ini menutupi 134px sisi kanan dan
   menelan gesture gulir. Disembunyikan karena tidak bisa dijangkau. */
#fh5co-offcanvas {
  display: none !important;
}

/* Ritme section: variasi 2 pola (teksXXXXXX vs kartu), bukan satu template. */
.box-1,
.box-3,
.box-4,
.box-5,
.box-51,
.fh5co-section-gray,
.ucapan,
#fh5co-footer {
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
.box-4 .container,
.box-3 .container {
  width: min(90%, 440px);
}

/* Peta responsif: iframe bawaan width=600 merusak mobile. */
.embed_map_cli iframe,
#map_id iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}

/* Galeri 360px: row Bootstrap tanpa container meluber 30px, video 560px kepotong. */
#galery_id .row {
  margin-left: 0;
  margin-right: 0;
}
.frame-youtube iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
}

/* Navigasi bawah: bar kertas gading agar ikon gelap terbaca di siang hari,
   aksen oranye hanya di item aktif (satu momen kunci). */
#menu_id.fix-menu {
  background: #fffdf8 !important;
  height: auto;
  border: 1px solid rgba(32, 26, 21, 0.14);
  border-radius: 18px;
  box-shadow: 0 -4px 16px rgba(32, 26, 21, 0.12);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
#menu_id .nav-grid {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
#menu_id .nav-item,
#menu_id .nav-toggle {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: 52px;
  padding: 4px 2px;
  color: #4a4239;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
#menu_id .nav-ic {
  width: 22px;
  height: 22px;
}
#menu_id .nav-item[aria-current="true"] {
  color: #a34e00;
}
#menu_id .nav-item[aria-current="true"]::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff9c1f;
}
#menu_id .nav-sep {
  width: 1px;
  background: rgba(32, 26, 21, 0.14);
  margin: 8px 2px;
}
#menu_id .nav-toggle[aria-pressed="false"] {
  opacity: 0.45;
}
#menu_id .notif_scroll {
  position: absolute;
  bottom: calc(100% + 8px);
  right: -4px;
  background: #201a15;
  color: #fffdf8;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
}
.fix-menu .item1:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Status offline: tombol yang butuh server tidak dibuang, tapi jujur. */
[data-offline="true"] {
  position: relative;
}
.offline-note {
  font-size: 12px;
  line-height: 1.5;
  background: #fff8e6;
  border: 1px solid #e8c15a;
  color: #5c4a12;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 12px auto;
  max-width: 420px;
  text-align: center;
}

/* Diet gerak (MOTION 1): tak ada loop abadi, reveal sekali dan cepat. */
#page .simply-countdown > .simply-section {
  animation: none;
}
.splide__slide.is-active {
  animation: none;
}
[data-aos] {
  transition-duration: 0.5s !important;
}

/* Kontras teks di atas foto: bayangan teks agar tulisan putih terbaca (R-25). */
.awal-dalam h1,
.awal-dalam h3,
.awal-dalam p,
.box31 h1,
.box31 h3,
.box31 p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Kurangi gerak: hormati prefers-reduced-motion, matikan pulse abadi. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
