
/* =========================================================
   Dewandaru — Mobile header behaviour (mirror of desktop)
   HANYA behaviour state: sticky + transparan/putih.
   Styling navbar mobile (ukuran, icon, spacing, animasi,
   layout, breakpoint) tidak diubah.
   State body: ab-hero-top / ab-scrolled / ab-overlay-open
   ========================================================= */

/* kontak hanya tampil di sidebar mobile (di-override di media query bawah) */
.ab-mobile-contact {
    display: none;
}

@media (max-width: 991.98px) {

    /* mekanisme SAMA dengan desktop: fixed di atas viewport.
       Sticky gagal di sini: (1) body { overflow-x: hidden } membuat
       body jadi scroll container, (2) parent <header> sama tinggi
       dengan bar-nya sendiri -> tidak ada ruang untuk "menempel". */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 10000;
        background-color: var(--ab-white);
        box-shadow: var(--ab-shadow-sm);
        transition: background-color var(--ab-transition), box-shadow var(--ab-transition);
    }

    /* header fixed keluar dari flow:
       beri ruang di atas konten agar posisi visual tetap seperti semula.
       (di halaman hero, offset ini dibatalkan oleh .ab-hero margin-top:-105px) */
    body {
        padding-top: 105px;
    }

    /* state tertinggi: overlay menu dibuka -> header putih
       (overriden last on purpose) */
    body.ab-overlay-open .header {
        background-color: var(--ab-white);
        box-shadow: var(--ab-shadow-sm);
    }

    body.ab-overlay-open .menu-button span {
        background-color: var(--ab-text);
    }

    /* puncak halaman + hero terlihat -> transparan, tanpa shadow */
    body.ab-hero-top .header {
        background-color: transparent;
        box-shadow: none;
    }

    body.ab-hero-top .menu-button span {
        background-color: var(--ab-white);
    }

    /* sudah scroll -> solid putih */
    body.ab-scrolled .header {
        background-color: var(--ab-white);
        box-shadow: var(--ab-shadow-sm);
    }

    /* ---------- Contact info di bawah sidebar mobile ---------- */
    .ab-mobile-contact {
        display: block;
    }

    .ab-mobile-contact__title {
        color: var(--ab-accent);
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 18px;
    }

    .ab-mobile-contact__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ab-mobile-contact__item {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .ab-mobile-contact__icon {
        flex-shrink: 0;
        font-size: 18px;
        line-height: 1.4;
        color: var(--ab-text);
    }

    /* Warna teks kontak dibuat hitam */
    .ab-mobile-contact__link,
    .ab-mobile-contact__link:visited,
    .ab-mobile-contact__link:hover,
    .ab-mobile-contact__link:focus,
    .ab-mobile-contact__text {
        color: #000000;
        font-size: 15px;
        line-height: 1.4;
        text-decoration: none;
    }
}

/* ---------- Mobile Logo Size ---------- */
@media (max-width: 991.98px) {
    .header .navbar-brand #ab-mobile-logo {
        width: 140px;
        max-width: 140px;
        height: auto;
    }
}