/* ============================================================
   CATERING BU PUR — Design System
   ------------------------------------------------------------
   Design read: landing catering lokal untuk keluarga & panitia
   acara Bandung; bahasa hangat rumahan yang tepercaya.
   Palet warm-craft (bata + krem + espresso): disengaja — brand
   "Bu Pur" adalah masakan rumahan Sunda yang maternal, jadi
   palet hangat adalah identitas, bukan default.
   Font: Plus Jakarta Sans (karya desainer Indonesia).
   Dials: VARIANCE 7 / MOTION 5 / DENSITY 4
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --brick: #a83c28;
  --brick-dark: #7e2b1d;
  --gold: #c9973b;
  --gold-soft: #f3e6c8;
  --cream: #faf6ed;
  --paper: #fffdf8;
  --ink: #2a2119;
  --ink-soft: #6b5d4f;
  --line: #e9dfcd;
  --green: #2e7d4f;
  --red: #c0392b;
  --radius: 18px;
  --shadow: 0 18px 45px -18px rgba(42, 33, 25, .25);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 237, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brick); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 12px 28px -12px rgba(168, 60, 40, .7); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-gold { background: var(--gold); color: #2a2119; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; border: 2px solid var(--brick); color: var(--brick); }
.btn-outline:hover { background: var(--brick); color: #fff; }
.btn-wa { background: var(--brick); color: #fff; box-shadow: 0 12px 28px -12px rgba(168, 60, 40, .7); }
.btn-wa:hover { background: var(--brick-dark); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42,25,18,.88) 20%, rgba(42,25,18,.35) 60%, rgba(42,25,18,.15)); }
.hero-inner { position: relative; z-index: 2; padding: 110px 24px 120px; max-width: 1200px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; letter-spacing: .03em;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08; font-weight: 800; max-width: 640px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin: 20px 0 32px; font-size: 1.12rem; max-width: 560px; color: rgba(255,255,255,.85); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 1.7rem; color: var(--gold); }
.hero-stats div span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ---------- SECTIONS ---------- */
section.block { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.sec-head h2 em { font-style: normal; color: var(--brick); }
.sec-head p { color: var(--ink-soft); margin-top: 12px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- LAYANAN CARDS ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { height: 210px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-price {
  position: absolute; bottom: 12px; left: 12px; background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.card-body p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 16px; }
.card-link { font-weight: 700; color: var(--brick); display: inline-flex; gap: 8px; align-items: center; }
.card-link:hover { gap: 12px; }

/* ---------- SPLIT (tentang) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 460px; object-fit: cover; }
.check-list { list-style: none; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list i { color: var(--green); font-size: 1.2rem; margin-top: 3px; }

/* ---------- GALERI ---------- */
.galeri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item {
  position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; height: 220px;
  display: block; width: 100%; cursor: zoom-in; background: var(--line);
}
.galeri-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.gal-item:hover img { transform: scale(1.08); }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(20, 14, 10, .75));
  color: #fff; font-size: .82rem; font-weight: 700; text-align: left;
}
.gal-zoom {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 14, 10, .55); color: #fff; display: grid; place-items: center; font-size: .85rem;
  opacity: 0; transition: opacity .25s;
}
.gal-item:hover .gal-zoom { opacity: 1; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(24, 17, 12, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.show { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(1024px, 92vw); text-align: center; }
.lb-fig img { max-width: 100%; max-height: 76vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #fff; margin-top: 14px; display: flex; justify-content: center; align-items: baseline; gap: 14px; }
.lb-fig figcaption span:first-child { font-weight: 700; font-size: 1.02rem; }
#lbCount { color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; }
.lb-close, .lb-nav {
  position: absolute; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; transition: .2s; backdrop-filter: blur(4px);
}
.lb-close:hover, .lb-nav:hover { background: var(--brick); border-color: var(--brick); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- TESTIMONI ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.testi .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { font-style: italic; color: var(--ink-soft); margin-bottom: 18px; }
.testi b { display: block; }
.testi small { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 20px 24px; font-family: var(--font); font-size: 1.02rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q i { color: var(--brick); transition: transform .25s ease; flex: none; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- KONTAK ---------- */
.kontak-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.kontak-info { display: grid; gap: 16px; align-content: start; }
.kontak-item { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kontak-item i { font-size: 1.4rem; color: var(--brick); margin-top: 2px; }
.kontak-item b { display: block; margin-bottom: 4px; }
.kontak-item p, .kontak-item a.link { color: var(--ink-soft); font-size: .95rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; font-size: .93rem; }
.foot-grid a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; font-size: .85rem; flex-wrap: wrap; gap: 12px; }

/* ---------- WA FLOAT ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--brick); color: #fff;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 12px 30px -8px rgba(168, 60, 40, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- FLIPBOOK (StPageFlip) ---------- */
.book-stage { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px 0 10px; }
.flipbook-shell {
  width: min(1000px, 94vw); /* >=600px = mode 2 halaman (landscape) */
  filter: drop-shadow(0 30px 50px rgba(42, 33, 25, .35));
}
.flipbook { width: 100%; }
.flip-page-wrap { background: var(--paper); }
.flip-page {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  font-family: var(--font);
}
/* Cover */
.flip-page.cover { color: #fff; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,20,14,.25) 0%, rgba(42,20,14,.55) 55%, rgba(30,14,10,.92) 100%); }
.cover-content { position: relative; z-index: 2; margin-top: auto; padding: 40px 36px 48px; }
.cover-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,151,59,.5); padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}
.flip-page.cover h2 { font-size: 4rem; line-height: .95; font-weight: 800; letter-spacing: -0.03em; }
.cover-brand { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-top: 14px; }
.cover-tag { opacity: .8; font-size: .95rem; }
/* Daftar isi */
.flip-page.toc { padding: 44px 36px 60px; }
.toc-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.flip-page.toc h3 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 8px 0 24px; }
.toc-list { display: flex; flex-direction: column; }
.toc-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s, padding .2s;
}
.toc-item:hover { background: #fdf6ec; padding-left: 10px; }
.toc-num { font-weight: 800; color: var(--gold); font-size: .9rem; width: 30px; }
.toc-name { font-weight: 700; flex: 1; }
.toc-price { font-size: .82rem; color: var(--ink-soft); }
.toc-item i { color: var(--brick); font-size: .8rem; }
.toc-note { font-size: .78rem; color: var(--ink-soft); margin-top: 18px; }
/* Halaman menu */
.menu-photo { position: relative; height: 27%; flex: none; overflow: hidden; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42,25,18,.45)); }
.menu-photo-tag {
  position: absolute; bottom: 12px; left: 20px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--brick-dark); font-size: .75rem; font-weight: 800;
  padding: 7px 14px; border-radius: 999px;
}
.menu-body { padding: 20px 28px 44px; overflow: hidden; }
.menu-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.menu-body h3 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 6px; color: var(--brick-dark); }
.menu-desc { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.menu-tiers { display: flex; flex-direction: column; gap: 10px; }
.menu-tier { background: #fdf8ef; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.menu-tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.menu-tier-head b { font-size: .95rem; }
.menu-tier-price { color: var(--brick); font-weight: 800; white-space: nowrap; font-size: .95rem; }
.menu-tier-price small { color: var(--ink-soft); font-weight: 500; }
.menu-tier-isi { font-size: .78rem; color: var(--ink-soft); line-height: 1.5; }
/* Back cover */
.flip-page.backcover { background: linear-gradient(150deg, var(--brick-dark), var(--brick)); color: #fff; }
.backcover-inner { margin: auto; padding: 40px 36px; text-align: center; }
.backcover-inner h3 { font-size: 2.1rem; font-weight: 800; line-height: 1.15; margin: 16px 0 12px; }
.backcover-inner p { opacity: .85; font-size: .95rem; margin-bottom: 22px; }
.backcover-info { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; opacity: .9; }
.backcover-info i { color: var(--gold); margin-right: 8px; }
/* Nomor halaman */
.page-num {
  position: absolute; bottom: 14px; right: 20px; font-size: .72rem; font-weight: 700;
  color: var(--ink-soft); letter-spacing: .06em;
}
.flip-page.cover .page-num, .flip-page.backcover .page-num { color: rgba(255,255,255,.6); }
/* Navigasi */
.book-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.page-indicator {
  display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 1.05rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px;
}
.page-indicator b { color: var(--brick); font-size: 1.25rem; }
.page-indicator span { color: var(--ink-soft); font-weight: 500; }
.book-hint { color: var(--ink-soft); font-size: .88rem; }
#bookCta { transition: opacity .3s; }

/* ---------- SIMULASI ---------- */
.sim-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.sim-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.field input[type="number"], .field input[type="text"], .field input[type="date"],
.field input[type="tel"], .field input[type="password"],
.field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px rgba(168, 60, 40, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #b3a48f; }

/* Dropdown custom — ganti panah bawaan browser */
.field select, select.ui-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a83c28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:hover, select.ui-select:hover { border-color: var(--brick); }
select.ui-select {
  padding: 10px 40px 10px 14px; border: 2px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: .9rem; background-color: #fff; color: var(--ink); cursor: pointer;
}

/* Date input */
.field input[type="date"] { cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55;
}

/* Checkbox custom */
.addon-row input[type="checkbox"], .check-ui {
  width: 22px; height: 22px; accent-color: var(--brick); cursor: pointer; flex: none;
}

/* ---------- CUSTOM DROPDOWN ---------- */
.cdrop { position: relative; }
.cdrop-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.cdrop-trigger:hover { border-color: var(--brick); }
.cdrop.open .cdrop-trigger { border-color: var(--brick); box-shadow: 0 0 0 4px rgba(168, 60, 40, .12); }
.cdrop-trigger .fa-chevron-down { color: var(--brick); font-size: .85rem; transition: transform .25s; flex: none; }
.cdrop.open .cdrop-trigger .fa-chevron-down { transform: rotate(180deg); }
.cdrop-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdrop-panel {
  position: fixed; z-index: 250; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(42, 33, 25, .35); padding: 8px; max-height: 300px; overflow-y: auto;
  animation: panelIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cdrop-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--ink); text-align: left;
  transition: background .15s;
}
.cdrop-opt:hover { background: #fdf3ec; }
.cdrop-opt.sel { background: #fbeedf; font-weight: 700; color: var(--brick-dark); }
.cdrop-opt .fa-check { color: var(--brick); font-size: .85rem; }

/* ---------- CUSTOM CALENDAR ---------- */
.cal { position: relative; }
.cal-trigger {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.cal-trigger:hover { border-color: var(--brick); }
.cal.open .cal-trigger { border-color: var(--brick); box-shadow: 0 0 0 4px rgba(168, 60, 40, .12); }
.cal-trigger .fa-calendar-days { color: var(--brick); font-size: 1.1rem; }
.cal-trigger .cal-value { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-trigger .cal-value:not(.has-value), .cal-trigger:not(.has-value) .cal-value { color: #b3a48f; font-weight: 500; }
.cal-trigger.has-value .cal-value { color: var(--ink); }
.cal-trigger .cal-chev { color: var(--brick); font-size: .85rem; transition: transform .25s; }
.cal.open .cal-chev { transform: rotate(180deg); }
.cal-panel {
  position: fixed; z-index: 250; width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -16px rgba(42, 33, 25, .35); padding: 18px;
  animation: panelIn .22s cubic-bezier(.16,1,.3,1);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 1.02rem; }
.cal-nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--brick); transition: .2s;
  display: grid; place-items: center; font-size: .8rem;
}
.cal-nav:hover { border-color: var(--brick); background: #fdf3ec; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: .72rem; font-weight: 800; color: var(--ink-soft); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--ink);
  display: grid; place-items: center; transition: .15s;
}
.cal-day:hover:not([disabled]) { background: #fdf3ec; color: var(--brick-dark); }
.cal-day.today { border: 2px solid var(--gold); }
.cal-day.sel { background: var(--brick); color: #fff; font-weight: 800; }
.cal-day[disabled] { color: #d8cdbb; cursor: not-allowed; }
.cal-empty { aspect-ratio: 1; }
.cal-foot { margin-top: 12px; text-align: center; }
.cal-clear {
  background: none; border: 0; color: var(--ink-soft); font-family: var(--font);
  font-size: .85rem; font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 8px;
}
.cal-clear:hover { color: var(--red); background: #fef2f2; }

/* ---------- TOAST ---------- */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center;
  width: min(440px, calc(100vw - 48px)); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start;
  background: var(--ink); color: #fff; padding: 15px 18px; border-radius: 14px;
  font-size: .92rem; font-weight: 500; box-shadow: 0 18px 45px -12px rgba(0,0,0,.45);
  animation: toastIn .35s cubic-bezier(.16,1,.3,1); max-width: 100%;
  border-left: 4px solid var(--gold);
}
.toast.ok { border-left-color: #34d399; }
.toast.ok i { color: #34d399; }
.toast.warn { border-left-color: #fbbf24; }
.toast.warn i { color: #fbbf24; }
.toast.err { border-left-color: #f87171; }
.toast.err i { color: #f87171; }
.toast.info i { color: var(--gold); }
.toast i { font-size: 1.15rem; margin-top: 1px; flex: none; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(42, 33, 25, .55);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--paper); border-radius: 20px; padding: 32px; width: min(440px, 100%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); animation: modalIn .35s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.modal h3 i { color: var(--brick); }
.modal p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 20px; }
.modal .field { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.tier-pick { display: grid; gap: 10px; }
.tier-opt {
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: .2s; background: #fff;
}
.tier-opt:hover { border-color: var(--brick); }
.tier-opt.sel { border-color: var(--brick); background: #fdf3ef; box-shadow: 0 6px 18px -8px rgba(168,60,40,.4); }
.tier-opt b { color: var(--brick-dark); }
.addon-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.addon-row:last-child { border: 0; }
.addon-row label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.addon-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brick); }
.addon-row .qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.qty button:hover { border-color: var(--brick); color: var(--brick); }
.sim-result {
  position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.sim-result h3 { font-size: 1.1rem; margin-bottom: 18px; color: var(--gold); }
.sim-lines { display: grid; gap: 10px; font-size: .93rem; margin-bottom: 18px; }
.sim-lines div { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.8); }
/* Ringkasan di halaman pesan: background terang, teks harus gelap */
.order-summary .sim-lines div { color: var(--ink-soft); }
.order-summary .sim-lines div span:last-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.sim-total { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; margin-bottom: 8px; }
.sim-total > div { display: flex; flex-direction: column; gap: 6px; }
.sim-total span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.sim-total b { font-size: 2.1rem; color: var(--gold); line-height: 1.1; }
.sim-note { font-size: .8rem; color: rgba(255,255,255,.6); margin: 12px 0 20px; }

/* ---------- CHECKOUT ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 36px; }
.step { flex: 1; text-align: center; font-size: .85rem; font-weight: 700; color: var(--ink-soft); padding: 12px 4px; border-bottom: 3px solid var(--line); }
.step.on { color: var(--brick); border-color: var(--brick); }
.step.done { color: var(--green); border-color: var(--green); }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.order-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.order-summary h3 { margin-bottom: 16px; }
.qris-box { text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 14px; padding: 24px; margin: 18px 0; }
.qris-box img, .qris-box canvas { margin: 0 auto; border-radius: 8px; }
.qris-amount { font-size: 2rem; font-weight: 800; color: var(--brick-dark); margin: 12px 0 4px; }
.qris-timer { font-size: .85rem; color: var(--ink-soft); }
.upload-box { border: 2px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; transition: .2s; background: #fff; }
.upload-box:hover { border-color: var(--brick); }
.upload-box i { font-size: 2.2rem; color: var(--brick); margin-bottom: 10px; }
.upload-preview { max-width: 220px; border-radius: 10px; margin: 12px auto 0; }

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex: none; }
.lang-toggle button {
  border: 0; background: none; padding: 7px 13px; font-family: var(--font);
  font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-soft); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-toggle button.on { background: var(--brick); color: #fff; }
.lang-toggle button:not(.on):hover { color: var(--brick-dark); }
@media (max-width: 768px) {
  .lang-toggle button { padding: 6px 10px; font-size: .72rem; }
}

/* ---------- ADMIN ---------- */
.admin-login { max-width: 420px; margin: 80px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.admin-tabs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; position: sticky; top: 96px; }
.admin-tabs button { background: none; border: 0; text-align: left; padding: 13px 16px; border-radius: 10px; font-family: var(--font); font-weight: 600; cursor: pointer; color: var(--ink-soft); font-size: .95rem; }
.admin-tabs button.on { background: var(--brick); color: #fff; }
.admin-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; min-height: 480px; }
.admin-panel h2 { margin-bottom: 20px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.paid { background: #dbeafe; color: #1e40af; }
.badge.confirmed { background: #d1fae5; color: #065f46; }
.badge.done { background: #e5e7eb; color: #374151; }
.badge.cancel { background: #fee2e2; color: #991b1b; }
table.data select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--font); }
.proof-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; }

/* ---------- VERIFIKASI PESANAN ---------- */
.order-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 9px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font); font-size: .83rem; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--brick); color: var(--brick-dark); }
.chip.on { background: var(--brick); border-color: var(--brick); color: #fff; box-shadow: 0 6px 16px -8px rgba(168,60,40,.7); }
.order-row { cursor: pointer; transition: background .15s; }
.order-row:hover { background: #fdf6ee; }
.order-row.need-verify td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.order-detail { width: min(660px, 100%); max-height: 88vh; overflow-y: auto; }
.od-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.od-head > div:first-child { flex: 1; min-width: 0; }
.od-head .icon-btn { flex: none; width: 38px; height: 38px; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.od-sec { background: #fdf9f3; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.od-sec h4 { font-size: .82rem; margin-bottom: 8px; color: var(--brick-dark); letter-spacing: .02em; }
.od-sec h4 i { margin-right: 6px; }
.od-sec p { font-size: .92rem; line-height: 1.65; margin: 0; }
.od-sec a { color: var(--brick-dark); font-weight: 700; }
.od-proof { grid-column: 1 / -1; }
.proof-large { width: 100%; max-height: 400px; object-fit: contain; border-radius: 10px; cursor: zoom-in; background: #fff; border: 1px solid var(--line); }
@media (max-width: 560px) { .od-grid { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat b { display: block; font-size: 1.7rem; color: var(--brick-dark); }
.stat span { font-size: .82rem; color: var(--ink-soft); }
.menu-edit-row { display: grid; grid-template-columns: 1fr 130px 44px; gap: 10px; margin-bottom: 10px; align-items: center; }
.menu-edit-row input { padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font-family: var(--font); }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn.add:hover { border-color: var(--green); color: var(--green); }

/* ---------- MISC ---------- */
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; font-size: .93rem; }
.alert.warn { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.alert.ok { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert.info { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 24px; }
.text-center { text-align: center; }
.page-hero { background: var(--ink); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 10px; max-width: 600px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--gold); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .layanan-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-grid, .checkout-grid, .kontak-grid { grid-template-columns: 1fr; }
  .sim-result, .order-summary { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-tabs { position: static; grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line); gap: 16px;
  }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .layanan-grid, .testi-grid, .galeri-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .wrap { padding: 0 18px; }

  /* Hero mobile */
  .hero-inner { padding: 72px 18px 80px; }
  .hero-stats { gap: 24px; }
  .hero-stats div b { font-size: 1.4rem; }
  .hero-ctas .btn { flex: 1 1 100%; }

  /* Page hero */
  .page-hero { padding: 52px 0; }

  /* Cards & panels */
  .sim-card, .admin-panel { padding: 22px 18px; }
  .order-summary { padding: 22px 18px; }

  /* Flipbook */
  .flipbook-shell { width: 96vw; }
  .flip-page.cover h2 { font-size: 3rem; }
  .menu-body { padding: 20px 22px 56px; }
  .book-nav { gap: 10px; }
  .book-nav .btn { padding: 12px 18px; font-size: .88rem; }
  .page-indicator { padding: 8px 18px; }
  #bookCta { font-size: .95rem; }

  /* Checkout steps */
  .steps { font-size: .68rem; gap: 4px; }
  .step { padding: 10px 2px; }

  /* Admin */
  table.data { font-size: .8rem; }
  table.data th, table.data td { padding: 10px 8px; }
  .admin-tabs { grid-template-columns: repeat(2, 1fr); }
  .menu-edit-row { grid-template-columns: 1fr 104px 40px; gap: 8px; }
  .stat-row { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.3rem; }

  /* Modal & toast */
  .modal { padding: 26px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  /* Forms */
  .field input[type="number"], .field input[type="text"], .field input[type="date"],
  .field input[type="tel"], .field input[type="password"],
  .field select, .field textarea { font-size: 16px; /* cegah auto-zoom iOS */ }

  /* Misc */
  .qris-amount { font-size: 1.6rem; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

.brand-logo { height: 46px; width: auto; display: block; flex: none; }
.foot-logo { width: 168px; height: auto; display: block; }
@media (max-width: 768px) { .brand-logo { height: 40px; } }
