:root {
    --blue: #004aad;
    --red: #e31e24;
    --dark-blue: #002d6a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Assistant', sans-serif; background: var(--white); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Top Bar */
.top-bar { background: var(--light-bg); padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid #eee; }
.top-bar strong { color: var(--red); }

/* Navigation */
.main-nav { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo img { height: 60px; }
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--blue); }
.btn-nav { background: var(--blue); color: white !important; padding: 10px 20px; border-radius: 5px; }

/* Hero Section */
.hero { padding: 80px 0; background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%); 
    
        background: url(Gemini_Generated_Image_cbkvqjcbkvqjcbkv.jpg);
    background-attachment: fixed;
}
.hero-content { display: flex; align-items: center; gap: 50px; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.blue-text { color: var(--blue); }
.hero-sub { font-size: 1.2rem; color: #666; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }

.btn-blue, .btn-red { 
    padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: 700; transition: 0.3s; text-align: center;
}
.btn-blue { background: var(--blue); color: white; }
.btn-red { background: var(--red); color: white; }
.btn-blue:hover, .btn-red:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.hero-image { position: relative; width: 50%; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.floating-badge { 
    position: absolute; bottom: 20px; right: -20px; background: var(--white); padding: 15px 25px;
    border-radius: 10px; font-weight: 800; color: var(--blue); box-shadow: var(--shadow);
}

/* Services Grid */
.services-section { padding: 100px 0; background: var(--white); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.service-card { 
    background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow);
    transition: 0.4s; border: 1px solid #f0f0f0;
}
.amd-form-control {grid-column: span 2;}
.service-card:hover { transform: translateY(-10px); }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 30px; position: relative; }
.card-icon { 
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; position: absolute; top: -25px; right: 30px;
}
.card-icon.blue { background: var(--blue); }
.card-icon.red { background: var(--red); }
.card-icon.gold { background: #d4af37; }
.service-card h3 { margin: 15px 0 10px; font-weight: 700; }
.read-more { display: block; margin-top: 15px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* Contact Section with Waves */
.contact-section { background: var(--blue); padding: 100px 0; position: relative; }
.wave-divider { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: calc(100% + 1.3px); height: 70px; }
.wave-divider .shape-fill { fill: var(--white); }

.contact-wrapper { 
    max-width: 900px; margin: 0 auto; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 60px; border-radius: 30px; color: white; text-align: center; border: 1px solid rgba(255,255,255,0.2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
input, select { padding: 15px; border-radius: 5px; border: none; font-size: 1rem;direction:rtl; }
.btn-submit { font-family: 'Assistant';
    grid-column: span 2; background: var(--red); color: white; padding: 18px; border: none;
    border-radius: 5px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: #c0171d; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-image { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .btn-submit { grid-column: span 1; }
    .hero h1 { font-size: 2.2rem; }
}




/* התאמה לניידים (מסכים קטנים מ-768 פיקסלים) */


/* התאמה למכשירים קטנים מאוד (מתחת ל-480 פיקסלים) */
@media (max-width: 480px) {
    .top-bar {
        display: none; /* הסתרת הבר העליון בניידים קטנים כדי לחסוך מקום */
    }
    
    .contact-wrapper {
        padding: 20px 15px;
    }
}
/* --- תפריט המבורגר לנייד --- */
.menu-toggle {
    display: none; /* מוסתר במחשב */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--blue);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- התאמות למובייל (עד 768 פיקסלים) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* מופיע בנייד */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* מוסתר מחוץ למסך */
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* נכנס למסך כשלוחצים */
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    /* --- התאמת הטופס --- */
    .contact-wrapper {
        padding: 30px 15px;
        margin: 0 10px;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* טור אחד במקום שניים */
        gap: 15px;
    }

    .btn-submit {
        grid-column: span 1;
        padding: 15px;
    }

    /* הקטנת כותרות בנייד */
    .contact-section h2 {
        font-size: 1.6rem;
        padding: 0 10px;
    }
}
/* --- פתרון רספונסיבי לטופס א.מ.ד --- */

@media (max-width: 768px) {
    /* 1. התאמת המעטפת הלבנה/שקופה */
    .contact-wrapper {
        padding: 30px 15px !important; /* צמצום מרווחים פנימיים בנייד */
        margin: 0 10px !important;    /* מרווח מהקצוות של המסך */
        border-radius: 20px !important;
    }

    /* 2. סידור השדות אחד מתחת לשני */
    .form-grid {
        display: flex !important;
        flex-direction: column !important; /* הופך את הגריד לטור אחד */
        gap: 15px !important;
        margin-top: 20px !important;
    }

    /* 3. התאמת שדות הקלט והסלקט */
    .amd-contact-wrapper input, 
    .amd-contact-wrapper select, 
    .amd-form-control {
        width: 100% !important;
        font-size: 16px !important; /* מונע זום אוטומטי באייפון */
        padding: 12px !important;
    }

    /* 4. התאמת הכפתור */
    .btn-submit {
        grid-column: span 1 !important; /* ביטול הפריסה לרוחב במקרה של גריד */
        width: 100% !important;
        padding: 15px !important;
        font-size: 1.1rem !important;
    }

    /* 5. התאמת הטקסטים */
    .contact-wrapper h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .contact-wrapper p {
        font-size: 1rem !important;
        padding: 0 5px !important;
    }
}


/* סרגל צור קשר צף בנייד */
.mobile-contact-bar {
    display: none; /* מוסתר במחשב */
}

@media (max-width: 768px) {
    .mobile-contact-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px); /* אפקט טשטוש יוקרתי */
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        direction: rtl;
    }

    .contact-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        font-family: 'Assistant', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    /* עיצוב כפתור טלפון */
    .call-btn {
        color: #004aad;
        border-left: 1px solid #eee;
    }

    .call-btn i {
        background: #004aad;
        color: white;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.9rem;
    }

    /* עיצוב כפתור וואטסאפ */
    .whatsapp-btn {
        color: #25d366;
    }

    .whatsapp-btn i {
        font-size: 1.8rem; /* וואטסאפ נראה טוב יותר גדול */
    }

    /* אנימציית לחיצה */
    .contact-item:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.98);
    }
}

/* הוספת מרווח בתחתית האתר כדי שהסרגל לא יסתיר את הפוטר */
@media (max-width: 768px) {
    body {
        padding-bottom: 65px;
    }
}
@media (max-width: 768px) {
    .container.flex-between{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: space-around;

    }
    
    /* התאמת הניווט - Main Nav */
    .main-nav .container.flex-between {
       
        gap: 15px;
        text-align: center;
        padding: 15px 0;
    }

   .container {
    padding: 0 3px!important;
   }


    .main-nav .logo img {
        height: 50px; /* הקטנת הלוגו בנייד שלא יתפוס חצי מסך */
    }

    .nav-cta {
        width: 100%; /* הכפתור יתפרס על כל הרוחב */
        display: block;
    }

    /* התאמת אזור הטופס - Contact Wrapper */
    .contact-wrapper {
        padding: 30px 20px; /* צמצום המרווחים הפנימיים */
        margin: 0 15px; /* הוספת מרווח קטן מהצדדים של המכשיר */
        border-radius: 20px;
    }

    .contact-section h2 {
        font-size: 1.8rem; /* הקטנת הכותרת */
    }

    /* התאמת הגריד של הטופס לעמודה אחת */
    .form-grid {
        grid-template-columns: 1fr; /* עמודה אחת בלבד במקום שתיים */
        gap: 15px;
    }

    /* ביטול פריסת ה-Span של הכפתור כדי שיתאים לעמודה אחת */
    .btn-submit {
        grid-column: span 1; 
        font-size: 1.1rem;
        padding: 15px;
    }

    /* התאמת שדות הקלט */
    input, select {
        width: 100%;
        font-size: 16px; /* מונע מהאייפון לעשות זום-אין אוטומטי כשלוחצים על השדה */
    }
}