/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 57px;
    white-space: nowrap;
    z-index: 1000;
    background-color: rgba(250, 250, 250, 0.2);
    backdrop-filter: saturate(200%) blur(10px);
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
}

.nav-list {
    flex-wrap: nowrap;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-list .item a {
    text-decoration: none;
    color: var(--nav-text-color, #0b6f82);
    transition: color 0.5s ease, box-shadow 0.5s ease;
    padding: 5px;
}

.nav-list > li.current-menu-item a {
    border-bottom: 4px solid #d8553b;
    padding-bottom: 5px;
    width: 100%;
}


.nav-list > li:not(.active) a:hover {
    box-shadow: inset 200px 0 0 0 #0b6f82;
    color: #F4F0EA;
    transition: ease 0.5s;
}


.nav-list > li.active a {
    text-shadow: none;
    box-shadow: none;
    color: #0b6f82;
}

.nav-list > li.active a:hover {
    text-shadow: none;
    box-shadow: none;
    /*color: #F4F0EA;*/
}

/*body.home .nav-list > li.active a:hover {*/
/*    color: #0b6f82; !*homepage exception temporary*!*/
/*}*/
/*body.home .navbar.scrolled .nav-list .item a {*/
/*    color: #F4F0EA;*/
/*}*/

/*body.home .navbar.scrolled .nav-list > li:not(.active) a:hover {*/
/*    color: #F4F0EA;*/
/*}*/


.navbar.scrolled .nav-list .item a {
    color: var(--nav-text-color, #0b6f82);
}

/*hambo toggle mobile version*/
#hambo-toggle {
    display: none;
}

.hambo-container {
    z-index: 10;
    margin: 10px -10px 0 0;
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hambo,
.hambo::before,
.hambo::after {
    display: block;
    background-color: #0b6f82;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.hambo::before {
    content: '';
    margin-top: -8px;
}

.hambo::after {
    content: '';
    margin-top: 8px;
}

#hambo-toggle:checked + .hambo-container .hambo::before {
    margin-top: 0;
    transform: rotate(405deg);
}

#hambo-toggle:checked + .hambo-container .hambo {
    background: rgba(0, 0, 0, 0);
}

#hambo-toggle:checked + .hambo-container .hambo::after {
    margin-top: 0;
    transform: rotate(-405deg);
}


@media (max-width: 760px) {
    .navbar {

    }

    .hambo-container {
        margin-top: 0;
        display: flex;
        height: 100%;
        width: 30px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }


    .nav-list {
        position: absolute;
        top: 0;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 0;
        background-color: rgba(250, 250, 250, 0.8);
        backdrop-filter: saturate(200%) blur(10px);
        padding: 0;
    }

    #hambo-toggle:checked ~ .nav-list {
        padding: 35px 0 0 35px;
    }

    #hambo-toggle ~ .nav-list li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #hambo-toggle ~ .nav-list li a {
        opacity: 0;
    }

    #hambo-toggle:checked ~ .nav-list li {
        font-size: 1.3rem;
        height: 3.5em;
        padding: 0.5em 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #hambo-toggle:checked ~ .nav-list li a {
        opacity: 1;
    }

    .nav-list > li {
        display: flex;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: #0b6f82;
    }

    .nav-list > li.current-menu-item.active a {
        /*background-color: rgba(255, 219, 155, 0.4);*/
        /*color: #0f4792;*/
        padding: 6px;
    }
}


