/*
==========
= HEADER =
==========
 */

/*Header stuff (Navigation, Logo etc.)*/

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    min-height: 70px;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
}
.scrolled_a_bit header {
    background-color: var(--grey);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.logo {
    position: absolute;
    left: 26px;
    top: 40px;
    z-index: 10;
    display: block;
    text-decoration: none;
    width: 180px;
    transition: all 0.2s ease-in-out;
}
.scrolled_a_bit .logo {
    top: 26px;
}
@media screen and (min-width: 768px) {
    .logo {
        left: 48px;
        top: 56px;
    }
}
@media screen and (min-width: 1680px) {
    .logo {
        left: 80px;
    }
}
@media screen and (min-width: 2000px) {
    .logo {
        top: 60px;
        left: 32px;
        width: 280px;
    }
}
/*Main-Nav*/

.main-nav-container {
    height: 0;
    z-index: 9;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.25s ease-in-out;
    background-color: var(--grey);
}

.nav_is_open .main-nav-container {
    position: fixed;
    visibility: visible;
    height: 100vh;
    opacity: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav-container {
        height: auto;
        max-height: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        background-color: transparent;
    }
}

.main-nav-container > .main-nav {
    padding: 0;
    position: relative;
    top: 180px;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    line-height: 48px;
    padding-left: 24px;
    padding-right: 24px;
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav-container > .main-nav {
        padding: 0;
        padding-top: 48px;
        position: absolute;
        top: auto;
        transform: none;
        display: inline-block;
        right: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 48px;
        transition: all 0.2s ease-in-out;
    }

    .scrolled_a_bit .main-nav-container > .main-nav {
        padding-top: 6px;
    }
}
@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav-ul {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 50px;
        height: auto;
        min-width: 624px;
    }
}
.main-nav li {
    list-style: none;
    position: relative;
}
.main-nav > ul > li {
    padding-right: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}
.main-nav > ul > li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav > ul > li:first-child {
        border-top: none;
    }
    .main-nav > ul > li {
        border-bottom: none;
        position: static;
    }
    .main-nav > ul {
        position: relative;
    }
}

.main-nav .dropper {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 56px;
    background-color: transparent !important;
}

.dropper-icn {
    display: block;
    position: relative;
    width: 100%;
    line-height: 0 !important;
    transition: all 0.2s ease-in-out;
}

.main-nav li.is_open .dropper-icn {
    transform: rotate(-180deg);
}

.main-nav a {
    display: block;
    padding: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

.cta-parent {
    border-bottom: none !important;
    margin-top: 40px;
    padding-right: 0 !important;
}
.cta-parent + .cta-parent {
    margin-top: 0;
}
.cta-parent > a {
    width: 100%;
}
@media screen and (min-width: 1220px) and (hover: hover) {
    .cta-parent {
        border-bottom: none !important;
        margin-top: 0;
        padding-right: 48px !important;
    }
    .cta-parent > a {
        width: auto;
    }
    .main-nav-ul > li > a {
        padding-bottom: 24px;
    }

    .scrolled_a_bit .main-nav .cta-parent > a {
        display: inline-block !important;
        padding: 6px 24px 4px !important;
        margin-top: 11px;
    }
}
@media screen and (min-width: 1680px) {
    .cta-parent {
        padding-right: 80px !important;
    }
}
@media (hover: hover) {
    .main-nav a:hover {
        color: var(--blue);
    }
}
/* 
.main-nav .current-menu-ancestor > a,
.main-nav .current-menu-item > a {
} 
*/

.main-nav .sub-menu {
    list-style: none;
    font-size: 14px;
    padding-left: 10px;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    padding-left: 0;
    margin-left: 0;
}
.main-nav .sub-menu a {
    position: relative;
    padding-top: 4px;
    padding-bottom: 5px;
    padding-left: 40px;
}
@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav .sub-menu a {
        line-height: 1;
    }
}
.main-nav .sub-menu a:before {
    content: "";
    width: 35px;
    height: 50px;
    position: absolute;
    display: block;
    background-image: url(../images/ui/nav-arrow.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 12px 20px;
    left: 0;
}
.main-nav li.is_open .sub-menu {
    max-height: 1000px;
    padding-bottom: 30px;
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .main-nav .sub-menu {
        height: auto;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0 24px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background-color: var(--white);
        color: var(--black);
        width: calc(100% - 200px);
        height: 298px;
        border-radius: 4px;
        padding-left: 32px;
        padding-right: 32px;
        padding-top: 34px;
        padding-bottom: 34px;
        height: auto;
    }

    .main-nav .sub-menu li {
        flex: 0 0 calc(50% - 12px);
        line-height: 24px;
        margin-bottom: 10px;
        font-weight: 700;
    }
    .main-nav .sub-menu li a {
        font-weight: 700;
    }
}

@media (hover: hover) and (min-width: 1220px) {
    .main-nav .dropper {
        display: none;
    }
    .main-nav > ul > .menu-item-has-children:hover > .sub-menu {
        max-height: 1000px;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
        box-shadow: 0px 2px 3px 2px rgba(0, 0, 0, 0.1);
    }
    .main-nav > ul > .menu-item-has-children > a:after {
        content: "";
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 15px 15px 15px;
        border-color: transparent transparent var(--white) transparent;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin-left: auto;
        margin-right: auto;
        transition: all 0.2s ease-in-out;
    }
    .main-nav > ul > .menu-item-has-children > a:before {
        content: "";
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: 28px;
        height: 3px;
        position: absolute;
        bottom: -1px;
        background-color: #fff;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        z-index: 1;
        border-radius: 2px;
        transition: all 0.2s ease-in-out;
    }
    .main-nav > ul > .menu-item-has-children:hover > a:after {
        opacity: 1;
        visibility: visible;
        -webkit-filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));
        filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));
    }
    .main-nav > ul > .menu-item-has-children:hover > a:before {
        opacity: 1;
        visibility: visible;
    }
    .menu-item-title {
        font-weight: 700;
        display: block;
        margin-bottom: 5px;
    }
    .menu-item-description {
        font-size: 14px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
        text-transform: none;
        display: block;
    }
}

/* Animate Menu Button */

@-webkit-keyframes menutop {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@keyframes menutop {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes menubottom {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-45deg);
    }
}

@keyframes menubottom {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-45deg);
    }
}

@-webkit-keyframes menutopstart {
    0% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes menutopstart {
    0% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@-webkit-keyframes menubottomstart {
    0% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes menubottomstart {
    0% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
.menu-button {
    z-index: 10;
    display: block;
    position: fixed;
    top: 24px;
    right: 10px;
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 24px 16px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.scrolled_a_bit .menu-button {
    top: 10px;
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .menu-button,
    .menu-button:hover {
        display: none;
    }
}

.menu-button:focus {
    background-color: transparent;
}

.nav-line {
    width: 32px;
    height: 2px;
    border-radius: 1px 0px 0px 0px;
    background-color: var(--white);
    left: 0;
    right: 0;
    margin: 0 auto;
    transform-origin: center center;
    transition: all 0.5s ease-in-out;
}

.line-top {
    position: absolute;
    top: 16px;
    -webkit-animation: menutopstart 0.5s forwards;
    animation: menutopstart 0.5s forwards;
}

.nav_is_open .line-top {
    top: calc(50% - 1px);
    -webkit-animation: menutop 0.5s forwards;
    animation: menutop 0.5s forwards;
}

.line-center {
    position: absolute;
    top: calc(50% - 1px);
    transition: opacity 0.2s ease-in-out 0.2s;
}

.nav_is_open .line-center {
    opacity: 0;
}

.line-bottom {
    position: absolute;
    bottom: 16px;
    -webkit-animation: menubottomstart 0.5s forwards;
    animation: menubottomstart 0.5s forwards;
}

.nav_is_open .line-bottom {
    bottom: calc(50% - 1px);
    -webkit-animation: menubottom 0.5s forwards;
    animation: menubottom 0.5s forwards;
}

.menu-item-description {
    display: none;
}

@media screen and (min-width: 1220px) and (hover: hover) {
    .menu-item-description {
        display: inline-block;
    }
}
