/* ===== RESPONSIVE DESIGN ===== */

/* Tablets e telas médias */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration {
        height: 180px;
        width: 240px;
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }
    
    .hero-illustration i {
        font-size: 80px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .about-illustration {
        width: 300px;
        height: 300px;
    }
    
    .about-illustration i {
        font-size: 80px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Smartphones e telas pequenas */
@media (max-width: 768px) {
    /* Ajuste do scroll margin para mobile */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Header responsivo */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        padding: var(--spacing-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--light-color);
        text-align: center;
    }
    
    .nav-toggle {
        display: block;
    }
    
    /* Hero responsivo */
    .hero {
        min-height: calc(80vh - 60px);
        text-align: center;
        padding-top: 80px; /* Espaçamento reduzido no mobile */
        /* Mais proporcional às outras seções */
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-illustration {
        width: 250px;
        height: 250px;
    }
    
    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .hero-illustration i {
        font-size: 60px;
    }
    
    /* Seções responsivas */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Serviços responsivos */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-md);
    }
    
    .service-icon i {
        font-size: var(--font-size-xl);
    }
    
    /* Sobre responsivo */
    .about-illustration {
        width: 250px;
        height: 250px;
    }
    
    .about-illustration i {
        font-size: 60px;
    }
    
    .value-item {
        gap: var(--spacing-md);
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-icon i {
        font-size: var(--font-size-lg);
    }
    
    /* Clientes responsivos */
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Contato responsivo */
    .contact-method {
        gap: var(--spacing-md);
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
    }
    
    .method-icon i {
        font-size: var(--font-size-lg);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    /* Footer responsivo */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Espaçamentos reduzidos */
    .services,
    .about,
    .clients,
    .contact {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    .contact-form-container {
        padding: var(--spacing-md);
    }
    
    .hero-illustration,
    .about-illustration {
        width: 180px;
        height: 180px;
    }
    
    .hero-illustration i,
    .about-illustration i {
        font-size: 50px;
    }
    
    /* Ajustes de botões */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    /* Ajustes de formulário */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
}

/* Melhorias para telas muito grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-illustration {
        height: 400px;
        width: 533px;
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }
    
    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .hero-illustration i {
        font-size: 150px;
    }
    
    .about-illustration {
        width: 500px;
        height: 500px;
    }
    
    .about-illustration i {
        font-size: 150px;
    }
}

/* Acessibilidade - Preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f8fafc;
        --light-color: #1e293b;
        --white-color: #0f172a;
        --gray-color: #cbd5e1;
    }
    
    .header {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .nav-link {
        color: var(--gray-color);
    }
    
    .service-card,
    .client-card,
    .contact-form-container,
    .clients-cta {
        background: var(--light-color);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--white-color);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--gray-color);
    }
}