/* THE NAVIGATION (DESKTOP & MOBILE) */

#logo-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#navigation {
    position: absolute;
    right: 0;
    top: 0;
    width: 42vw;
    min-height: 100vh;
    min-height: 100svh;
    /* background: rgba(222, 196, 137, .85); */
    background: rgb(251, 251, 251);
    /* background: rgba(255, 255, 255, 0.9); */
    /* background: #dec489; */
    /* box-shadow: 0 0 45px rgba(0, 0, 0, .3); */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* transform: translateX(35vw); */
    transform: translate(80%, 0) rotate(0);
    transition: all 800ms ease-in-out;
    /* border-radius: 8vw 0 0 25vw; */
    border-radius: 18vw;
    border-left: 15px solid transparent;
    box-shadow: -15vw 0 0 transparent;
}

#navigation h3 {
    font-size: 2.5rem;
    font-weight: 300;
}

#navigation.open {
    transform: translateX(0);
    border-color: #0e1d3d;
    background: rgba(222, 196, 137, .9);
    /* background: rgba(14, 29, 61, 0.9); */
    border-radius: 15vw 0 0 15vw;
    box-shadow: 0 0 0 #0e1d3d;
}

#home.nav-open {
    width: 42vw;
    border-radius: 15vw 0 0 15vw;
    transform: translateX(8vw);
    border-color: transparent;
    
}

ul#nav {
    width: 100%;
    position: relative;
}

#navigation p {
    color: #111;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 400;
}

#navigation li, #navigation button {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 400;
}

#navigation li:last-child {
    margin-bottom: 0;
}

#navigation li a, 
#navigation li button:visited,
#navigation li button {
    display: inline-block;
    background: none;
    text-decoration: none;
    color: #0e1d3d;
    transition: all 600ms ease;
    padding: .6rem 1.5rem;
    border-radius: 3px;
}

#navigation li a:hover,
#navigation li button:hover {
    color: rgba(255, 255, 255, 0.7);
    background: #0e1d3d;
}

#navigation button {
    padding: 0;
    border: 0;
    margin-bottom: 0;
    font-family: inherit;
    cursor: pointer;
}

#nav-toggle {
    /* background: var(--color-beige); */
    background: transparent;
    height: 3rem;
    border-radius: 5px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #0e1d3d;
    z-index: 1000;
    cursor: pointer;
    transition: all 500ms ease;
    transition-delay: 500ms;
    padding: .5rem;
    transform: scale(1.1);
}

#nav-toggle span {
    height: 2px;
    width: 2.2rem;
    background: black;
    margin-bottom: .5rem;
    transition: all 300ms ease-in-out;
}

#nav-toggle span:last-of-type {
    margin-bottom: 0;
}

#nav-toggle.open {
    padding: 1rem;
}

#nav-toggle.white span {
    margin-bottom: -2px;
}

#nav-toggle.white span:nth-child(1) {
    transform: rotate(-45deg);
    transform-origin: center;
}

#nav-toggle.white span:nth-child(2) {
    display: none;
}

#nav-toggle.white span:nth-child(3) {
    transform: rotate(45deg);
    transform-origin: center;
}

ul#services {
    /* background: rgba(255, 255, 255, 0.2); */
    /* box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); */
    border-top: 0.2px solid var(--color-beige);
    border-bottom: 0.2px solid var(--color-beige);
    position: relative;
    top: 0;
    width: 95%;
    max-width: 40rem;
    right: -50%;
    transform: translateX(-50%);
    margin: 1rem 0 1rem 0;
    line-height: 1;
    transition: all 2s ease;
    display: none;
    justify-content: center;
    flex-wrap: wrap;
}

ul#services.show-menu {
    display: flex;
    transform: translateX(-50%) translateY(0);
}

ul#services li {
    color: #111;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    padding: .65rem;
    margin-bottom: -1rem;
}

#service-position {
    position: relative;
}

@media (max-width:850px) {

    #navigation {
        background: rgba(249, 243, 233, 0);
        min-width: calc(100vw - 2rem);
        transform: translateX(100vw);
        min-height: 0;
        padding: 2rem 2.5rem 2.5rem 2.5rem;
        top: calc(3rem - 2.5vw);
        right: 1rem;
        border-radius: 7px;
        border-left: 70vw solid #0e1d3d;
        
    }

    #navigation.open {
        transform: translateX(0);
        background: rgba(249, 243, 233, .96);
        border-radius: 7px;
        box-shadow: 2px 15px 35px rgba(0, 0, 0, .5);
        border: 0;
    }

    #navigation p {
        color: #333;
        font-weight: 400;
    }

    #navigation h3 {
        font-size: 1.6rem;
        text-align: left;
        width: 100%;
        line-height: 0.5;
        margin-bottom: 2rem;
    }

    #navigation li a,
    #navigation li button,
    #navigation li button:visited,
    ul#services li a {
        text-align: center;
        font-size: 1.2rem;
        border: 1px solid #333;
        padding: .75rem 1rem;
        transition: all 500ms ease-in-out;
        width: 100%;
        max-width: 1000px;
        display: block;
        color: black;
        font-weight: 400;
    }

    ul#services {
        margin-top: 1rem;
        max-width: none;
    }

    ul#services.show-menu {
        flex-direction: column;
        clip-path: inset(0 0 0 0);
    }

    ul#services li a {
        border: 0;
        padding: 0;
        margin-bottom: 1rem;
    }

    ul#services li:last-of-type a {
        margin-bottom: 0;
    }

    #navigation li {
        margin-bottom: 1.2rem;
    }

    #navigation li a:hover,
    #navigation li button:hover {
        border-color: #bf9a53;
        color: #bf9a53;
        background: none;
    }

    #nav-toggle {
        background: transparent;
    }

}

/* END OF NAVIAGATION CSS */