/* =====================================
   SERVICES SECTION
===================================== */

.services-section {
    width: 100%;
    padding: 100px 6.5%;
    background: #ffffff;
    overflow: hidden;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}


/* =====================================
   SECTION HEADING
===================================== */

.services-heading {
    text-align: center;
    margin-bottom: 70px;
}

.services-heading h2 {
    font-family: var(--font-primary);
    font-size: clamp(36px, 3.2vw, 50px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -1.5px;
    color: #000000;
    margin-bottom: 22px;
}

.services-heading p {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: #222222;
}


/* =====================================
   SERVICES GRID
===================================== */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;

    align-items: stretch;
}


/* =====================================
   SERVICE CARD
===================================== */

.service-card {

    background: #F1F3F9;

    border: 1.5px solid #C1CDE4 !important;
    outline: none !important;

    border-radius: 17px;

    padding: 32px;

    min-height: 305px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;

}


/* =====================================
   CENTRE LAST TWO CARDS
===================================== */

.service-card:nth-child(5) {
    grid-column: 2;
}

.service-card:nth-child(6) {
    grid-column: 3;
}


/* =====================================
   ICON
===================================== */

.service-icon {

    width: 100px;
    height: 100px;

    background: #ffffff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 32px;

    flex-shrink: 0;

}

.service-icon img {

    width: 75px;
    height: 75px;

    object-fit: contain;

}


/* =====================================
   CARD HEADING
===================================== */

.service-card h3 {

    font-family: var(--font-primary);

    font-size: 19px;

    font-weight: 700;

    color: #111111;

    margin-bottom: 16px;

    line-height: 1.3;

}


/* =====================================
   CARD DESCRIPTION
===================================== */

.service-card p {

    font-family: var(--font-primary);

    font-size: 16px;

    font-weight: 400;

    line-height: 1.55;

    color: #161616;

}


/* =====================================
   HOVER EFFECT
===================================== */

.service-card:hover {
    border: 1.5px solid var(--primary-blue) !important;
    outline: none !important;
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 44, 138, 0.12);
}


/* =====================================
   SCROLL REVEAL ANIMATION
===================================== */

.services-heading {

    opacity: 0;

    transform: translateY(30px);

    transition: all 0.8s ease;

}

.services-heading.active {

    opacity: 1;

    transform: translateY(0);

}


.service-card {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

}

.service-card.active {

    opacity: 1;

    transform: translateY(0);

}


/* STAGGERED ANIMATION */

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 1024px) {

    .services-section {
        padding: 80px 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        grid-column: auto;
    }

}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 600px) {

    .services-section {
        padding: 65px 22px;
    }

    .services-heading {
        margin-bottom: 45px;
    }

    .services-heading h2 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .services-heading p {
        font-size: 15px;
    }

    .services-heading p br {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        grid-column: auto;
    }

    .service-card {
        min-height: auto;
        padding: 26px;
    }

    .service-icon {
        width: 85px;
        height: 85px;
        margin-bottom: 24px;
    }

    .service-icon img {
        width: 65px;
        height: 65px;
    }

}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    .services-heading,
    .service-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

}

/* =====================================
   SERVICE CARD HOVER ANIMATION
===================================== */

.service-card {
    cursor: pointer;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);

    border-color: var(--primary-blue);

    background: #ffffff;

    box-shadow: 0 15px 35px rgba(0, 44, 138, 0.12);
}