
/* ============================================================
   1. TOPBAR MOBILE
============================================================ */


@media (max-width:992px) {

    .topbar-info,
    .topbar-title {
        display: none !important;
    }

    .topbar {
        height: 45px !important;
        padding: 0 10px !important;
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        background: #f0f0f0 !important;
    }

    .topbar-container {
        width: 95% !important;
        gap: 10px !important;
    }

    .topbar-logo {
        height: 38px !important;
         margin-left: auto !important;
}

}


/* ============================================================
   2. NAVBAR MOBILE
============================================================ */
@media (max-width:992px) {

    /* HIDE DESKTOP NAV COMPONENTS */
    .nav-right,
    .nav-search,
    .navbar-menu,
    nav a,
    .navbar ul,
    .navbar li {
        display: none !important;
    }

    .navbar {
        position: fixed !important;
        top: 42px !important;   /* nempel topbar */
        left: 0;
        width: 100% !important;
        height: 60px !important;

        padding: 0 15px !important;
        margin: 0 !important;

        background: #7c0000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;

        border: none !important;
        z-index: 99999 !important;
    }

    /* HAMBURGER */
    .hamburger {
        display: flex !important;
        font-size: 28px !important;
        color: #fff !important;
        z-index: 100000 !important;
    }

    /* BIAR TIDAK ADA BACKGROUND/GAP */
    header,
    .navbar-wrapper,
    .nav-container,
    .nav-wrapper {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
}



/* ============================================================
   3. MOBILE MENU (SIDEBAR) — GOLD BRANDING VERSION
============================================================ */
/* ============================================================
   MOBILE MENU GOLD BRANDING — CLEAN & FIXED VERSION
============================================================ */
@media (max-width:992px) {

    /* ========== SIDEBAR MENU ========== */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 420px;
        height: 100vh;
        padding: 35px 28px;
        background: linear-gradient(180deg, #430000, #470707);
        overflow-y: auto;
        box-shadow: -4px 0 22px rgba(0,0,0,0.45);
        transition: .35s;
        z-index: 100000 !important;
    }

    .mobile-menu.open {
        right: 0;
    }


    /* ========== CLOSE BUTTON ========== */
    .close-btn {
        color: #E8C547 !important;
        font-size: 28px !important;
        font-weight: 800 !important;
        margin-top: 10px;
        margin-bottom: 25px;
        cursor: pointer;
    }


    /* ========== SEARCH BOX ========== */
    .mobile-search {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        position: relative !important;
    }

    .search-input-mobile {
        width: 100%;
        background: rgba(255,255,255,0.06) !important;
        border: 2px solid #E8C547 !important;
        border-radius: 12px !important;
        color: #FFD95A !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        outline: none !important;
    }

    .search-input-mobile::placeholder {
        color: #E8C547 !important;
        opacity: .8 !important;
    }

    .mobile-search .iconify {
        color: #FFD95A !important;
        font-size: 22px !important;
    }

    .mobile-search .search-dropdown {
        position: absolute !important;
        top: 46px !important;
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
        padding: 8px 0;
        z-index: 999999;
    }


    /* ========== MAIN MENU LIST ========== */
    .mobile-list {
        list-style: none;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu a {
        color: #FFD95A !important;
        font-size: 18px !important;
        font-weight: 800;
        text-decoration: none !important;
    }

    .mobile-list li {
        border-bottom: none !important;
    }


    /* ========== DROPDOWN HEADER ========== */
    .mobile-dropdown-header {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #FFD95A !important;
        cursor: pointer;
    }

    .mobile-dropdown-header .caret {
        font-size: 16px;
        color: #FFD95A !important;
    }


    /* ========== SUBMENU ========== */
    .mobile-submenu {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-left: 14px;
        transition: max-height .3s ease, opacity .3s ease;
    }

    .mobile-dropdown.open .mobile-submenu {
        max-height: 800px;
        opacity: 1;
    }

    .mobile-submenu a {
        font-size: 15px !important;
        font-weight: 600;
        color: #FFE7A0 !important;
        padding: 10px 0;
        display: block;
        text-decoration: none !important;
    }

    .mobile-submenu a:hover {
        color: #FFFFFF !important;
        background: rgba(255,217,90,0.08);
        border-radius: 6px;
    }
}







/* ============================================================
   4. OVERLAY MOBILE
============================================================ */
@media (max-width:992px) {
    #overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: .3s;
        z-index: 5000;
    }

    #overlay.show {
        opacity: 1;
        pointer-events: all;
    }
}



/* ============================================================
   5. FOOTER MOBILE
============================================================ */
@media (max-width:992px) {

    .footer {
        padding: 40px 0 25px !important;
    }

    .footer-container {
        width: 92% !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;

        margin: 0 auto !important;
    }

    .footer-section {
        flex: 1 1 100% !important;
    }

    .footer-section p,
    .footer-links a {
        font-size: 14px !important;
    }

    .footer-copyright {
        font-size: 13px !important;
    }
}



/* ============================================================
   6. TEXT ALIGN MOBILE (GLOBAL)
============================================================ */
@media (max-width:992px) {

    p,
    .footer-section p,
    .mobile-menu p,
    .mobile-menu a,
    .mobile-dropdown-header {
        text-align: left !important;
    }
}



/* ============================================================
   7. GRID BREAKPOINT UNIVERSAL (768 / 576 / 480)
============================================================ */

/* — 768px — */
@media (max-width:992px) {
    .hamburger { font-size: 28px !important; }
}

/* — 576px — */
@media (max-width:576px) {
    .topbar { height: 42px !important; }
    .navbar { height: 56px !important; }
}

/* — 480px — */
@media (max-width:480px) {
    .hamburger { font-size: 26px !important; }
}






@media (max-width: 992px) {

    /* Safety wrapper */
    .safety-section {
        padding: 80px 0 !important;
        background-position: center top !important;
    }

    .safety-container {
        width: 94% !important;
    }

    /* Header box (judul + subtitle) */
    .safety-header {
        padding: 25px 20px !important;
        max-width: 90% !important;
        margin-bottom: 40px !important;
        margin-top: 40px !important;
    }

    .safety-header-title {
        font-size: 28px !important;
    }

    .safety-header-subtitle {
        font-size: 14px !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Safety card grid */
    .safety-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    /* Each card */
    .safety-card {
        padding-bottom: 20px !important;
    }

    .safety-card img {
        height: 180px !important;
    }

    .safety-card h3 {
        font-size: 18px !important;
        margin: 15px 15px 6px !important;
    }

    .safety-card p {
        font-size: 14px !important;
        margin: 0 15px 5px !important;
    }
}





/* =============================
   UNIVERSAL HERO MOBILE FIX
============================= */
@media (max-width: 992px) {

    .hero-about, 
    .hero-services,
    .hero-business,
    .hero-products,
    .hero-projects {
        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        padding-top: 60px !important;
        padding-bottom: 40px !important;

        background-size: cover !important;
        background-position: center !important;

        margin: 0 !important;
        overflow: hidden !important;
    }

    .hero-about-box,
    .hero-services-box,
    .hero-business-box,
    .hero-products-box,
    .hero-projects-box {
        position: relative !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;

        width: 92% !important;
        max-width: 92% !important;
        margin: 0 auto !important;

        padding: 22px !important;
        border-radius: 18px !important;
        background: rgba(0,0,0,0.45) !important;
        border: 1px solid rgba(255,255,255,0.30) !important;

        overflow: hidden !important;
    }

    .hero-about-box h1,
    .hero-services-box h1,
    .hero-business-box h1,
    .hero-products-box h1,
    .hero-projects-box h1 {

        font-size: 32px !important;
        color: #fff !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        line-height: 1.2 !important;
    }

    .hero-about-box p,
    .hero-services-box p,
    .hero-business-box p,
    .hero-products-box p,
    .hero-projects-box p {

        font-size: 15px !important;
        line-height: 1.55 !important;
        padding: 0 8px !important;
        color: #fff !important;
        text-align: left !important;
        word-break: break-word !important;
    }
}


/* ============================================================
   ABOUT PAGE — MOBILE FINAL PREMIUM
============================================================ */

/* =============== GLOBAL ANTISCROLL (Hp – 1024px) =============== */
@media (max-width:992px) {

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}




/* ============================================================
   2. WORK GRID (CARD)
============================================================ */

/* === DESKTOP (default) — 3 kolom === */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* === TABLET BESAR (769px – 1024px) — 2 kolom === */
@media (max-width:992px) and (min-width:769px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px !important;
    }
}




/* ====== CARD FIX SMALL SCREENS ====== */
@media (max-width:992px) {

    .work-container {
        width: 92% !important;
        margin: 0 auto !important;
    }

    .work-card {
        width: 100% !important;
        max-width: 100% !important;

        padding: 18px !important;
        border-radius: 14px !important;
    }

    .work-card img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }


    .work-content h3 { font-size: 18px !important; }
    .work-content p  { font-size: 14px !important; }


    /* OUR WORK */
    .work-section {
        padding: 70px 0 80px !important;
    }

    
    .work-card {
        padding: 18px !important;
    }



}

/* === TABLET KECIL (600px – 768px) — 2 kolom === */
@media (max-width:768px) and (min-width:600px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}


/* === HP (0px – 599px) — 1 kolom === */
@media (max-width:599px) {
    .work-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .hero-left h1 { font-size: 24px !important; }

    .hero-left p  { font-size: 13px !important; }

    .work-card { padding: 16px !important; }


}



