@import "src/scss/core/variables";
@import "src/scss/core/mixin";
.site-main {
    display: flex;
    justify-content: space-between;
    margin: toRem(29) auto;
    min-height: 100vh;
    max-width: calc($size__desktop-width + $size__sticky-bar-width);
    @include large {
        margin: toRem(29) toRem(33);
    }
    @include desktop {
        margin: toRem(29);
        max-width: 992px;
    }
    @include tablet {
        margin: 0;
        padding: toRem(12);
    }
}

.sticky-sidebar {
    display: flex;
    align-self: flex-start;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: toRem(29);
    min-height: calc(100vh - toRem(48));
    flex-basis: toRem(323);
    flex-grow: 1;
    z-index: 999;
    @include small {
        flex-basis: toRem(200);
    }
    @include tablet {
        display: none;
    }
    .nav__main {
        li {
            transform: translate3d(-2000px, 0, 0);
            &:nth-child(1) {
                transition: 1s ease-in-out transform;
            }
            &:nth-child(2) {
                transition: 1.3s ease-in-out transform;
            }
            &:nth-child(3) {
                transition: 1.6s ease-in-out transform;
            }
            &:nth-child(4) {
                transition: 1.9s ease-in-out transform;
            }
            &:nth-child(5) {
                transition: 2.2s ease-in-out transform;
            }
            &:nth-child(6) {
                transition: 2.5s ease-in-out transform;
            }
            &:nth-child(7) {
                transition: 2.8s ease-in-out transform;
            }
        }
    }
    &.loading {
        .nav__main {
            li {
                transform: translate3d(0, 0, 0);
            }
        }
    }
}

.header-brand {
    display: flex;
    justify-content: space-between;
    margin-bottom: toRem(196);
    @include tablet {
        align-items: center;
    }
    @include mobile {
        margin-bottom: toRem(174);
        &.mb-med {
            margin-bottom: toRem(130);
        }
    }
    .logo {
        transform: translate3d(-999px, 0, 0);
        transition: 1s ease-in-out transform;
    }
    &.loading {
        .logo {
            transform: translate3d(0, 0, 0);
        }
    }
}

.nav {
    &__main {
        li {
            &.menu-item {
                a {
                    color: var(--color-text);
                    &:hover,
                    &:focus {
                        color: rgba(30, 30, 30, 0.50);
                    }
                }
            }
            &.current-menu-item {
                a {
                    color: rgba(30, 30, 30, 0.50);
                }
            }
        }
    }
    &__lang {
        a {
            color: var(--color-brand);
        }
    }
}

.back {
    margin-top: toRem(100);
    &:before {
        background: url("/app/themes/mp-wbpk-gutenberg/src/images/arrow-right.svg") no-repeat right 0;
        background-size: toRem(14);
        content: '';
        display: inline-block;
        height: toRem(14);
        width: toRem(19);
        min-width: 1.8rem;
        transform: scale(-1, 1);
        transition: .3s ease-in-out all;
    }
    &:hover,
    &:active,
    &:focus {
        color: var(--color-text-hover);
        &:before {
            background-position: center left toRem(5);
            filter: invert(60%);
        }
    }
    em {
        display: inline-block;
        margin-left: 1rem;
    }
}

.header-text {
    width: 50%;
    @include tablet {
        display: none;
    }
}

.logo {
    a {
        display: flex;
        gap: toRem(20);
        img {
            align-self: flex-start;
            @include mobile {
                max-width: toRem(33.81);
            }
        }
    }
    .site-name {
        color: var(--color-text);
        &.no-tagline {
            max-width: toRem(100);
            word-break: normal;
        }
    }
    p {
        margin: 0;
    }
}

.hamburger-menu {
    display: none;
    width: toRem(18);
    z-index: 999;
    @include tablet {
        position: relative;
        display: flex;
        height: toRem(13.26);
        width: toRem(18.17);
        z-index: 999;
        span {
            background-color: var(--color-black);
            height: toRem(3.82);
            width: toRem(5.39);
            opacity: 1;
            position: absolute;
            transition: .25s ease-in-out;
            transform: rotate(0deg);
            &:nth-child(1) {
                left: 0;
                top: 0;
            }
            &:nth-child(2) {
                left: toRem(6.39);
                top: 0;
            }
            &:nth-child(3) {
                right: 0;
                top: 0;
            }
            &:nth-child(4) {
                left: 0;
                bottom: 0;
            }
            &:nth-child(5) {
                left: toRem(6.39);
                bottom: 0;
            }
            &:nth-child(6) {
                right: 0;
                bottom: 0;
            }
        }
    }
    &.active {
        position: fixed;
        right: toRem(20);
        span {
            &:nth-child(2) {
                left: toRem(4);
                top: toRem(4.82);
            }
            &:nth-child(5) {
                left: toRem(8.82);
                top: toRem(4.82);
            }
        }
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    left: -100%;
    &.active {
        background-color: var(--color-mobile-menu-bg);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: toRem(12);
        position: fixed;
        overflow: scroll;
        bottom: 0;
        left: 0;
        top: 0;
        right: 0;
        height: 100vh;
        z-index: 2;
        .logo {
            transform: translate3d(-999px, 0, 0);
            transition: .2s ease-in-out all;
            a {
                display: inline-flex;
                margin-bottom: toRem(44);
            }
            .site-name {
                align-self: flex-start;
                max-width: toRem(150);
                @include mobile {
                    max-width: toRem(90);
                }
            }
        }
        .nav__main {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-left: toRem(52);
            li.menu-item {
                transform: translate3d(-2000px, 0, 0);
                align-self: flex-start;
                a {
                    font-size: toRem(24.53);
                }
                &:nth-child(1) {
                    transition: .3s ease-in-out all;
                }
                &:nth-child(2) {
                    transition: .5s ease-in-out all;
                }
                &:nth-child(3) {
                    transition: .7s ease-in-out all;
                }
                &:nth-child(4) {
                    transition: .9s ease-in-out all;
                }
                &:nth-child(5) {
                    transition: 1.1s ease-in-out all;
                }
                &:nth-child(6) {
                    transition: 1.3s ease-in-out all;
                }
                &:nth-child(7) {
                    transition: 1.5s ease-in-out all;
                }
            }
        }
        &.loading {
            .logo {
                transform: translate3d(0, 0, 0);
            }
            .nav__main {
                li {
                    transform: translate3d(0, 0, 0);
                }
            }
        }
    }
}

.mobile-menu-bottom {
    .header-text {
        @include tablet {
            display: flex;
            margin-bottom: toRem(50);
            margin-left: toRem(52);
        }
    }
    .nav__lang {
        margin-left: toRem(52);
    }
    .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
        top: -100%;
    }
}

.cky-btn-revisit-wrapper {
    display: none !important;
}