﻿/*==================================================
                    SERVICES
==================================================*/

.services {
    position: relative;
    padding: 110px 0;
    background: #FFFFFF;
    overflow: hidden;
}

    .services::before {
        content: "";
        position: absolute;
        width: 450px;
        height: 450px;
        background: rgba(200,155,60,.05);
        border-radius: 50%;
        top: -220px;
        left: -180px;
    }

    .services::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        background: rgba(8,17,31,.03);
        border-radius: 50%;
        bottom: -170px;
        right: -120px;
    }

/*==================================================
                SECTION TITLE
==================================================*/

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 75px;
    z-index: 2;
}

    .section-title span {
        display: inline-block;
        color: var(--primary-color);
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 14px;
        letter-spacing: .5px;
    }

    .section-title h2 {
        display: inline-block;
        position: relative;
        font-size: 44px;
        font-weight: 800;
        color: var(--secondary-color);
        line-height: 1.4;
    }

        .section-title h2::after {
            content: "";
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -18px;
            width: 90px;
            height: 4px;
            border-radius: 20px;
            background: var(--primary-color);
        }

/*==================================================
                SERVICES GRID
==================================================*/

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}
/*==================================================
                SERVICE CARD
==================================================*/

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 45px 32px;
    background: #FFFFFF;
    border: 1px solid rgba(200,155,60,.15);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    transition: all .35s ease;
    box-shadow: 0 15px 45px rgba(0,0,0,.05);
}
    .service-card::after {
        content: "";
        position: absolute;
        top: -120%;
        left: -40%;
        width: 60%;
        height: 260%;
        background: rgba(255,255,255,.28);
        transform: rotate(25deg);
        transition: .8s;
    }

    .service-card:hover::after {
        left: 140%;
    }

    .service-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--primary-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: .35s;
    }

    .service-card:hover {
        transform: translateY(-12px);
        border-color: rgba(200,155,60,.35);
        box-shadow: 0 30px 70px rgba(0,0,0,.12);
    }

        .service-card:hover::before {
            transform: scaleX(1);
        }

/*==================================================
                ICON
==================================================*/

.service-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FBF6EC;
    color: var(--primary-color);
    font-size: 38px;
    transition: all .45s ease;
    overflow: hidden;
    z-index: 2;
}

    .service-icon::before {
        content: "";
        position: absolute;
        width: 130px;
        height: 130px;
        border-radius: 50%;
        background: radial-gradient( rgba(200,155,60,.22), rgba(200,155,60,0) );
        transform: scale(.6);
        transition: .45s;
        z-index: -1;
    }

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px) rotateY(180deg);
}

    .service-card:hover .service-icon::before {
        transform: scale(1.15);
    }

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

/*==================================================
                CONTENT
==================================================*/

.service-card h3 {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 2;
    flex-grow: 1;
}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:1200px) {

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {

    .services {
        padding: 90px 0;
    }

    .section-title {
        margin-bottom: 55px;
    }

        .section-title h2 {
            font-size: 34px;
        }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-card {
        padding: 35px 24px;
    }

    .service-icon {
        width: 84px;
        height: 84px;
        font-size: 32px;
    }
}
.services-grid .service-card:nth-child(1) {
    border-top: 4px solid #C89B3C;
}

.services-grid .service-card:nth-child(2) {
    border-top: 4px solid #B88628;
}

.services-grid .service-card:nth-child(3) {
    border-top: 4px solid #D4AF37;
}

.services-grid .service-card:nth-child(4) {
    border-top: 4px solid #A9781E;
}
.service-card {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUp .8s forwards;
}

    .service-card:nth-child(1) {
        animation-delay: .10s;
    }

    .service-card:nth-child(2) {
        animation-delay: .25s;
    }

    .service-card:nth-child(3) {
        animation-delay: .40s;
    }

    .service-card:nth-child(4) {
        animation-delay: .55s;
    }

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*=========================================
        SCROLL OFFSET
==========================================*/

#services {
    scroll-margin-top: 110px;
}

