/* ============================================
   ESTILOS MOBILE - RESPONSIVO E MODERNO
   ============================================ */

/* Menu Toggle para Mobile */
.menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #0066cc;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #3399ff;
    font-size: 20px;
}

.menu-toggle:hover {
    background: #004499;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.6);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Sidebar Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
        background: linear-gradient(180deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
        border-right: 3px solid #0066cc;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 204, 0.3);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 10px;
    }

    .blocos {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
        margin: 20px 0;
    }

    .bloco {
        margin: 0;
        padding: 25px;
        min-height: 350px;
    }
    
    .bloco img {
        height: 150px;
        margin-bottom: 20px;
    }

    .bloco h3 {
        font-size: 1.5em;
        margin: 15px 0;
    }

    .bloco p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .bloco a {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 200px;
    }

    .header {
        min-height: 300px;
        height: auto;
        padding: 10px;
    }

    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
        object-fit: contain;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }

    footer .container {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer-bottom-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h4 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.9em;
        line-height: 1.6;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .blocos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .bloco {
        min-height: 380px;
        padding: 25px;
    }
    
    .bloco img {
        height: 160px;
    }
    
    .bloco h3 {
        font-size: 1.6em;
    }

    .container {
        max-width: calc(100% - 250px);
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .header {
        min-height: 150px;
        padding: 10px;
    }

    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
        object-fit: contain;
    }

    .blocos {
        padding: 15px 10px;
        gap: 15px;
    }

    .bloco {
        padding: 20px;
        margin: 0;
        min-height: 320px;
    }
    
    .bloco img {
        height: 120px;
        margin-bottom: 15px;
    }

    .bloco h3 {
        font-size: 1.3em;
        margin: 12px 0;
    }

    .bloco p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .bloco a {
        padding: 10px 20px;
        font-size: 0.95em;
        min-width: 180px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 10px;
        right: 10px;
    }

    .sidebar {
        width: 220px;
    }

    .menu-toggle {
        padding: 10px 12px;
        font-size: 18px;
    }
}

/* Ajuste específico para resolução muito pequena (320x480) */
@media screen and (max-width: 320px) {
    .header {
        min-height: 120px;
        padding: 5px;
    }

    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
        object-fit: contain;
    }

    .blocos {
        padding: 10px 5px;
        gap: 12px;
    }

    .bloco {
        padding: 15px;
        margin: 0;
        min-height: 300px;
    }
    
    .bloco img {
        height: 100px;
        margin-bottom: 12px;
    }

    .bloco h3 {
        font-size: 1.2em;
        margin: 10px 0;
    }

    .bloco p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .bloco a {
        padding: 8px 18px;
        font-size: 0.9em;
        min-width: 160px;
    }

    .sidebar {
        width: 200px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Melhorias de acessibilidade e performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Orientação Landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        height: 200px;
    }

    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
        object-fit: contain;
    }
}
