@use "../utilities" as *;

/**----------------------------------------
    START: Service CSS
----------------------------------------*/

.service-section{
    background-color: var(--cp-color-bg-2);
}

.service-img{
    height: 400px;
    max-width: 450px;
    height: 100%;
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.service-tab-wrap{
    @include breakpoint(md){
        flex-direction: column-reverse;
        row-gap: 30px;
    }
}

.service-tab{
    .service-nav{
        border: none;
        @include flex-vertical-center;
        flex-direction: column;
        justify-content: start;
        align-items: baseline;
        padding: 0;
        .nav-item{
            width: 100%;
            &:not(:last-of-type){
                margin-bottom: 40px;
            }
            .nav-link{
                color: var(--cp-color-common-white);
                font-family: var(--cp-ff-heading);
                background-color: transparent;
                border: none;
                padding: 0;
                font-size: 60px;
                font-weight: 500;
                text-transform: uppercase;
                position: relative;
                line-height: 1;
                padding-left: 115px;
                padding-bottom: 30px;
                width: 100%;
                text-align: left;
                border-bottom: 1px solid var(--cp-color-border-1);
                @include breakpoint(lg){
                    font-size: 40px;
                }
                @include breakpoint(sm){
                    padding-left: 50px;
                    font-size: 26px;
                }
                &:before{
                    background-color: var(--cp-color-theme-primary);
                    content: "";
                    width: 0;
                    height: 1px;
                    position: absolute;
                    bottom: -1px;
                    left: 0;
                    @include transition(all 0.3s ease-in-out);
                }
                &.active{
                    &:before{
                        width: 100%;
                    }
                }
                span{
                    font-family: "NewYork", sans-serif;
                    font-weight: 200;
                }
                .number{
                    font-family: var(--cp-ff-heading);
                    font-size: 20px;
                    font-weight: 500;
                    position: absolute;
                    top: 10px;
                    left: 0;
                    @include breakpoint(sm){
                        font-size: 16px;
                        top: 0;
                    }
                }
            }
        }
    }
}


// Service 2

.service-section-2{
    background-color: var(--cp-color-bg-2);
}

.service-carousel{
    padding-bottom: 80px;
    .swiper-pagination{
        bottom: 0;
        .swiper-pagination-bullet{
            background-color: var(--cp-color-theme-primary);
            opacity: 1;
            &:not(:last-of-type){
                margin-right: 10px;
            }
            &.swiper-pagination-bullet-active{
                position: relative;
                &:before{
                    background-color: transparent;
                    content: "";
                    width: 20px;
                    height: 20px;
                    border: 1px solid var(--cp-color-theme-primary);
                    border-radius: 50%;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }
            }
        }
    }
}

.service-item-2{
    background-color: var(--cp-color-bg-1);
    height: 420px;
    padding: 40px 50px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    @include breakpoint(lg){
        padding: 40px 20px;
    }
    .icon{
        img{
            @include transition (all 0.3s ease-in-out);
        }
    }
    &:before{
        background-color: var(--cp-color-theme-primary);
        content: "";
        width: 100%;
        height: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -1;
        @include transition (all 0.3s ease-in-out);
    }
    .service-content{
        .title{
            font-size: 36px;
            line-height: 1;
            margin-bottom: 15px;
            font-weight: 500;
            text-transform: uppercase;
            @include transition (all 0.3s ease-in-out);
            a{
                @include transition (all 0s ease-in-out);
            }
            span{
                font-family: "NewYork", sans-serif;
                font-weight: 400;
            }
        }
        p{
            font-size: 18px;
            margin-bottom: 0;
            @include transition (all 0.3s ease-in-out);
            br{
                display: none;
            }
        }
    }
    
    &:hover{
        &:before{
            height: 100%;
        }
        .icon{
            img{
                filter: invert(1) brightness(0);
            }
        }
        .service-content{
            .title{
                color: var(--cp-color-text-black);
                a{
                    color: var(--cp-color-text-black);
                }
            }
            p{
                color: var(--cp-color-text-black);
            }
        }
    }
}


// Service 3

.service-item-3{
    background-color: var(--cp-color-bg-2);
}


// Service Details

.service-details-img{
    height: 650px;
    @include breakpoint(sm){
        height: 400px;
    }
    .img-overlay{
        background-color: var(--cp-color-bg-1);
    }
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.service-details-content{
    .details-title{
        font-size: 64px;
        font-weight: 500;
        margin-top: 30px;
        margin-bottom: 20px;
        @include breakpoint(md){
            font-size: 50px;
        }
        @include breakpoint(sm){
            font-size: 40px;
        }
        span{
            font-family: "NewYork", sans-serif;
        }
    }
    p{
        font-size: 17px;
        font-weight: 400;
    }
    .service-details-item-wrap{
        position: relative;
        margin: 0;
        margin-top: 60px;
        margin-bottom: 60px;
        @include breakpoint(md){
            margin-top: 40px;
        }
        &>div{
            padding: 0;
        }
        .line{
            background-color: rgba(255, 255, 255, 0.4);
            width: 100%;
            height: 1px;
            position: absolute;
            top: 0;
            left: 0;
            @include breakpoint(md){
                display: none;
            }
        }
        .service-details-item{
            margin-top: 45px;
            position: relative;
            @include breakpoint(md){
                margin-top: 0;;
            }
            .dot-shape{
                background-color: var(--cp-color-common-white);
                height: 10px;
                width: 10px;
                border-radius: 50%;
                position: absolute;
                top: -49.5px;
                left: 0;
                @include breakpoint(md){
                    display: none;
                }
            }
            .number{
                font-family: var(--cp-ff-heading);
                font-size: 40px;
                font-weight: 500;
            }
            .title{
                font-size: 24px;
                font-weight: 500;
                margin: 15px 0;
            }
            p{
                color: #E7E7E7;
                font-size: 16px;
                margin-bottom: 0;
            }
        }
    }
    .details-title-2{
        font-size: 40px;
        font-weight: 500;
        margin-bottom: 20px;
        @include breakpoint(sm){
            font-size: 30px;
        }
    }
    .service-details-thumb-wrap{
        @include flex-vertical-center;
        column-gap: 24px;
        margin: 40px 0;
        @include breakpoint(sm){
            flex-direction: column;
            row-gap: 24px;
        }
        .service-details-thumb{
            height: 300px;
            .img-overlay{
                background-color: var(--cp-color-bg-1);
            }
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

/* !END: Service CSS */
