/*----------------------------------------------------------*/
/* NAVIGATION BAR */
/*----------------------------------------------------------*/

/* walter white */
#walter_white {
    position: fixed;
    z-index: 97;
    /*background-color: var(--dark-text-color);*/
    background: linear-gradient(var(--dark-text-color), rgba(0,0,0,0));
    height: 0;
    width: 100%;
    transition: .2s;
}

#walter_white.active {
    height: 80px;
}

/* desktop buttons */
.desktop-nav {
    position: fixed;
    z-index: 98;
    width: 90%;
    left: 5%;
    top: 5%;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    transition: .7s;
}

.desktop-nav.active {
    top: 1%;
    opacity: .1;
}

.desktop-nav:hover {
    opacity: 1;
}

.desktop-nav-logo-container {
    display: flex;
    align-items: center !important;
    cursor: pointer;
}

.desktop-nav-logo-container #logo_large {
    height: 40px;
}

.desktop-nav-logo-container #logo_small {
    height: 32px;
}

.desktop-nav-logo-container .nav-logo-large {
    opacity: 1;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

.desktop-nav-logo-container .nav-logo-large[style*="opacity: 1"] {
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.desktop-nav-logo-container .nav-logo-small {
    position: absolute;
    opacity: 0;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

.desktop-nav-logo-container .nav-logo-small[style*="opacity: 1"] {
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}

.desktop-nav-buttons {
    position: relative;
    z-index: 95;
    opacity: 1;
    transition: opacity 0.7s ease-out;
}

.desktop-nav-buttons-container {
    display: flex;
    align-items: center !important;
    position: relative;
}

.desktop-nav-buttons-container ul {
    margin: 0 -30px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-nav-buttons-container ul li {
    display: inline-block;
    padding: 0 30px;
}

.desktop-nav-buttons-container ul li a {
    color: var(--text-color-light);
    cursor: pointer;
    text-transform: lowercase;
    font-family: var(--font-primary);
    font-size: 0.93em;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: .5;
    transition: .3s;
}

.desktop-nav-buttons-container ul li a:hover {
    opacity: 1;
}

.desktop-nav .changed {
    color: var(--dark-text-color);
}

.desktop-nav-buttons-container .nav-second-color {
    color: var(--light-text-color);
    font-weight: 400;
}

.nav-apply-button {
	overflow: hidden;
    margin-top: 5px;
    padding: 14px 30px 12px 30px;
    border-radius: 6px;
	color: var(--light-text-color);
    background: var(--gradient-color);
    transition: all .3s;
    display: inline-block;
    opacity: .5;
}

.desktop-nav-buttons:hover {
    opacity: 1 !important;
    pointer-events: auto;
}

.desktop-nav-buttons .call-cta {
    opacity: 1 !important;
}

.desktop-nav-buttons .link .mask-cta {
    border-bottom: solid 1px var(--text-color-light);
}  

.desktop-nav-hr-container {
    position: absolute;
    z-index: 90;
    display: flex;
    align-items: center;
    right: 0%;
    width: 100%;
    height: 30px;
    opacity: 1;
    margin-left: auto;
    transform-origin: right; 
    /* Transition WITH delay when returning to opacity 1 (after hover ends) */
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s; /* Added delay here */
}

.desktop-nav-buttons:hover ~ .desktop-nav-hr-container {
    opacity: 0;
    pointer-events: none;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s; /* No delay here */
}

.desktop-nav-hr {
    width: 100%;
    height: 1px;
    background-color: var(--text-color-light);
    opacity: .5;
}



/* mobile */
nav {
    position: fixed;
    z-index: 95;
    display: none;
    background: linear-gradient(var(--dark-text-color), rgba(0,0,0,0));
    width: 100%;
    height: 100px;
}

nav .nav-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin-left: 5%;
    margin-top: 5%;
}

nav .nav-logo img {
    height: 45px;
}

nav .opener img {
    height: 18px;
    cursor: pointer;
    transition: .2s ease-in-out;
}

nav #green-hamburger {
    display: none;
}

nav #green-hamburger.active {
    display: block;
}

nav #white-hamburger.active {
    display: none;
}

.sidenav {
    height: 100%;
    width: 80%;
    position: fixed;
    top: 0;
    z-index: 98;
    backdrop-filter: blur(10px);
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateX(-100%);
    background: var(--global-color-dark);
}

.sidenav .sidenav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.sidenav .mobile-nav-logo img {
    height: 40px;
}
  
.sidenav .closebtn {
    cursor: pointer;
    z-index: 97;
    opacity: 0;
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
  
.closebtn img {
    color: white;
    height: 24px;
    cursor: pointer;
}
  
.nav-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    margin-left: 1.5rem;
    font-family: var(--font-quaternary);
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 35px;
}

.nav-content a {
    list-style: none;
    color: var(--text-color-light);
    font-weight: 200 !important;
    letter-spacing: 1px;
    font-size: 1.8em;
    text-transform: lowercase;
    opacity: 0.6;
    text-decoration: none;
    color: var(--text-color-light);
    transition: .3s;
    border-bottom: solid 0.5px var(--text-color-light);
    padding-bottom: 15px;
    width: 93%;
}

.nav-content a:hover {
    opacity: 0.7;
}

.nav-content li .button {
    font-size: 0.9em;
}

.socmed {
    position: absolute;
    bottom: 0;
    width: 90%;
    margin-left: 1.5rem;
    display: flex;
    gap: 45px;
    align-items: center;
    padding: 1.5rem 0;
}

.socmed a {
    font-family: var(--font-quaternary);
    color: var(--text-color-light);
    opacity: 0.5;
    font-weight: 200;
    font-size: 1.2rem;
}



/* TABLET OPTIMIZATION */
@media (max-width: 1000px) {
    .desktop-nav {
        display: none !important;
    }

    nav {
        display: block;
    }
}



/* MOBILE OPTIMIZATION */
@media (max-width: 500px) {

}