/*
 * Secção de Serviços
 */

.section--services {
    padding-top: 64px;
    padding-bottom: 68px;
    background-color: var(--color-cream);
}

.section--services .section__title {
    color: var(--color-navy);
}

.section--services .section__subtitle {
    margin-top: 8px;
}

.services-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.services-grid {
    display: flex;
    flex: 1;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

.service-card {
    position: relative;
    flex: 0 0 calc(25% - 11px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background-color: var(--color-navy);
    scroll-snap-align: start;
    cursor: pointer;
}

.service-card__image {
    position: absolute;
    inset: 0;
}

.service-card__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 16, 35, 0.92),
        rgba(5, 16, 35, 0.05) 70%
    );
    content: "";
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform var(--transition-smooth),
        filter var(--transition-smooth);
}

.service-card h3 {
    position: absolute;
    right: 18px;
    bottom: 20px;
    left: 18px;
    z-index: 1;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
}

.service-card:hover .service-card__image img {
    filter: brightness(1.08);
    transform: scale(1.05);
}

.services-slider__button {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 0 3px;
    border: 1.5px solid #a6a6a6;
    border-radius: 50%;
    background-color: transparent;
    color: var(--color-gold);
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.services-slider__button:hover {
    border-color: var(--color-gold);
    background-color: var(--color-white);
    transform: scale(1.08);
}

@media (max-width: 1000px) {
    .service-card {
        flex-basis: calc(50% - 7px);
    }
}

@media (max-width: 600px) {
    .section--services {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .services-slider {
        gap: 10px;
    }

    .service-card {
        flex-basis: 82%;
        aspect-ratio: 3 / 4;
    }

    .services-slider__button {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 25px;
    }
}