/* ============================================================
   ENFERMAGEM PIAUÍ — SERVIÇOS
   ============================================================ */

.services-section {
    padding: 96px 0;
    background: #f7fafb;
}

.services-section .container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.services-section .section-head {
    margin-bottom: 42px;
}

.services-section .section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #006587;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.services-section .section-head h2 {
    max-width: 850px;
    margin: 0;
    color: #173743;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.services-section .section-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: #5d7a86;
    font-size: 18px;
    line-height: 1.65;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #d8e5e9;
    border-radius: 22px;
    background: #fff;
    color: #173743;
    box-shadow: 0 10px 28px rgba(23, 55, 67, .055);
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: #006587;
    opacity: 0;
    transform: scaleX(.35);
    transform-origin: left;
    transition:
        opacity .22s ease,
        transform .22s ease;
}

.service-card:hover {
    border-color: #bdd9e1;
    box-shadow: 0 18px 40px rgba(23, 55, 67, .11);
    transform: translateY(-6px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.service-card:focus-visible {
    outline: 3px solid rgba(0, 101, 135, .22);
    outline-offset: 3px;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 54px;
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #d8e5e9;
    border-radius: 14px;
    background: #f7fafb;
    color: #006587;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e5e9;
    border-radius: 50%;
    color: #006587;
    font-size: 18px;
    line-height: 1;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.service-card:hover .service-arrow {
    border-color: #006587;
    background: #006587;
    color: #fff;
    transform: translate(2px, -2px);
}

.service-card-content {
    flex: 1 1 auto;
}

.service-card h3 {
    margin: 0;
    color: #173743;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.service-card p {
    margin: 14px 0 0;
    color: #5d7a86;
    font-size: 15px;
    line-height: 1.65;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: #006587;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.service-card-link::after {
    content: "→";
    font-size: 17px;
    transition: transform .2s ease;
}

.service-card:hover .service-card-link::after {
    transform: translateX(4px);
}


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

@media (max-width: 1100px) {

    .services-section {
        padding: 78px 0 88px;
    }

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

    .service-card {
        min-height: 300px;
    }
}


/* ============================================================
   CELULAR
   ============================================================ */

@media (max-width: 680px) {

    .services-section {
        padding: 60px 0 72px;
    }

    .services-section .container {
        width: min(100% - 32px, 1440px);
    }

    .services-section .section-head {
        margin-bottom: 30px;
    }

    .services-section .section-head h2 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .services-section .section-intro {
        font-size: 16px;
    }

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

    .service-card {
        min-height: 270px;
        padding: 24px;
        border-radius: 20px;
    }

    .service-card-top {
        margin-bottom: 40px;
    }

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


/* ============================================================
   REDUÇÃO DE MOVIMENTO
   ============================================================ */

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

    .service-card,
    .service-card *,
    .service-card::before {
        transition: none !important;
    }
}