/*=========================================================
    FILE : assets/css/layout/navbar.css
    PROJECT : HealthSurance
=========================================================*/

/*=========================================================
    HEADER
=========================================================*/

.header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .container {
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*=========================================================
    LOGO
=========================================================*/

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo h2 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.logo span {
    color: var(--secondary);
}

/*=========================================================
    NAVIGATION
=========================================================*/

.navbar ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar ul li {
    list-style: none;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    transition: .3s ease;
    position: relative;
}

/* Underline Animation */

.navbar ul li a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;

    height: 3px;

    background: var(--primary);

    border-radius: 50px;

    transition: .3s;

}

.navbar ul li a:hover {

    color: var(--primary);

}

.navbar ul li a:hover::after {

    width: 100%;

}

/* Active Menu */

.navbar ul li a.active {

    color: var(--primary);

}

.navbar ul li a.active::after {

    width: 100%;

}

/*=========================================================
    RIGHT SIDE
=========================================================*/

.nav-actions {

    display: flex;

    align-items: center;

    gap: 15px;

}

/*=========================================================
    LOGIN BUTTON
=========================================================*/

.login-btn {

    padding: 12px 28px;

    border-radius: 50px;

    background: var(--primary);

    color: #ffffff;

    font-weight: 600;

    transition: .3s;

}

.login-btn:hover {

    background: var(--primary-dark);

    transform: translateY(-3px);

}

/*=========================================================
    OUTLINE BUTTON
=========================================================*/

.quote-btn {

    padding: 12px 28px;

    border: 2px solid var(--primary);

    color: var(--primary);

    border-radius: 50px;

    transition: .3s;

}

.quote-btn:hover {

    background: var(--primary);

    color: #ffffff;

}

/*=========================================================
    SCROLLED STATE
=========================================================*/

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/*=========================================================
    HAMBURGER BUTTON
=========================================================*/

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background .2s;
}

.hamburger:hover { background: var(--bg); }

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 4px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/*=========================================================
    RESPONSIVE
=========================================================*/

@media(max-width:992px){

    .hamburger { display: flex; }

    .header .container {
        height: 75px;
        flex-wrap: wrap;
        position: relative;
        align-items: center;
    }

    .navbar {
        display: none;
        width: 100%;
        order: 3;
        padding: 0 0 20px;
    }

    .navbar.nav-open { display: block; }

    .navbar ul {
        flex-direction: column;
        gap: 0;
    }

    .navbar ul li a {
        display: block;
        padding: 12px 5px;
        border-bottom: 1px solid var(--border);
    }

    .navbar ul li:last-child a { border-bottom: none; }

    .nav-actions {
        display: flex;
        gap: 10px;
        margin-left: auto;
        margin-right: 10px;
    }

}

@media(max-width:576px){

    .logo h2 { font-size: 1.5rem; }

    .login-btn,
    .quote-btn { padding: 10px 18px; font-size: .9rem; }

}