﻿/* ==========================================================
   Services Section
   ========================================================== */

.services-section {
    padding-top: 45px;
    padding-bottom: 70px;
    background: radial-gradient(circle at top left, rgba(191, 196, 201, .22), transparent 34%), radial-gradient(circle at bottom right, rgba(207, 200, 190, .28), transparent 34%), var(--color-background);
}

.section-header {
    max-width: 780px;
    margin-bottom: 54px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(191, 196, 201, .55);
    color: var(--color-neutral-dark);
    font-size: 14px;
    font-weight: 700;
}

.section-header h2 {
    font-size: clamp(32px, 3.4vw, 50px);
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 18px;
}

.section-header p {
    max-width: 700px;
    font-size: 17px;
    color: var(--color-neutral-dark);
}


/* ==========================================================
   Services Grid
   ========================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 310px;
    padding: 30px 26px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(231, 226, 218, .55));
    border: 1px solid rgba(191, 196, 201, .46);
    box-shadow: 0 18px 45px rgba(68, 72, 77, .08);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

    .service-card::before {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        right: -58px;
        top: -58px;
        border-radius: 50%;
        background: rgba(191, 196, 201, .24);
        transition: all var(--transition-normal);
    }

    .service-card::after {
        content: "";
        position: absolute;
        width: 70px;
        height: 70px;
        right: 28px;
        bottom: 26px;
        border-radius: 24px;
        background: rgba(246, 243, 238, .7);
        border: 1px solid rgba(207, 200, 190, .55);
        transform: rotate(12deg);
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 60px rgba(68, 72, 77, .13);
        border-color: rgba(191, 196, 201, .85);
    }

        .service-card:hover::before {
            transform: scale(1.14);
            background: rgba(126, 155, 122, .18);
        }

.service-number {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--color-text);
    color: var(--color-background);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(68, 72, 77, .18);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    max-width: 230px;
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: 22px;
    letter-spacing: -0.025em;
}

.service-card p {
    position: relative;
    z-index: 1;
    color: var(--color-neutral-dark);
    font-size: 15px;
    line-height: 1.8;
}


/* ==========================================================
   Reveal Animation
   ========================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

    [data-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.services-grid [data-reveal]:nth-child(2) {
    transition-delay: .08s;
}

.services-grid [data-reveal]:nth-child(3) {
    transition-delay: .16s;
}

.services-grid [data-reveal]:nth-child(4) {
    transition-delay: .24s;
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .section-header {
    text-align: right;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

    html[dir="rtl"] .service-card::before {
        right: auto;
        left: -58px;
    }

    html[dir="rtl"] .service-card::after {
        right: auto;
        left: 28px;
    }


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        min-height: 270px;
    }
}

@media (max-width: 640px) {
    .services-section {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .section-header {
        margin-bottom: 34px;
        text-align: center;
    }

        .section-header p {
            font-size: 16px;
        }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 28px 24px;
    }

        .service-card h3 {
            max-width: none;
        }
}
