nav > div {
    max-width: 40.375rem; 
    margin: 0 auto; 
    display: flex; 
    text-align: center; 
    justify-content: space-between; 
    font-size: 1rem;
    align-items: center;
    z-index: 1000;
}
        
#nav-container {
    overflow: hidden;
    padding-top: 2rem;
}

    
#nav-container .burger {
    display: none;
	margin-top: -20px;
}
    
#nav-container > a:nth-child(1) { order: 1; }
#nav-container > a:nth-child(2) { order: 2; }
#nav-container > a:nth-child(3) { order: 3; }
#nav-container > a:nth-child(4) { order: 4; }

#nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

#nav-container a:hover {
    border-bottom: 2px solid rgba(255,255,255,0.5);
}


.logo {
    background: url("../images/q-white.svg") no-repeat;
    background-size: cover;
    width: 33px;
    height: 44px;
    display: block;
    padding-bottom: 10px;
    order: 1
}

.logo:hover {
    opacity: 0.8;
}


#nav-container a.logo:hover {
    border-bottom: none;
}

/************** MEDIA QUERIES **************/

@media (min-width: 768px) {
    #nav-container.sticky-nav a.logo:hover {
        border-bottom: none;
    }

    #nav-container.sticky-nav a.logo {
        background: url("../images/q-blue.svg") no-repeat;
    }

    #nav-container.sticky-nav {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
    }
    
    .sticky-nav {
        padding-top: 0;
    }
    
    #nav-container.sticky-nav a:hover {
        border-bottom: 2px solid rgba(66,167,179,0.5);
    }
    
    #nav.sticky-nav {
        background: rgba(255,255,255,0.9);
        padding: 0 0 1rem 0;
    }
    
    #nav-container.sticky-nav > a {
        color: #42a7b3;
    }

}


@media (max-width: 768px) {
    #nav-container {
        padding-top: 1rem;;
    }
    
    nav > div {
        max-width: 48rem;
    }
    
    .logo {
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    
    #nav-container a:not(:nth-child(1)) { display: none; }
    #nav-container a.burger {
        display: flex;
        padding: 0 1rem 0 0;
        height: 30px;
        line-height: 1;
    }
    
    #nav-container a.burger:hover {
        border-bottom: none;
        background: none;
    }
    
    #nav-container.responsive a {
        display: block;
        text-align: left;
    }
    
    #nav-container {
        flex-wrap: wrap;
		background: rgba(66,167,179,0.5);
    }
    
    #nav-container > a:nth-child(1) { 
        order: -1; 
    }
    
    #nav-container > a:nth-child(2) {
        border-top: 1px solid rgba(243,239,234, 0.3);
    }
    
    #nav-container > a:nth-child(2),
    #nav-container > a:nth-child(3),
    #nav-container > a:nth-child(4) {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid rgba(243,239,234, 0.3);
    }
    
    #nav-container > a:hover {
        background: rgba(243,239,234, 0.15);
    }
    
    #nav-container > a:nth-child(3):hover {
        background: url("../images/q-white.svg") no-repeat;
    }
    
    #nav-container a.logo:hover {
        background-color: none;
    }
    
    #nav.sticky-nav {
        background: rgba(66,167,179,0.9);
    }