@use '../utils' as *;

/*----------------------------------------*/
/*  2.10 Offcanvas
/*----------------------------------------*/

.mt-offcanvas {
    &-logo {
        & img {
            width: 168px;
        }
    }

    position: fixed;
    z-index: 9999;
    width: 400px;
    right: 0;
    top: 0;
    padding: 50px 40px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(100% + 80px));
    background: var(--mt-common-black) none repeat scroll 0 0;
    transition: .4s;
    z-index: 9999;
    scrollbar-width: none;

    transition: 0.45s ease-in-out, opacity 0.45s ease-in-out;
    z-index: 9999;
    scrollbar-width: none;
    overflow-y: scroll;

    @media only screen and (max-width: 400px) {
        width: 100%;
        padding: 35px 30px;
    }

    &-open {
        opacity: 1;
        visibility: visible;
        @include transform(translateX(0));
    }

    &-close-toggle {
        font-size: 29px;
        color: var(--mt-common-white);
        transition: .3s;

        &:hover {
            transform: rotate(90deg);
        }
    }

    &-header {
        @media #{$lg,$md,$xs} {
            margin-bottom: 40px;
        }
    }

    &-title {
        font-size: 35px;
        color: var(--mt-common-white);
    }

    &-content {
        & p {
            color: var(--mt-common-white);
        }
    }

    &-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: 10px;
    }

    &-info {
        & span {
            color: var(--mt-common-white);
            display: block;
            margin-bottom: 5px;

            &:hover {
                color: var(--mt-theme-2);
            }
        }
    }

    &-sm-title {
        font-size: 25px;
        margin-bottom: 15px;
        color: var(--mt-common-white);
    }

    &-social {
        & a {
            display: inline-block;
            text-align: center;
            width: 40px;
            height: 40px;
            line-height: 39px;
            border-radius: 40px;
            color: var(--mt-common-black);
            background: var(--mt-common-white);
            border: 1px solid rgba(2, 11, 24, 0.1);
            font-size: 14px;

            &:hover {
                background-color: var(--mt-theme-2);
                color: var(--mt-common-black);
                border-color: var(--mt-theme-2);
            }
        }
    }

    &-overlay {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;
        width: 100%;
        height: 100%;
        visibility: hidden;
        opacity: 0;
        transition: 0.45s ease-in-out;
        background: rgba(24, 24, 24, 0.438);

        &-open {
            opacity: 0.7;
            visibility: visible;
        }
    }

}




// Mobile menu
.mt-offcanvas-menu ul {
    list-style: none;

    & li {
        position: relative;

        &>a {
            padding: 10px 0;
            display: block;
            font-size: 16px;
            font-weight: 500;
            color: var(--mt-common-white);

            &:hover {
                color: var(--mt-theme-2);
            }
        }

        &:not(:last-child) {
            &>a {
                border-bottom: 1px solid var(--mt-border-1);
            }
        }

        &.active {
            &>a {
                color: var(--mt-theme-2);
            }

            &>.mt-menu-close {
                border-color: var(--mt-theme-2);
                color: var(--mt-common-black);
                background-color: var(--mt-theme-2);

                & i {
                    @include transform(rotate(90deg));
                }
            }
        }

        & .sub-menu {
            display: none;
            padding-left: 20px;
        }
    }
}

.mt-menu-close {
    position: absolute;
    right: 0;
    top: 6.5px;
    border: 1px solid var(--mt-border-1);
    height: 30px;
    width: 30px;
    text-align: center;
    font-size: 12px;
    line-height: 29px;

    &:hover {
        background-color: var(--mt-theme-2);
        color: var(--mt-common-black);
        border-color: var(--mt-theme-2);
    }

    & i {
        @include transition(.3s);
    }
}