/****************************
 * Desktop Menu
****************************/
/* STICKY HEADER */
.site-nav--desktop {
    position:fixed; top:0; left:0; right:0; z-index:30;
    transition:var(--twc-transition);
}
.site-nav--desktop-inner {
    height:var(--twc-header-height); padding:35px 0 0;
    transition:var(--twc-transition);
}

/* Scroll middle down: hide header */
html:not(.accordion-moving) .scroll-middle.scroll-down:not(.scroll-bottom) .site-nav--desktop {opacity:0; transform:translateY(-100%);}

/* Scroll middle up: show header with background */
.scroll-up:not(.scroll-top) .site-nav--desktop,
.scroll-bottom .site-nav--desktop,
html.menu-open .site-nav--desktop {
    background:rgba(0, 0, 0, .9); backdrop-filter:blur(5px);
}
.scroll-up:not(.scroll-top) .site-nav--desktop-inner,
.scroll-bottom .site-nav--desktop-inner {
    height:var(--twc-header-height-sticky); padding:0;
}

/* LOGO */
.nav-logo-link {display:block; height:74px;}
.nav-logo-link img {height:100%; width:auto;}

/* HAMBURGER MENU */
button.nav-hamburger {padding:5px 0; background:none;}
.nav-hamburger--lines {display:block; width:30px; height:20px; position:relative;}
.nav-hamburger--lines i {
    position:absolute; left:0;
    display:block; width:100%; height:2px; background:#fff;
    transition:var(--twc-transition);
}
.nav-hamburger--lines i:nth-child(1) {top:0;}
.nav-hamburger--lines i:nth-child(2) {top:9px;}
.nav-hamburger--lines i:nth-child(3) {bottom:0;}
.menu-open .nav-hamburger--lines i:nth-child(1) {transform:rotate(45deg); top:9px;}
.menu-open .nav-hamburger--lines i:nth-child(3) {transform:rotate(-45deg); bottom:9px;}
.menu-open .nav-hamburger--lines i:nth-child(2) {width:0; left:50%;}

/* DESKTOP MENU */
.desktop-menu ul {list-style:none; margin:0;}
.desktop-menu ul > li {padding:0; position:relative;}
.desktop-menu ul > li > a {text-decoration:none; text-transform:uppercase; font-size:var(--twc-size-15);}
.desktop-menu ul.sub-menu ul.sub-menu {display:none;}

/* DESKTOP MENU > Lv1 */
.desktop-menu ul.menu {display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
.desktop-menu ul.menu > li:not(:last-child) {margin-right:35px; padding-right:35px;}
.desktop-menu ul.menu > li:not(:last-child):before {
    content:""; display:block;
    width:5px; height:5px; border-radius:50%; background:#fff;
    position:absolute; top:50%; right:-2px; transform:translateY(-50%);
}
.desktop-menu ul.menu > li > a {
    color:rgba(255, 255, 255, .6); letter-spacing:.1em; font-weight:300;
    position:relative; padding-bottom:10px;
}
.desktop-menu ul.menu > li > a:before {
    font-family:var(--twc-font-icomoon); content:"\e951";
    position:absolute; left:50%; transform:translateX(-50%); bottom:-12px;
    font-size:36px; line-height:1; color:var(--twc-color-secondary); opacity:0; pointer-events:none;
}

.desktop-menu ul.menu > li[class*="current"] > a,
.desktop-menu ul.menu > li > a:hover,
.desktop-menu ul.menu > li > a:focus {color:#fff;}
.desktop-menu ul.menu > li[class*="current"] > a:before {opacity:1;}

/* DESKTOP MENU > Lv1 has submenu */
.desktop-menu ul.menu > li[class*="has-child"] > a:after {
    content:"\e931"; font-family:var(--twc-font-icomoon); font-size:.7em;
    margin-left:7px; display:inline-block;
    transition:transform .3s ease;
}
.desktop-menu ul.menu > li[class*="has-child"]:hover > a:after {transform:rotate(180deg);}

/* DESKTOP MENU > Lv2 */
.desktop-menu li:not(:hover) > ul.sub-menu {opacity:0; visibility:hidden; pointer-events:none;}
.desktop-menu ul.sub-menu {
    position:absolute; top:100%; left:-20px; z-index:10;
    background:#fff; box-shadow:0 0 10px 5px rgba(0, 0, 0, .1);
    padding:15px 0; min-width:calc(100% + 40px); border-radius:10px;
    transition:var(--twc-transition);
}
.desktop-menu ul > li:last-child > ul.sub-menu {left:auto; right:0;}
.desktop-menu ul.sub-menu > li > a {
    display:block; padding:5px 20px;
    white-space:nowrap; font-weight:400; letter-spacing:.05em;
}
.desktop-menu ul.sub-menu > li > a:hover,
.desktop-menu ul.sub-menu > li[class*="current"] > a {color:var(--twc-color-secondary);}
.desktop-menu ul.sub-menu > li[class*="current"] > a {font-weight:600;}

/* DESKTOP MENU > submenu animation (search submenuAnimationDelay to edit stagger time) */
.desktop-menu ul.menu > li[class*="has-child"]:hover > ul.sub-menu > li {
    animation:slide-fade-in .4s ease forwards;
    opacity:0;
}
@keyframes slide-fade-in {
    0% {transform:translate(-15px); opacity:0;}
    100% {transform:translate(0); opacity:1;}
}

/* Top menu */
.site-nav-col.top {margin-bottom:10px;}
.site-nav-col.top .desktop-menu ul.menu > li:not(:last-child) {padding:0; margin-right:40px;}
.site-nav-col.top .desktop-menu ul.menu > li:not(:last-child):before {opacity:0;}

/* Custom menu for page 404 & contact */
body.style-menu-custom .desktop-menu ul.menu > li > a {color:var(--twc-color-white);}
body.style-menu-custom .desktop-menu ul.menu > li > a:hover {color:var(--twc-color-secondary);}

/****************************
 * Desktop Menu - Responsive
****************************/
@media only screen and (max-width:1180px) {
    .site-nav--desktop-inner {padding-top:0;}

    /* Logo */
    .nav-logo-link {height:40px;}
}