:root {
    --primary-color: #003399;
    --secondary-color: #003399;
    --text-color:#222222;
}

#nav-close {
    display:none;
    z-index:2;
}

.sub-menu-toggle {
    display:none;
}

@media screen and (max-width:1280px){

    body.nav-open {
        overflow:hidden;
        height:100vh;
    }

    .nav-open .nav-primary {
        height: calc(100vh - 56px);
        overflow: auto !important;
        padding-bottom: 50px;
    }

    .menu-icon, .phone-icon {
        display:block;
        transition:.6s ease all;
    }

    .nav-primary {
        position:absolute;
        top:0;
        bottom:0;
        right:-100%;
        left:100%;
        width:100%;
        min-height:100vh;
        background:rgba(255,255,255,0.85);
        transition:.6s ease all;
        z-index: 2;
        transform:none;
        padding:10rem 3rem 3rem;
    }

    .nav-open .nav-primary {
        left:0;
    }

    #nav-close {
        position:absolute;
        right:3rem;
        top: 3rem;
        font-size:3rem;
        font-weight:bold;
        display: block;
        cursor:pointer;
    }

    .nav-primary ul {
        position:relative;
        list-style:none;
        width:100%;
        margin:0;
        padding:0;
        display: block; 
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .nav-primary ul > li {
        display: block;
        position:relative;
        max-width: 100%;
        width: 100%;
    }


  
    .nav-primary .sub-menu {
        display: none;
        width:100%;
        position: inherit;
        background-color: unset;
        top: 0;
        box-shadow: unset;
        overflow-Y: scroll;
    }

    .sub-menu-open > .sub-menu {
        display:block;
    }

    .menu-item-has-children > .sub-menu-toggle {
        display:flex;
    }

    .sub-menu-toggle {
        position:absolute;
        right: .8rem;
        top: .7rem;
        width: 3rem;
        height:3rem;
        justify-content: center;
        align-items: center;
    }
  
    .sub-menu-toggle:after {
        content: "\25BE"; /* down arrow */
        content: "\0002B"; /* plus */
        color: var(--text-color);
        font-size: 24px;
        font-family: Arial, sans-serif;
        position: absolute;
        
    }
  
    /* This will change the symbol for all nested divs */
    .plus .sub-menu-toggle:after {
        content: ""\0002B""; /* plus */
        font-size:3rem;
    }

    .plus .expanded > .sub-menu-toggle:after {
        content: "\02013"; /* minus */
        font-size:3rem;
    }

    .arrow .sub-menu-toggle:after {
        content:"\25BC"; /* down arrow outline */
    }

    .arrow .expanded > .sub-menu-toggle:after {
        content:"\25B5"; /* down arrow outline */
    }
  
    .nav-primary .sub-menu {
        padding-left: 1.4rem;
        left:auto;
        overflow:visible;
    }
    .nav-primary .sub-menu li a {
        
    }

    .nav-primary .sub-menu .sub-menu {
        padding-left: 2rem;
        left:auto;
    }
  
    .sub-menu .menu-item-has-children.sub-menu-open .sub-menu {
        left:auto;
        top: 1rem;
    }

    .phone-icon {
        width:38px;
        display:block;
        top:50%;
        transform:translateY(-88%);
    }

}