/*------------------------------------*\
    Our Services
\*------------------------------------*/

/* Root */
.services-section__main {
    margin: 0 auto;
    max-width: 20.6875rem;
}

/* Swiper */
.services-swiper .swiper-slide {
    margin-right: 2rem;
    width: 24.875rem;
}

.services-swiper .swiper-controls {
    margin-top: 2.5rem;
}

/* Service Card */
.service-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

a.service-card-link:not(.ignore):where(:hover, :focus-visible) {
    text-decoration: none;
}

button.service-card-link:not(:disabled) {
    cursor: default;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 331 / 380;
    border-radius: var(--fx-border-radius);
    overflow: hidden;
    box-shadow: var(--fx-box-shadow);
    transition: box-shadow 0.35s ease-out;
}

.service-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    min-height: 22.8125rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 74.52%);
    border-radius: var(--fx-border-radius) var(--fx-border-radius) 0 0;
    transition: background 0.4s ease-out;
}

.service-card__title {
    margin: 0;
    font-size: var(--fx-font-size-h5);
}

.service-card__desc {
    margin-bottom: -1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.35s ease-out 0.08s;
}

.service-card__cta {
    align-self: flex-start;
}

.touch-disabled .service-card-link:not(.ignore):hover .service-card,
.service-card-link:not(.ignore):focus-visible .service-card {
    box-shadow: 0 0 1rem rgb(30 107 168 / 25%);
}

.touch-disabled .service-card-link:not(.ignore):hover .service-card__overlay,
.service-card-link:not(.ignore):focus-visible .service-card__overlay {
    justify-content: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, #FFFFFF 100%);
}

.touch-disabled .service-card-link:not(.ignore):hover .service-card__cta,
.service-card-link:not(.ignore):focus-visible .service-card__cta {
    margin-top: auto;
}

.touch-disabled .service-card-link:not(.ignore):hover .service-card__desc,
.service-card-link:not(.ignore):focus-visible .service-card__desc {
    max-height: 18em;
    opacity: 1;
    transition-delay: 0s;
}

@media (min-width: 768px) {
    /* Root */
    .services-section__main {
        padding-left: var(--fx-fluid-padding-x);
        padding-right: 0;
        max-width: 100%;
    }

    /* Swiper */
    .services-swiper .swiper-controls {
        padding-right: var(--fx-fluid-padding-x);
    }

    /* Service Card */
    .service-card {
        aspect-ratio: 398 / 535;
    }

    .service-card__title {
        font-size: var(--fx-font-size-h6);
    }
}

@media (min-width: 1200px) {
    /* Swiper */
    .services-swiper .swiper-controls {
        margin-top: 3rem;
    }
}