/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (UX4YOU Mobile-First & Fluid Optimization)
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
        --section-spacing: 100px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
        --section-spacing: 80px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .hero-text p {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .niche-card {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 2rem !important;
    }
    
    .ba-container {
        height: auto !important;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --section-spacing: 60px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    /* Header ajustes móveis */
    .header {
        padding: 0.85rem 1.25rem;
    }
    
    .site-logo-img {
        height: 28px;
    }
    
    .live-status span:last-child {
        display: none; /* Mantém apenas o ponto verde em telas muito pequenas */
    }
    
    .header-action .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Hero section em celulares */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
    }
    
    /* Phone Mockup responsivo */
    .phone-mockup {
        width: 100%;
        max-width: 300px;
        height: 540px;
        border-radius: 32px;
    }
    
    /* Grids em 1 coluna para celular */
    .grid, .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    .card {
        padding: 1.5rem !important;
    }
    
    /* Calculadora responsiva */
    .calc-card {
        padding: 1.5rem !important;
    }
    
    .calc-loss-amount {
        font-size: 2.25rem;
    }
    
    .calc-card .grid-2 {
        gap: 1.5rem !important;
    }
    
    /* Comparador Antes vs Depois no mobile */
    .ba-container {
        min-height: 520px;
    }
    
    .ba-panel {
        padding: 1.75rem 1.25rem;
    }
    
    .ba-panel h3 {
        font-size: 1.2rem;
    }
    
    .ba-panel ul {
        font-size: 0.9rem !important;
    }
    
    /* Botões 100% largura no mobile */
    .btn {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    /* Desativa cursor personalizado em aparelhos touch */
    .custom-cursor {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
    
    /* Floating Action Button no Mobile */
    .mobile-fab {
        display: block !important;
    }
    
    footer {
        margin-bottom: 90px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 45px;
    }
    
    h1 {
        font-size: 2.1rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.35rem !important;
    }
    
    .niche-tabs {
        gap: 0.5rem;
    }
    
    .niche-tab {
        padding: 0.65rem 1.1rem;
        font-size: 0.88rem;
        width: 100%;
        justify-content: center;
    }
    
    .integration-chip {
        width: 100%;
        justify-content: center;
    }
}
