/* EletroCenter - CSS Responsivo */
/* Mobile-first design para todos os dispositivos */

/* ===== BREAKPOINTS ===== */
/* 
   xs: 0px - 575px (Mobile)
   sm: 576px - 767px (Mobile Large)
   md: 768px - 991px (Tablet)
   lg: 992px - 1199px (Desktop)
   xl: 1200px+ (Large Desktop)
*/

/* ===== TABLET E MOBILE ===== */
@media (max-width: 991px) {
    
    /* Container */
    .container {
        padding: 0 var(--spacing-3);
    }
    
    /* Typography */
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-6);
        text-align: center;
    }
    
    .nav-link {
        font-size: var(--font-size-xl);
        padding: var(--spacing-4);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero */
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        width: 250px;
        height: 250px;
    }
    
    .hero-icon {
        font-size: 80px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 var(--spacing-2);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-6);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }
    
    .contact-item {
        padding: var(--spacing-4);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: var(--font-size-lg);
    }
    
    .contact-form {
        padding: var(--spacing-6);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: var(--spacing-4);
        right: var(--spacing-4);
        font-size: var(--font-size-xl);
    }
}

/* ===== MOBILE PEQUENO ===== */
@media (max-width: 575px) {
    
    /* Base */
    html {
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-2);
    }
    
    /* Spacing */
    .about,
    .products,
    .contact {
        padding: var(--spacing-16) 0;
    }
    
    .hero {
        padding: var(--spacing-20) 0 var(--spacing-16) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-12);
    }
    
    /* Typography */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Header */
    .navbar {
        padding: var(--spacing-3) 0;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-3);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-4) var(--spacing-6);
    }
    
    .hero-visual {
        width: 200px;
        height: 200px;
    }
    
    .hero-icon {
        font-size: 60px;
    }
    
    /* About */
    .about-text h3 {
        font-size: var(--font-size-xl);
    }
    
    .about-text p {
        font-size: var(--font-size-base);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    .stat-item {
        margin: 0;
        padding: var(--spacing-4);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .product-card {
        padding: var(--spacing-6);
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: var(--font-size-2xl);
    }
    
    .product-title {
        font-size: var(--font-size-xl);
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-3);
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .contact-details h4 {
        font-size: var(--font-size-base);
    }
    
    .contact-details p {
        font-size: var(--font-size-sm);
    }
    
    .contact-form {
        padding: var(--spacing-4);
    }
    
    .form-group {
        margin-bottom: var(--spacing-4);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-16) 0 var(--spacing-6) 0;
    }
    
    .footer-content {
        gap: var(--spacing-8);
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-section h4 {
        font-size: var(--font-size-base);
    }
    
    .footer-description,
    .footer-links a,
    .footer-contact p {
        font-size: var(--font-size-sm);
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: var(--spacing-3);
        right: var(--spacing-3);
        font-size: var(--font-size-lg);
    }
}

/* ===== TABLET ESPECÍFICO ===== */
@media (min-width: 768px) and (max-width: 991px) {
    
    /* Hero */
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-16);
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-16);
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-16);
    }
}

/* ===== DESKTOP GRANDE ===== */
@media (min-width: 1200px) {
    
    /* Container */
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-6);
    }
    
    /* Typography */
    .hero-title {
        font-size: var(--font-size-6xl);
    }
    
    .section-title {
        font-size: var(--font-size-5xl);
    }
    
    /* Hero */
    .hero-visual {
        width: 350px;
        height: 350px;
    }
    
    .hero-icon {
        font-size: 140px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Spacing */
    .about,
    .products,
    .contact {
        padding: var(--spacing-24) 0;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: var(--spacing-16) 0;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-8);
        align-items: center;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-4);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-6);
    }
    
    .hero-visual {
        width: 150px;
        height: 150px;
    }
    
    .hero-icon {
        font-size: 50px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* ===== ACESSIBILIDADE E PERFORMANCE ===== */

/* Reduzir animações para usuários que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-visual,
    .hero-icon,
    .scroll-down,
    .whatsapp-float {
        animation: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    
    :root {
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-800: #000000;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .nav-link,
    .footer-links a {
        text-decoration: underline;
    }
}

/* Modo escuro (se suportado pelo navegador) */
@media (prefers-color-scheme: dark) {
    
    /* Implementação básica do modo escuro pode ser adicionada aqui */
    /* Por enquanto, mantemos o design claro para consistência da marca */
    
}

/* ===== PRINT STYLES ===== */
@media print {
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .hero-scroll,
    .whatsapp-float,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-8) 0;
    }
    
    .section-title::after {
        display: none;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .products-grid,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
}

