/* ========================================
   RESPONSIVE DESIGN - PREMIUM EDITION
   ======================================== */

/* Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero p {
        font-size: 1.35rem;
    }
    
    .services h2,
    .location h2 {
        font-size: 3.25rem;
    }
    
    .services p {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Standard (1200px+) */
@media (min-width: 1200px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 4rem;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .services h2,
    .location h2 {
        font-size: 3rem;
    }
}

/* Tablets Large (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero p {
        font-size: 1.15rem;
    }
    
    .hero-content {
        padding: 2.5rem;
    }

    .services h2,
    .location h2 {
        font-size: 2.5rem;
    }

    .sitemap-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Tablets Portrait & Mobile Large (768px) */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 16px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
        line-height: 1.15;
    }
    
    .hero h1::after {
        display: none;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-ctas {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary, .cta-tertiary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .services {
        padding: 3.5rem 0;
    }

    .services h2,
    .location h2 {
        font-size: 1.875rem;
        margin-bottom: 1.75rem;
    }
    
    .services h2::after,
    .location h2::after {
        width: 60px;
        height: 3px;
        bottom: -10px;
    }

    .services p {
        font-size: 1rem;
        padding: 0 0.5rem;
        line-height: 1.75;
    }

    .btn-whatsapp {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .location {
        padding: 3.5rem 0;
    }

    .location iframe {
        height: 350px;
        border-radius: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }

    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-grid a {
        text-align: center;
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .sitemap-grid a::before {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Mobile Medium (480px) */
@media (max-width: 480px) {
    .header-content {
        padding: 0.875rem 12px;
    }

    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: -0.01em;
    }

    .hero {
        padding: 3rem 0.75rem;
    }
    
    .hero-content {
        padding: 1.5rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.625rem;
    }

    .cta-primary, .cta-secondary, .cta-tertiary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        max-width: 280px;
        gap: 0.5rem;
    }

    .services {
        padding: 3rem 0;
    }

    .services h2,
    .location h2 {
        font-size: 1.625rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .services p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0;
    }
    
    .whatsapp-cta {
        margin-top: 2rem;
    }

    .btn-whatsapp {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        max-width: 260px;
        margin: 0 auto;
    }

    .location {
        padding: 3rem 0;
    }

    .location iframe {
        height: 280px;
        border-radius: 12px;
    }

    .footer-content {
        padding: 0 16px;
        gap: 1.75rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 2rem;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
    
    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    
    .whatsapp-float a::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }
}

/* Mobile Small (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .header-content {
        padding: 0.75rem 10px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.625rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-primary, .cta-secondary, .cta-tertiary {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        max-width: 260px;
    }

    .services h2,
    .location h2 {
        font-size: 1.5rem;
    }

    .services p {
        font-size: 0.9rem;
    }

    .btn-whatsapp {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        max-width: 240px;
    }

    .location iframe {
        height: 240px;
    }

    .footer-section h3 {
        font-size: 1.15rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        bottom: 14px;
        right: 14px;
    }

    .whatsapp-float a {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .sitemap-grid a {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Screens (320px) */
@media (max-width: 320px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .services h2,
    .location h2 {
        font-size: 1.375rem;
    }
    
    .cta-primary, .cta-secondary, .cta-tertiary {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        max-width: 240px;
    }

    .whatsapp-float a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .cta-primary, .cta-secondary, .cta-tertiary {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        max-width: none;
        width: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-primary:hover,
    .cta-secondary:hover,
    .cta-tertiary:hover,
    .btn-whatsapp:hover {
        transform: none;
    }
    
    .cta-primary:active,
    .cta-secondary:active,
    .cta-tertiary:active,
    .btn-whatsapp:active {
        transform: scale(0.98);
    }
    
    .sitemap-grid a:hover {
        transform: none;
        box-shadow: none;
    }
    
    .sitemap-grid a:active {
        transform: scale(0.99);
        background: var(--gray-100);
    }
    
    .whatsapp-float a:hover {
        transform: none;
    }
    
    .whatsapp-float a:active {
        transform: scale(0.95);
    }
}

/* Print styles */
@media print {
    .whatsapp-float,
    .hero-ctas,
    .whatsapp-cta {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-bg,
    .hero-bg::before,
    .hero-bg::after {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white !important;
    }

    .hero-content {
        color: black;
    }

    .hero h1 {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
        text-shadow: none;
        font-size: 2rem;
    }
    
    .hero p {
        color: #333 !important;
    }
    
    .services,
    .services:nth-child(even) {
        background: white !important;
    }
    
    .services h2,
    .location h2 {
        color: black !important;
        font-size: 1.5rem;
    }
    
    .services h2::after,
    .location h2::after {
        display: none;
    }
    
    footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid #333;
    }
    
    footer::before,
    footer::after {
        display: none !important;
    }
    
    .footer-section h3,
    .footer-section h4 {
        color: black !important;
    }
    
    .footer-section p,
    .footer-section ul li a {
        color: #333 !important;
    }
    
    .location {
        background: white !important;
    }
    
    .location iframe {
        display: none;
    }
}

/* Reduced Motion Preference */
@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;
    }
    
    .hero-bg::before,
    .whatsapp-float a::before {
        animation: none !important;
    }
}

/* Dark Mode Support (respects system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1e293b;
        --gray-100: #1e293b;
        --white: #0f172a;
    }
    
    /* Forçar cores claras nos textos quando em dark mode */
    body {
        color: #e2e8f0;
        background: #0f172a;
    }
    
    .sitemap-grid a {
        background: #1e293b;
        color: #e2e8f0;
        border-color: #334155;
    }
    
    .sitemap-grid a:hover {
        color: #fbbf24;
        background: #334155;
    }
    
    .sitemap-section h2 {
        color: #fbbf24;
    }
    
    .services p {
        color: #cbd5e1;
    }
    
    main h1 {
        color: #f1f5f9;
    }
    
    main > .container > p {
        color: #cbd5e1;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        border: 2px solid currentColor;
    }
    
    .services h2::after,
    .location h2::after {
        height: 5px;
    }
    
    .footer-section h3::after {
        height: 4px;
    }
}
