/* ==========================================================
   JACK RENTAL MOBIL
   HEADER.CSS v2
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Plus Jakarta Sans",sans-serif;
    background:#fff;
    color:#1F2937;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    display:block;
    max-width:100%;
}

.container{
    width:100%;
    max-width:1280px;
    margin:auto;
    padding:0 20px;
}

/* HEADER */

#header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    transition:.35s ease;
    background:rgb(255, 255, 255);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(0,0,0,.05);
}

#header.scrolled{
    background:#fff;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.header-wrapper{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:52px;
}

.navbar ul{
    display:flex;
    gap:38px;
    align-items:center;
    list-style:none;
}

.navbar a{

    position:relative;

    font-size:15px;

    font-weight:600;

    color:#1F2937;

    transition:.3s;

}
.navbar a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    border-radius:10px;
    background:#0F62FE;
    transition:.3s;
}

.navbar a:hover,
.navbar a.active{
    color:#0F62FE;
}

.navbar a.active::after{
    width:100%;
}

.navbar a:hover::after{
    width:100%;
}

.header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.btn-whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:#25D366;
    color:#fff;
    height:48px;
    padding:0 22px;
    border-radius:50px;
    font-weight:700;
    transition:.3s;
}

.btn-whatsapp:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(37,211,102,.3);
}

.hamburger,
.mobile-close{
    width:48px;
    height:48px;
    border:none;
    background:#f3f5f8;
    border-radius:14px;
    cursor:pointer;
    display:none;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.hamburger:hover,
.mobile-close:hover{
    background:#0F62FE;
    color:#fff;
}

/* MOBILE */

.mobile-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:9998;
}

.mobile-overlay.active{
    opacity:1;
    visibility:visible;
}

.mobile-menu{
    position:fixed;
    top:0;
    right:0;
    width:340px;
    max-width:100%;
    height:100vh;
    background:#fff;
    z-index:9999;
    display:flex;
    flex-direction:column;
    transform:translateX(100%);
    transition:transform .35s ease;
    box-shadow:-20px 0 45px rgba(0,0,0,.12);
}

.mobile-menu.active{
    transform:translateX(0);
}

.mobile-menu-header{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid #eee;
}

.mobile-logo img{
    height:46px;
}

.mobile-menu ul{
    list-style:none;
    padding:18px 22px;
}

.mobile-menu li a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 0;
    font-weight:600;
    border-bottom:1px solid #f2f2f2;
    transition:.25s;
}

.mobile-menu li a:hover,
.mobile-menu li a.active{
    color:#0F62FE;
    padding-left:8px;
}

.mobile-menu-footer{
    margin-top:auto;
    padding:22px;
}

.mobile-menu-footer .btn-whatsapp{
    width:100%;
}

/* RESPONSIVE */

@media(max-width:992px){

    .navbar{
        display:none;
    }

    .hamburger,
    .mobile-close{
        display:flex;
    }

}

@media(min-width:993px){

    .mobile-menu,
    .mobile-overlay{
        display:none;
    }

}

@media(max-width:576px){

    .container{
        padding:0 16px;
    }

    .header-wrapper{
        height:74px;
    }

    .logo img{
        height:46px;
    }

    .btn-whatsapp{
        padding:0 18px;
        font-size:14px;
    }

    .mobile-menu{
        width:100%;
    }

}
