/* Otimizações adicionais para dispositivos móveis */

/* Ajustes gerais para responsividade */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

/* Tablets e dispositivos médios */
@media screen and (max-width: 992px) {
    /* Ajustes para seções */
    section {
        padding: 80px 0;
    }
    
    /* Ajustes para o hero */
    .hero-content h2 {
        font-size: 3rem;
    }
    
    /* Ajustes para a seção sobre */
    .sobre-content {
        gap: 30px;
    }
    
    /* Ajustes para serviços */
    .servico-card {
        padding: 30px 20px;
    }
    
    /* Ajustes para o formulário de contato */
    .contato-content {
        gap: 40px;
    }
}

/* Dispositivos móveis */
@media screen and (max-width: 768px) {
    /* Ajustes para o header */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    /* Ajustes para o hero */
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Ajustes para títulos de seção */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Ajustes para a seção sobre */
    .sobre-text h3 {
        font-size: 1.5rem;
    }
    
    /* Ajustes para o portfólio */
    .portfolio-item {
        height: 250px;
    }
    
    /* Ajustes para depoimentos */
    .depoimento-content {
        padding: 25px 15px;
    }
    
    /* Ajustes para o footer */
    .footer-content {
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links ul li {
        margin-bottom: 0;
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    /* Ajustes para o botão voltar ao topo */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Dispositivos móveis pequenos */
@media screen and (max-width: 576px) {
    /* Ajustes para o header */
    .header {
        padding: 10px 0;
    }
    
    /* Ajustes para seções */
    section {
        padding: 60px 0;
    }
    
    /* Ajustes para o hero */
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
    
    /* Ajustes para títulos de seção */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Ajustes para a seção sobre */
    .sobre-text h3 {
        font-size: 1.3rem;
    }
    
    /* Ajustes para serviços */
    .servico-card {
        padding: 25px 15px;
    }
    
    .servico-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .servico-icon i {
        font-size: 1.5rem;
    }
    
    .servico-card h3 {
        font-size: 1.3rem;
    }
    
    /* Ajustes para o portfólio */
    .portfolio-item {
        height: 200px;
    }
    
    /* Ajustes para depoimentos */
    .depoimento-content {
        padding: 20px 15px;
    }
    
    .cliente-info h4 {
        font-size: 1rem;
    }
    
    /* Ajustes para o formulário de contato */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .info-item h4 {
        font-size: 1.1rem;
    }
    
    /* Ajustes para o footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    
    .nav.active {
        overflow-y: auto;
    }
}

/* Ajustes para telas de alta resolução */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    body {
        font-size: 18px;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .sobre-text h3 {
        font-size: 2rem;
    }
    
    .servico-card h3 {
        font-size: 1.7rem;
    }
}

/* Ajustes para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Melhorias para toque em dispositivos móveis */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .servico-card:hover {
        transform: none;
    }
    
    .portfolio-item:hover img {
        transform: none;
    }
    
    .nav ul li a:hover::after {
        width: 0;
    }
    
    .nav ul li a.active::after {
        width: 100%;
    }
    
    .social-media a:hover,
    .footer-social a:hover {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: none;
    }
}
