.services-showcase-heading {
    margin-bottom: 38px;
}

.services-showcase-heading::before {
    content: "";
    display: block;
    width: 154px;
    height: 3px;
    margin-bottom: 24px;
    background: #1dbbb3;
}

.services-showcase-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}

.services-showcase-heading p {
    max-width: 68ch;
    margin: 16px 0 0;
}

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

.services-showcase-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    overflow: hidden;
    background: #102a49;
    color: #fff;
}

.services-showcase-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2, .65, .3, 1);
}

.services-showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(6, 27, 53, .78);
}

.services-showcase-card::after {
    content: "";
    position: absolute;
    inset: 19px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms ease;
}

.services-showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 36px 54px;
    overflow-wrap: anywhere;
}

.services-showcase-content h3 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(1.4rem, 2.1vw, 1.875rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
}

.services-showcase-content p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.9;
}

@media (hover: hover) and (pointer: fine) {
    .services-showcase-card:hover .services-showcase-image {
        transform: scale(1.08);
    }

    .services-showcase-card:hover::after {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .services-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-showcase-content {
        padding: 32px 28px 40px;
    }
}

@media (max-width: 575.98px) {
    .services-showcase-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-showcase-card {
        min-height: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-showcase-image,
    .services-showcase-card::after {
        transition: none;
    }

    .services-showcase-card:hover .services-showcase-image {
        transform: none;
    }
}
