* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    background-color: black;
}

/* Ajustes Gerais Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* --- CABEÇALHO E MENU --- */
    header {
        height: 80px !important; /* Altura reduzida para caber melhor */
        background-color: white !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 10px !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
    }

    /* Logo no mobile */
    header img, .logo-img {
        height: 50px !important; /* Logo menor no mobile */
        width: auto !important;
        display: block !important;
    }

    /* 1. Menu aberto no mobile igual ao desktop (sem hambúrguer) */
    /* Esconder o botão hambúrguer */
    header button.md\:hidden {
        display: none !important;
    }

    /* Forçar exibição do menu desktop no mobile */
    header nav.hidden.md\:flex {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-left: 10px !important;
    }
    
    header nav.hidden.md\:flex a {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #ea580c !important; /* orange-600 */
        text-transform: uppercase !important;
        white-space: nowrap !important;
        padding: 4px !important;
    }

    /* Esconder o botão de orçamento do cabeçalho no mobile para dar espaço ao menu */
    header div.hidden.md\:block {
        display: none !important;
    }

    /* --- SEÇÃO HERO --- */
    /* 2. Subir o texto 'Segurança Inteligente e Gestão Eficiente' mais para cima */
    section#inicio {
        padding-top: 90px !important; /* Logo abaixo do cabeçalho de 80px */
        align-items: flex-start !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 40px !important;
    }

    section#inicio .container {
        padding-top: 10px !important;
    }

    section#inicio h1 {
        margin-top: 0 !important;
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        padding: 0 !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    section#inicio p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }

    /* 3. Tirar o 'deslize para explorar' do mobile */
    div.absolute.bottom-6.md\:bottom-8.left-1\/2,
    div.absolute.bottom-6.left-1\/2 {
        display: none !important;
    }

    /* 4. Tirar o primeiro 'solicitar orçamento' do mobile no Hero */
    section#inicio .flex.flex-col.sm\:flex-row.gap-4 button:first-child,
    section#inicio .flex.flex-col.sm\:flex-row.gap-4 a:first-child {
        display: none !important;
    }

    /* --- CHATBOT MOBILE --- */
    #chatbot-window {
        width: 92vw !important;
        height: 70vh !important;
        max-width: 500px !important;
        max-height: 600px !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10001 !important;
        background: white !important;
        display: none; 
        flex-direction: column !important;
    }

    #chatbot-window.active {
        display: flex !important;
    }

    #chatbot-button {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 10000 !important;
    }
}

/* Ajustes Desktop */
@media (min-width: 769px) {
    h1 { margin-top: 2rem !important; }
}
