/* ========================================
   MOBILE RESPONSIVE CSS - CRITICAL
   ======================================== */

/* Force Mobile Viewport */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Base Mobile Styles */
* {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    -webkit-touch-callout: none;
}

/* Prevent Text Size Adjustment */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Mobile Navbar Fix */
@media (max-width: 1023.98px) {
    .navbar {
        padding: 12px 4% !important;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 0 0 auto;
        order: 1;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-cta {
        order: 2;
        display: flex;
        gap: 8px;
        margin-top: 10px;
        width: 100%;
    }
    
    .nav-cta .btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Hero Section Mobile */
@media (max-width: 767.98px) {
    .hero {
        padding: 100px 4% 60px !important;
        min-height: auto !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 3rem) !important;
        line-height: 1.2 !important;
        min-height: auto !important;
    }
    
    .subtitle {
        font-size: clamp(0.95rem, 3vw, 1.2rem) !important;
    }
    
    .hero-card {
        padding: 30px 20px !important;
    }
    
    .hero-icon {
        font-size: 4rem !important;
    }
}

/* Stats Grid Mobile */
@media (max-width: 479.98px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

/* Services Grid Mobile */
@media (max-width: 639.98px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .service-card {
        padding: 30px 20px !important;
    }
    
    .service-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }
}

/* Footer Mobile */
@media (max-width: 639.98px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Form Mobile */
@media (max-width: 767.98px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .subscription-container {
        padding: 35px 20px !important;
    }
}

/* Touch Targets */
@media (max-width: 1023.98px) {
    .btn, .nav-links a, .social-link, .service-link {
        min-height: 48px !important;
        min-width: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* iOS Input Fix */
@media (max-width: 767.98px) {
    input, select, textarea, .form-control {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Logo Mobile */
@media (max-width: 479.98px) {
    .logo img {
        height: 32px !important;
        width: 32px !important;
    }
    
    .logo span {
        font-size: 1.3rem !important;
    }
}

/* Section Spacing Mobile */
@media (max-width: 767.98px) {
    .about, .services, .subscription {
        padding: 60px 4% !important;
    }
    
    .footer {
        padding: 50px 4% 25px !important;
    }
}

/* Prevent Horizontal Scroll */
@media (max-width: 1023.98px) {
    body {
        overflow-x: hidden !important;
    }
    
    .content-wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}
