/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 320px) {
    .header-container {
        padding: 0 10px;
        height: 55px;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .emoji-animation {
        font-size: 1rem;
    }

    .hero {
        margin-top: 55px;
        min-height: calc(100vh - 55px);
    }

    .hero-container {
        padding: 20px 10px;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .hero-placeholder {
        height: 200px;
        max-width: 280px;
    }

    .hero-placeholder::before {
        font-size: 3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .seo-content {
        padding: 40px 0;
    }

    .content-container {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .content-container h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .content-container p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .map-section {
        padding: 0 10px;
    }

    .map-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .footer-container {
        padding: 0 10px;
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
    }
}

/* Small Devices (phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }

    .logo a {
        font-size: 1.3rem;
    }

    .hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-placeholder {
        height: 250px;
        max-width: 350px;
    }

    .content-container {
        padding: 0 15px;
    }

    .content-container h2 {
        font-size: 2rem;
    }

    .footer-container {
        padding: 0 15px;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .hero-placeholder {
        height: 280px;
        max-width: 400px;
    }

    .content-container h2 {
        font-size: 2.1rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 0 20px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-container {
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        margin-top: 0;
    }

    .hero-container {
        padding: 20px;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder::before {
        filter: blur(0.5px);
    }
}

/* Print styles */
@media print {
    .whatsapp-float,
    .cta-button,
    .nav-bar {
        display: none !important;
    }

    header {
        position: static;
        background: white;
        color: black;
        box-shadow: none;
    }

    .logo a {
        color: black !important;
    }

    .hero {
        background: white;
        color: black;
        margin-top: 0;
    }

    .hero-content h1 {
        color: black !important;
        text-shadow: none;
    }

    .hero-content p {
        color: black !important;
    }

    .seo-content {
        background: white;
    }

    .content-container h2::after {
        background: black;
    }

    footer {
        background: black;
        color: white;
    }
}

/* Reduced motion preferences */
@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;
    }

    .emoji-animation {
        animation: none;
    }

    .hero-placeholder::before {
        animation: none;
    }

    .whatsapp-float a {
        animation: none;
    }
}

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }

    .seo-content {
        background: #1a1a1a;
    }

    .content-container p {
        color: #cccccc;
    }

    .content-container h2 {
        color: #ffffff;
    }

    footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .footer-section a {
        color: #cccccc;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover,
    .whatsapp-float a:hover,
    .logo a:hover,
    .map-link:hover {
        transform: none;
    }

    .cta-button:active,
    .whatsapp-float a:active {
        transform: scale(0.98);
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.whatsapp-float a:focus,
.map-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Container query support (future-proofing) */
@container (min-width: 600px) {
    .content-container {
        padding: 0 30px;
    }
}