/* =====================================================================
   OTW Terapi Lombok — desain halaman publik "Bento"
   Arah desain dari UI UX Pro Max: pola Bento Grid Showcase, font Outfit,
   ikon gelembung 3D (Phosphor fill), warna dasar logo OTW.
   Dipakai hanya di halaman publik (body.publik): beranda, artikel, pendaftaran.
   ===================================================================== */

body.publik {
  /* warna logo */
  --oranye: #FF6100;
  --toska: #009A9A;
  --lime: #C9E165;
  /* versi gelap untuk teks/tombol (kontras ≥ 4.5:1) */
  --oranye-tua: #C24A00;
  --toska-tua: #00706F;
  --lime-tua: #4B5E12;
  --hitam: #1B1B1F;
  /* netral */
  --latar: #F4F3EF;
  --kotak: #FFFFFF;
  --krem: #FFF4EC;
  --abu: #5D5D66;
  --garis-halus: #ECEAE4;
  --bulat: 24px;

  /* menimpa token style.css agar komponen bersama (form, pesan) ikut warna logo */
  --dasar: var(--latar);
  --tinta: var(--hitam);
  --redup: var(--abu);
  --utama: var(--toska-tua);
  --utama-gelap: #005655;
  --utama-muda: #E0F3F3;
  --garis: var(--garis-halus);
  --garis-input: #D6D3CA;
  --abu-muda: #EFEDE7;
  --font-judul: 'Outfit', system-ui, sans-serif;

  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--latar);
  color: var(--hitam);
}
body.publik:has(.bt-bar) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
body.publik h1, body.publik h2, body.publik h3 { font-family: 'Outfit', system-ui, sans-serif; letter-spacing: -.01em; }
body.publik a { color: inherit; }
body.publik :focus-visible { outline: 3px solid var(--toska); outline-offset: 2px; border-radius: 8px; }

/* ---------- Ikon gelembung 3D ---------- */
.ib3d {
  /* gelembung "semi-flat": gradasi tipis, kilau kecil, bayangan lembut */
  --a: #1FA9A9; --b: #00807F;
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, .22), transparent 38%),
    linear-gradient(160deg, var(--a), var(--b));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .10), 0 3px 8px -4px var(--b);
}
.ib3d svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.ib3d-toska  { --a: #1FA9A9; --b: #00807F; }
.ib3d-lime   { --a: #BFD958; --b: #8CA823; }
.ib3d-oranye { --a: #FF7A26; --b: #DB5200; }
.ib3d-wa     { --a: #2FC46A; --b: #179349; }
.ib3d-gelap  { --a: #3A3A44; --b: #1B1B1F; }
.ib3d-kecil  { width: 36px; height: 36px; border-radius: 12px; }
.ib3d-kecil svg { width: 20px; height: 20px; }

/* ---------- Tombol ---------- */
.bt-tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; }
.bt-tombol:active { transform: scale(.97); }
.bt-tombol-kecil { min-height: 40px; padding: 0 14px; font-size: 15px; }
.bt-utama { background: var(--hitam); color: #fff !important; }
.bt-utama:hover { background: #33333A; }

/* ---------- Kepala ---------- */
.bt-atas { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(244, 243, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bt-logo { margin-right: auto; display: inline-flex; }
.bt-logo img { height: 38px; width: auto; }
.bt-tautan { display: none; gap: 4px; }
.bt-tautan a { padding: 8px 12px; border-radius: 12px; font-weight: 500; text-decoration: none; color: var(--abu); }
.bt-tautan a:hover { background: #fff; color: var(--hitam); }
.bt-menu { position: relative; }
.bt-menu summary { list-style: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bt-menu summary::-webkit-details-marker { display: none; }
.bt-menu summary svg { width: 22px; height: 22px; fill: none; stroke: var(--hitam); stroke-width: 2; stroke-linecap: round; }
.bt-menu-isi { position: absolute; right: 0; top: 52px; min-width: 210px; padding: 8px; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .14); display: grid; }
.bt-menu-isi a { padding: 12px 14px; border-radius: 12px; font-weight: 500; text-decoration: none; }
.bt-menu-isi a:hover { background: var(--latar); }
@media (min-width: 860px) {
  .bt-tautan { display: flex; }
  .bt-menu { display: none; }
  .bt-atas { padding: 12px max(24px, calc((100% - 1100px) / 2)); }
}

/* ---------- Wadah & sapaan ---------- */
.bt-wadah { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.bt-sapa { padding: 8px 2px 16px; }
.bt-sapa-kecil { color: var(--abu); font-size: 15px; font-weight: 500; }
.bt-sapa h1 { font-size: 31px; line-height: 1.12; font-weight: 700; margin-top: 2px; }
.bt-sapa h1 em { font-style: normal; color: var(--oranye-tua); }
.bt-sapa h1 em.e2 { color: var(--toska-tua); }
.bt-sapa p { margin: 10px 0 0; color: var(--abu); max-width: 560px; }

/* ---------- Grid bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.bt { position: relative; overflow: hidden; border-radius: var(--bulat); padding: 16px; background: var(--kotak);
  display: flex; flex-direction: column; gap: 4px; min-height: 120px; text-decoration: none; color: var(--hitam); }
.bt h2 { font-size: 19px; line-height: 1.15; font-weight: 700; margin: 0; }
.bt-ket { font-size: 14px; color: var(--abu); }
.bt-tebal { font-weight: 600; }
.bt-lebar { grid-column: 1 / -1; }
a.bt { transition: transform .15s; }
a.bt:active { transform: scale(.98); }
@media (hover: hover) { a.bt:hover { transform: translateY(-2px); } }

/* foto / slide */
.bt-foto { grid-column: 1 / -1; padding: 0; min-height: 0; aspect-ratio: 4 / 3.2; background: #DDE7E6; }
.bt-slide-jalur { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.bt-slide-jalur::-webkit-scrollbar { display: none; }
.bt-slide-item { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.bt-slide-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.bt-slide-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 34px; color: #fff; font-weight: 600; font-size: 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.bt-tag { position: absolute; z-index: 2; top: 14px; left: 14px; background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; pointer-events: none; }
.bt-zoom { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.bt-zoom .ikon { width: 13px; height: 13px; }
.bt-panah { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--hitam); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bt-panah.kiri { left: 10px; } .bt-panah.kanan { right: 10px; }
.bt-panah .ikon { width: 20px; height: 20px; }
.bt-titik { position: absolute; z-index: 2; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.bt-titik button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .2s; }
.bt-titik button[aria-current="true"] { width: 22px; background: #fff; }
.bt-foto-kosong { justify-content: flex-end; aspect-ratio: auto; min-height: 220px;
  background: radial-gradient(circle at 85% 20%, var(--lime) 0 70px, transparent 71px), radial-gradient(circle at 10% 95%, var(--oranye) 0 60px, transparent 61px), linear-gradient(150deg, #00A3A3, #00706F); }
.bt-foto-teks { position: relative; padding: 18px; color: #fff; }
.bt-foto-teks h2 { font-size: 22px; } .bt-foto-teks p { margin: 4px 0 0; color: #E3F7F6; font-size: 14px; }

/* aksi */
.bt-daftar { background: var(--oranye); color: var(--hitam); }
.bt-daftar h2 { font-size: 22px; }
.bt-daftar .bt-ket { color: #3A1A00; }
.bt-bulat { margin-top: auto; align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; background: var(--hitam); color: #fff; display: flex; align-items: center; justify-content: center; }
.bt-bulat .ikon { width: 20px; height: 20px; }
.bt-wa { background: #E3F5E9; color: #14572F; }
.bt-wa h2 { margin-top: auto; }
.bt-wa .bt-ket { color: #2B6A44; }

/* layanan */
.bt-layanan { padding: 16px 16px 8px; }
.bt-baris { border-top: 1px solid var(--garis-halus); }
.bt-layanan h2 + .bt-baris { border-top: 0; margin-top: 4px; }
.bt-baris summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.bt-baris summary::-webkit-details-marker { display: none; }
.bt-baris summary > span:not(.ib3d) { flex: 1; display: flex; flex-direction: column; }
.bt-baris summary b { font-weight: 600; font-size: 16px; }
.bt-baris summary small { color: var(--abu); font-size: 13px; }
.bt-baris summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--abu); border-bottom: 2px solid var(--abu); transform: rotate(45deg); margin-right: 6px; transition: transform .2s; }
.bt-baris[open] summary::after { transform: rotate(-135deg); }
.bt-rinci { padding: 0 0 14px 60px; font-size: 14px; color: var(--abu); }
.bt-rinci p { margin: 0 0 6px; }
.bt-rinci ul { margin: 0 0 8px; padding-left: 18px; }
.bt-sedia { display: inline-block; font-weight: 600; color: var(--toska-tua); }

/* lokasi */
.bt-klinik { background: var(--toska-tua); color: #fff; }
.bt-klinik .bt-ket { color: #D6F1F0; }
.bt-rumah { background: var(--lime); }
.bt-rumah .bt-ket { color: #33400B; }
.bt-klinik h2, .bt-rumah h2 { margin-top: 12px; }

/* langkah */
.bt-langkah { flex-direction: row; gap: 8px; padding: 10px; min-height: 0; }
.bt-langkah div { flex: 1; min-width: 0; background: var(--latar); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; }
.bt-langkah b { font-size: 26px; font-weight: 800; line-height: 1; color: var(--oranye-tua); margin-bottom: 6px; }
.bt-langkah span { font-size: 14px; font-weight: 600; line-height: 1.2; }
.bt-langkah small { font-size: 12px; color: var(--abu); margin-top: 2px; }

/* angka */
.bt-angka { justify-content: flex-end; }
.bt-angka b { font-size: 36px; font-weight: 800; line-height: 1; }
.bt-angka span { font-size: 14px; }
.bt-gelap { background: var(--hitam); color: #fff; }
.bt-gelap span { color: #C9C9D2; }
.bt-krem { background: var(--krem); }
.bt-krem b { color: var(--oranye-tua); }
.bt-krem span { color: var(--abu); }

/* tim terapis */
.bt-kepala { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bt-geser { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.bt-geser::-webkit-scrollbar { display: none; }
.bt-terapis { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; background: var(--latar); border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bt-terapis img, .bt-inisial { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; margin-bottom: 6px; }
.bt-inisial { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .10); }
.bt-inisial-toska { background: linear-gradient(150deg, #2BB5B5, #00706F); }
.bt-inisial-lime { background: linear-gradient(150deg, #C2DA5A, #6E8A12); }
.bt-inisial-oranye { background: linear-gradient(150deg, #FF9A4D, #D24B00); }
.bt-terapis h3 { font-size: 17px; font-weight: 700; line-height: 1.2; margin: 0; }
.bt-gelar { font-size: 13px; color: var(--abu); }
.bt-pita { margin-top: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.bt-pita-toska { background: #D7F0F0; color: var(--toska-tua); }
.bt-pita-lime { background: #EAF4C8; color: var(--lime-tua); }
.bt-pita-oranye { background: #FFE2CF; color: var(--oranye-tua); }
.bt-wilayah { font-size: 12px; color: var(--abu); }
.bt-terapis p { margin: 6px 0 0; font-size: 13px; color: var(--abu); }

/* tentang */
.bt-tentang { gap: 10px; }
@media (min-width: 560px) { .bt-tentang { flex-direction: row; gap: 14px; align-items: flex-start; } }
.bt-tentang h2 { margin-bottom: 6px; }
.bt-tentang p { margin: 0; color: var(--abu); font-size: 15px; }

/* artikel */
.bt-art { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--garis-halus); text-decoration: none; }
.bt-kepala + .bt-art { border-top: 0; }
.bt-art img { width: 84px; height: 64px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.bt-art span { display: flex; flex-direction: column; }
.bt-art b { font-weight: 600; line-height: 1.25; }
.bt-art small { color: var(--abu); font-size: 13px; }
.bt-semua { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 600; color: var(--toska-tua) !important; text-decoration: none; }
.bt-semua .ikon { width: 16px; height: 16px; }

/* desktop: 4 kolom */
@media (min-width: 860px) {
  .bt-sapa { padding: 24px 0 22px; }
  .bt-sapa h1 { font-size: 46px; max-width: 760px; }
  .bento { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .bt-foto { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 380px; }
  .bt-layanan { grid-column: span 2; grid-row: span 2; }
  .bt-langkah, .bt-tentang, .bt-artikel { grid-column: span 2; }
  .bt-tim { grid-column: 1 / -1; }
  .bt-terapis { flex-basis: 240px; }
}

/* ---------- Kaki & bar bawah ---------- */
.bt-kaki { max-width: 1100px; margin: 28px auto 0; padding: 26px 16px 20px; text-align: center; color: var(--abu); font-size: 14px; }
.bt-kaki img { height: 44px; width: auto; margin: 0 auto 10px; }
.bt-kaki p { margin: 0; color: var(--hitam); font-weight: 600; }
.bt-kaki p span { color: var(--abu); font-weight: 400; }
.bt-kontak { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.bt-kontak a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 16px; background: #fff; font-weight: 600; text-decoration: none; }
.bt-hak { font-weight: 400 !important; color: var(--abu) !important; font-size: 13px; }
.bt-hak a { text-decoration: underline; }
.bt-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(244, 243, 239, 0), var(--latar) 30%); }
.bt-bar-wa { flex-shrink: 0; display: flex; }
.bt-bar-wa .ib3d { width: 56px; height: 56px; border-radius: 18px; }
.bt-bar-daftar { flex: 1; min-height: 56px; border-radius: 18px; background: var(--hitam); color: #fff !important; display: flex; align-items: center;
  justify-content: space-between; padding: 0 8px 0 20px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.bt-bar-daftar span { width: 42px; height: 42px; border-radius: 13px; background: var(--oranye); color: var(--hitam); display: flex; align-items: center; justify-content: center; }
.bt-bar-daftar .ikon { width: 20px; height: 20px; }
@media (min-width: 860px) {
  .bt-bar { left: auto; right: 24px; bottom: 20px; width: 420px; padding: 0; background: none; }
}

/* ---------- Halaman artikel (komponen lama bm-*) ikut gaya baru ---------- */
body.publik .bm-isi { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
body.publik .bm-seksi { margin-top: 18px; }
body.publik .bm-label { display: inline-block; color: var(--oranye-tua); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
body.publik .bm-judul-hal { font-size: 30px; font-weight: 700; margin: 4px 0 6px; }
body.publik .bm-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { body.publik .bm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { body.publik .bm-grid-artikel { grid-template-columns: repeat(3, 1fr); } }
body.publik .bm-artikel { background: #fff; border-radius: var(--bulat); overflow: hidden; border: 0; box-shadow: none; }
body.publik .bm-artikel a { text-decoration: none; color: inherit; display: block; }
body.publik .bm-artikel img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
body.publik .bm-artikel-isi { padding: 14px 16px 16px; display: grid; gap: 4px; }
body.publik .bm-artikel h3 { font-size: 18px; font-weight: 700; }
body.publik .bm-artikel-baca { color: var(--toska-tua); }
body.publik .bm-baca { max-width: 720px; margin: 8px auto 0; background: #fff; border-radius: var(--bulat); padding: 20px; display: grid; gap: 10px; }
body.publik .bm-baca h1 { font-size: 30px; font-weight: 700; line-height: 1.15; }
body.publik .bm-baca-gambar { width: 100%; height: auto; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
body.publik .bm-baca-isi { font-size: 17px; line-height: 1.7; }
body.publik .bm-ajakan { position: relative; overflow: hidden; max-width: 720px; margin: 14px auto 0; padding: 22px; border-radius: var(--bulat);
  background: var(--toska-tua); color: #fff; text-align: left; box-shadow: none; }
body.publik .bm-ajakan h2 { color: #fff; font-size: 24px; }
body.publik .bm-ajakan p { color: #D6F1F0; margin: 6px 0 14px; }
body.publik .bm-ajakan .bm-gelembung { display: none; }
body.publik .bm-ajakan .tombol { background: var(--oranye); color: var(--hitam); border: 0; }
body.publik .bm-ajakan .tombol-garis { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Komponen bersama (formulir pendaftaran) ---------- */
body.publik .tombol { border-radius: 14px; font-weight: 600; font-family: 'Outfit', sans-serif; }
body.publik .tombol:not(.tombol-garis):not(.tombol-wa):not(.tombol-bahaya) { background: var(--hitam); border-color: var(--hitam); color: #fff; }
body.publik .tombol:not(.tombol-garis):not(.tombol-wa):not(.tombol-bahaya):hover { background: #33333A; }
body.publik .kartu { border-radius: var(--bulat); border: 0; box-shadow: none; }
body.publik .sampul { background: radial-gradient(circle at 92% 12%, var(--lime) 0 54px, transparent 55px), radial-gradient(circle at 6% 100%, var(--oranye) 0 70px, transparent 71px), linear-gradient(150deg, #00A3A3, #00706F); }
body.publik input[type=text], body.publik input[type=tel], body.publik input[type=date], body.publik input[type=email],
body.publik select, body.publik textarea { border-radius: 14px; font-family: 'Outfit', sans-serif; font-size: 16px; }
body.publik .pil input:checked + span { background: var(--toska-tua); border-color: var(--toska-tua); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  body.publik *, body.publik *::before, body.publik *::after { transition: none !important; scroll-behavior: auto !important; }
}
