/* ============================================
   RESPONSIVE DESIGN - Premium Experience
   ============================================ */

/* Tablets Grandes */
@media (max-width: 1200px) {
    .container {
        padding: 0 clamp(1rem, 4vw, 2rem);
    }

    .hero h1 {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }

    .content-section {
        padding: var(--space-md);
    }

    .footer-content {
        gap: var(--space-md);
    }
}

/* Tablets */
@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .hero .container::before,
    .hero .container::after {
        display: none;
    }

    .sitemap-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Grande / Tablets Pequenos */
@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3.5rem;
    }

    .header {
        padding: 1rem 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: var(--space-sm);
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.875rem;
        align-items: center;
        width: 100%;
    }

    .hero-ctas a {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: var(--space-lg) 0;
    }

    .content-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .content-section::after {
        display: none;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-section p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .cta-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .cta-content {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .map-section {
        padding: var(--space-md);
        margin: var(--space-lg) 0;
    }

    .map-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .map-container {
        height: 350px;
        border-radius: var(--radius-md);
    }

    .footer {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-links a::before {
        display: none;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sitemap-category {
        padding: 1.25rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Mobile Médio */
@media (max-width: 640px) {
    :root {
        --space-sm: 0.875rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
    }

    .header .logo h1 {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 1.625rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-ctas a {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    .content-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.35rem;
    }

    .content-section h2::after {
        width: 50px;
        height: 2px;
    }

    .content-section:hover h2::after {
        width: 80px;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .cta-content {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .map-section h2 {
        font-size: 1.5rem;
    }

    .map-container {
        height: 280px;
    }

    .footer-info h3 {
        font-size: 1.35rem;
    }

    .footer-info > p {
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .cities {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .sitemap-category h2 {
        font-size: 1.25rem;
    }

    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    :root {
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header .logo h1 {
        font-size: 0.95rem;
    }

    .hero {
        padding: 90px 0 40px;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .hero-ctas {
        gap: 0.75rem;
    }

    .hero-ctas a {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .content-section {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .content-section h2 {
        font-size: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .content-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .cta-content {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .map-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .map-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .map-section h2::after {
        bottom: -6px;
        width: 50px;
    }

    .map-container {
        height: 240px;
        border-width: 2px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer::after {
        display: none;
    }

    .footer-info h3 {
        font-size: 1.25rem;
    }

    .contact-info {
        margin: 1rem 0;
    }

    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .cities {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .sitemap-category {
        padding: 1rem;
    }

    .sitemap-category h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .sitemap-category a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        padding-left: 0.875rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    .back-to-home {
        margin-top: 2rem;
    }
}

/* Mobile Extra Pequeno */
@media (max-width: 360px) {
    .header .logo h1 {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.35rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-ctas a {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .content-section h2 {
        font-size: 1.15rem;
    }

    .content-section p {
        font-size: 0.85rem;
    }

    .cta-content {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .map-container {
        height: 200px;
    }

    .whatsapp-float {
        bottom: 12px;
        right: 12px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-ctas a {
        width: auto;
        max-width: none;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .content-section {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .footer {
        padding: 1.5rem 0 0.75rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .whatsapp-float,
    .hero-ctas,
    .cta-section,
    .footer-links {
        display: none !important;
    }

    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
        color: black;
        background: white;
    }

    .hero::before,
    .hero::after,
    .hero-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .content-section::before,
    .content-section::after {
        display: none;
    }

    .content-section h2 {
        color: black;
        border-bottom: 2px solid #333;
        padding-bottom: 0.5rem;
    }

    .content-section h2::after {
        display: none;
    }

    .content-section p {
        color: #333;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }

    .footer {
        background: white;
        color: black;
        border-top: 1px solid #ddd;
        padding-top: 1rem;
    }

    .footer::before,
    .footer::after {
        display: none;
    }

    .footer-info h3 {
        background: none;
        -webkit-text-fill-color: black;
        color: black;
    }

    .map-section {
        page-break-before: always;
    }

    .map-container {
        display: none;
    }
}

/* ============================================
   PREFERÊNCIAS DO USUÁRIO
   ============================================ */

/* Modo escuro do sistema */
@media (prefers-color-scheme: dark) {
    /* O design já é predominantemente escuro no hero/header/footer */
    /* Apenas ajustes sutis nas seções de conteúdo se desejado */
}

/* Redução de movimento */
@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::before {
        animation: none;
    }

    .whatsapp-float::before {
        animation: none;
    }

    .hero .container::before,
    .hero .container::after {
        animation: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --secondary: #d4af37;
        --text-muted: #333333;
    }

    .content-section {
        border: 2px solid var(--primary);
    }

    .cta-content,
    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        border: 2px solid currentColor;
    }
}
