/* ========================================
   RESPONSIVE DESIGN - JULIO MASSOQUIRO
   Premium Quiropraxia & Massoterapia
   ======================================== */

/* ========================================
   TELAS EXTRA GRANDES (1400px+)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .seo-section {
        padding: var(--space-xl);
    }

    .seo-section h2 {
        font-size: 2.4rem;
    }

    .seo-section p {
        font-size: 1.15rem;
    }

    .maps-section h2 {
        font-size: 3.2rem;
    }
}

/* ========================================
   TABLETS LANDSCAPE (1200px)
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 0 var(--space-md);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   TABLETS (1024px)
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    /* Seções */
    .seo-section {
        padding: var(--space-md);
    }

    .seo-section h2 {
        font-size: 1.8rem;
    }

    /* Maps */
    .maps-section h2 {
        font-size: 2.2rem;
    }

    #maps-container {
        border-radius: var(--radius-md);
    }

    /* Footer */
    .footer-content {
        gap: var(--space-md);
    }
}

/* ========================================
   TABLETS PORTRAIT (768px)
   ======================================== */
@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3.5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    /* Header */
    .header {
        padding: 8px 0;
    }

    .logo h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .logo h1::after {
        width: 40px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 var(--space-xl);
    }

    .hero-content {
        padding: var(--space-md);
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-bottom: var(--space-sm);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: var(--space-md);
        line-height: 1.7;
    }

    .hero-ctas {
        gap: 12px;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 14px 24px;
        font-size: 0.95rem;
        max-width: 300px;
    }

    .hero-emojis {
        gap: var(--space-sm);
        margin-top: var(--space-sm);
    }

    .emoji {
        font-size: 2.2rem;
    }

    /* Maps Section */
    .maps-section {
        padding: var(--space-lg) 0;
    }

    .maps-section::before {
        height: 80px;
    }

    .maps-section h2 {
        font-size: 1.8rem;
        margin-bottom: var(--space-md);
    }

    .maps-section h2::after {
        width: 60px;
    }

    #maps-container {
        border-radius: var(--radius-sm);
        border-width: 2px;
    }

    #maps-container iframe {
        height: 350px;
    }

    /* Main Content */
    .main-content {
        padding: var(--space-lg) 0;
    }

    .seo-section {
        margin-bottom: var(--space-md);
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }

    .seo-section::before {
        width: 4px;
    }

    .seo-section::after {
        font-size: 1.2rem;
        top: var(--space-sm);
        right: var(--space-sm);
    }

    .seo-section h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .seo-section h2::after {
        width: 50px;
    }

    .seo-section p {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: var(--space-sm);
    }

    .cta-section,
    .cta_section {
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
    }

    .cta-content,
    .cta-whatsapp {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-sm);
    }

    .cities-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hours-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }

    .contact-info p {
        padding: 6px 0;
    }

    .footer-bottom {
        padding-top: var(--space-sm);
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    /* WhatsApp Float */
    #whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-link {
        width: 58px;
        height: 58px;
        font-size: 1.5rem;
    }

    .whatsapp-link::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }
}

/* ========================================
   MOBILE (480px)
   ======================================== */
@media (max-width: 480px) {
    :root {
        --space-sm: 0.75rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 2.5rem;
    }

    /* Header */
    .header {
        padding: 6px 0;
    }

    .logo {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 1rem;
        padding: 0 var(--space-xs);
    }

    /* Hero */
    .hero {
        padding: 90px 0 var(--space-lg);
    }

    .hero-content {
        padding: var(--space-sm);
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .hero-ctas {
        gap: 10px;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 280px;
        gap: 8px;
    }

    .cta-primary i,
    .cta-secondary i,
    .cta-tertiary i {
        font-size: 1rem;
    }

    .hero-emojis {
        gap: var(--space-xs);
    }

    .emoji {
        font-size: 1.8rem;
    }

    /* Maps Section */
    .maps-section {
        padding: var(--space-md) 0 var(--space-lg);
    }

    .maps-section::before {
        height: 60px;
    }

    .maps-section h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    #maps-container iframe {
        height: 280px;
    }

    /* Main Content */
    .main-content {
        padding: var(--space-md) 0;
    }

    .seo-section {
        margin-bottom: var(--space-sm);
        padding: var(--space-sm);
        border-radius: var(--radius-sm);
    }

    .seo-section::after {
        display: none;
    }

    .seo-section h2 {
        font-size: 1.35rem;
        padding-right: 0;
    }

    .seo-section p {
        font-size: 0.95rem;
    }

    .cta-content,
    .cta-whatsapp {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: var(--space-md) 0;
    }

    .footer-section h3 {
        font-size: 1.15rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .cities-list {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cities-list a {
        font-size: 0.9rem;
    }

    .hours-list li {
        font-size: 0.9rem;
    }

    .links-list a {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* WhatsApp Float */
    #whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-link {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}

/* ========================================
   MOBILE EXTRA PEQUENO (360px)
   ======================================== */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .emoji {
        font-size: 1.5rem;
    }

    .maps-section h2 {
        font-size: 1.35rem;
    }

    .seo-section h2 {
        font-size: 1.2rem;
    }

    .seo-section p {
        font-size: 0.9rem;
    }

    .cta-content,
    .cta-whatsapp {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .whatsapp-link {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 var(--space-md);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: var(--space-sm);
    }

    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        max-width: none;
        width: auto;
    }

    .hero-emojis {
        margin-top: var(--space-xs);
    }

    .emoji {
        font-size: 1.5rem;
    }
}

/* ========================================
   TELAS DE ALTA RESOLUÇÃO (4K)
   ======================================== */
@media (min-width: 2000px) {
    :root {
        --space-lg: 5rem;
        --space-xl: 8rem;
    }

    .container {
        max-width: 1600px;
    }

    .hero h1 {
        font-size: 6rem;
    }

    .hero p {
        font-size: 1.6rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 20px 40px;
        font-size: 1.3rem;
    }

    .seo-section h2 {
        font-size: 2.8rem;
    }

    .seo-section p {
        font-size: 1.25rem;
    }

    .maps-section h2 {
        font-size: 3.5rem;
    }

    .footer-section h3 {
        font-size: 1.6rem;
    }

    .whatsapp-link {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }
}

/* ========================================
   PREFERÊNCIAS DO USUÁRIO
   ======================================== */

/* Alto Contraste */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #003333;
        --color-secondary: #c9a959;
        --text-dark: #000000;
        --text-medium: #1a1a1a;
        --bg-cream: #ffffff;
        --bg-warm: #f5f5f5;
    }

    .seo-section {
        border: 2px solid var(--color-primary);
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-content,
    .cta-whatsapp {
        border: 2px solid currentColor;
    }
}

/* Modo de leitura escuro do navegador */
@media (prefers-color-scheme: dark) {
    /* Mantemos o design claro por padrão, mas ajustamos para melhor visualização */
    .hero-overlay {
        background: linear-gradient(180deg, rgba(13, 79, 79, 0.95) 0%, rgba(13, 79, 79, 0.9) 100%);
    }
}

/* ========================================
   AJUSTES PARA IMPRESSÃO
   ======================================== */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .header,
    #whatsapp-float,
    .hero-ctas,
    .hero-emojis,
    .cta-section,
    .cta_section,
    .cta-whatsapp-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .hero {
        background: none !important;
        height: auto;
        padding: 20px 0;
        min-height: auto;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: black !important;
    }

    .hero h1 {
        color: var(--color-primary);
        font-size: 24pt;
        animation: none;
        opacity: 1;
    }

    .hero p {
        color: black;
        animation: none;
        opacity: 1;
    }

    .maps-section {
        display: none;
    }

    .main-content {
        padding: 0;
        background: white;
    }

    .seo-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .seo-section::before,
    .seo-section::after {
        display: none;
    }

    .footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid var(--color-primary);
        padding: 20px 0;
    }

    .footer h3 {
        color: var(--color-primary) !important;
    }

    .footer a {
        color: black !important;
        text-decoration: underline;
    }

    .contact-info i {
        display: none;
    }
}

/* ========================================
   UTILITÁRIOS RESPONSIVE
   ======================================== */

/* Esconder em mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Esconder em desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Texto responsivo */
.text-responsive {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

/* Container fluido */
.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 var(--space-sm);
    }
}
