/* 
   📱 Mobile Design Commitment:
   - Foco: Legibilidade extrema e áreas de toque seguras.
   - Estratégia: Retrofitting seguro (Desktop intocado).
   - Breakpoint Máximo: 1023px (Tablet e Mobile).
*/

@media (max-width: 1023px) {
    
    /* GLOBAL: Typography & Spacing */
    body {
        overflow-x: hidden; /* Previne scroll horizontal acidental */
    }

    /* 1. HERO SECTION - Ajuste de Impacto */
    header h1 {
        font-size: 2.5rem !important; /* Reduz de 5xl/7xl para algo legível no mobile */
        line-height: 1.1 !important;
        word-wrap: break-word;
    }

    header p {
        font-size: 1rem !important;
        padding-left: 1rem !important; /* Reduz border-l padding */
    }

    /* Ajuste da imagem/mockup no mobile para não ficar enorme ou quebrada */
    header .lg\:col-span-5,
    header .lg\:col-span-8,
    header .lg\:col-span-4 {
        margin-top: 2rem;
        transform: scale(1) !important; /* Reseta escalas complexas */
        width: 100%;
    }

    /* Botões do Hero empilhados com largura total para toque fácil */
    header .flex-col.sm\:flex-row {
        flex-direction: column;
        width: 100%;
    }

    header .flex-col.sm\:flex-row a,
    header .flex-col.sm\:flex-row button {
        width: 100%;
        justify-content: center;
        padding: 1rem !important;
        text-align: center;
    }

    /* 2. STATS STRIP - Grid 2x2 no mobile */
    .divide-x > div {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .divide-x.divide-white\/10 {
        border-right-width: 0px !important;
        border-left-width: 0px !important;
    }

    /* 3. MÓDULOS / TABS - Melhoria de Navegação */
    #modulos .flex-wrap {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #modulos button {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
    }

    #modulos .min-h-\[500px\] {
        min-height: auto !important;
    }

    #modulos .aspect-video {
        margin-top: 2rem;
    }

    /* 4. PRICING - Cards com foco */
    #precos .transform.scale-105 {
        transform: scale(1) !important;
        margin: 1rem 0;
    }

    /* 5. FOOTER - Alinhamento */
    footer .grid {
        text-align: center;
    }

    footer .flex.space-x-4 {
        justify-content: center;
    }
    
    footer .md\:text-left {
        text-align: center;
    }

    /* 6. CALCULATOR (Delivery Page) */
    input[type="range"] {
        height: 1.5rem !important; /* Aumenta área de toque do slider */
    }

    /* 7. MOCKUPS (Dashboard & Garçom) */
    /* Garante que mockups largos não quebrem a tela */
    .overflow-hidden {
        max-width: 100vw;
    }
    
    /* Ajuste específico para o mockup de celular */
    .border-\[8px\].rounded-\[2\.5rem\] {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Ajustes Específicos para Telas Muito Pequenas (iPhone SE, etc) */
@media (max-width: 375px) {
    header h1 {
        font-size: 2rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
}
