/* ============================================
   MOBILE FINAL - ABSOLUTE OVERRIDE
   This file loads LAST and wins all conflicts
   ============================================ */

@media (max-width: 576px) {
    /* Header - mobile sticky */
    body #header {
        position: sticky !important;
        height: 72px !important;
        z-index: 1000 !important;
    }
    
    /* Hero - no gap, no padding */
    body .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    body .hero-swiper { 
        height: 420px !important;
        margin-top: 0 !important;
    }
    
    body .swiper-slide::before,
    body .hero-slide::before { 
        opacity: 0.45 !important;
        background: linear-gradient(180deg, rgba(0, 102, 204, 0.5) 0%, rgba(0, 82, 163, 0.7) 100%) !important;
    }
    
    /* Hero content - better positioning */
    body .hero-content {
        display: flex !important;
        align-items: flex-end !important;
        min-height: 420px !important;
        padding-bottom: 30px !important;
    }
    
    /* Hero text - clean minimal design */
    body .hero-text {
        padding: 0 20px !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    body .hero-text .badge {
        font-size: 10px !important;
        padding: 5px 12px !important;
        margin: 0 auto 12px !important;
        display: inline-block !important;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    body .hero-text h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    }
    
    body .hero-text .subtitle {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        font-weight: 500 !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }
    
    body .hero-text .rating {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        margin-bottom: 12px !important;
        padding: 6px 14px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 50px !important;
        color: #FF9800 !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    body .hero-text .rating i {
        color: #FF9800 !important;
        font-size: 14px !important;
    }
    
    body .hero-text .rating span {
        color: #1A1A1A !important;
        font-size: 12px !important;
    }
    
    body .hero-text .description {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    body .hero-actions {
        gap: 8px !important;
        flex-direction: column !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }
    
    body .hero-actions .btn-primary {
        font-size: 13px !important;
        padding: 10px 20px !important;
        width: 100% !important;
        background: #fff !important;
        color: #0066CC !important;
        border: none !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        font-weight: 600 !important;
    }
    
    body .hero-actions .btn-secondary {
        font-size: 13px !important;
        padding: 10px 20px !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        font-weight: 600 !important;
    }
    
    /* Appointment form - full width */
    body .appointment-form-wrapper {
        max-width: 100% !important;
    }
    
    body .appointment-form {
        padding: 20px 14px !important;
    }
    
    /* Contact map - compact */
    body .map-container-full { 
        border-radius: 12px !important;
        border-width: 2px !important;
    }
    
    body .map-container-full iframe { 
        height: 300px !important; 
    }
    
    /* Video */
    body .video-section { padding: 20px 0 !important; }
    body .video-section iframe,
    body .video-section video,
    body .video-container { 
        height: 160px !important; 
        max-height: 160px !important; 
    }
    
    /* Stats */
    body .stat-card { 
        padding: 18px 12px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 110px !important;
    }
    body .stat-card::before {
        display: none !important;
    }
    body .stat-card i {
        font-size: 30px !important;
        margin-bottom: 8px !important;
        background: linear-gradient(135deg, #0066CC, #00B4D8) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    body .stat-number { 
        font-size: 26px !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
        color: #1A1A1A !important;
    }
    body .stat-label { 
        font-size: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
        color: #666 !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    /* Gap fix - stats overlap hero */
    body .stats-section { 
        margin-top: -90px !important;
        padding-top: 0 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    body .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 16px !important;
        padding: 16px 14px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        margin: 0 16px !important;
    }
    
    /* Sections */
    body section { padding: 20px 0 !important; }
    body .section-header h2 { font-size: 19px !important; }
    body .section-header p { font-size: 12px !important; }
    
    /* Container */
    body .container { 
        padding-left: 12px !important; 
        padding-right: 12px !important; 
    }
    
    /* Floating buttons */
    body .call-btn,
    body .whatsapp-btn { 
        width: 50px !important; 
        height: 50px !important; 
        font-size: 20px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }
    body .call-btn { bottom: 120px !important; right: 16px !important; }
    body .whatsapp-btn { bottom: 60px !important; right: 16px !important; }
    body .scroll-top-btn { 
        width: 45px !important; 
        height: 45px !important; 
        bottom: 10px !important; 
        right: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Footer */
    body .footer { padding: 28px 0 14px !important; }
    body .footer-social a { 
        width: 30px !important; 
        height: 30px !important; 
        font-size: 13px !important; 
    }
    
    /* Prevent overflow */
    html, body { 
        overflow-x: hidden !important; 
        max-width: 100% !important; 
    }
    * { box-sizing: border-box !important; }
}
