/* ===== RESPONSIVIDADE ===== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .sobre-content {
        gap: 3rem;
    }
    
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navegação */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Sobre */
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sobre-image {
        order: -1;
    }
    
    /* Serviços */
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servico-detalhes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contato */
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Estatísticas */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .satisfacao-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    
    /* Tipografia */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Navegação */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .nav-logo span {
        font-size: 0.8rem;
    }
    
    /* Estatísticas */
    .stats-section {
        margin-top: -30px;
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sobre */
    .sobre {
        padding: 3rem 0;
    }
    
    .timeline-container {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    /* Serviços */
    .servicos {
        padding: 3rem 0;
    }
    
    .servico-card {
        padding: 1.5rem;
    }
    
    .servico-icon {
        font-size: 2.5rem;
    }
    
    .por-que-escolher {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }
    
    /* Depoimentos */
    .depoimentos {
        padding: 3rem 0;
    }
    
    .depoimento-card {
        padding: 1.5rem;
    }
    
    .depoimento-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .satisfacao-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Contato */
    .contato {
        padding: 3rem 0;
    }
    
    .info-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 1rem;
    }
    
    .contato-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Valores */
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .valor-item {
        padding: 1.5rem;
    }
    
    /* WhatsApp e Back to Top */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 75px;
        right: 15px;
    }
}

/* Mobile Small (375px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 8px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Navegação */
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    /* Estatísticas */
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Sobre */
    .sobre-image .image-overlay {
        bottom: 10px;
        right: 10px;
        padding: 0.8rem;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
    
    /* Serviços */
    .servico-card {
        padding: 1rem;
    }
    
    .servico-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .servico-card h3 {
        font-size: 1.1rem;
    }
    
    /* Depoimentos */
    .depoimento-card {
        padding: 1rem;
    }
    
    .depoimento-text p {
        font-size: 1rem;
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contato */
    .info-card {
        padding: 1rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contato-form {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    /* Footer */
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Extra Small (320px - 374px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .servico-card h3 {
        font-size: 1rem;
    }
    
    .depoimento-text p {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .stats-section {
        margin-top: -20px;
        padding: 1.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .cookie-notice,
    .hero-buttons,
    .carousel-controls {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-text {
        color: #000;
    }
    
    .section-header {
        page-break-after: avoid;
    }
    
    .servico-card,
    .depoimento-card,
    .info-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .contato-form {
        display: none;
    }
    
    .mapa-container {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-track {
        transition: none;
    }
    
    .preloader-spinner {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --light-gray: #2a2a2a;
        --border-color: #404040;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .servico-card,
    .depoimento-card,
    .info-card,
    .stat-item,
    .valor-item,
    .contato-form,
    .faq-item {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(0, 85, 102, 0.9), rgba(0, 153, 102, 0.8));
    }
}