.nav__list {
    display: flex;
    height: 100%;
    flex-direction: row;
    /* space between menu items */
    gap: 2vw;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: flex-end;
    color: grey;
    font-weight: 400;
}

.nav__list a {
    color: #222;
    text-decoration: none;
}

.nav__list a.active {
    color: black;
    /* or any highlight color */

    font-weight: 600;
}


.nav-toggle {
    /* Hide hamburger by default */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;

    position: relative;
    z-index: 1001;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    background: black;
    display: block;
    z-index: 9999;
    height: 2px;
    width: 2rem;
    border-radius: 2px;

    left: 0;
    transition: all 0.3s;
}

.nav-toggle__icon {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle__icon::before {
    content: '';
    top: -0.7rem;
    position: absolute;
    right: 0;
}

.nav-toggle__icon::after {
    content: '';
    top: 0.7rem;
    /* <-- Add this line */
    position: absolute;
}



.site-head.big .nav-toggle__icon,
.site-head.big .nav-toggle__icon::before,
.site-head.big .nav-toggle__icon::after {
    background: white;
    /* or any color you prefer when scrolled */
}



.nav-toggle__icon::before {
    content: '';
    top: -0.7rem;
    position: absolute;
}

.nav-toggle__icon::after {
    content: '';
    /* top: 0.7rem; */
    position: absolute;
}

.nav-toggle.open .nav-toggle__icon {
    background: transparent;

}

.nav-toggle.open .nav-toggle__icon::before {
    transform: translateY(0.7rem) rotate(45deg);
    background: black;
}

.nav-toggle.open .nav-toggle__icon::after {
    transform: translateY(-0.7rem) rotate(-45deg);
    background: black;
}




.site-head.big .nav__list a {

    color: white;
    /* or any color you prefer when scrolled */
    transition: color 0.3s;
}

.nav__list a:hover {
    color: black;
    /* gold, or any color you prefer */
    text-decoration: underline;
}


@media (max-width: 799px) {
    .nav-toggle {
        display: block;
        z-index: 9999;
    }


    .nav__list {
        position: fixed;
        left: 0;

        display: flex;
        padding: 8rem 3rem 8rem 5rem;
        margin: 0;
        /* top: -40px; */
        width: 100%;
        height: fit-content;


        /* height: 100vh; */
        background: white;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;

        gap: 2rem;

        z-index: 3000;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        box-sizing: border-box;
        transition: none;
    }

    .nav__list.open {
        top: 0;
        opacity: 1;
        pointer-events: auto;
        transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }



    .nav__list li {

        font-size: var(--font-size-large);
        text-align: right;
    }

    .site-head.big .nav__list a {

        color: black;
        /* or any color you prefer when scrolled */
        transition: color 0.3s;
        text-align: right;
    }
}