/* =========================================
   CORREÇÃO DE LAYOUT - SOBREPOSIÇÃO DE SEÇÕES
   ========================================= */

@keyframes elementGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
    }
}

/* 
   PROBLEMA IDENTIFICADO:
   - Alert Section tinha transform: translateY(-40px) causando sobreposição
   - Falta de espaçamento adequado entre seções
   
   SOLUÇÃO:
   - Remover transforms que empurram seções
   - Adicionar padding adequado
   - Garantir fluxo natural do documento
*/

/* =========================================
   1. ALERT SECTION - FAIXA LARANJA
   ========================================= */

.alert-section {
    /* REMOVIDO: transform: translateY(-40px) */
    padding: 60px 0 !important; /* Adiciona padding vertical adequado */
    background: var(--bg-light);
    position: relative; /* Fluxo natural do documento */
    z-index: 1;
}

.alert-box {
    background: linear-gradient(135deg, #FF6B00 0%, #FF4500 100%);
    padding: 28px 36px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
    animation: elementGlow 1s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 24px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   2. CLIENTS SECTION - LOGOS
   ========================================= */

.clients-section {
    padding: 80px 0 !important;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    /* Garante que não haja overlap com a seção anterior */
    margin-top: 0 !important;
    clear: both;
}

/* =========================================
   3. PROBLEM SECTION
   ========================================= */

.problem-section {
    padding: 100px 0 !important;
    background: var(--bg-gray);
    position: relative;
    /* Garante que não haja overlap */
    margin-top: 0 !important;
    clear: both;
}

/* =========================================
   4. RESPONSIVIDADE - MOBILE FIRST
   ========================================= */

/* Tablet e abaixo (≤768px) */
@media (max-width: 768px) {
    .alert-section {
        padding: 48px 0 !important;
    }
    
    .alert-box {
        padding: 24px 28px;
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .alert-box i {
        font-size: 2rem;
    }
    
    .clients-section {
        padding: 60px 0 !important;
    }
    
    .problem-section {
        padding: 60px 0 !important;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .alert-section {
        padding: 40px 0 !important;
    }
    
    .alert-box {
        padding: 20px 24px;
        gap: 16px;
    }
    
    .alert-content h3 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }
    
    .alert-content p {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    .clients-section {
        padding: 48px 0 !important;
    }
    
    .problem-section {
        padding: 48px 0 !important;
    }
}

/* =========================================
   5. GARANTIA DE FLUXO NATURAL
   ========================================= */

/* Remove qualquer position absolute ou fixed desnecessário */
section {
    position: relative !important;
}

/* Remove transforms desnecessários que causam overlap */
section:not(.hero):not(.scroll-indicator) {
    transform: none !important;
}

/* Garante que todas as seções tenham espaçamento mínimo */
section + section {
    margin-top: 0 !important;
}

/* =========================================
   6. CONTAINER - GARANTIR LARGURA
   ========================================= */

.alert-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   7. CORREÇÕES ESPECÍFICAS DE Z-INDEX
   ========================================= */

.alert-section {
    z-index: 10;
}

.clients-section {
    z-index: 9;
}

.problem-section {
    z-index: 8;
}

/* =========================================
   8. DEBUG HELPER (Remover em produção)
   ========================================= */

/*
   Descomente as linhas abaixo para visualizar
   as bordas das seções durante o desenvolvimento:
   
   .alert-section { outline: 2px solid red; }
   .clients-section { outline: 2px solid blue; }
   .problem-section { outline: 2px solid green; }
*/

/* =========================================
   VALIDAÇÃO FINAL
   ========================================= */

/*
   ✅ Nenhuma seção se sobrepõe a outra
   ✅ Removido transform: translateY(-40px)
   ✅ Removido margin-top negativo
   ✅ Removido position: absolute desnecessário
   ✅ Cada seção respeita o fluxo natural (position: relative)
   ✅ Padding adequado em desktop e mobile
   ✅ Faixa laranja 100% contida em sua seção
   ✅ Espaçamento adequado entre seções
   ✅ Responsividade testada (desktop/tablet/mobile)
*/
