/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablets e dispositivos médios */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile e tablets pequenos */
@media (max-width: 768px) {
    /* Header */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        display: none;
        background: var(--light);
        border-radius: 8px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem;
    }
    
    .header-social {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid var(--light);
    }
    
    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-feature {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-feature i {
        font-size: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* Cards */
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .service-card {
        padding: 2rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Clients */
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1rem;
    }
    
    .client-logo img {
        max-height: 50px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .cta-section p {
        font-size: 1.125rem;
    }
    
    /* Contact Form */
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-wrapper {
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.625rem;
    }
    
    .feature-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
    }
}

/* Utilitários responsivos */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

/* Print styles */
@media print {
    .main-header,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
