/* 
   Cliveter Eldorado - Ajustes de Responsividade
   Desenvolvido por: Manus
   Data: Junho 2025
*/

/* Ajustes para dispositivos muito pequenos (até 375px) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .servico-card,
    .membro-card,
    .blog-card {
        padding: var(--spacing-sm);
    }
    
    .footer h3 {
        font-size: 1.1rem;
    }
    
    .whatsapp-button {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
}

/* Ajustes para tablets em modo retrato (768px - 900px) */
@media (min-width: 768px) and (max-width: 900px) {
    .sobre-content,
    .localizacao-content,
    .contato-content {
        gap: var(--spacing-md);
    }
    
    .servicos-grid,
    .equipe-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        row-gap: var(--spacing-lg);
    }
}

/* Ajustes para dispositivos em orientação paisagem */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-content p {
        margin-bottom: var(--spacing-sm);
    }
    
    .main-nav.active .nav-list {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Ajustes para telas muito grandes (acima de 1440px) */
@media (min-width: 1440px) {
    /* Importante: manter a base tipográfica em 16px para não “ampliar” tudo que usa rem */
    html {
        font-size: 12px; /* antes: 18px */
    }
    
    .container {
        max-width: 1400px;
    }
    
    .hero {
        padding: 10rem 0;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .servicos-grid,
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .equipe-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ajustes para dispositivos com tela sensível ao toque */
@media (hover: none) {
    .nav-list a::after {
        display: none;
    }
    
    .btn:hover,
    .servico-card:hover,
    .membro-card:hover,
    .blog-card:hover,
    .social-media a:hover,
    .whatsapp-button:hover {
        transform: none;
    }
    
    .nav-list a,
    .btn,
    .social-media a,
    .blog-pagination a {
        padding: 0.75rem;
    }
}

/* Correções específicas para elementos do blog */
@media (max-width: 767px) {
    .blog-banner {
        padding: 3rem 0;
    }
    
    .blog-banner h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .related-card h4 {
        font-size: 1rem;
    }
}

/* Ajustes para o mapa em dispositivos móveis */
@media (max-width: 767px) {
    .mapa {
        height: 250px;
    }
    
    .info-window {
        max-width: 200px;
        font-size: 0.9rem;
    }
    
    .info-window h3 {
        font-size: 1.1rem;
    }
}

/* Ajustes para formulários em dispositivos móveis */
@media (max-width: 767px) {
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

/* Correção para o menu hambúrguer ativo */
.main-nav.active .hamburger {
    background-color: transparent;
}

.main-nav.active .hamburger::before {
    transform: rotate(45deg) translate(0, 8px);
}

.main-nav.active .hamburger::after {
    transform: rotate(-45deg) translate(0, -8px);
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Ajustes para alto contraste */
@media (prefers-contrast: high) {
    :root {
        --verde-principal: #006400;
        --verde-secundario: #008000;
        --verde-escuro: #004d00;
        --laranja-principal: #cc7000;
        --laranja-secundario: #e67e00;
        --laranja-escuro: #b35900;
        --cinza-escuro: #000000;
        --cinza-medio: #333333;
    }
    
    .btn,
    .nav-list a,
    .footer a {
        text-decoration: underline;
    }
}
