/* --- הגדרות בסיס --- */
html {
    scroll-behavior: smooth; /* ניווט חלק בין הקטעים בדף */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #f6f6f6;
    color: #333;
    overflow-x: hidden;
}

/* --- חלק הגיבור (Hero) למחשב --- */
.hero-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* רקע יציב בגלילה למחשב */
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-logo { height: 100px; transition: 0.3s; }

.nav-links { list-style: none; display: flex; gap: 25px; }

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover { color: #f38200; }

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.hero-text-wrapper h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text-wrapper p {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 35px;
}

.btn-hero {
    display: inline-block;
    background-color: #f38200;
    color: #000;
    padding: 18px 45px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(243, 130, 0, 0.3);
}

.btn-hero:hover {
    background-color: #d67200;
    transform: translateY(-2px);
}

.phone-num-black {
    color: #000;
}

/* --- אודות --- */
.about-section {
    background-color: #fff;
    padding: 80px 5%;
    text-align: center;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #f38200;
    margin-bottom: 25px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* --- שירותים --- */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 10px; color: #222; }
.section-title p { font-size: 1.2rem; color: #666; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.3s;
    overflow: hidden;
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }

.card-image-box { position: relative; height: 220px; }

.card-image-box img {
    width: 100%; height: 100%; object-fit: cover;
}

.floating-icon {
    position: absolute; bottom: -25px; left: 50%;
    transform: translateX(-50%); background-color: #f38200;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; border: 5px solid #fff;
    font-size: 1.2rem;
}

.card-text-box { padding: 45px 20px 30px; text-align: center; }
.card-text-box h3 { font-size: 1.4rem; margin-bottom: 12px; color: #222; }
.card-text-box p { font-size: 1rem; color: #666; line-height: 1.5; }

/* --- Features Bar --- */
.features-bar {
    background-color: #111;
    display: flex;
    justify-content: space-around;
    padding: 50px 10%;
}

.feature-item { color: #fff; text-align: center; }
.feature-item i { color: #f38200; font-size: 2.5rem; margin-bottom: 15px; }
.feature-item span { display: block; font-size: 1.1rem; font-weight: 500; }

/* --- Footer / Contact --- */
.footer-section {
    background-color: #000;
    color: #fff;
    padding: 80px 5%;
    text-align: center;
}

.footer-section h3 { font-size: 1.8rem; margin-bottom: 20px; }

.btn-group { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

.btn-footer-call {
    background-color: #f38200;
    color: #000;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}
.btn-footer-call:hover { background-color: #d67200; }

.btn-footer-whatsapp {
    background-color: #fff;
    color: #25D366;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    font-size: 1.1rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-footer-whatsapp:hover {
    background-color: #f0f0f0;
    transform: scale(1.03);
}

/* --- מסכים בינוניים (טאבלטים ומסכי לפטופ קטנים) --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero-text-wrapper h1 { font-size: 3rem; }
}

/* --- שדרוג רספונסיביות מלא ומעוצב לטלפונים (מובייל) --- */
@media (max-width: 768px) {
    
    /* רקע ה-Hero - מתלבש 100% על פריים המכשיר בצורה מושלמת */
    .hero-header {
        min-height: 100vh;
        min-height: 100dvh; /* מונע קפיצות במובייל בגלל סרגלי הדפדפן */
        background-attachment: scroll; /* מבטל את הקיבוע כדי למנוע מתיחת התמונה בנייד */
        background-position: center center;
        background-size: cover;
    }

    /* תפריט ניווט מובייל נקי ומעוצב */
    .main-nav {
        flex-direction: column;
        gap: 12px;
        padding: 15px 5%;
        background: rgba(0, 0, 0, 0.85); /* רקע כהה לקריאות מקסימלית */
        backdrop-filter: blur(10px); /* אפקט זכוכית יוקרתי */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-logo {
        height: 65px; /* לוגו מותאם למובייל שלא יתפוס חצי מסך */
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    /* מרכוז מלא של התוכן ב-Hero */
    .hero-content {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    /* קופסת הטקסט המשודרגת ב-Hero - מראה מודרני וקריא ב-100% */
    .hero-text-wrapper {
        background: rgba(0, 0, 0, 0.5); /* שקיפות מותאמת */
        padding: 35px 20px;
        border-radius: 16px;
        backdrop-filter: blur(6px); /* אפקט טשטוש יוקרתי ברקע */
        width: 100%;
        max-width: 95%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-text-wrapper h1 {
        font-size: 2.3rem;
        line-height: 1.2;
        margin-bottom: 15px;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    }

    .hero-text-wrapper p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 30px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }

    /* כפתור Hero מותאם לאגודל - רוחב מלא לנוחות מקסימלית */
    .btn-hero {
        padding: 15px 25px;
        font-size: 1.1rem;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* קטעי תוכן ואודות */
    .services-section, .about-section {
        padding: 60px 20px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* גריד השירותים הופך לטור אחד רחב ונקי */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .service-card {
        border-radius: 16px;
    }

    .card-image-box {
        height: 190px;
    }

    .card-text-box {
        padding: 40px 15px 25px;
    }

    /* אלמנטים של היתרונות (Features Bar) בשורה נפרדת לכל אחד */
    .features-bar {
        flex-direction: column;
        gap: 35px;
        padding: 50px 20px;
    }

    /* פוטר וכפתורי יצירת קשר מהירים בתחתית */
    .footer-section {
        padding: 60px 20px;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-footer-call, .btn-footer-whatsapp {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 16px;
        font-size: 1.1rem;
        border-radius: 8px;
        box-sizing: border-box;
    }
}