/*
 * CSS Responsivo do Tema iLook
 * Otimizado para todos os dispositivos
 */

/* ==========================================================================
   LAYOUT RESPONSIVO
   ========================================================================== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .footer-widgets-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-branding {
        text-align: center;
    }
    
    .footer-widgets-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-widget-area:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navegação mobile */
    .menu-container {
        position: relative;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        margin-left: auto;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        width: 24px;
        height: 18px;
        justify-content: space-between;
    }
    
    .hamburger span {
        display: block;
        height: 2px;
        background: #333;
        transition: all 0.3s ease;
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 5px;
        padding: 1rem;
        z-index: 1000;
    }
    
    .primary-menu.toggled {
        display: block;
    }
    
    .primary-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 0.75rem 0;
        color: #333;
    }
    
    /* Tipografia mobile */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    /* Footer mobile */
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .site-info {
        text-align: center;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Mobile Small (até 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    .content-area {
        padding: 1rem 0;
    }
    
    .entry-header {
        margin-bottom: 1rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .site-branding .site-title {
        font-size: 1.25rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   OTIMIZAÇÕES PARA PAGE BUILDERS
   ========================================================================== */

/* Elementor responsivo */
@media (max-width: 1024px) {
    .elementor-page .site-main {
        padding: 0;
    }
    
    .elementor-section-wrap {
        overflow-x: hidden;
    }
}

@media (max-width: 767px) {
    .elementor-page .container {
        padding: 0;
    }
    
    /* Ocultar elementos desnecessários em mobile para page builders */
    .elementor-page .site-header {
        position: relative;
        z-index: 999;
    }
}

/* ==========================================================================
   UTILITÁRIOS RESPONSIVOS
   ========================================================================== */

/* Visibilidade por dispositivo */
.hide-mobile {
    display: block;
}

.hide-desktop {
    display: none;
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
    
    .hide-desktop {
        display: block;
    }
}

/* Espaçamentos responsivos */
.spacing-small { margin: 0.5rem 0; }
.spacing-medium { margin: 1rem 0; }
.spacing-large { margin: 2rem 0; }

@media (max-width: 767px) {
    .spacing-small { margin: 0.25rem 0; }
    .spacing-medium { margin: 0.5rem 0; }
    .spacing-large { margin: 1rem 0; }
}

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

/* Reduzir animações em dispositivos com preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    a {
        text-decoration: underline;
    }
    
    .widget-title {
        border-bottom-width: 3px;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .site-header {
        background: #2a2a2a;
        border-bottom-color: #444;
    }
    
    .site-footer {
        background: #2a2a2a;
        border-top-color: #444;
    }
    
    a {
        color: #66b3ff;
    }
    
    .primary-menu {
        background: #2a2a2a;
    }
}

