/* ========================================
   CORREÇÃO FINAL E DEFINITIVA DOS BOTÕES
   Força layout sem sobreposição + cores originais
======================================== */

/* RESET TOTAL E FORÇADO */
.hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 2rem auto 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 350px !important;
    min-width: 200px !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 0.9rem 1.2rem !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 25px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    order: 0 !important;
    float: none !important;
    clear: both !important;
}

.hero-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.hero-button i {
    font-size: 1rem !important;
    margin-right: 0.4rem !important;
    flex-shrink: 0 !important;
}

/* CORES ESPECÍFICAS PARA CADA BOTÃO */
/* Fale Comigo - WhatsApp */
.hero-button:nth-child(1) {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: white !important;
    order: 1 !important;
}

/* Ver Projetos - Azul */
.hero-button:nth-child(2) {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    color: white !important;
    order: 2 !important;
}

/* Parcerias Educacionais - Laranja */
.hero-button:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: white !important;
    order: 3 !important;
}

/* Empreendedorismo Local - Verde Esmeralda */
.hero-button:nth-child(4) {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    order: 4 !important;
}

/* Saúde Cidadã Inteligente - Azul Céu */
.hero-button:nth-child(5) {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: white !important;
    order: 5 !important;
}

/* Esporte e Bem-estar Local - Verde */
.hero-button:nth-child(6) {
    background: linear-gradient(135deg, #15803d, #16a34a) !important;
    color: white !important;
    order: 6 !important;
}

/* PWA Instalar App - Amarelo */
.pwa-install-btn-hero,
.hero-button:nth-child(7) {
    background: linear-gradient(135deg, #f9c200, #f59e0b) !important;
    color: #000 !important;
    order: 7 !important;
    display: none !important; /* Escondido por padrão */
}

/* Transparência Pública - Azul */
.hero-button:nth-child(8) {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    color: white !important;
    order: 8 !important;
}

/* Assistente Digital - Azul Escuro */
.hero-button:nth-child(9) {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    color: white !important;
    order: 9 !important;
}

/* Este Mandato É Seu - Amarelo Dourado */
.hero-button:nth-child(10) {
    background: linear-gradient(135deg, #f9c200, #f59e0b) !important;
    color: #000 !important;
    font-weight: 700 !important;
    order: 10 !important;
    max-width: 400px !important;
    font-size: 0.8rem !important;
    padding: 1rem 1rem !important;
}

/* ===== LAYOUT DESKTOP (992px+) ===== */
@media (min-width: 992px) {
    .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(4, auto) !important;
        gap: 1.2rem !important;
        max-width: 850px !important;
        flex-direction: unset !important;
    }
    
    .hero-button {
        width: auto !important;
        max-width: none !important;
        min-width: 180px !important;
        font-size: 0.9rem !important;
        padding: 1rem 1.3rem !important;
    }
    
    /* POSICIONAMENTO EXATO NO GRID */
    .hero-button:nth-child(1) { grid-row: 1; grid-column: 1; }
    .hero-button:nth-child(2) { grid-row: 1; grid-column: 2; }
    .hero-button:nth-child(3) { grid-row: 1; grid-column: 3; }
    
    .hero-button:nth-child(4) { grid-row: 2; grid-column: 1; }
    .hero-button:nth-child(5) { grid-row: 2; grid-column: 2; }
    .hero-button:nth-child(6) { grid-row: 2; grid-column: 3; }
    
    .hero-button:nth-child(8) { grid-row: 3; grid-column: 1; }
    .hero-button:nth-child(9) { grid-row: 3; grid-column: 2; }
    .hero-button:nth-child(10) { 
        grid-row: 3; 
        grid-column: 3;
        font-size: 0.85rem !important;
    }
    
    /* PWA na linha 4, centralizado */
    .pwa-install-btn-hero,
    .hero-button:nth-child(7) {
        grid-row: 4 !important;
        grid-column: 1 / 4 !important;
        justify-self: center !important;
        max-width: 300px !important;
        display: flex !important;
    }
}

/* ===== LAYOUT TABLET (769px - 991px) ===== */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        max-width: 650px !important;
        flex-direction: unset !important;
    }
    
    .hero-button {
        width: auto !important;
        max-width: none !important;
        font-size: 0.85rem !important;
        padding: 0.95rem 1.2rem !important;
    }
    
    /* Botão "Este Mandato" ocupa 2 colunas */
    .hero-button:nth-child(10) {
        grid-column: 1 / 3 !important;
        justify-self: center !important;
        max-width: 400px !important;
    }
    
    /* PWA embaixo centralizado */
    .pwa-install-btn-hero,
    .hero-button:nth-child(7) {
        grid-column: 1 / 3 !important;
        justify-self: center !important;
        max-width: 280px !important;
        display: flex !important;
    }
}

/* ===== LAYOUT MOBILE (até 768px) ===== */
@media (max-width: 768px) {
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-button {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.9rem 1rem !important;
        min-height: 48px !important;
    }
    
    .hero-button:nth-child(10) {
        font-size: 0.8rem !important;
        padding: 1rem 0.8rem !important;
        max-width: 100% !important;
    }
    
    .pwa-install-btn-hero,
    .hero-button:nth-child(7) {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== MOBILE PEQUENO (até 480px) ===== */
@media (max-width: 480px) {
    .hero-actions {
        gap: 0.7rem !important;
        padding: 0 0.8rem !important;
    }
    
    .hero-button {
        font-size: 0.8rem !important;
        padding: 0.8rem 0.9rem !important;
        min-height: 46px !important;
    }
    
    .hero-button:nth-child(10) {
        font-size: 0.75rem !important;
        padding: 0.9rem 0.7rem !important;
        line-height: 1.25 !important;
    }
    
    .hero-button i {
        font-size: 0.9rem !important;
        margin-right: 0.3rem !important;
    }
}

/* ===== MOBILE EXTRA PEQUENO (até 360px) ===== */
@media (max-width: 360px) {
    .hero-actions {
        gap: 0.6rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-button {
        font-size: 0.75rem !important;
        padding: 0.75rem 0.8rem !important;
        min-height: 44px !important;
        gap: 0.3rem !important;
    }
    
    .hero-button:nth-child(10) {
        font-size: 0.7rem !important;
        padding: 0.8rem 0.6rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-button i {
        font-size: 0.85rem !important;
        margin-right: 0.25rem !important;
    }
}

/* ===== CORREÇÕES ADICIONAIS ===== */

/* Remove qualquer float ou positioning problemático */
.hero-button {
    position: relative !important;
    float: none !important;
    clear: none !important;
    transform: none !important;
}

/* Garante que não haja sobreposição */
.hero-button:not(:hover) {
    transform: none !important;
}

/* Remove margens automáticas problemáticas */
.hero-actions .hero-button {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Força visibilidade */
.hero-button {
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Remove qualquer estilo que cause problemas */
.hero-actions {
    align-content: stretch !important;
    align-items: stretch !important;
}

/* Garante que o container pai não interfira */
.hero-text {
    overflow: visible !important;
    position: relative !important;
}

.hero-content {
    overflow: visible !important;
    position: relative !important;
}

/* Força aplicação dos estilos */
.hero-actions,
.hero-button {
    animation: none !important;
}

/* Remove qualquer interferência de outros CSS */
.hero-button[style] {
    /* Força que estilos inline não sobrescrevam */
}

/* Especificidade máxima para garantir aplicação */
body .hero .hero-content .hero-text .hero-actions .hero-button {
    position: relative !important;
    display: flex !important;
}

/* Última chance - aplicação com !important total */
.hero-actions > .hero-button {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.9rem 1.2rem !important;
    border-radius: 25px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    min-height: 50px !important;
    gap: 0.5rem !important;
    box-sizing: border-box !important;
}