/****************************
 * Desktop Menu
****************************/
/* STICKY HEADER */
.site-nav--desktop {
    position:fixed; top:0; left:0; right:0; z-index:30;
    background:var(--twc-color-primary);
    transition:var(--twc-transition);
}
.site-nav--row__inner {
    height:var(--twc-header-height); margin:0 -35px;
    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 separator */
.scroll-up:not(.scroll-top) .site-nav--row__inner,
.scroll-bottom .site-nav--row__inner {height:var(--twc-header-height-sticky);}
.scroll-up:not(.scroll-top) .desktop-menu.bottom,
.scroll-bottom .desktop-menu.bottom {padding:20px 0 10px;}
.scroll-up:not(.scroll-top) .desktop-menu.bottom ul.sub-menu:before,
.scroll-bottom .desktop-menu ul.sub-menu:before {top:15px;}
.scroll-up:not(.scroll-top) .desktop-menu.bottom ul.sub-menu,
.scroll-bottom .desktop-menu.bottom ul.sub-menu {padding-top:25px;}
.scroll-up:not(.scroll-top) .desktop-menu.bottom ul.menu > li[class*="has-child"]:hover ul.sub-menu:before,
.scroll-bottom .desktop-menu.bottom ul.menu > li[class*="has-child"]:hover ul.sub-menu:before {height:calc(100% - 15px);}


/* LOGO */
.nav-logo-link {display:block; height:52px;}
.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:21px; position:relative;}
.nav-hamburger--lines i {
    position:absolute; left:0;
    display:block; width:100%; height:3px; 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; width:calc(100% - 8px); left:8px;}
.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; width:100%; left:0;}
.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; letter-spacing:.05em;}
.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; justify-content:flex-end;}
.desktop-menu ul.menu > li:not(:last-child) {margin-right:40px;}
.desktop-menu ul.menu > li > a {font-weight:400; color:rgba(255, 255, 255, .6);}
.desktop-menu ul.menu > li[class*="current"] > a {font-weight:500;}
.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 > Lv1 has submenu */
.desktop-menu ul.menu > li[class*="has-child"] > a:after {
    content:"\e931"; font-family:var(--twc-font-icomoon); font-size:.5em;
    margin-left:5px; display:inline-block;
    transition:transform .3s ease;
}
.desktop-menu ul > li:last-child > ul.sub-menu {left:auto; right:-20px;}
.desktop-menu ul.menu > li[class*="has-child"]:hover > a:after {transform:rotate(180deg);}

/* DESKTOP MENU > Lv2 */
.desktop-menu ul.sub-menu {
    position:absolute; top:100%; left:-20px; min-width:calc(100% + 40px); z-index:5;
    padding:40px 0 10px; pointer-events:none;
    transition:var(--twc-transition-slow);
}
.desktop-menu ul.sub-menu:before {
    content:""; display:block;
    width:100%; height:0; background:#fff;
    position:absolute; top:30px; left:0;
    transition:var(--twc-transition-slow);
}
.desktop-menu ul.sub-menu > li {opacity:0; transform:translateY(-25px);}
.desktop-menu ul.sub-menu > li > a {
    display:block; padding:5px 20px; color:var(--twc-color-primary);
    white-space:nowrap; font-weight:400;
}
.desktop-menu ul.sub-menu > li[class*="current"] > a {font-weight:500;}
.desktop-menu ul.sub-menu > li > a:hover,
.desktop-menu ul.sub-menu > li > a:focus,
.desktop-menu ul.sub-menu > li[class*="current"] > a {color:var(--twc-color-secondary);}

/* 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;
}
.desktop-menu ul.menu > li[class*="has-child"]:hover ul {pointer-events:auto;}
.desktop-menu ul.menu > li[class*="has-child"]:hover ul.sub-menu:before {
    height:calc(100% - 30px);
    box-shadow:0 0 10px 5px rgba(0, 0, 0, .1);
}
@keyframes slide-fade-in {
    0% {transform:translateY(-25px); opacity:0;}
    100% {transform:translateY(0); opacity:1;}
}

/* White menu item*/
body.white-bottom-menu-item .desktop-menu.bottom ul.menu > li > a {color:#fff;}
body.white-bottom-menu-item .desktop-menu.bottom ul.menu > li > a:hover {color:var(--twc-color-secondary);}

/* Top menu */
.desktop-menu.top ul.menu > li > a {font-size:var(--twc-size-14); font-weight:300;}
.desktop-menu.top ul.menu > li[class*="current"] > a {font-weight:500;}
.desktop-menu.top ul.sub-menu {padding-top:16px;}
.desktop-menu.top ul.sub-menu:before {top:6px;}
.desktop-menu.top ul.menu > li[class*="has-child"]:hover ul.sub-menu:before {height:calc(100% - 6px);}

/* Line */
.desktop-menu.bottom {padding:38px 0 25px; position:relative; transition:var(--twc-transition);}
.desktop-menu.bottom:before {
    content:""; display:block;
    width:calc(100% + var(--twc-gap-side)); height:1px; background:rgba(255, 255, 255, .3);
    position:absolute; top:5px; left:0;
}

/* Custom menu home page */
@media only screen and (min-width:1181px) {
    body.home.scroll-top .site-nav--desktop {
        background:rgba(0, 0, 0, 0);
        border-bottom:1px solid rgba(255, 255, 255, .3);
    }
}


/****************************
 * Desktop Menu - Responsive
****************************/
@media only screen and (max-width:1439px) {
    .site-nav--row__inner {margin:0;}
    .nav-logo-link {height:40px;}
    .desktop-menu.bottom ul.menu > li:not(:last-child) {margin-right:15px;}
}
@media only screen and (max-width:1180px) {
    .nav-logo-link {height:30px;}
}
