/* ========================================
   INFOLUX INFORMÁTICA - Estilos Responsivos
   Mobile-First Design
   ======================================== */

/* ========================================
   TABLET - 768px e acima
   ======================================== */
@media screen and (max-width: 1024px) {
    :root {
        --espacamento-xl: 4rem;
        --espacamento-lg: 2.5rem;
    }
    
    .container {
        padding: 0 var(--espacamento-sm);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mapa-categorias {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   MOBILE GRANDE - 576px a 768px
   ======================================== */
@media screen and (max-width: 768px) {
    :root {
        --espacamento-xl: 3rem;
        --espacamento-lg: 2rem;
        --espacamento-md: 1.5rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Header */
    .header {
        padding: 0.8rem 0;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px var(--espacamento-sm) var(--espacamento-lg);
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: var(--espacamento-sm);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--espacamento-md);
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    /* Seções SEO */
    .seo-section {
        padding: var(--espacamento-lg) 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .seo-content {
        padding: 0 var(--espacamento-xs);
    }
    
    .seo-content p {
        text-align: left;
    }
    
    /* CTA Intermediário */
    .cta-intermediario {
        padding: var(--espacamento-md);
        margin: var(--espacamento-sm) 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--espacamento-lg) 0 var(--espacamento-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--espacamento-md);
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* WhatsApp Flutuante */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 58px;
        height: 58px;
    }
    
    .whatsapp-float::before {
        width: 58px;
        height: 58px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    
    /* Mapa do Site */
    .mapa-site {
        padding: 100px var(--espacamento-sm) var(--espacamento-lg);
    }
    
    .mapa-categorias {
        grid-template-columns: 1fr;
        gap: var(--espacamento-md);
    }
    
    .categoria-card {
        padding: var(--espacamento-sm);
    }
}

/* ========================================
   MOBILE PEQUENO - até 576px
   ======================================== */
@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --espacamento-xl: 2.5rem;
        --espacamento-lg: 1.5rem;
        --espacamento-md: 1rem;
    }
    
    /* Header */
    .header {
        padding: 0.6rem 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 0.02em;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Hero */
    .hero {
        padding: 90px var(--espacamento-xs) var(--espacamento-md);
    }
    
    .hero::after {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.2rem;
        border-radius: 25px;
    }
    
    /* Seções SEO */
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header h2::after {
        width: 60px;
        height: 3px;
    }
    
    .seo-content p {
        font-size: 0.95rem;
    }
    
    .seo-content ul li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    /* Mapa Section */
    .mapa-container {
        border-radius: var(--borda-radius-md);
    }
    
    /* WhatsApp Flutuante */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float::before {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    /* Mapa do Site */
    .mapa-site h1 {
        font-size: 1.8rem;
    }
    
    .categoria-card h2 {
        font-size: 1.1rem;
    }
    
    .categoria-card ul li a {
        font-size: 0.85rem;
    }
}

/* ========================================
   PREFERÊNCIAS DE MOVIMENTO REDUZIDO
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .whatsapp-float::before {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   MODO ESCURO / CLARO DO SISTEMA
   (Site já é escuro por padrão)
   ======================================== */
@media (prefers-color-scheme: light) {
    /* Manter design escuro independente da preferência */
}

/* ========================================
   ORIENTAÇÃO LANDSCAPE EM MOBILE
   ======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px var(--espacamento-sm) var(--espacamento-md);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
    }
}

/* ========================================
   TELAS MUITO GRANDES - 1400px+
   ======================================== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .seo-content {
        max-width: 1000px;
    }
    
    .seo-content p {
        font-size: 1.15rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .whatsapp-float,
    .hero-ctas,
    .cta-intermediario {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .seo-section,
    .footer {
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6, p {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}

