/* ============================
   SEÇÃO ANTES E DEPOIS (FIXED VERSION)
   ============================ */

.before-after-section {
    background-color: var(--dark-secondary);
    padding: 80px 0;
}

.before-after-header {
    margin-bottom: 3rem;
}

.before-after-header h2 {
    font-weight: 800;
    color: var(--dark-quartaty);
}

.before-after-header p{
    font-size: 1.1rem;
}


/* Container de Comparação */
.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee;
    user-select: none;
    touch-action: pan-y; /* Permite scroll vertical mas captura horizontal */
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Imagens não capturam eventos, o container sim */
}

/* Imagem de ANTES (Fundo) */
.ba-before {
    z-index: 1;
}

/* Imagem de DEPOIS (Sobreposta com Clip) */
.ba-after {
    z-index: 2;
    /* Inicialmente mostra 50% da imagem da direita */
    clip-path: inset(0 0 0 50%); 
}

/* Slider / Barra de Controle */
.ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--secondary-gold);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

/* Alça Visual (Círculo) */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--secondary-gold);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.ba-handle i {
    font-size: 18px;
    display: flex;
    gap: 2px;
}

/* Labels */
.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 1px;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

/* Card Content */
.ba-card-body {
    padding: 1.5rem 0;
}

.ba-card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-quartaty);
}

.ba-card-body p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* CTA Button */
.btn-ba-whatsapp {
    background-color: var(--secondary-gold);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ba-whatsapp:hover {
    background-color: var(--dark-quartaty);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .ba-container {
        aspect-ratio: 4 / 3;
    }
    .ba-handle {
        width: 36px;
        height: 36px;
    }
}
