/* ==========================================================================
   Perbaikan responsif template Sarab + komponen tambahan aplikasi.
   Dimuat setelah sarab/css/style.css sehingga aturan di sini menimpa aslinya.
   Titik henti mengikuti Bootstrap 5: 576, 768, 992, 1200 px.
   ========================================================================== */

/* ---------- 1. Dasar ---------- */
/* Template memakai overflow-x:hidden pada body, yang membuat navbar sticky tidak menempel di
   sebagian browser ponsel. "clip" memotong luapan tanpa membuat wadah gulir baru. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}
[id] { scroll-margin-top: 84px; }
section { padding: clamp(56px, 8vw, 88px) 0; }
.stitle { font-size: clamp(1.7rem, 4.5vw, 2.7rem); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- 2. Top bar ---------- */
#topbar { font-size: .8rem; }
#topbar a { color: inherit; }
#topbar span { margin-right: 14px; white-space: nowrap; }
#topbar .top-contact { gap: 0; min-width: 0; }

/* ---------- 3. Navbar ---------- */
#nav { padding: 6px 0; }
#nav .navbar-toggler { padding: 8px 10px; color: var(--primary); font-size: 1.3rem; box-shadow: none; }
#nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(232, 40, 26, .15); }
#nav .nav-cta { display: inline-flex; align-items: center; white-space: nowrap; }
@media (min-width: 992px) {
    #nav { padding: 0; }
    #nav .navbar-collapse { order: 1; }
}
@media (max-width: 991.98px) {
    #nav .navbar-collapse {
        background: #fff; margin: 8px -12px 0; padding: 6px 16px 14px;
        border-top: 1px solid #f0e6da; max-height: calc(100vh - 90px); overflow-y: auto;
    }
    .navbar-nav .nav-link { padding: 12px 4px !important; border-bottom: 1px solid #f5efe7; }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }
    .navbar-nav .nav-link.nav-cta { display: flex; width: 100%; justify-content: center; border-bottom: 0; padding: 12px 16px !important; }
}
@media (max-width: 400px) {
    .bico { width: 38px; height: 38px; font-size: 1.05rem; }
    .bname { font-size: 1.2rem; }
    .bsub { display: none; }
}

/* ---------- 4. Hero ---------- */
.hero-row { min-height: 0; padding: 32px 0 48px; }
@media (min-width: 992px) { .hero-row { min-height: 82vh; padding: 0; } }
#hero { min-height: auto; }
.hbgtxt { font-size: clamp(6rem, 22vw, 18rem); }
.hero-visual { position: relative; text-align: center; max-width: 480px; margin: 0 auto; }
.hcircle { width: min(480px, 100%); height: auto; aspect-ratio: 1 / 1; }
.hcircle img { width: 90%; height: 90%; }
/* Template memakai .fcard untuk kartu melayang di hero dan kartu formulir; aturan formulir
   (padding 32px) menimpa kartu hero. Kembalikan ukuran kartu hero. */
.fcard.fc1, .fcard.fc2, .fcard.fc3 { padding: 10px 15px; border-radius: 11px; white-space: nowrap; max-width: 230px; z-index: 2; }
.fcard .fcnum { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.fcard.fc1 { left: 0; }
.fcard.fc2 { right: 0; }
.fcard.fc3 { right: -6px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px; border-radius: 50px;
    border: 2px solid var(--dark); color: var(--dark); font-weight: 600; font-size: .93rem; transition: .3s;
}
.btn-ghost:hover { background: var(--dark); color: #fff; }
@media (max-width: 1199.98px) {
    .fcard.fc1, .fcard.fc2, .fcard.fc3 { padding: 8px 12px; }
    .fcard .fcoi { width: 34px; height: 34px; }
}
@media (max-width: 991.98px) {
    .hero-text { text-align: center; }
    .hbadge { margin-left: auto; margin-right: auto; }
    .hdesc { margin-left: auto; margin-right: auto; }
    .hero-actions, .hstats { justify-content: center; }
    .hero-visual { max-width: 400px; }
    /* Kartu melayang di dalam lingkaran agar tidak keluar layar. */
    .fcard.fc1, .fcard.fc2, .fcard.fc3 { transform: none !important; }
}
@media (max-width: 767.98px) {
    .hstats { display: flex !important; gap: 14px !important; }
    .hstat .snum { font-size: 1.5rem; }
    .sdiv { height: 30px; }
    .hero-visual { max-width: 300px; }
    .fcard.fc1, .fcard.fc2, .fcard.fc3 { display: none !important; }
}
@media (max-width: 575.98px) {
    .htitle { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    .hdesc { font-size: .92rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-red, .hero-actions .btn-ghost { justify-content: center; }
    .hbadge span { font-size: .7rem; }
}

/* ---------- 5. Kategori: satu baris geser di ponsel, kisi di layar lebar ---------- */
.cat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.catcard { padding: 20px 12px; flex: 0 1 160px; }
@media (max-width: 767.98px) {
    .cat-row {
        display: flex; overflow-x: auto; gap: 12px; padding: 10px 4px 16px; margin: 0 -12px;
        scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .cat-row::-webkit-scrollbar { display: none; }
    .catcard { flex: 0 0 120px; scroll-snap-align: start; padding: 16px 8px; }
    .catcard:hover, .catcard.active { transform: none; }
    .catimg { width: 64px; height: 64px; }
}

/* ---------- 6. Tentang ---------- */
@media (max-width: 991.98px) {
    .amain img { height: 340px; }
    .aexp { left: 12px; top: 16px; padding: 12px 16px; }
    .aexp .anum { font-size: 1.7rem; }
    #about .stitle.text-start { text-align: center !important; }
    #about .sline.lft { margin-left: auto; }
    #about .col-lg-7 > .slbl, #about .col-lg-7 > .sdesc { text-align: center; }
}
@media (max-width: 575.98px) {
    .amain img { height: 260px; }
}

/* ---------- 7. Menu ---------- */
.menu-note { max-width: 520px; font-size: .85rem; }
.menu-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 28px; }
.menu-filter .filtbtn { margin: 0; white-space: nowrap; }
@media (max-width: 767.98px) {
    .menu-filter {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -12px 20px; padding: 4px 12px 10px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .menu-filter::-webkit-scrollbar { display: none; }
}
.search-info { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 20px; font-size: .88rem; color: #666; }
.search-info button { border: 0; background: none; color: var(--primary); font-weight: 600; text-decoration: underline; }
.mcard { height: 100%; display: flex; flex-direction: column; }
.mcard .mbody { flex: 1; display: flex; flex-direction: column; }
.mcard .mdesc { flex: 1; }
.mcard:focus-visible { outline: 3px solid rgba(232, 40, 26, .35); outline-offset: 2px; }
.mcard.sold { opacity: .6; }
.mcard.sold .mimg img { filter: grayscale(1); }
.mimg { height: 200px; }
.madd { flex: none; }
@media (max-width: 575.98px) {
    /* Dua kolom di ponsel: gambar lebih pendek, teks ringkas. */
    .mimg { height: 130px; }
    .mbody { padding: 12px; }
    .mcat { font-size: .62rem; margin-bottom: 2px; }
    .mtit { font-size: .92rem; line-height: 1.25; }
    .mdesc { display: none; }
    .mprice { font-size: 1rem; }
    .mprice small { display: block; margin-left: 0; }
    .madd { width: 30px; height: 30px; font-size: .85rem; }
    .mbdg { top: 8px; left: 8px; font-size: .6rem; padding: 2px 8px; }
    .mcard:hover { transform: none; }
}

/* Popup detail menu: lembar dari bawah di ponsel. */
#mpCat { margin-top: 2px; }
#mpTitle { padding-right: 36px; }
.mp-qr-note {
    display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 12px;
    padding: 12px 14px; font-size: .84rem; color: #6b5a45; margin-bottom: 14px;
}
.mp-qr-note i { color: var(--primary); font-size: 1.3rem; }
a.mpaddcart { text-decoration: none; }
a.mpaddcart:hover { color: #fff; }
@media (max-width: 767.98px) {
    #menuPop { padding: 0; align-items: flex-end; }
    #menuPop .mpbox { border-radius: 22px 22px 0 0; max-height: 92vh; animation: sheetup .28s ease-out; }
    .mpbox .mpimg { width: 100%; min-height: 0; height: 220px; border-radius: 22px 22px 0 0; }
    .mpbox .mpbody { width: 100%; padding: 20px 18px 26px; }
    #mpTitle { font-size: 1.4rem; }
    #mpPrice { font-size: 1.5rem; }
    .mpclose { background: rgba(255, 255, 255, .92); }
}
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }

/* ---------- 8. Signature ---------- */
.sp-price { font-family: "Playfair Display", serif; font-size: 2.2rem; font-weight: 900; color: var(--secondary); margin: 0 0 22px; }
.sp-price small { font-size: 1rem; color: rgba(255, 255, 255, .45); text-decoration: line-through; margin-left: 8px; }
.spimgw img { border-radius: 24px; }
@media (max-width: 991.98px) {
    #special .col-lg-6:first-child { text-align: center; }
    .spglow { width: 260px; height: 260px; }
    .spimgw img { max-width: 360px; }
}

/* ---------- 9. Galeri ---------- */
@media (max-width: 767.98px) {
    .ggrid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
    .gitem:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 991.98px) {
    #galPop { padding: 12px; }
    .gpbox { width: 100%; }
    .gpbox img { max-height: 60vh; object-fit: contain; }
}

/* ---------- 10. Chef ---------- */
@media (max-width: 575.98px) {
    .chimg { height: 190px; }
    .chbody { padding: 12px 10px; }
    .chnm { font-size: .95rem; }
}

/* ---------- 11. Jam buka ---------- */
.hrstime.closed { color: #ff8a8a; }
.hrstime.small-txt { font-size: .82rem; text-align: right; }
.hrs-title { color: #fff; margin-bottom: 14px; font-family: "Poppins", sans-serif; font-size: .95rem; font-weight: 700; }
.hrscta { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hrscta p { color: rgba(255, 255, 255, .85); }
@media (max-width: 575.98px) {
    .hrscard { padding: 20px 16px; }
    .hrsrow { flex-wrap: wrap; gap: 4px 12px; }
    .hrsday, .hrstime { font-size: .84rem; }
}

/* ---------- 12. Ulasan ---------- */
.tes-initial {
    width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.tescard { height: 100%; }

/* ---------- 13. Formulir (template memakai .fcard untuk dua hal berbeda) ---------- */
/* Di template asli, .fcard formulir mewarisi position:absolute dari kartu melayang di hero
   sehingga formulir reservasi dan kontak bisa menumpuk. Formulir di sini memakai .formcard. */
.formcard {
    position: relative; background: #fff; border-radius: 18px; padding: 32px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
}
.fctrl { font-size: 16px; } /* 16px mencegah zoom otomatis di iPhone saat mengetik */
.ferr { color: #c0392b; font-size: .78rem; margin-top: 5px; font-weight: 500; }
.sucmsg.show { display: block; margin: 0 0 16px; }
.info-dark { background: var(--dark); border-radius: 18px; padding: 32px; }
.info-dark h4 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.info-sub { color: rgba(255, 255, 255, .55); font-size: .85rem; margin-bottom: 22px; }
.info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.info-row:last-child { margin-bottom: 0; }
.info-ico {
    width: 44px; height: 44px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center;
    background: rgba(232, 40, 26, .2); color: var(--primary); font-size: 1.05rem;
}
.info-row strong { display: block; color: #ccc; font-size: .74rem; text-transform: uppercase; letter-spacing: .8px; }
.info-row span { color: #fff; font-size: .86rem; }
@media (max-width: 575.98px) {
    .formcard, .info-dark, .ctdark { padding: 22px 16px; }
}
.nl-msg { color: #fff; font-size: .88rem; margin-top: 12px; }
.nl-msg.ok { color: #c8f7d8; }
.nl-form-wrap { max-width: 560px; margin: 0 auto; }

/* ---------- 14. Footer ---------- */
footer .fbot p { margin: 0; }
@media (max-width: 991.98px) {
    footer { text-align: left; }
    .fbot .d-flex { justify-content: center !important; text-align: center; }
}

/* ---------- 15. Tombol melayang ---------- */
#btt { right: 18px; bottom: 18px; }
.wa-float {
    position: fixed; left: 18px; bottom: 18px; z-index: 9990; width: 52px; height: 52px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .4); transition: .3s;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); }

/* ---------- 16. Pencarian ---------- */
@media (max-width: 575.98px) {
    #searchOv { padding-top: 70px; }
    #searchOv .sovclose { top: 14px; right: 14px; }
    .sovbox h4 { font-size: 1.2rem; }
    .sovinput input { padding: 13px 16px; font-size: 16px; }
    .sovcats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
    .sovcat { flex: none; }
}

/* Gerakan dikurangi bila pengguna memintanya di pengaturan perangkat. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
