/*======================================
        OUR SERVICES SECTION
======================================*/

.services-section{
    width:100%;
    padding:50px 0;
    background:#fcfbfb;
    overflow:hidden;
}

.services-section .container{
    width:min(1180px,90%);
    margin:auto;
}

/*======================================
            HEADING
======================================*/

.services-heading{
    text-align:center;
    max-width:800px;
    margin:0 auto 55px;
}

.services-heading h2{
    font-size:46px;
    font-weight:800;
    color:#0b2d02;
    display:inline-block;
    position:relative;
    margin-bottom:18px;
}

.services-heading h2::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:-12px;
    width:75px;
    height:4px;
    background:#69A41A;
    border-radius:20px;
}

.services-heading p{
    margin-top:28px;
    font-size:17px;
    line-height:1.9;
    color:#666;
}

/*======================================
            GRID
======================================*/

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,300px);
    justify-content:center;   
    gap:25px;
}

/*======================================
            CARD
======================================*/

.service-card{

    position:relative;

    width:100%;

    max-width:330px;

    height:300px;

    background:#fff;

    border-radius:4px;

    overflow:hidden;

    border:1px solid #ededed;

    cursor:pointer;

    transition:.45s ease;

    box-shadow:0 8px 22px rgba(0,0,0,.08);

}

.service-card:hover{

    transform:translateY(-10px);

    box-shadow:0 18px 35px rgba(0,0,0,.18);

}

/*======================================
        FRONT CONTENT
======================================*/

.card-front{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:28px 24px;

    background:#fff;

    z-index:1;

}

/*======================================
             ICON
======================================*/

.service-icon{

    width:70px;

    height:70px;

    border-radius:50%;

    background:#eef5e5;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:18px;

    transition:.35s;

}

.service-icon i{

    font-size:32px;

    color:#69A41A;

}

/*======================================
            TEXT
======================================*/

.card-front h3{

    font-size:18px;

    font-weight:700;

    color:#222;

    line-height:1.45;

    margin-bottom:15px;

}

.card-front p{

    font-size:15px;

    color:#666;

    line-height:1.8;

}

/*======================================
        GREEN HOVER LAYER
======================================*/

.card-hover{

    position:absolute;

    left:4px;

    right:4px;

    top:4px;

    bottom:4px;

    background:#69A41A;

    border:4px solid #fff;

    box-sizing:border-box;

    transform:translateY(100%);

    transition:.45s cubic-bezier(.22,.61,.36,1);

    z-index:2;

}

.service-card:hover .card-hover{

    transform:translateY(0);

}

/*======================================
        HOVER CONTENT
======================================*/

.hover-content{

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:28px 22px;

}

.card-hover .service-icon{

    background:rgba(255,255,255,.18);

}

.card-hover .service-icon i{

    color:#fff;

}

.card-hover h3{

    color:#fff;

    font-size:18px;

    line-height:1.45;

    margin:14px 0;

    font-weight:700;

}

.card-hover p{

    color:#fff;

    font-size:15px;

    line-height:1.8;

}


/*======================================
        ICON ANIMATION
======================================*/

.service-card:hover .card-front .service-icon{

    transform:scale(.90);

}

.service-card:hover .card-hover .service-icon{

    animation:iconPop .45s ease;

}

@keyframes iconPop{

    0%{

        transform:scale(.5);

        opacity:0;

    }

    100%{

        transform:scale(1);

        opacity:1;

    }

}

/*======================================
        SCROLL ANIMATION
======================================*/

.service-card{

    opacity:0;

    transform:translateY(60px);

}

.service-card.show{

    opacity:1;

    transform:translateY(0);

    transition:
    opacity .7s ease,
    transform .7s ease;

}

.service-card:nth-child(1){

    transition-delay:0s;

}

.service-card:nth-child(2){

    transition-delay:.15s;

}

.service-card:nth-child(3){

    transition-delay:.30s;

}

/*======================================
        TABLET
======================================*/

@media (max-width:991px){

.services-section{

    padding:70px 0;

}

.services-heading{

    margin-bottom:45px;

}

.services-heading h2{

    font-size:38px;

}

.services-heading p{

    font-size:16px;

}

.services-grid{

    grid-template-columns:repeat(2,1fr);

    gap:22px;

}

.service-card{

    max-width:320px;

    height:290px;

}

.card-front,
.hover-content{

    padding:24px 20px;

}

.service-icon{

    width:65px;

    height:65px;

}

.service-icon i{

    font-size:30px;

}

.card-front h3,
.card-hover h3{

    font-size:18px;

}

.card-front p,
.card-hover p{

    font-size:14px;

}

}

/*======================================
        MOBILE
======================================*/

@media (max-width:767px){

.services-section{

    padding:60px 0;

}

.services-heading{

    margin-bottom:38px;

}

.services-heading h2{

    font-size:32px;

}

.services-heading p{

    font-size:15px;

    line-height:1.8;

    margin-top:25px;

}

.services-grid{

    grid-template-columns:1fr;

    gap:22px;

}

.service-card{

    width:100%;

    max-width:340px;

    height:280px;

}

.card-front,
.hover-content{

    padding:22px 18px;

}

.service-icon{

    width:60px;

    height:60px;

    margin-bottom:16px;

}

.service-icon i{

    font-size:28px;

}

.card-front h3,
.card-hover h3{

    font-size:17px;

    margin-bottom:12px;

}

.card-front p,
.card-hover p{

    font-size:14px;

    line-height:1.7;

}

}

/*======================================
        SMALL MOBILE
======================================*/

@media (max-width:480px){

.services-heading h2{

    font-size:28px;

}

.services-heading p{

    font-size:14px;

}

.service-card{

    max-width:100%;

    height:270px;

}

.card-front,
.hover-content{

    padding:20px 16px;

}

.service-icon{

    width:55px;

    height:55px;

}

.service-icon i{

    font-size:24px;

}

.card-front h3,
.card-hover h3{

    font-size:16px;

}

.card-front p,
.card-hover p{

    font-size:13px;

}

}