/* =========================================================
   SERVICES SECTION
   Modern / Professional / Responsive
========================================================= */


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

#services {
    width: 100%;
    padding: 105px 0;

    background: #101c2e;
    color: #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   SERVICES CONTAINER
========================================================= */

.services-container {
    width: min(1200px, 90%);

    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   SERVICES HEADER
========================================================= */

.services-header {
    max-width: 700px;

    margin: 0 0 40px;

    text-align: left;
}


/* Small Label */

.services-label {
    display: block;

    margin: 0 0 12px;

    color: #82aaff;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 4px;
    text-transform: uppercase;
}


/* Main Heading */

.services-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -1px;
}


/* Header Description */

.services-header p {
    max-width: 620px;

    margin: 12px 0 0;

    color: #8f9caf;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.7;
}


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

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;

    min-height: 138px;

    padding: 24px 20px;

    box-sizing: border-box;

    border: 1px solid #263750;
    border-radius: 12px;

    background: #1b2940;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Card Hover */

.service-card:hover {
    border-color: #38577e;

    background: #1d2d45;

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.18);
}


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

.service-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 7px;

    background: transparent;

    color: #9bbcff;

    font-size: 18px;

    line-height: 1;

    box-sizing: border-box;
}


/* =========================================================
   SERVICE TITLE
========================================================= */

.service-card h3 {
    margin: 0 0 9px;

    color: #9dbbff;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 0;
}


/* =========================================================
   SERVICE DESCRIPTION
========================================================= */

.service-card p {
    max-width: 310px;

    margin: 0;

    color: #8e9aab;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.65;
}


/* =========================================================
   SERVICE LINK
========================================================= */

.service-card a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-top: 18px;

    color: #79a8ff;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.service-card a:hover {
    color: #ffffff;

    transform: translateX(3px);
}


/* =========================================================
   SERVICES CONTACT CARD
========================================================= */

.services-contact {
    min-height: 138px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 20px;

    text-align: center;

    background: transparent;

    border: 1px solid #263750;
}


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

.services-contact-content {
    width: 100%;
}


.services-contact h3 {
    margin: 0;

    color: #8f9bad;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.5;
}


.services-contact p {
    max-width: 250px;

    margin: 8px auto 0;

    color: #707d90;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.services-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 10px;

    padding: 0;

    min-height: auto;

    border: 0;

    border-radius: 0;

    background: transparent;

    color: #78a8ff;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.services-contact a:hover {
    background: transparent;
    border-color: transparent;

    color: #ffffff;

    transform: translateX(3px);

    box-shadow: none;
}


/* =========================================================
   CONTACT ARROW
========================================================= */

.services-contact a i {
    font-size: 9px;

    transition: transform 0.25s ease;
}


.services-contact a:hover i {
    transform: translateX(2px);
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    #services {
        padding: 90px 0;
    }


    .services-container {
        width: 90%;
    }


    .services-grid {
        gap: 17px;
    }


    .service-card {
        min-height: 135px;

        padding: 23px 19px;
    }


    .service-card h3 {
        font-size: 13.5px;
    }


    .service-card p {
        font-size: 10.5px;
    }


    .services-contact h3 {
        font-size: 11.5px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    #services {
        padding: 85px 0;
    }


    .services-header {
        margin-bottom: 38px;
    }


    .services-header h2 {
        font-size: clamp(29px, 5vw, 38px);
    }


    .services-header p {
        font-size: 13px;
    }


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

        gap: 18px;
    }


    .service-card {
        min-height: 145px;

        padding: 24px 21px;
    }


    .service-icon {
        margin-bottom: 13px;
    }


    .service-card h3 {
        font-size: 14px;
    }


    .service-card p {
        font-size: 11px;

        line-height: 1.7;
    }


    /* Contact card remains inside grid */

    .services-contact {
        min-height: 145px;

        padding: 24px 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #services {
        padding: 70px 0;
    }


    .services-container {
        width: 90%;
    }


    .services-header {
        margin-bottom: 32px;
    }


    .services-label {
        margin-bottom: 10px;

        font-size: 9px;

        letter-spacing: 3px;
    }


    .services-header h2 {
        font-size: clamp(27px, 8vw, 34px);

        letter-spacing: -0.5px;
    }


    .services-header p {
        margin-top: 10px;

        font-size: 12.5px;

        line-height: 1.7;
    }


    .services-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .service-card {
        min-height: auto;

        padding: 22px 20px;

        border-radius: 10px;
    }


    .service-icon {
        width: 40px;
        height: 40px;

        margin-bottom: 12px;

        font-size: 18px;
    }


    .service-card h3 {
        margin-bottom: 8px;

        font-size: 14px;
    }


    .service-card p {
        max-width: 100%;

        font-size: 12px;

        line-height: 1.7;
    }


    .service-card a {
        margin-top: 16px;

        font-size: 11.5px;
    }


    /* Contact */

    .services-contact {
        min-height: 145px;

        padding: 24px 20px;

        border-radius: 10px;
    }


    .services-contact h3 {
        font-size: 13px;
    }


    .services-contact p {
        max-width: 270px;

        margin-top: 6px;

        font-size: 11px;
    }


    .services-contact a {
        margin-top: 9px;

        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #services {
        padding: 60px 0;
    }


    .services-container {
        width: 92%;
    }


    .services-header {
        margin-bottom: 28px;
    }


    .services-label {
        font-size: 8px;

        letter-spacing: 2.8px;
    }


    .services-header h2 {
        font-size: 27px;
    }


    .services-header p {
        font-size: 12px;
    }


    .service-card {
        padding: 21px 18px;
    }


    .service-icon {
        width: 38px;
        height: 38px;

        margin-bottom: 11px;

        font-size: 17px;
    }


    .service-card h3 {
        font-size: 13.5px;
    }


    .service-card p {
        font-size: 11.5px;
    }


    .service-card a {
        font-size: 11px;
    }


    .services-contact {
        padding: 22px 18px;
    }


    .services-contact h3 {
        font-size: 12.5px;
    }


    .services-contact p {
        font-size: 11px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    #services {
        padding: 55px 0;
    }


    .services-header h2 {
        font-size: 25px;
    }


    .services-header p {
        font-size: 11.5px;
    }


    .service-card {
        padding: 19px 16px;
    }


    .service-icon {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }


    .service-card h3 {
        font-size: 13px;
    }


    .service-card p {
        font-size: 11px;
    }


    .service-card a {
        font-size: 10.5px;
    }


    .services-contact {
        min-height: 135px;

        padding: 20px 16px;
    }


    .services-contact h3 {
        font-size: 12px;
    }


    .services-contact p {
        font-size: 10.5px;
    }


    .services-contact a {
        font-size: 10.5px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.service-card:focus-within {
    border-color: #4d79b5;

    box-shadow:
        0 0 0 2px rgba(110, 168, 255, 0.12);
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-card a,
    .services-contact a,
    .services-contact a i {
        transition: none;
    }

}
