/* --- SEÇÃO SERVICES --- */
.services {
    background-color: var(--color-white);
    padding: 80px 0;
}

/* --- TÍTULO DA SEÇÃO (REUTILIZÁVEL) --- */
.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: var(--color-black);
    border-radius: var(--border-radius-lg);
    padding: 5px 14px;
    font-size: var(--text-small);
    font-weight: var(--font-weight-medium);
    text-transform: capitalize;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-black);
    border-radius: 50%;
    opacity: 0.6;
}

.section-title {
    color: var(--color-dark);
    font-size: var(--text-h2);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 720px;
}

/* --- LAYOUT PRINCIPAL --- */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- COLUNA ESQUERDA (IMAGEM) --- */
.services-media {
    position: sticky;
    top: 100px;
    /* Offset para a navbar */
}

.services-image-wrapper {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--color-dark);
    /* Placeholder */
}

.services-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- COLUNA DIREITA (LISTA) --- */
.services-list {
    display: flex;
    flex-direction: column;
}

/* Item Base */
.service-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-dark-12);
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
}

/* Informações */
.service-info {
    flex: 1;
    padding-right: 20px;
}

.service-name {
    color: var(--color-dark);
    font-size: var(--text-h3);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    transition: color var(--transition-base);
}

.service-desc {
    color: var(--color-dark);
    font-size: var(--text-body);
    font-weight: var(--font-weight-regular);
    opacity: 0.7;
}

/* Preço e interações */
.service-price-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.service-price {
    color: var(--color-dark);
    font-size: var(--text-h4);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

/* Ícone hover */
.service-icon {
    width: 0;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-dark);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-icon svg {
    min-width: 16px;
    color: var(--color-primary);
}

/* Linha Dourada Hover */
.price-line {
    position: absolute;
    bottom: -25px;
    /* Alinhar com o border-bottom do item */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --- HOVER EFFECTS --- */
.service-item:hover .service-icon {
    width: 40px;
    opacity: 1;
}

.service-item:hover .price-line {
    opacity: 1;
}

.service-item:hover .service-name {
    color: var(--color-primary-dark);
}

/* --- ANIMAÇÕES DE ENTRADA EXTRAS --- */
/* Usaremos as mesmas classes do animations.css (.animate-in, .fade-up) e estender os delays */
.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

/* Para a imagem, scale(0.6) ao normal */
@keyframes fadeInScaleUp {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-ready .fade-in-scale {
    animation-name: fadeInScaleUp;
    animation-duration: 0.8s;
}

/* --- RESPONSIVO --- */
@media (max-width: 1199px) {
    .services-layout {
        gap: 40px;
    }

    .services-image-wrapper {
        height: 517px;
    }

    .section-title {
        font-size: 40px;
    }

    .service-name {
        font-size: 28px;
    }
}

@media (max-width: 809px) {
    .services {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .services-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-media {
        position: relative;
        top: 0;
    }

    .services-image-wrapper {
        height: 398px;
    }

    .service-name {
        font-size: 24px;
    }

    .service-item {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .service-price-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .price-line {
        bottom: -21px;
    }
}