/* Elite Dental - Estilos Responsivos Premium */
/* ============================================ */

/* Ultra Wide Screens (1920px+) */
@media (min-width: 1920px) {
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero p {
        font-size: 1.5rem;
        max-width: 800px;
    }
    
    .content-section .container {
        max-width: 1000px;
    }
    
    .content-section h2 {
        font-size: 3rem;
    }
    
    .content-section p {
        font-size: 1.25rem;
    }
}

/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 4.5rem;
    }

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

    .content-section h2 {
        font-size: 2.75rem;
    }

    .content-section p {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1.25rem 2.5rem;
        font-size: 1.05rem;
    }
}

/* Standard Desktops (1200px - 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .hero-content {
        max-width: 850px;
    }
}

/* Tablets e Laptops Pequenos (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero h1 {
        font-size: 3.25rem;
    }

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

    .content-section h2 {
        font-size: 2.25rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .header .container {
        padding: 0 1.5rem;
    }

    .logo-text {
        font-size: 2.2rem;
    }

    .hero {
        min-height: 85vh;
    }

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

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section p {
        font-size: 1.05rem;
    }

    .maps-section {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .site-map-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajuste Geral para Mobile - Garante Enquadramento Correto */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container,
    .header .container,
    .content-section .container,
    .maps-section .container,
    .footer .container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* WhatsApp Flutuante - Remove sublinhado em todos os estados */
    .whatsapp-float,
    .whatsapp-float:hover,
    .whatsapp-float:focus,
    .whatsapp-float:active,
    .whatsapp-float:visited {
        text-decoration: none;
    }
}

/* Mobile Grande (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        padding: 0 1.25rem;
    }

    .logo-text {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero h1::after {
        width: 60px;
        margin-top: 1rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .maps-section {
        padding: 3.5rem 0;
    }

    .maps-section .container {
        padding: 0 1rem;
    }
    
    .maps-section h2 {
        font-size: 2rem;
        margin-bottom: 1.75rem;
    }
    
    .map-container {
        border-radius: var(--radius-md);
    }

    .content-section {
        padding: 3.5rem 0;
    }

    .content-section .container {
        padding: 0 1.25rem;
    }

    .content-section h2 {
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .whatsapp-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .whatsapp-cta p {
        font-size: 1.1rem;
    }

    .whatsapp-cta .btn-whatsapp {
        font-size: 1.05rem;
        padding: 1rem 2rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer .container {
        padding: 0 1.25rem;
    }

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

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

    .footer-links {
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
    
    .site-map-list {
        grid-template-columns: 1fr;
    }
}

/* Mobile Padrão (480px - 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .header {
        padding: 0.875rem 0;
    }
    
    .header .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.85rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .hero {
        min-height: 92vh;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    .hero h1::after {
        width: 50px;
        height: 2px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .btn {
        max-width: 300px;
        padding: 0.9rem 1.4rem;
        font-size: 0.95rem;
    }

    .maps-section h2 {
        font-size: 1.85rem;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .content-section p {
        font-size: 0.975rem;
    }

    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* Mobile Pequeno (360px - 479px) */
@media (max-width: 479px) and (min-width: 360px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header .container {
        padding: 0 0.875rem;
    }

    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .hero {
        min-height: 95vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero h1::after {
        width: 45px;
        margin-top: 0.75rem;
    }

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

    .cta-buttons {
        gap: 0.75rem;
    }

    .btn {
        max-width: 280px;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .btn i {
        font-size: 1em;
    }

    .maps-section {
        padding: 3rem 0;
    }
    
    .maps-section .container {
        padding: 0 0.75rem;
    }

    .maps-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .map-container {
        padding: 0.35rem;
        border-radius: var(--radius-sm);
    }
    
    .map-container iframe {
        height: 350px;
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-section .container {
        padding: 0 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .content-section h2::after {
        width: 40px;
        height: 2px;
    }

    .content-section p {
        font-size: 0.925rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .whatsapp-cta {
        padding: 2rem 1rem;
    }
    
    .whatsapp-cta p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

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

    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer .container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 1.75rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 1.4rem;
    }
    
    .site-map-list a {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Extra Pequeno (-359px) */
@media (max-width: 359px) {
    .header {
        padding: 0.625rem 0;
    }
    
    .header .container {
        padding: 0 0.75rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

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

    .btn {
        max-width: 260px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .maps-section .container,
    .content-section .container,
    .footer .container {
        padding: 0 0.625rem;
    }

    .maps-section h2 {
        font-size: 1.4rem;
    }
    
    .map-container iframe {
        height: 300px;
    }

    .content-section h2 {
        font-size: 1.35rem;
    }

    .content-section p {
        font-size: 0.875rem;
    }

    .whatsapp-cta {
        padding: 1.75rem 0.75rem;
    }
    
    .whatsapp-cta p {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 12px;
        right: 12px;
    }

    .whatsapp-float i {
        font-size: 1.25rem;
    }
}

/* Orientação Paisagem para Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }

    .hero-content {
        padding: 1rem 2rem;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 1.85rem;
        margin-bottom: 0.75rem;
    }
    
    .hero h1::after {
        margin-top: 0.5rem;
        width: 50px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        max-width: 600px;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.625rem;
    }

    .btn {
        max-width: 200px;
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Paisagem para telas menores */
@media (max-width: 667px) and (orientation: landscape) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    .btn {
        max-width: 180px;
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

/* Acessibilidade - Alto Contraste */
@media (prefers-contrast: high) {
    :root {
        --navy-600: #0a1929;
        --navy-700: #050d15;
        --gold-400: #c9a227;
        --slate-600: #3d4654;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .content-section p {
        color: var(--slate-700);
    }
}

/* Preferência por Modo Escuro do Sistema */
@media (prefers-color-scheme: dark) {
    /* Mantém o design atual pois já tem bom contraste */
}

/* Impressão */
@media print {
    *,
    *::before,
    *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .whatsapp-float,
    .cta-buttons,
    .whatsapp-cta,
    .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        page-break-after: always;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h1::after {
        display: none;
    }

    .content-section,
    .maps-section {
        page-break-inside: avoid;
        padding: 1.5rem 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h2::after {
        display: none;
    }
    
    .map-container {
        display: none;
    }

    .footer {
        padding: 1rem 0;
    }
    
    .footer-section {
        page-break-inside: avoid;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    a[href^="tel:"]::after,
    a[href^="https://wa.me"]::after {
        content: none;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .whatsapp-float:hover {
        transform: none;
    }
    
    .whatsapp-float:active {
        transform: scale(0.95);
    }
    
    .site-map-list a:hover {
        transform: none;
    }
    
    .site-map-list a:active {
        background: var(--cream-100);
    }
}

/* Telas de Alta Resolução (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero h1::after,
    .content-section h2::after,
    .footer-section h3::after {
        height: 2px;
    }
}
