/* Responsive Design - Breakpoints otimizados */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-bar {
        gap: 40px;
    }
}

/* Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .main-header .container {
        padding: 12px 20px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-content p {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .map-container iframe {
        height: 400px;
    }
}

/* Small Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .main-header .container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }

    .nav-bar {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-phone,
    .btn-whatsapp-header {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 90px;
    }

    .hero {
        padding: 60px 0;
        margin-top: 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
    }

    .hero-placeholder {
        width: 250px;
        height: 250px;
    }

    .seo-content {
        padding: 60px 0;
    }

    .seo-content h2 {
        font-size: 1.8rem;
        margin: 35px 0 18px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }

    .main-header {
        position: relative;
    }

    .main-header .container {
        padding: 8px 12px;
    }

    .logo {
        font-size: 1.0rem;
        text-align: center;
    }

    .nav-bar {
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .header-buttons {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .btn-phone,
    .btn-whatsapp-header {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
        min-width: unset;
        justify-content: center;
    }

    .hero {
        padding: 40px 0;
        margin-top: 0;
    }

    .hero .container {
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-placeholder {
        width: 180px;
        height: 180px;
    }

    .emoji-animation {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-link {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .seo-content {
        padding: 40px 0;
    }

    .seo-content .container {
        max-width: 100%;
    }

    .seo-content h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px 0;
        padding-bottom: 8px;
    }

    .seo-content h2::before {
        display: none;
    }

    .seo-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .btn-whatsapp-cta {
        width: 100%;
        text-align: center;
        margin: 25px 0;
        padding: 14px 20px;
    }

    .maps-section {
        padding: 40px 0;
    }

    .maps-section h2 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .maps-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .map-container iframe {
        height: 300px;
    }

    .main-footer {
        padding: 30px 0 15px 0;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .footer-links {
        padding: 15px 0;
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 0.9rem;
    }
}

/* Ultra Small Devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-placeholder {
        width: 150px;
        height: 150px;
    }

    .emoji-animation {
        font-size: 2rem;
    }

    .seo-content h2 {
        font-size: 1.4rem;
    }

    .maps-section h2 {
        font-size: 1.7rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 150px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* Print optimizations */
@media print {
    .main-header,
    .whatsapp-float,
    .hero-buttons,
    .btn-whatsapp-cta,
    .maps-section {
        display: none !important;
    }

    .seo-content {
        color: #000 !important;
        background: #fff !important;
    }

    .seo-content h2 {
        color: #000 !important;
        border-color: #000 !important;
    }

    .footer-section h3 {
        color: #000 !important;
    }

    .main-footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 1px solid #000;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
