/* ============================================================
   BUMM MARALA — gaya situs publik
   Token dan bahasa desain dari situs MARALA VENUE (sacred-minimal):
   ruang lega, lengkung mihrab sebagai tanda khas, emas dipakai sedikit.
   ============================================================ */

:root {
  --ink: #0E2A47;
  --ink-2: #12335A;
  --blue: #1D5C9E;
  --sky: #4FA0D8;
  --marble: #F8F4EA;
  --marble-deep: #EFE6D2;
  --gold: #B08D46;        /* hanya untuk garis, isian, ikon */
  --gold-text: #7A5E2D;   /* emas untuk teks di latar terang */
  --gold-light: #E9C87F;  /* emas untuk teks di atas video/latar gelap */
  --stone: #5C584F;
  --white: #FFFFFF;
  --ok: #2F6B3F;
  --warn: #8A5A12;
  --error: #9B2C2C;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --line: rgba(14, 42, 71, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 240ms;
  --dur-2: 500ms;
  --dur-3: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--marble);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 3.4vw + 1rem, 3.7rem); }
h2 { font-size: clamp(1.9rem, 2.8vw + 1rem, 3rem); }
h3 { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.45rem); font-weight: 500; }

p { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.5em;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.section-sub { color: var(--stone); font-size: 1.05rem; max-width: 50ch; }

.accent { color: var(--gold-text); font-style: normal; }

.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;
}

/* ============================================================
   Tombol
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); }

.btn-outline { background: transparent; color: var(--ink); border-color: rgba(14, 42, 71, 0.28); }
.btn-outline:hover { border-color: var(--ink); background: rgba(14, 42, 71, 0.05); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--white); }

.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: #F0D598; }

.btn-sm { padding: 0.6em 1.2em; font-size: 0.85rem; }

.icon-wa { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Tautan teks berdiri sendiri: area sentuh 44px, garis bawah tetap menempel teks */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 92, 158, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.text-link:hover { text-decoration-color: var(--blue); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: padding var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-header.is-scrolled,
.site-header.header-solid {
  padding: 9px 0;
  background: rgba(248, 244, 234, 0.97);
  box-shadow: 0 1px 0 rgba(14, 42, 71, 0.08);
}

.header-inner { display: flex; align-items: center; gap: 40px; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--white);
  transition: color var(--dur-2) var(--ease);
}
.site-header.is-scrolled .brand,
.site-header.header-solid .brand { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-text-group { display: flex; flex-direction: column; line-height: 1.05; }
.brand-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur-2) var(--ease);
}
.site-header.is-scrolled .brand-eyebrow,
.site-header.header-solid .brand-eyebrow { color: var(--stone); }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }

.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5em 0.85em;
  border-radius: var(--radius-sm);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.site-header.is-scrolled .main-nav a,
.site-header.header-solid .main-nav a { color: var(--ink-2); }
.site-header.is-scrolled .main-nav a:hover,
.site-header.header-solid .main-nav a:hover { background: rgba(14, 42, 71, 0.06); color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: background var(--dur-2) var(--ease); }
.site-header.is-scrolled .nav-toggle span,
.site-header.header-solid .nav-toggle span { background: var(--ink); }

/* ============================================================
   Hero beranda (video di-scrub + versi statis)
   ============================================================ */

.hero { position: relative; }

.hero-scrub { display: block; }
.hero-static { display: none; }

/* 380vh: jarak gulir yang terasa mulus. 260vh sudah dicoba (2026-09-16)
   dan terasa tidak mulus, jadi jangan dipendekkan tanpa diuji ulang. */
.hero-pin { position: relative; height: 380vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.hero-poster { position: absolute; inset: 0; background: var(--ink) center / cover no-repeat; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  transform: translateZ(0);
}
.hero-stage.video-ready .hero-video { opacity: 1; }

.hero-stage .hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,32,55,0.72) 0%, rgba(11,32,55,0.28) 13%, rgba(11,32,55,0) 27%),
    linear-gradient(90deg, rgba(11,32,55,0.82) 0%, rgba(11,32,55,0.55) 30%, rgba(11,32,55,0.16) 52%, rgba(11,32,55,0) 68%),
    radial-gradient(ellipse 42% 42% at 93% 90%, rgba(11,32,55,0.6) 0%, rgba(11,32,55,0) 68%),
    radial-gradient(ellipse 130% 100% at 50% 55%, rgba(11,32,55,0) 42%, rgba(11,32,55,0.5) 100%);
}

.hero-bands { position: absolute; inset: 0; z-index: 2; }
.band {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 15vh;
  padding-left: max(24px, calc((100vw - 1160px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1160px) / 2 + 24px));
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  text-shadow: 0 1px 2px rgba(5,5,10,0.92), 0 3px 14px rgba(5,5,10,0.7), 0 10px 40px rgba(5,5,10,0.6);
  will-change: opacity;
}
.band > * { max-width: 620px; transform: translateY(calc((1 - var(--k, 1)) * 20px)); }

.band-kicker,
.hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7em;
  margin: 0 0 1.5em;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.band-kicker-line,
.hero-kicker-line { display: block; width: 52px; height: 2px; background: var(--gold-light); }

.band-line {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw + 0.5rem, 2.35rem);
  line-height: 1.18;
}

.band-h,
.hero-title {
  margin: 0 0 0.5em;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.4vw + 0.9rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.band .accent,
.hero-overlay .accent { color: var(--gold-light); }

.band-sub,
.hero-sub {
  margin: 0.4em 0 0;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 44ch;
}
.band-cta,
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.7em; }
.band-cta .btn { text-shadow: none; }

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 26px;
  height: 40px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  transition: opacity 0.5s var(--ease);
  z-index: 2;
}
.hero-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: heroCue 1.7s var(--ease) infinite;
}
.hero-cue.hide { opacity: 0; }
@keyframes heroCue {
  0% { opacity: 0; transform: translateY(0); }
  30%, 55% { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}

.hero-frame { position: relative; width: 100%; overflow: hidden; aspect-ratio: 21 / 9; }
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.2) contrast(1.08) brightness(1.05);
}
.hero-frame > .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,42,71,0.6) 0%, rgba(14,42,71,0.25) 9%, rgba(14,42,71,0) 17%),
    linear-gradient(90deg, rgba(11,32,55,0.88) 0%, rgba(11,32,55,0.8) 38%, rgba(11,32,55,0.5) 55%, rgba(11,32,55,0.12) 70%, rgba(11,32,55,0) 80%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 6% 64px;
  max-width: 660px;
  color: var(--white);
}
.hero-overlay .hero-kicker,
.hero-overlay .hero-title { text-shadow: 0 2px 4px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.3); }
.hero-overlay .hero-sub { text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* Hero statis untuk HP, layar portrait, layar sentuh kecil, kurangi-gerak */
@media (max-width: 720px),
       (orientation: portrait) and (max-width: 1024px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
       (prefers-reduced-motion: reduce) {
  .hero-scrub { display: none; }
  .hero-static { display: block; }
  .hero-h1-scrub { display: none; }
}
#hero.hero-fallback .hero-scrub { display: none; }
#hero.hero-fallback .hero-static { display: block; }
/* Hanya satu h1 yang aktif: judul terlihat di hero statis, atau h1 tersembunyi saat hero video */
#hero.hero-fallback .hero-h1-scrub { display: none; }

/* ============================================================
   Animasi muncul
   ============================================================ */

/* Hanya judul bagian yang muncul perlahan; kartu, foto, dan form langsung tampil.
   Kelas .reveal di elemen lain dibiarkan tanpa efek. */
.section-head.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.section-head.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   Ritme seksi
   ============================================================ */

.section { padding: 128px 0; }
.section-tinted { background: var(--marble-deep); }
.section-head { max-width: 640px; margin: 0 0 56px; }

/* ============================================================
   Beranda — unit usaha
   ============================================================ */

/* Lima unit sesuai flyer: kartu putih dengan ikon bulat biru tua.
   Desktop satu baris berisi 5; di bawah 980px jadi daftar satu kolom. */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.unit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 18px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.unit-card:hover { border-color: rgba(14, 42, 71, 0.32); }
.unit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(176, 141, 70, 0.6);
}
.unit-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.unit-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding-top: 22px; }
.unit-body h3 { font-size: 1.2rem; margin: 0 0 0.45em; }
.unit-body p { color: var(--stone); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.6em; }
.unit-body .text-link { margin-top: auto; font-size: 0.9rem; }

/* Tentang: logo lengkap, moto, dan tiga nilai dari flyer */
.about-logo { width: 104px; height: auto; margin: 0 0 22px; }
.about-motto { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-text); margin: 1.4em 0 1.1em; }
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.values li { display: flex; align-items: center; gap: 10px; padding: 16px 10px 0 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.values svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 980px) {
  .unit-grid { grid-template-columns: 1fr; max-width: 640px; gap: 14px; }
  .unit-card { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding: 22px 20px 10px; }
  .unit-icon { width: 54px; height: 54px; }
  .unit-icon svg { width: 26px; height: 26px; }
  .unit-body { align-items: flex-start; padding-top: 2px; }
}
@media (max-width: 720px) {
  .values li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   Beranda — pita hook wedding
   ============================================================ */

.hook { background: var(--ink); padding: 128px 0; }
.hook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: center;
}
.hook .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hook h2 { color: var(--white); }
.hook p { color: rgba(255, 255, 255, 0.82); }
.hook .accent { color: var(--gold-light); }

.hook-price {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.6vw + 1rem, 5.4rem);
  line-height: 1;
  color: var(--gold-light);
  margin: 0.25em 0 0.2em;
}
.hook-price-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); margin: 0 0 2em; }

.hook-points { list-style: none; margin: 0 0 2.2em; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hook-points li {
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 1rem;
}
.hook-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.arch-media {
  aspect-ratio: 4 / 5;
  clip-path: url(#arch-clip);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}
.arch-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Beranda — tentang, ajakan kerja sama, kontak
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 84px;
  align-items: center;
}

.join { text-align: center; }
.join .section-head { margin: 0 auto 2em; }
.join .eyebrow { justify-content: center; }
.join .section-sub { margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact-address { font-size: 1.1rem; margin-bottom: 0; }
.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.contact-actions > .btn-primary { grid-column: 1 / -1; }
.contact-actions > .btn { width: 100%; padding-left: 1.2em; padding-right: 1.2em; }

/* ============================================================
   Halaman dalam — hero, keunggulan, ruang, langkah
   ============================================================ */

.page-hero { padding: 168px 0 104px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
.page-hero-lead { font-size: 1.12rem; color: var(--stone); max-width: 46ch; }
.page-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }
.page-hero-note { font-size: 0.84rem; color: var(--stone); margin: 1.4em 0 0; max-width: 52ch; }
.page-hero-narrow { max-width: 760px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.benefit { padding: 32px 26px 8px 0; }
.benefit + .benefit { padding-left: 26px; border-left: 1px solid rgba(14, 42, 71, 0.1); }
.benefit-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-text); letter-spacing: 0.08em; }
.benefit h3 { font-size: 1.22rem; margin: 0.7em 0 0.45em; }
.benefit p { color: var(--stone); font-size: 0.94rem; margin: 0; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.room-photo { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-md); }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.room-body { padding: 22px 2px 0; }
.room-body h3 { margin: 0 0 0.35em; }
.room-cap { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin: 0 0 0.2em; }
.room-price { font-size: 0.93rem; color: var(--stone); margin: 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  counter-reset: langkah;
}
.steps li { counter-increment: langkah; border-top: 1px solid var(--line); padding-top: 26px; }
.steps li::before {
  content: counter(langkah, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 0.45em;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.steps p { color: var(--stone); font-size: 0.95rem; margin: 0; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.partner { border-top: 1px solid var(--line); padding-top: 26px; }
.partner h3 { margin-bottom: 0.45em; }
.partner p { color: var(--stone); font-size: 0.95rem; margin: 0; }

/* ============================================================
   Galeri + lightbox
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(14, 42, 71, 0.6));
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 71, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fade-in var(--dur-2) var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 86vh; }
.lightbox img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); margin: 0 auto; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 14px; font-size: 0.9rem; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   Form
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 76px;
  align-items: start;
}
.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.45em;
}
.form-card label .opt { font-weight: 400; color: var(--stone); }
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 46px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.7em 0.9em;
  border: 1px solid rgba(14, 42, 71, 0.2);
  border-radius: var(--radius-sm);
  background: var(--marble);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus { border-color: var(--blue); background: var(--white); outline: none; }
.form-card textarea { resize: vertical; }

/* Field jebakan robot: tidak terlihat dan tidak bisa difokus pengunjung */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}
.form-status-info  { background: rgba(29, 92, 158, 0.08); color: var(--ink-2); }
.form-status-ok    { background: rgba(47, 107, 63, 0.1);  color: var(--ok); }
.form-status-warn  { background: rgba(138, 90, 18, 0.1);  color: var(--warn); }
.form-status-error { background: rgba(155, 44, 44, 0.08); color: var(--error); }
.form-fallback { margin-top: 12px; }
.form-privacy { font-size: 0.84rem; color: var(--stone); margin-top: 1.4em; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding-top: 56px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-name { font-family: var(--font-display); font-size: 1.1rem; margin: 0; color: var(--white); }
.footer-sub { font-size: 0.82rem; margin: 0; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-contact a { color: var(--sky); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { padding: 22px 24px; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.footer-bottom a { color: var(--sky); text-decoration: none; white-space: nowrap; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   Latar ambient
   ============================================================ */

.ambient-bg {
  position: fixed;
  inset: -6%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(34% 38% at 24% 18%, rgba(79, 160, 216, 0.22), transparent 66%),
    radial-gradient(40% 44% at 82% 30%, rgba(176, 141, 70, 0.18), transparent 68%),
    radial-gradient(46% 52% at 58% 88%, rgba(29, 92, 158, 0.15), transparent 70%);
  animation: ambientDrift 44s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  0%   { transform: translate3d(-3%, -2%, 0); }
  100% { transform: translate3d(3%, 2.5%, 0); }
}
body.tab-hidden *, body.tab-hidden *::before, body.tab-hidden *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .ambient-bg, .hero-cue span { animation: none !important; }
}

/* ============================================================
   Responsif
   ============================================================ */

@media (max-width: 980px) {
  .section, .hook { padding: 96px 0; }
  .page-hero { padding: 140px 0 80px; }
  .hook-grid, .about-grid, .contact-grid, .form-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .arch-media { max-width: 360px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit + .benefit { padding-left: 0; border-left: none; }
  .benefit { padding-right: 20px; }
  .room-grid { grid-template-columns: 1fr; max-width: 480px; }
  .steps, .partner-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-frame { aspect-ratio: 3 / 4; }
  .hero-overlay { max-width: 100%; padding: 110px 7% 48px; }

  /* target sentuh minimal 44px */
  .brand, .header-actions .btn-sm { min-height: 44px; }
  .footer-nav { gap: 4px 22px; }
  .footer-nav a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .footer-contact { gap: 0; }
}

@media (max-width: 720px) {
  .site-header { background: rgba(248, 244, 234, 0.97); }
  .brand { color: var(--ink); }
  .brand-eyebrow { color: var(--stone); }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--ink); }
  .header-actions .btn-sm { padding: 0.6em 1em; font-size: 0.8rem; }

  /* Menu HP: lihat bagian "Menu HP: panel samping" di akhir berkas */

  .hero { padding-top: 66px; }
  .hero-frame { aspect-ratio: auto; }
  .hero-frame picture { position: absolute; inset: 0; z-index: 0; display: block; }
  .hero-frame > .hero-scrim {
    background: linear-gradient(180deg, rgba(11,32,55,0.35) 0%, rgba(11,32,55,0.55) 35%, rgba(11,32,55,0.92) 78%, rgba(11,32,55,0.96) 100%);
  }
  .hero-overlay { position: relative; padding: 180px 22px 64px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .section, .hook { padding: 80px 0; }
  .page-hero { padding: 116px 0 64px; }
  .section-head { margin-bottom: 40px; }
  .unit-grid, .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding-right: 0; }
  .gallery-grid { gap: 12px; }
  .form-card { padding: 24px; }
  .form-row-split { grid-template-columns: 1fr; gap: 0; }
  .form-row-split .form-row:first-child { margin-bottom: 20px; }
  .contact-actions { grid-template-columns: 1fr; }
  .hook-cta .btn, .page-hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Tombol WhatsApp melayang (HP) dan halaman 404
   ============================================================ */

.wa-fab { display: none; }
@media (max-width: 720px) {
  .wa-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px 0 15px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(14, 42, 71, 0.55), 0 0 0 1px rgba(233, 200, 127, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
  }
  .wa-fab .icon-wa { width: 22px; height: 22px; color: var(--gold-light); }
  .wa-fab.is-shown { opacity: 1; visibility: visible; transform: none; }
  /* ruang di bawah footer supaya tombol tidak menutupi tautan terakhir */
  .site-footer { padding-bottom: 76px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .wa-fab { transform: none; transition: opacity var(--dur-1) linear, visibility var(--dur-1); }
}

.page-404 { min-height: calc(100vh - 90px); display: flex; align-items: center; }
/* Saat mengetik, tombol melayang langsung hilang tanpa memudar */
.wa-fab.is-typing { transition: none; }

/* ============================================================
   Halaman Unit Usaha, tabel harga Venue, halaman Kontak
   ============================================================ */

.unit-more { margin-top: 36px; }

.unit-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.8em 0 0; padding: 0; list-style: none; }
.unit-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--dur-1) var(--ease);
}
.unit-jump a:hover { border-color: var(--ink); }

.unit-detail { scroll-margin-top: 64px; }
.unit-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.unit-detail-flip .unit-detail-media { order: 2; }
.unit-detail-body .section-head { margin-bottom: 20px; }
.unit-detail-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; }
.unit-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.unit-detail-icon {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--marble-deep);
}
.section-tinted .unit-detail-icon { background: var(--marble); }
.unit-detail-icon .unit-icon { width: 120px; height: 120px; box-shadow: 0 0 0 8px var(--white), 0 0 0 9px rgba(176, 141, 70, 0.6); }
.unit-detail-icon .unit-icon svg { width: 54px; height: 54px; }
.unit-lead { font-size: 1.15rem; color: var(--ink); }
.unit-facts { list-style: none; margin: 0 0 1.4em; padding: 0; border-top: 1px solid var(--line); }
.unit-facts li { padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.98rem; }
.unit-facts strong { color: var(--ink); font-weight: 600; }
.unit-note {
  font-size: 0.92rem;
  color: var(--ink-2);
  background: rgba(176, 141, 70, 0.1);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.unit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Paket sedekah (Program & Kegiatan): tiap kartu membuka WhatsApp dengan nominal terisi */
.paket-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.paket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1.4em; }
.paket {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.paket-grid--2 { grid-template-columns: repeat(2, 1fr); }
.paket-nom { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.paket-isi { font-size: 0.88rem; color: var(--stone); }
.paket-go { font-size: 0.85rem; font-weight: 600; color: var(--gold-text); }
.paket:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14, 42, 71, 0.12); }
.paket:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.paket:active { background: var(--marble); }
@media (max-width: 560px) {
  .paket-grid, .paket-grid--2 { grid-template-columns: 1fr; }
  .paket { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center; }
  .paket-nom, .paket-isi { grid-column: 1; }
  .paket-go { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .paket, .paket:hover { transition: none; transform: none; }
}

.price-head { margin-top: 96px; }
.price-table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.price-table th,
.price-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-2); }
.price-table thead th { background: var(--marble); color: var(--stone); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table strong { color: var(--ink); font-weight: 600; }
.hours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.hours-card { border-top: 1px solid var(--line); padding-top: 20px; }
.hours-card h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.hours-card p { margin: 0; color: var(--stone); }
.hours-card .hours-big { font-family: var(--font-display); font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); line-height: 1.15; color: var(--ink); margin-bottom: 0.3em; }
.price-note { font-size: 0.86rem; color: var(--stone); margin: 28px 0 0; max-width: 70ch; }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-card h3 { margin-bottom: 0.2em; }
.contact-card .contact-value { font-weight: 600; color: var(--ink); margin-bottom: 0.6em; overflow-wrap: anywhere; }
.contact-card p { color: var(--stone); font-size: 0.93rem; }
.contact-card .btn { margin-top: auto; width: 100%; }
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.map-frame { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--marble-deep); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 980px) {
  .unit-detail-grid, .map-grid { grid-template-columns: 1fr; gap: 36px; }
  .unit-detail-flip .unit-detail-media { order: 0; }
  .unit-detail-icon { aspect-ratio: 16 / 9; }
  .contact-cards { grid-template-columns: 1fr; max-width: 560px; }
  .price-head { margin-top: 72px; }
}
@media (max-width: 720px) {
  .unit-cta .btn { width: 100%; }
  .unit-detail-icon .unit-icon { width: 96px; height: 96px; }
  .unit-detail-icon .unit-icon svg { width: 44px; height: 44px; }
  .hours-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-frame { aspect-ratio: 1 / 1; }
  /* Tabel harga jadi kartu bertumpuk di HP */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: none; }
  .price-table td { border: none; padding: 4px 16px; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
  }
}

/* ============================================================
   Menu HP: panel samping (meluncur dari kanan, setinggi layar)
   Kepala panel, ikon, tombol WhatsApp, dan latar gelap dibuat js/site.js.
   ============================================================ */

.nav-drawer-head,
.nav-drawer-foot,
.nav-backdrop,
.nav-ico { display: none; }

@media (max-width: 720px) {
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(14, 42, 71, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 320ms var(--ease), visibility 320ms;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(84vw, 320px);
    margin: 0;
    padding: 0 12px calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    background: var(--marble);
    box-shadow: -20px 0 44px -24px rgba(14, 42, 71, 0.5);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 320ms var(--ease), visibility 320ms;
  }
  .main-nav.is-open { transform: none; visibility: visible; }

  .main-nav > a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--ink) !important;
    font-size: 1rem;
  }
  .main-nav > a:hover { background: rgba(14, 42, 71, 0.06); }
  .main-nav > a[aria-current="page"] {
    background: var(--white);
    box-shadow: inset 3px 0 0 var(--gold), 0 1px 2px rgba(14, 42, 71, 0.06);
    font-weight: 600;
  }
  .nav-ico {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    margin: 0 -12px 10px;
    padding: 0 8px 0 26px;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
  .nav-close {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: var(--ink);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-drawer-foot {
    display: block;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  /* Aturan warna tautan menu tidak boleh mengenai tombol ini */
  .main-nav .nav-drawer-foot .btn {
    width: 100%;
    padding: 0.9em 1.2em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white) !important;
    background: var(--ink) !important;
    box-shadow: none;
  }
  .main-nav .nav-drawer-foot .btn:hover { background: var(--ink-2) !important; }
  .nav-drawer-foot p { margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--stone); }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .main-nav, .nav-backdrop { transition: none; }
}


/* ============================================================
   Halaman Kebijakan Privasi
   ============================================================ */

.page-hero-compact { padding-bottom: 56px; }
.legal-date { margin: 1.2em 0 0; font-size: 0.86rem; color: var(--stone); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.3rem, 0.8vw + 1rem, 1.6rem); margin: 2.2em 0 0.6em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.5em; color: var(--ink-2); }
.legal-body a,
.form-privacy a { color: var(--blue); font-weight: 600; }

/* Kalimat penanggung jawab di dekat form (sinyal kepercayaan) */
.form-owner {
  margin: 1.4em 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.form-owner + .form-privacy { margin-top: 0.8em; }

/* ============================================================
   Animasi (setara situs Venue lama)
   - muncul memudar + naik, beruntun per kelompok
   - media muncul dari samping
   - kartu terangkat & foto membesar halus saat disorot
   - ikon unit dan garis lengkung emas "bernapas" pelan
   Judul bagian tetap memakai aturan .section-head.reveal di atas.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.reveal-done { transition-delay: 0ms; }

.reveal-side { transform: translateX(-28px); }
.hook-grid .reveal-side,
.page-hero-grid .reveal-side,
.map-grid .reveal-side,
.unit-detail-flip .reveal-side { transform: translateX(20px); }
.reveal-side.is-visible { transform: none; }

/* Kartu: terangkat saat disorot (setelah selesai muncul) */
.unit-card.reveal,
.contact-card.reveal {
  transition-property: opacity, transform, box-shadow, border-color;
  transition-duration: 700ms, 700ms, 400ms, 240ms;
}
.unit-card.reveal-done,
.contact-card.reveal-done { transition-duration: 400ms, 400ms, 400ms, 240ms; }
.unit-card.reveal-done:hover,
.contact-card.reveal-done:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -22px rgba(14, 42, 71, 0.32);
}

/* Foto membesar halus saat disorot */
.room-photo img,
.unit-detail-photo img { transition: transform var(--dur-3) var(--ease); }
.room-grid article:hover .room-photo img,
.unit-detail-media:hover .unit-detail-photo img { transform: scale(1.05); }

/* Ikon unit bernapas pelan, tidak serempak */
@keyframes unitIconBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}
.unit-icon { animation: unitIconBreathe 4.2s ease-in-out infinite; }
.unit-grid .unit-card:nth-child(2) .unit-icon { animation-delay: -0.8s; }
.unit-grid .unit-card:nth-child(3) .unit-icon { animation-delay: -1.6s; }
.unit-grid .unit-card:nth-child(4) .unit-icon { animation-delay: -2.4s; }
.unit-grid .unit-card:nth-child(5) .unit-icon { animation-delay: -3.2s; }

/* Bingkai lengkung: garis emas tergambar, lalu bernapas */
.arch-frame { position: relative; max-width: 440px; margin: 0 auto; }
.arch-frame .arch-media { max-width: none; margin: 0; }
.arch-draw {
  position: absolute;
  top: -14px;
  left: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  overflow: visible;
  pointer-events: none;
}
.arch-draw path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.35;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.65, 0, 0.35, 1) 300ms;
}
.hook .arch-draw path { stroke: var(--gold-light); }
.arch-frame.is-visible .arch-draw path { stroke-dashoffset: 0; }
@keyframes archBreathe {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.02); }
}
.arch-frame.is-visible .arch-draw { animation: archBreathe 5s ease-in-out 1.9s infinite; }

@media (max-width: 980px) {
  .arch-frame { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-side { transform: none !important; }
  .unit-icon, .arch-frame .arch-draw { animation: none !important; }
  .arch-draw path { stroke-dashoffset: 0; transition: none; }
  .unit-card.reveal-done:hover, .contact-card.reveal-done:hover { transform: none; }
}

/* Layar sempit: media yang meluncur dari samping diganti naik dari bawah,
   supaya elemen yang digeser ke kanan tidak membuat halaman melebar. */
@media (max-width: 980px) {
  .reveal-side,
  .hook-grid .reveal-side,
  .page-hero-grid .reveal-side,
  .map-grid .reveal-side,
  .unit-detail-flip .reveal-side { transform: translateY(20px); }
  .reveal-side.is-visible,
  .hook-grid .reveal-side.is-visible,
  .page-hero-grid .reveal-side.is-visible,
  .map-grid .reveal-side.is-visible,
  .unit-detail-flip .reveal-side.is-visible { transform: none; }
}

/* ============================================================
   Latar jaring (pita wedding)
   ============================================================ */

.hook { position: relative; overflow: hidden; }
.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hook > .wrap { position: relative; }

/* ============================================================
   Galeri cincin 3D (halaman Venue, laptop)
   ============================================================ */

#galeri { overflow: hidden; }
.gallery-grid.is-ring {
  display: block;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: calc(var(--ring-item-w, 220px) * 1.95 + 40px);
  perspective: 1500px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-grid.is-ring.is-dragging { cursor: grabbing; }
.gallery-grid.is-ring .gallery-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring-item-w, 220px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  box-shadow: 0 28px 50px -30px rgba(14, 42, 71, 0.6);
  transition: box-shadow 300ms ease !important;
  will-change: transform;
}
.gallery-grid.is-ring .gallery-item img { pointer-events: none; -webkit-user-drag: none; }
.gallery-grid.is-ring .gallery-item.is-center .gallery-caption { opacity: 1; transform: none; }

.ring-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.ring-controls[hidden] { display: none; }
.ring-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.ring-btn:hover { border-color: var(--ink); background: var(--marble); }
.ring-hint { font-size: 0.86rem; color: var(--stone); }

/* ============================================================
   Pita angka kapasitas (halaman Venue) — angka dihitung naik
   ============================================================ */

.stat-band {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 12px 26px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3vw + 1.4rem, 4.2rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-num [data-count] { display: inline-block; }
.stat-unit { margin-top: 8px; font-size: 0.95rem; font-weight: 600; color: var(--gold-text); }
.stat-label { margin-top: 2px; font-size: 0.86rem; color: var(--stone); }

@media (max-width: 720px) {
  .stat { padding: 22px 6px 18px; }
  .stat-num { font-size: 2.3rem; }
  .stat-unit { font-size: 0.82rem; }
  .stat-label { font-size: 0.78rem; line-height: 1.35; }
}

/* ============================================================
   Unit usaha di beranda: susunan bento
   Venue besar di kiri, empat unit 2x2 di kanan. Foto memenuhi kartu,
   teks di atas foto. Animasi: "tutup map" berwarna meluncur turun saat
   kartu pertama kali muncul, foto menyusut ke ukuran normal; saat
   disorot kartu terangkat, foto membesar, teks naik, ikon berputar.
   Di layar sentuh efek sorot dipicu saat kartu di tengah layar (js/folder.js).
   ============================================================ */

.unit-grid.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(270px, 1fr));
  gap: 18px;
  max-width: none;
}
.bento-card--lead { grid-row: span 2; }

.bento-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(14, 42, 71, 0.08);
}
.bento-card.reveal {
  transition-property: opacity, transform, box-shadow;
  transition-duration: 700ms, 700ms, 450ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.bento-card.reveal-done { transition-delay: 0ms; transition-duration: 700ms, 450ms, 450ms; }
.bento-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Foto */
.bento-media { position: absolute; inset: 0; z-index: -2; }
.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card.is-visible .bento-media img { transform: scale(1); }
.bento-media--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 40px;
  background: linear-gradient(150deg, #8A6A32, #E9C87F);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bento-media--empty svg { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bento-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 42, 71, 0.38) 0%, rgba(14, 42, 71, 0) 26%, rgba(14, 42, 71, 0.12) 46%, rgba(14, 42, 71, 0.9) 100%);
}

/* Tab map (nomor) dan ikon di bagian atas */
.bento-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bento-num {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 30px 4px 16px;
  background: rgba(248, 244, 234, 0.96);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
}
.bento-top .unit-icon {
  width: 44px;
  height: 44px;
  margin: 12px 14px 0 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-top .unit-icon svg { width: 22px; height: 22px; }

/* Teks di atas foto */
.bento-info {
  margin-top: auto;
  padding: 18px 20px 14px;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-cap {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
}
.bento-info h3 { margin: 0 0 0.25em; color: var(--white); font-size: clamp(1.25rem, 0.6vw + 1rem, 1.5rem); }
.bento-card--lead .bento-info h3 { font-size: clamp(1.7rem, 1.4vw + 1rem, 2.3rem); }
.bento-text {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-card--lead .bento-text { font-size: 1rem; max-width: 36ch; }
.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}
.bento-cta span { transition: transform 300ms ease; }
/* Seluruh kartu bisa diklik */
.bento-cta::after { content: ""; position: absolute; inset: 0; z-index: 4; }

/* Tutup map yang meluncur turun saat kartu muncul */
.bento-flap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
  pointer-events: none;
  background: linear-gradient(160deg, var(--fa, #0E2A47), var(--fb, #1D5C9E));
  transition: transform 950ms cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms + 300ms);
}
.bento-flap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 22px;
  background: rgba(0, 0, 0, 0.14);
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}
.bento-flap span { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: rgba(255, 255, 255, 0.92); }
.bento-card.is-visible .bento-flap { transform: translateY(101%); }
.bento > :nth-child(1) { --fa: #0E2A47; --fb: #1D5C9E; }
.bento > :nth-child(2) { --fa: #8A6A32; --fb: #E9C87F; }
.bento > :nth-child(3) { --fa: #1D5C9E; --fb: #4FA0D8; }
.bento > :nth-child(4) { --fa: #12335A; --fb: #B08D46; }
.bento > :nth-child(5) { --fa: #4FA0D8; --fb: #0E2A47; }

/* Disorot mouse (laptop) atau di tengah layar (layar sentuh) */
@media (hover: hover) {
  .bento-card.reveal-done:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(14, 42, 71, 0.6); }
  .bento-card:hover .bento-media img { transform: scale(1.1); }
  .bento-card:hover .bento-info { transform: translateY(-6px); }
  .bento-card:hover .unit-icon { animation: none; transform: rotate(-12deg) scale(1.08); }
  .bento-card:hover .bento-cta span { transform: translateX(5px); }
}
.bento-card.is-open .bento-media img { transform: scale(1.08); }
.bento-card.is-open .bento-info { transform: translateY(-6px); }
.bento-card.is-open .unit-icon { animation: none; transform: rotate(-12deg) scale(1.08); }

@media (max-width: 980px) {
  .unit-grid.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; }
  .bento-card { min-height: 250px; }
  .bento-card.bento-card--lead { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
}
@media (max-width: 560px) {
  .unit-grid.bento { grid-template-columns: 1fr; }
  .bento-card { min-height: 264px; }
  .bento-card.bento-card--lead { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-flap { display: none; }
  .bento-media img, .bento-info { transform: none !important; transition: none; }
}
