/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 850px) {

    /* גובה ההדר */
    .top-nav {
        height: 70px;
        padding: 0 20px;
    }

    /* הלוגו */
    .nav-logo {
        height: 45px;
    }

    /* התפריטים */
    .nav-menu {
        gap: 20px;
    }

    .dropbtn {
        font-size: 17px;
        padding: 10px 5px;
    }

    /* dropdown מלא רוחב למובייל */
    .dropdown-content {
        min-width: 180px;
    }

    /* טקסט כללי */
    .section h2 {
        font-size: 30px;
    }

    .text-center {
        font-size: 18px;
    }

    /* גריד – הופך לעמודה אחת */
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .service-box,
    .benefit {
        padding: 25px 18px;
    }

    /* כפתור */
    .main-btn.highlight {
        font-size: 18px;
        padding: 14px 28px;
    }
}

body {
    margin: 0;
    font-family: 'Assistant', sans-serif;
    background: #f5f6f7;
    color: #333;
}

/* ===== HEADER ===== */

.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0047b3, #0080ff);
    color: white;
}

.logo {
    width: 240px;
    margin-bottom: 25px;
}

/* ===== COMMON SECTIONS ===== */

.section {
    padding: 70px 20px;
    text-align: center;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 35px;
    font-weight: 700;
}

.section.alt {
    background: white;
}

.text-center {
    max-width: 900px;
    margin: auto;
    font-size: 20px;
}

/* ===== SERVICES GRID ===== */

.services-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    max-width: 1150px;
    margin: auto;
}

.service-box,
.benefit {
    background: white;
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid #e4e4e4;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
}

.service-box:hover,
.benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 22px rgba(0,0,0,0.12);
}

.icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* COLORS */
.orange { color: #ff9500; }
.blue   { color: #005bd1; }
.green  { color: #2ecc71; }
.yellow { color: #f1c40f; }
.pink   { color: #ff3b94; }
.purple { color: #9b59b6; }

/* ===== CONTACT BOX ===== */

.contact-box {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 14px;
    display: inline-block;
    font-size: 20px;
    line-height: 40px;
    border: 1px solid #ddd;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    padding: 25px;
    background: #efefef;
    margin-top: 50px;
}
.main-btn.highlight {
    background: #ffcc00;
    color: #000;
    font-size: 22px;
    padding: 16px 38px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.main-btn.highlight:hover {
    background: #ffdb4d;
    transform: translateY(-3px);
}
/* ===== TOP NAVIGATION — FIXED & CENTERED ===== */

.top-nav {
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    justify-content: center; /* ממרכז את התפריטים */
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 4px solid #0066ff;
}

/* לוגו בצד ימין (RTL) */
.logo-container {
    position: absolute;
    right: 40px;
}

.nav-logo {
    height: 55px;
    cursor: pointer;
}

/* התפריטים במקרה של RTL — ממורכזים */
.nav-menu {
    display: flex;
    gap: 45px;
    align-items: center;
    font-weight: 700;
}

/* ===== DROPDOWN ===== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 10px;
    color: #000;
    transition: 0.2s;
}

.dropbtn:hover {
    color: #0066ff;
}

/* ===== SUPER SMOOTH DROPDOWN ANIMATION ===== */

/* ===== ULTRA SMOOTH SLIDE + FADE ===== */

.dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.18);
    border-radius: 12px;
    text-align: right;
    z-index: 9999;

    opacity: 0;
    transform: translateY(10px); /* מתחיל קצת למטה */
    pointer-events: none;        /* כדי שלא יהיה מושפע כשהוא סגור */

    transition:
        opacity 0.35s ease-in-out,
        transform 0.35s ease-in-out;
}

.dropdown-content a {
    padding: 14px 20px;
    display: block;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #eef4ff;
    color: #0066ff;
}

/* When hovered – full smooth motion */
.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0); /* עולה למעלה */
    pointer-events: auto;
}

