/* Mobile-First Responsive Design */

/* Base Mobile Styles (até 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header Mobile */
    .header {
        padding: 0.75rem 0;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo span {
        font-size: 0.75rem;
    }


    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hero Mobile */
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .feature {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem;
        width: 100%;
    }

    .feature i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }

    /* Services Mobile */
    .services {
        padding: 2rem 0;
    }

    .services h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .service-content {
        gap: 1.5rem;
    }

    .service-text h3 {
        font-size: 1.25rem;
    }

    .service-text h4 {
        font-size: 1rem;
    }

    .service-text ul {
        padding-left: 1rem;
    }

    .service-text li {
        font-size: 0.9rem;
    }

    .cta-service {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* WhatsApp Float Mobile */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .whatsapp-float a span {
        display: none;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Tablet Styles (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header Tablet */
    .header .container {
        flex-direction: row;
    }

    /* Nav removed - only logo remains */

    /* Hero Tablet */
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        flex: 1;
        min-width: 200px;
        max-width: none;
    }

    .hero-features {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .feature {
        flex: 0 0 auto;
        width: 150px;
    }

    /* Services Tablet */
    .services h2 {
        font-size: 2.5rem;
    }

    .service-content {
        gap: 2rem;
    }

    /* Footer Tablet */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* Desktop Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-ctas {
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-features {
        gap: 2rem;
    }

    .services h2 {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop Styles (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-ctas {
        gap: 1.5rem;
    }

    .cta-primary,
    .cta-secondary,
    .cta-tertiary {
        padding: 1.25rem 2rem;
    }

    .hero-features {
        gap: 2.5rem;
    }

    .services h2 {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-primary:hover,
    .cta-secondary:hover,
    .cta-tertiary:hover,
    .cta-service:hover,
    .whatsapp-float:hover {
        transform: none !important;
    }

    .social-links a:hover {
        transform: none !important;
    }

    /* Larger touch targets for mobile */
    .cta-primary,
    .cta-secondary,
    .cta-tertiary,
    .cta-service {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-links a {
        width: 48px;
        height: 48px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Hero background image is already optimized for high DPI */
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .footer-links,
    .hero-ctas {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }

    .services,
    .map-section {
        page-break-inside: avoid;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    .cta-service {
        display: none;
    }
}

/* Reduced Motion */
@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;
    }

    .hero h1,
    .hero p,
    .hero-ctas,
    .hero-features {
        animation: none;
    }

    .whatsapp-float a {
        animation: none;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if dark mode is desired */
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 30px;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-ctas {
        margin-bottom: 1rem;
    }

    .hero-features {
        display: none; /* Hide features on very short screens */
    }
}

/* Focus Styles for Accessibility */
.cta-primary:focus,
.cta-secondary:focus,
.cta-tertiary:focus,
.cta-service:focus,
.social-links a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Sitemap Responsive */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .sitemap-category {
        padding: var(--spacing-lg);
    }

    .sitemap-category h2 {
        font-size: var(--font-size-lg);
    }

    .sitemap-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .sitemap-links a {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
        text-align: center;
    }

    .sitemap-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .sitemap-category {
        padding: var(--spacing-md);
    }

    .sitemap-links a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .sitemap-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat {
        padding: var(--spacing-md);
    }
}
