/* ============================================================
   SERVICES PAGE - MOBILE OPTIMIZATION
   ============================================================ */

@media (max-width: 1024px) {

    /* --- 1. Hero Section --- */
    body section#services-hero-section.hero {
        height: 100svh !important; 
        min-height: 100vh;
        width: 100%;
        background-size: cover !important; 
        background-position: center center !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-logo {
        width: 100% !important;
        max-width: 90% !important;
        height: auto !important;
        animation: glitch-effect 3s steps(100) infinite; 
    }

    body section#services-hero-section.hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 1;
    }

    /* --- 2. Sections Spacing --- */
    .services-section {
        padding-top: 30px !important;
        padding-bottom: 0px !important;
        margin-bottom: -50px !important;
        margin-top: 30px !important;
    }

    .equipment-section {
        padding-top: 160px !important; 
        padding-bottom: 50px !important;
    }

    .services-section .section-title,
    .equipment-section .section-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        letter-spacing: 2px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 0 !important; 
        margin-bottom: 50px !important;
    }

    /* --- 3. Grids --- */
    .services-grid, 
    .equipment-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 0 !important;
    }
    
    .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* --- 4. Service Cards --- */
    .service-card {
        padding: 15px 10px !important;
        min-height: 160px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    .service-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* --- 5. Equipment Cards --- */
    .equipment-card {
        padding: 12px 8px !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .equipment-card h3 {
        font-size: 0.8rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

} /* סוף ה-Media Query של 1024px - עכשיו הכל בפנים! */

@media (max-width: 768px) {

    body section#services-hero-section.hero {
        /* 1. מחזירים ל-Cover כדי שהתמונה תמלא את כל המסך בלי עיוותים */
        background-size: cover !important; 
        
        /* 2. מזיזים את נקודת המיקוד: 
           במקום center (50%), אנחנו אומרים לו להראות את החלק שנמצא ב-25% מצד שמאל.
           זה יחתוך את צד ימין הריק וישאיר אותך ואת הציוד המרכזי בפריים. */
        background-position: 25% center !important; 
        
        height: 100svh !important;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
	}


/* התאמה למכשירים קטנים מאוד */
@media (max-width: 360px) {
    .services-grid, .equipment-grid {
        gap: 8px !important;
    }
    .service-card h3 {
        font-size: 0.85rem !important;
    }
}