/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .industries-grid,
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (768px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet (480px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        margin-bottom: 2rem;
    }

    .hero-features-list {
        gap: 0.75rem;
    }

    .hero-feature {
        font-size: 0.9375rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .industries,
    .how-it-works,
    .social-proof,
    .features,
    .pricing-teaser {
        padding: 4rem 0;
    }

    .industries-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-header {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Mobile (up to 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .industries-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .industry-card,
    .feature-item {
        padding: 2rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .step-number {
        align-self: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-legal {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-mobile {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-mobile.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-mobile-list {
        padding: 1rem 0;
    }

    .nav-mobile-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-dark);
        font-weight: 500;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-light);
    }

    .nav-mobile-link:hover {
        background-color: var(--bg-gray);
        color: var(--primary-color);
    }

    .btn-whatsapp-mobile {
        margin: 1rem 1.5rem 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Mobile Header CTA */
@media (max-width: 767px) {
    .header-cta .btn-whatsapp {
        display: none;
    }

    .btn-whatsapp-contact {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .btn-whatsapp-footer {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Mobile Hero CTA */
@media (max-width: 767px) {
    .hero-ctas {
        gap: 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Mobile Cards */
@media (max-width: 767px) {
    .industry-card,
    .feature-item,
    .stat-item,
    .testimonial-placeholder {
        padding: 2rem;
    }

    .industry-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .industry-icon svg,
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Typography */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .benefit-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .industry-title,
    .feature-title,
    .step-title {
        font-size: 1.125rem;
    }

    .industry-description,
    .feature-description,
    .step-description {
        font-size: 0.875rem;
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo-text h3 {
        font-size: 1.125rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .contact-info {
        font-size: 0.875rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .industry-card:hover,
    .feature-item:hover {
        transform: none;
    }

    .nav-link:hover::after {
        width: 0;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-ctas,
    .cta-section,
    .pricing-content .btn,
    .footer-social,
    .nav-mobile,
    .mobile-menu-toggle {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: black !important;
    }

    .hero-background {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-title {
        font-size: 18pt;
    }

    .industry-card,
    .feature-item,
    .stat-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f8fafc;
        --text-light: #cbd5e1;
        --text-muted: #94a3b8;
        --bg-white: #0f172a;
        --bg-gray: #1e293b;
        --bg-light-gray: #334155;
        --bg-cream: #0f172a;
        --border-light: #334155;
        --primary-color: #8fbc8f;
        --secondary-color: #9fb3d3;
        --accent-color: #b8d8b8;
    }

    .header {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid var(--border-light);
    }

    .hero {
        background: linear-gradient(135deg, #475569 0%, #64748b 50%, #94a3b8 100%);
    }

    .industry-card,
    .feature-item,
    .stat-item,
    .testimonial-placeholder {
        background-color: var(--bg-gray);
        border: 1px solid var(--border-light);
    }

    .btn-secondary {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .footer {
        background-color: #020617;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-features,
    .hero-ctas {
        animation: none;
    }

    .industry-card:hover,
    .feature-item:hover,
    .btn:hover {
        transform: none;
    }

    .nav-link::after {
        transition: none;
    }
}

/* Focus Visible */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    a:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: var(--border-radius);
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .hero-features {
        margin-bottom: 1.5rem;
    }

    .hero-ctas {
        gap: 0.75rem;
    }
}
