/* Responsive Design - Mobile First */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .main-header {
        padding: 0.8rem 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .header-emojis {
        margin-top: 0.3rem;
    }

    .emoji-float {
        font-size: 1.2rem;
        margin: 0 0.3rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-whatsapp-hero {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-placeholder {
        padding: 2rem;
    }

    .hero-emoji {
        font-size: 3rem;
    }

    /* SEO Content */
    .seo-content {
        padding: 2rem 0;
    }

    .seo-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .seo-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .btn-whatsapp-content {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Maps */
    .maps-section {
        padding: 2rem 0;
    }

    .maps-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .whatsapp-text {
        display: none; /* Hide text on very small screens */
    }

    /* Footer */
    .main-footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .regioes-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-link {
        margin: 0;
    }

    .government-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .government-links a {
        margin: 0;
    }
}

/* Small Devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* SEO Content */
    .seo-section {
        padding: 1.8rem;
    }

    .seo-section h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .regioes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links,
    .government-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 992px) {
    /* Hero */
    .hero h1 {
        font-size: 3.2rem;
    }

    /* SEO Content */
    .seo-section h2 {
        font-size: 1.9rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .regioes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero */
    .hero-content,
    .hero-visual {
        flex: 1;
    }

    .hero {
        display: flex;
        align-items: center;
        min-height: 80vh;
    }

    .hero-content {
        margin: 0 2rem 0 0;
        text-align: left;
    }

    .hero-visual {
        margin-left: 2rem;
    }

    /* SEO Content */
    .seo-content .container {
        max-width: 1000px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .regioes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    /* Hero */
    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    /* SEO Content */
    .seo-section {
        padding: 2.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .regioes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .header-emojis,
    .hero-visual,
    .maps-section,
    .footer-links,
    .government-links {
        display: none !important;
    }

    .main-header {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }

    .hero {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }

    .seo-section {
        break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    .main-footer {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .main-header {
        background: #000 !important;
        color: #fff !important;
    }

    .hero {
        background: #000 !important;
        color: #fff !important;
    }

    .seo-section {
        background: #fff !important;
        border: 2px solid #000 !important;
    }

    .main-footer {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .emoji-float {
        animation: none !important;
    }

    .whatsapp-float a {
        animation: none !important;
    }

    .whatsapp-icon-large {
        animation: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }

    .seo-content {
        background: #1a1a1a;
    }

    .seo-section {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        color: #e0e0e0;
    }

    .maps-section {
        background: #1a1a1a;
    }

    .sitemap-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .sitemap-section h2,
    .sitemap-section h3 {
        color: #e0e0e0;
    }

    .sitemap-grid a {
        color: #4da6d9;
    }

    .sitemap-grid a:hover {
        color: #6bb9e0;
    }
}

/* Orientation changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}