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

/* Ajustes gerais para dispositivos móveis */
@media (max-width: 768px) {
    /* Ajustes de tipografia */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.6rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .subtitle {
        font-size: 1.1rem !important;
    }
    
    /* Ajustes de espaçamento */
    .hero {
        padding: 100px 0 40px !important;
    }
    
    section {
        padding: 50px 0 !important;
    }
    
    /* Ajustes de layout */
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
    
    .hero-form {
        width: 100% !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    .method-steps {
        flex-direction: column;
    }
    
    .method-step {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    .testimonials {
        flex-direction: column;
    }
    
    .testimonial {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    /* Ajustes para o menu mobile */
    .mobile-menu-btn {
        display: block !important;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 15px 0 !important;
    }
    
    nav ul li:last-child {
        margin-bottom: 0 !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text {
        padding-right: 20px !important;
    }
    
    .hero-form {
        flex: 0 0 350px !important;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .method-step {
        flex: 0 0 calc(50% - 15px) !important;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px) !important;
    }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
    }
    
    .hero {
        padding: 90px 0 30px !important;
    }
    
    .form-title {
        font-size: 1.3rem !important;
    }
    
    .btn-primary {
        padding: 12px !important;
        font-size: 1rem !important;
    }
    
    .countdown {
        font-size: 0.9rem !important;
    }
    
    .benefit-card {
        padding: 20px !important;
    }
    
    .benefit-icon {
        font-size: 2rem !important;
    }
    
    .benefit-title {
        font-size: 1.1rem !important;
    }
    
    .social-links a {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
    }
    
    .video-thumbnail {
        height: 160px !important;
    }
    
    .share-button {
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        font-size: 1.2rem !important;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 30px !important;
    }
    
    .hero-content {
        flex-direction: row !important;
    }
    
    .hero-text {
        flex: 0 0 50% !important;
        padding-right: 20px !important;
    }
    
    .hero-form {
        flex: 0 0 50% !important;
    }
    
    .form-group {
        margin-bottom: 10px !important;
    }
    
    nav.active {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Melhorias de acessibilidade para toque */
@media (hover: none) {
    .btn-primary, 
    .blog-link, 
    .faq-question,
    .social-links a,
    .share-button,
    .video-thumbnail {
        cursor: pointer;
    }
    
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .faq-question {
        padding: 15px !important;
    }
    
    nav ul li a {
        padding: 10px 0 !important;
        display: block;
    }
    
    .social-links a:active,
    .share-button:active {
        transform: scale(0.95);
    }
}

/* Ajustes para telas de alta resolução */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
    
    h1 {
        font-size: 3.2rem !important;
    }
    
    h2 {
        font-size: 2.5rem !important;
    }
    
    h3 {
        font-size: 2rem !important;
    }
    
    .subtitle {
        font-size: 1.6rem !important;
    }
    
    p {
        font-size: 1.2rem !important;
    }
    
    .btn-primary {
        padding: 18px !important;
        font-size: 1.2rem !important;
    }
}

/* Ajustes para modo escuro do sistema */
@media (prefers-color-scheme: dark) {
    .benefit-card,
    .testimonial,
    .faq-question,
    .blog-post,
    .team-member,
    .video-thumbnail {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
}

/* Otimizações de desempenho para animações */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn-primary:hover,
    .benefit-card:hover,
    .blog-post:hover,
    .social-links a:hover,
    .share-button:hover,
    .video-thumbnail:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}
