@use '../utils' as *;

/*=============================
    	17. Footer
===============================*/
.footer {
    &__area {
        position: relative;
        z-index: 1;
        &-two {
            background: var(--tg-color-dark-2);
            position: relative;
            z-index: 1;
        }
        &-three {
            position: relative;
            z-index: 1;
            &::before {
                content: "";
                position: absolute;
                left: -240px;
                bottom: -200px;
                width: 520px;
                height: 520px;
                @include border-radius(50%);
                background: #7838FF;
                filter: blur(125px);
                opacity: .1;
                z-index: -1;

            }
        }
        &-four {
            background: var(--tg-theme-secondary);
            position: relative;
            z-index: 1;
        }
        &-five {
            padding-top: 88px;
            margin-top: -88px;
        }
    }
    &__top {
        padding: 140px 0 100px;
        @media #{$xs} {
            padding: 100px 0 60px;
        }
        & .row * {
            &:nth-child(2) {
                & .footer__widget {
                    margin-left: 40px;
                    @media #{$xs} {
                        margin-left: 0;
                    }
                }
            }
            &:nth-child(4) {
                & .footer__widget {
                    margin-left: 30px;
                    @media #{$lg} {
                        margin-left: 0;
                    }
                }
            }
        }
        &-two {
            padding: 140px 0 100px;
            @media #{$xs} {
                padding: 100px 0 60px;
            }
            & .row * {
                &:nth-child(2) {
                    & .footer__widget {
                        margin-left: 40px;
                        @media #{$md} {
                            margin-left: 0;
                        }
                    }
                }
                &:nth-child(4) {
                    & .footer__widget {
                        margin-left: 80px;
                        @media #{$lg} {
                            margin-left: 0;
                        }
                    }
                }
            }
        }
        &-three {
            padding: 75px 0 60px;
            & .row * {
                &:nth-child(2) {
                    & .footer__widget {
                        margin-left: 30px;
                        @media #{$lg} {
                            margin-left: 0;
                        }
                    }
                }
                &:nth-child(4) {
                    & .footer__widget {
                        margin-left: 50px;
                        @media #{$lg} {
                            margin-left: 0;
                        }
                    }
                }
            }
        }
    }
    &__logo {
        margin-bottom: 25px;
        &-two {
            margin-bottom: 30px;
        }
    }
    &__content {
        & p {
            margin-bottom: 25px;
            font-size: 15px;
        }
        &-two {
            & p {
                margin-bottom: 25px;
            }
        }
        &-three {
            & p {
                color: var(--tg-color-gray-4);
            }
        }
    }
    &__contact {
        & .list-wrap {
            & li {
                @include flexbox();
                align-items: baseline;
                gap: 15px;
                color: var(--tg-color-gray-4);
                line-height: 1.6;
                margin-bottom: 15px;
                & i {
                    font-size: 24px;
                    color: var(--tg-color-gray-4);
                    transform: translateY(7px);
                }
                & a {
                    color: var(--tg-color-gray-4);
                    &:hover {
                        color: var(--tg-theme-primary);
                    }
                }
            }
        }
        &-two {
            & p {
                margin-bottom: 20px;
            }
            & .list-wrap {
                & li {
                    @include flexbox();
                    align-items: center;
                    gap: 15px;
                    font-size: 16px;
                    margin-bottom: 20px;
                    &:last-child {
                        margin-bottom: 0;
                    }
                    & i {
                        font-size: 24px;
                        color: var(--tg-theme-primary);
                    }
                    & a {
                        color: var(--tg-body-color);
                        &:hover {
                            color: var(--tg-theme-primary);
                        }
                    }
                }
            }
        }
    }
    &__widget {
        margin-bottom: 40px;
        &-title {
            margin-bottom: 30px;
            font-size: 20px;
            font-weight: 600;
            &-two {
                color: var(--tg-color-white-default);
            }
        }
        &-link {
            & li {
                margin-bottom: 10px;
                &:last-child {
                    margin-bottom: 0;
                }
                & a {
                    color: var(--tg-body-color);
                    position: relative;
                    font-size: 16px;
                    &::before {
                        content: "";
                        position: absolute;
                        left: 0;
                        bottom: -1px;
                        width: 100%;
                        height: 1px;
                        background: currentColor;
                        transform-origin: right top;
                        transform: scale(0, 1);
                        transition: transform 0.4s cubic-bezier(0.74, 0.72, 0.27, 0.24);
                    }
                    &:hover {
                        color: var(--tg-theme-primary);
                        &::before {
                            -webkit-transform-origin: left top;
                            -ms-transform-origin: left top;
                            transform-origin: left top;
                            -webkit-transform: scale(1, 1);
                            -ms-transform: scale(1, 1);
                            transform: scale(1, 1);
                        }
                    }
                }
            }
            &-two {
                & li {
                    color: var(--tg-color-gray-4);
                    & a {
                        color: var(--tg-color-gray-4);
                    }
                }
            }
        }
    }
    &__instagram {
        & .list-wrap {
            @include flexbox();
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            & a {
                & img {
                    @include border-radius(10px);
                }
            }
        }
    }
    &__newsletter {
        & span {
            display: block;
            margin-bottom: 20px;
        }
        &-form {
            position: relative;
            & input {
                width: 100%;
                @include border-radius(100px);
                background: #F4F6FC;
                padding: 15px 60px 15px 25px;
                height: 54px;
            }
            & button {
                width: 48px;
                height: 48px;
                position: absolute;
                right: 4px;
                top: 50%;
                transform: translateY(-50%);
                background: var(--tg-theme-primary);
                color: var(--tg-color-white-default);
                border: none;
                @include border-radius(50%);
                &:hover {
                    background: var(--tg-theme-secondary);
                }
            }
        }
        &-two {
            & span {
                color: var(--tg-color-gray-4)
            }
        }
    }
    &__social {
        & .list-wrap {
            @include flexbox();
            align-items: center;
            gap: 12px;
            & li {
                & a {
                    width: 40px;
                    height: 40px;
                    @include flexbox();
                    align-items: center;
                    background: var(--tg-color-gray-8);
                    @include border-radius(50%);
                    color: var(--tg-body-color);
                    justify-content: center;
                    & svg {
                        width: 16px;
                        height: 16px;
                    }
                    &:hover {
                        background: var(--tg-theme-primary);
                        color: var(--tg-color-white-default);
                    }
                }
            }
        }
        &-two {
            & .list-wrap {
                justify-content: flex-end;
                @media #{$xs} {
                    justify-content: center;
                }
            }
        }
        &-three {
            & .title {
                display: block;
                font-size: 14px;
                font-weight: 500;
                margin-bottom: 10px;
            }
            & .list-wrap {
                & li {
                    & a {
                        background: var(--tg-color-white-default);
                        border: 1px solid #ADADAD;
                        &:hover {
                            background: var(--tg-theme-primary);
                            color: var(--tg-color-white-default);
                            border-color: var(--tg-theme-primary);
                        }
                    }
                }
            }
        }
        &-four {
            & .list-wrap {
                & li {
                    & a {
                        color: var(--tg-color-white-default);
                        border: 2px solid #494A67;
                        background: transparent;
                        &:hover {
                            border-color: var(--tg-theme-primary);
                        }
                    }
                }
            }
        }
    }
    &__bottom {
        background: var(--tg-color-white-default);
        border-top: 1px solid var(--tg-border-8);
        padding: 40px 0;
        &-two {
            border-top: 1px solid #232349;
            padding: 33px 0;
            @media #{$xs} {
                padding: 25px 0;
            }
        }
        &-three {
            border-top: 1px solid #D7DBEB;
            padding: 40px 0;
            @media #{$xs} {
                padding: 25px 0;
            }
        }
        &-four {
            & .copyright__content-two {
                @media #{$md} {
                    margin-bottom: 15px;
                }
            }
            & .footer__social-two {
                & .list-wrap {
                    @media #{$md} {
                        justify-content: center;
                    }
                }
            }
        }
        &-five {
            background: #040534;
            padding: 42px 0;
            @media #{$xs} {
                padding: 28px 0;
            }
        }
        &-logo {
            @media #{$xs} {
                text-align: center;
                margin-bottom: 20px;
            }
            &-two {
                @media #{$md} {
                    text-align: center;
                    margin-bottom: 15px;
                }
            }
        }
    }
    &__inquiry {
        padding: 100px 0 65px;
        border-bottom: 1px solid #141543;
        &-content {
            @include flexbox();
            align-items: center;
            gap: 30px 50px;
            @media #{$lg} {
                gap: 30px;
            }
            @media #{$md} {
                gap: 20px;
                flex-wrap: wrap;
                text-align: center;
                margin-bottom: 20px;
            }
            & .title {
                color: var(--tg-color-white-default);
                font-size: 40px;
                margin-bottom: 0;
                text-transform: capitalize;
                font-weight: 300;
                width: 41%;
                flex: 0 0 auto;
                @media #{$md} {
                    width: 100%;
                }
                & span {
                    font-weight: 600;
                    display: block;
                }
            }
            & p {
                color: var(--tg-color-gray-4);
                margin-bottom: 0;
                font-weight: 500;
                text-transform: capitalize;
            }
        }
        &-btn {
            @media #{$md} {
                text-align: center !important;
            }
        }
    }
    &__shape {
        &-wrap {
            & img {
                position: absolute;
                z-index: -1;
                &:nth-child(1) {
                    right: 0;
                    top: 0;
                }
                &:nth-child(2) {
                    left: 0;
                    bottom: 0;
                }
                &:nth-child(3) {
                    right: 4%;
                    bottom: 14px;
                    @media #{$xs} {
                        right: 5%;
                        bottom: 60px;
                        max-width: 100px;
                    }
                }
            }
            &-two {
                & img {
                    position: absolute;
                    z-index: -1;
                    &:nth-child(1) {
                        left: 0;
                        top: 0;
                        @media #{$xl} {
                            max-width: 200px;
                        }
                    }
                    &:nth-child(2) {
                        bottom: 0;
                        left: 0;
                        mix-blend-mode: luminosity;
                        opacity: .5;
                        @media #{$xl} {
                            max-width: 130px;
                        }
                    }
                    &:nth-child(3) {
                        right: 0;
                        bottom: 0;
                        mix-blend-mode: luminosity;
                        opacity: .3;
                        @media #{$xl} {
                            max-width: 160px;
                        }
                    }
                }
            }
            &-three {
                & img {
                    position: absolute;
                    z-index: -1;
                    &:nth-child(1) {
                        bottom: 0;
                        left: 0;
                        mix-blend-mode: luminosity;
                        opacity: .5;
                        @media #{$xl} {
                            max-width: 130px;
                        }
                    }
                    &:nth-child(2) {
                        right: 0;
                        bottom: 0;
                        mix-blend-mode: luminosity;
                        opacity: .3;
                        @media #{$xl} {
                            max-width: 160px;
                        }
                    }
                }
            }
            &-four {
                & img {
                    position: absolute;
                    z-index: -1;
                    &:nth-child(1) {
                        left: 0;
                        top: 120px;
                        @media #{$xl} {
                            top: 25px;
                        }
                    }
                    &:nth-child(2) {
                        left: 0;
                        bottom: 0;
                    }
                    &:nth-child(3) {
                        right: -96px;
                        bottom: 270px;
                        @media #{$xl} {
                            bottom: 140px;
                        }
                    }
                    &:nth-child(4) {
                        right: 15%;
                        bottom: 28%;
                        @media #{$md} {
                            display: none;
                        }
                    }
                }
            }
        }
    }
}

.copyright__content {
    text-align: center;
    & p {
        margin-bottom: 0;
        font-size: 15px;
    }
    &-two {
        @media #{$xs} {
            text-align: center;
            margin-bottom: 25px;
        }
        & p {
            color: #878BA8;
            margin-bottom: 0;
            font-size: 15px;
        }
    }
    &-three {
        & p {
            margin-bottom: 0;
            font-size: 15px;
            text-align: right;
            @media #{$xs} {
                text-align: center;
            }
        }
    }
    &-four {
        & p {
            margin-bottom: 0;
            font-size: 15px;
            text-align: center;
            color: #878BA8;
        }
    }
}