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

/* ===== CARROSSEL RESPONSIVO ===== */
@media (max-width: 768px) {
    .servicos-carousel-container {
        margin: 2rem 0;
    }
    
    .servico-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        will-change: transform;
        flex-shrink: 0;
        height: auto;
        box-sizing: border-box;
        contain: layout;
        backface-visibility: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
        isolation: isolate;
        filter: blur(0);
        image-rendering: -webkit-optimize-contrast;
        text-rendering: optimizeLegibility;
        font-smooth: always;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .carousel-indicators {
        margin-top: 1rem;
    }
    
    .servicos-actions {
        margin-top: 2rem;
    }
    
    .servicos-actions .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .servico-card {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
    }
    
    .galeria-item {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
        will-change: transform;
        flex-shrink: 0;
        height: auto;
        box-sizing: border-box;
        contain: layout;
        backface-visibility: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
        isolation: isolate;
        filter: blur(0);
        image-rendering: -webkit-optimize-contrast;
        text-rendering: optimizeLegibility;
        font-smooth: always;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    
    .servicos-actions {
        margin-top: 1rem;
    }
    
    .servicos-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .servicos-actions .btn:first-child {
        margin-bottom: 1rem;
    }
    
    .servicos-actions .btn:last-child {
        margin-top: 0;
    }
    
    .servicos-actions .btn:not(:last-child) {
        margin-bottom: 1rem;
    }
    
    .servicos-actions .btn:not(:first-child) {
        margin-top: 0;
    }
}

/* ===== PÁGINA TODOS OS SERVIÇOS RESPONSIVA ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicos-grid.list-view .servico-card {
        flex-direction: column;
        text-align: center;
    }
    
    .servicos-grid.list-view .servico-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .servicos-grid.list-view .servico-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .todos-servicos {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .filter-select {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .servicos-grid {
        gap: 1rem;
    }
    
    .servico-card {
        padding: 1rem;
    }
    
    .servico-title {
        font-size: 1.1rem;
    }
    
    .servico-description {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contato-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        display: flex;
        align-items: center;
    }
    
    .logo-image {
        max-height: 40px;
        width: auto;
    }
    
    .btn-google-nav {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .btn-google-nav i {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text-box {
        padding: 2.5rem 2rem;
        margin: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Seções */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Serviços */
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servico-content {
        padding: 1.5rem;
    }
    
    .servico-image {
        height: 180px;
    }
    
    /* Galeria */
    .galeria-carousel-container {
        margin: 2rem 0;
    }
    
    .galeria-item {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-controls {
        display: none;
    }
    
    /* Sobre */
    .sobre-diferenciais {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Contato */
    .contato-form {
        padding: 2rem 1.5rem;
    }
    
    /* CTA Final */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text-box {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Seções */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Serviços */
    .servico-content {
        padding: 1.2rem 1rem;
    }
    
    .servico-image {
        height: 160px;
    }
    
    .servico-icon {
        width: 60px;
        height: 60px;
    }
    
    .servico-icon i {
        width: 24px;
        height: 24px;
    }
    
    .servico-price {
        font-size: 1.5rem;
    }
    
    /* Galeria */
    .galeria-item {
        aspect-ratio: 4/3;
    }
    
    /* Sobre */
    .sobre-description {
        font-size: 1rem;
    }
    
    .diferencial {
        padding: 0.8rem;
    }
    
    /* Contato */
    .info-item {
        padding: 1rem;
    }
    
    .contato-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    /* Botões */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Mobile Extra Small (até 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text-box {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .servico-card {
        padding: 1.2rem 0.8rem;
    }
    
    .contato-form {
        padding: 1.2rem 0.8rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.2rem 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text-box {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .sobre-img,
    .galeria-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll,
    .cta-final,
    .footer,
    .modal {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-content {
        color: var(--text-dark);
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .servico-card,
    .info-item,
    .contato-form {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #E0E0E0;
        --text-light: #B0B0B0;
        --bg-white: #1A1A1A;
        --bg-light: #2A2A2A;
        --border-color: #404040;
    }
    
    .header {
        background: #4c5343 !important;
    }
    
    .servico-card,
    .info-item,
    .contato-form {
        background: var(--bg-light);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.filter-btn:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

/* ===== BOTÃO WHATSAPP RESPONSIVO ===== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 58px;
        height: 58px;
        border-width: 2px;
    }
    
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-btn:hover {
        transform: scale(1.1) translateY(-1px);
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    
    .whatsapp-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-btn:hover {
        transform: scale(1.08) translateY(-1px);
    }
    
    @keyframes whatsappFloat {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-2px);
        }
    }
}

.skip-link:focus {
    top: 6px;
}