/* Responsive Design - Mobile First Approach */

/* Small devices (phones, 320px and up) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .btn-phone, .btn-whatsapp {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
        margin-top: 100px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .seo-content {
        padding: 2rem 1rem;
    }

    .seo-content h2 {
        font-size: 1.8rem;
        margin: 2rem 0 1rem 0;
    }

    .seo-content h2::before {
        left: -30px;
        font-size: 1.2rem;
    }

    .seo-content p {
        font-size: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .footer-section {
        text-align: center;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .map-section iframe {
        height: 250px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .seo-content h2 {
        font-size: 2rem;
    }

    .seo-content h2::before {
        left: -35px;
        font-size: 1.3rem;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .header-container {
        padding: 1rem 2rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .footer-container {
        grid-template-columns: repeat(5, 1fr);
    }

    .seo-content h2 {
        font-size: 2.4rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .seo-content h2 {
        font-size: 2.6rem;
    }
}

/* Landscape phones and small tablets */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .header-container {
        padding: 0.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .btn-phone, .btn-whatsapp {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Print styles */
@media print {
    header, .whatsapp-float, .cta-section {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .seo-content, .footer-container {
        color: black !important;
    }

    .footer-section a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #008000;
        --dark-color: #000000;
        --light-color: #ffffff;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-float a {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #ffffff;
        --light-color: #1a1a1a;
    }

    body {
        background: #1a1a1a;
        color: #ffffff;
    }

    .seo-content {
        background: #2d2d2d;
    }

    .seo-content p {
        color: #cccccc;
    }

    .map-section h3 {
        color: #ffffff;
    }
}

/* Focus styles for accessibility */
.btn-phone:focus,
.btn-whatsapp:focus,
.cta-button:focus,
.cta-button-inline:focus,
.logo a:focus,
.footer-section a:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-phone, .btn-whatsapp, .cta-button, .cta-button-inline {
        padding: 1rem 2rem;
        min-height: 44px;
    }

    .nav-buttons {
        gap: 0.5rem;
    }
}
