/* CSS Responsivo */

/* Mobile First - Base styles */
.container {
    padding: 0 15px;
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    /* Grid adjustments */
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contato-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 40px;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
}

/* Mobile specific styles */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    
    /* Spacing */
    .section-header { margin-bottom: 40px; }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 30px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Hero adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        margin-top: 40px;
    }
    
    /* Cards and grids */
    .servicos-grid,
    .stats-grid,
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Forms */
    .contato-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Tabs */
    .tabs-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tab-content {
        padding: 25px 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* WhatsApp float adjustments */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
    
    /* Back to top adjustments */
    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content {
        gap: 40px;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .cookie-notice,
    #preloader {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .servico-card,
    .info-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .spinner {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .servico-card,
    .info-card {
        border: 2px solid #333;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for dark mode styles */
    /* You can uncomment and customize these if needed */
    
    /*
    :root {
        --primary-color: #ff6b7a;
        --text-color: #ffffff;
        --bg-color: #1a1a1a;
    }
    
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .servico-card,
    .info-card,
    .contato-form {
        background: #2a2a2a;
        color: #ffffff;
    }
    */
} 