/* --- משתני צבע ועיצוב גלובליים (Soft UI) --- */
:root {
    --primary-blue: #0E2954;      /* כחול עמוק ומקצועי */
    --primary-orange: #FF6B35;    /* כתום אנרגטי מותגי */
    --light-bg: #F8FAFC;          /* רקע בהיר מודרני */
    --card-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --radius-soft: 16px;          /* פינות מעוגלות רכות */
    --shadow-soft: 0 10px 30px rgba(14, 41, 84, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Assistant', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- כפתורים בעיצוב פרימיום --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 41, 84, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 41, 84, 0.3);
}

.btn-outline-blue {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-blue:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Header בר הניווט העליון הרשמי --- */
header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(14, 41, 84, 0.03);
    border-bottom: 1px solid rgba(14, 41, 84, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.btn-submit-cv {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(14, 41, 84, 0.15);
}

.btn-submit-cv:hover {
    background-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

nav ul li a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    color: var(--primary-orange);
}

nav ul li a.active-nav {
    color: var(--primary-blue);
    font-weight: 700;
}

nav ul li a.active-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

/* הלוגו הרשמי */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.85;
}

/* --- Hero Section - פנורמי רחב --- */
.hero-panoramic {
    position: relative;
    padding-top: 160px;
    padding-bottom: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-panoramic-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-text-center {
    max-width: 850px;
    padding: 0 15px;
}

.hero-text-center h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text-center h1 .highlight {
    color: var(--primary-orange);
}

.hero-text-center p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* מעטפת תמונת הצוות המכובדת */
.hero-banner-image-wrapper {
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%; /* שומר על איזור הפנים של המצולמים יציב */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 25%, rgba(14,41,84,0.04) 100%);
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 15;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-bottom .shape-fill {
    fill: var(--light-bg);
}

/* --- מדורים גלובליים --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

.align-right {
    text-align: right;
}
.align-right .title-line {
    margin: 12px 0 0 auto;
}

/* --- About Section (עלינו) --- */
.about {
    background-color: var(--light-bg);
}

.about-box {
    background-color: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 45px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-right: 5px solid var(--primary-orange);
}

.about-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-box p.strong-text {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0;
}

/* --- Services Section (שירותים) --- */
.services {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 25px;
    border-radius: var(--radius-soft);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(14, 41, 84, 0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(14, 41, 84, 0.06);
    border-bottom: 4px solid var(--primary-orange);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    color: var(--primary-orange);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    color: white;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* --- Why Us Section (למה אנחנו) --- */
.why-us {
    background-color: var(--light-bg);
}

.why-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.why-list {
    list-style: none;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.list-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-orange);
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.why-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-box {
    background: white;
    padding: 35px;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-left: 4px solid var(--primary-blue);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.stat-label {
    font-weight: 700;
    color: var(--primary-blue);
}

/* --- פנלים וסטריפים מופרדים לחלוטין (Portal Strips) --- */
.portal-section {
    padding: 90px 0;
}

/* סטריפ 1: מועמדים (רקע לבן) */
.candidate-strip {
    background-color: #ffffff;
}

/* סטריפ 2: מעסיקים (רקע אפור-כחלחל עדין שובר עין) */
.employer-strip {
    background-color: var(--light-bg);
    border-top: 1px solid rgba(14, 41, 84, 0.04);
    border-bottom: 1px solid rgba(14, 41, 84, 0.04);
}

.portal-single-card {
    background: #ffffff;
    max-width: 700px;
    margin: 0 auto;
    padding: 45px;
    border-radius: var(--radius-soft);
    box-shadow: 0 15px 40px rgba(14, 41, 84, 0.04);
    border: 1px solid rgba(14, 41, 84, 0.03);
}

.candidate-strip .portal-single-card { border-top: 4px solid var(--primary-orange); }
.employer-strip .portal-single-card { border-top: 4px solid var(--primary-blue); }

.portal-header {
    text-align: center;
    margin-bottom: 35px;
}

.portal-header i {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cv-main-icon { color: var(--primary-orange); }
.contact-main-icon { color: var(--primary-blue); }

.portal-header h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.portal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.portal-form .form-group {
    margin-bottom: 20px;
}

/* פריסות קלטים בשורה אחת למסכים גדולים */
.form-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-inputs-row .form-group { margin-bottom: 0; }

.form-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portal-form input, 
.portal-form textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(14, 41, 84, 0.1);
    background: var(--light-bg);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.portal-form input:focus, 
.portal-form textarea:focus {
    border-color: var(--primary-orange);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* File Drop Zone קו"ח */
.file-drop-zone {
    border: 2px dashed rgba(14, 41, 84, 0.15);
    padding: 32px 20px;
    border-radius: 12px;
    text-align: center;
    background: var(--light-bg);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    position: relative;
}

.file-drop-zone.dragover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.02);
}

.drop-icon {
    font-size: 2.4rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.drop-text span {
    color: var(--primary-blue);
    font-weight: 700;
}

.file-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #E2E8F0;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

.file-display button {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 1.1rem;
}

.hidden { display: none !important; }

/* --- שורת יצירת קשר מהירה בתחתית --- */
.quick-contact-bar {
    background: var(--primary-blue);
    color: white;
    padding: 45px 0;
}

.bar-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.bar-item i {
    font-size: 1.4rem;
    color: var(--primary-orange);
}

.bar-item .whatsapp-icon { color: #25D366; }
.bar-item a:hover { color: var(--primary-orange); }

/* --- Footer --- */
footer {
    background: #091A35;
    color: rgba(255, 255, 255, 0.6);
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- מנוע האנימציות בגלילה --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}


/* ==========================================================================
   חוקי רספונסיביות מקיפים לחלוטין (Media Queries) - שיעבוד בכל מסך!
   ========================================================================== */

/* --- 1. מסכי טאבלט ומחשבים קטנים (עד 1024px) --- */
@media (max-width: 1024px) {
    .hero-text-center h1 {
        font-size: 2.8rem;
    }
    .why-container {
        gap: 40px;
    }
    .form-inputs-grid {
        grid-template-columns: 1fr 1fr; /* יורד ל-2 עמודות בטאבלט */
    }
}

/* --- 2. מסכי טאבלט אנכיים (עד 768px) --- */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero-panoramic {
        padding-top: 130px;
    }

    .hero-text-center h1 {
        font-size: 2.4rem;
    }

    .hero-text-center p {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }

    .hero-action-buttons {
        flex-direction: column; /* כפתורי הבאנר יורדים אחד מתחת לשני במובייל */
        align-items: center;
        gap: 15px;
    }

    .hero-action-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-banner-image-wrapper {
        height: 340px; /* תמונה מותאמת לרוחב הטאבלט כדי למנוע מתיחות */
    }

    /* הפיכת הגרידים לחד-עמודתיים */
    .why-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .align-right {
        text-align: center;
    }

    .align-right .title-line {
        margin: 12px auto 0;
    }

    .why-list li {
        justify-content: center;
    }

    .why-stats {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .stat-box {
        flex: 1;
        max-width: 200px;
        padding: 20px;
    }

    /* התאמת הטפסים המופרדים */
    .form-inputs-row, 
    .form-inputs-grid {
        grid-template-columns: 1fr; /* כל השדות יורדים בצורה נקייה אחד מתחת לשני */
        gap: 0;
    }

    .form-inputs-grid .form-group,
    .form-inputs-row .form-group {
        margin-bottom: 15px; /* מרווח קבוע בין השדות במובייל */
    }

    .portal-single-card {
        padding: 30px 20px;
    }

    .bar-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    /* הסתרת בר הניווט הרגיל במובייל כדי למנוע שבירה של ה-Header */
    nav {
        display: none;
    }
}

/* --- 3. מסכי סמארטפון קטנים (עד 480px) --- */
@media (max-width: 480px) {
    .container {
        width: 92%; /* משאיר שוליים עדינים בצדדים */
    }

    .hero-text-center h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-banner-image-wrapper {
        height: 250px; /* גובה תמונה מושלם למובייל שמשאיר את האנשים ברורים */
    }

    .wave-bottom svg {
        height: 40px; /* מקטין את גל החיתוך שלא יפגע בפנים של הדמויות בתמונה */
    }

    .about-box {
        padding: 25px 15px;
    }

    .why-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-box {
        width: 100%;
        max-width: 280px;
    }

    .portal-header h2 {
        font-size: 1.5rem;
    }

    .bar-item {
        font-size: 1.05rem;
    }
}




/* ==========================================================================
   שדרוג מובייל פרימיום: תפריט המבורגר ואנימציות מותאמות לסמארטפונים
   ========================================================================== */

/* כפתור המבורגר - מוסתר במחשב ברירת מחדל */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    color: var(--primary-orange);
}

/* פריט מיוחד למובייל בלבד */
.mobile-only-item {
    display: none;
    width: 100%;
    margin-top: 20px;
}

.mobile-cv-btn {
    display: block;
    background: var(--primary-orange);
    color: #ffffff !important;
    padding: 14px;
    border-radius: 25px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

/* התאמות רספונסיביות ממוקדות למובייל וסמארטפון (מתחת ל-768px) */
@media (max-width: 768px) {
    /* הצגת כפתור ההמבורגר */
    .menu-toggle {
        display: block;
    }

    /* הסתרת כפתור ה-CTA המקורי בבר העליון כדי שלא יצטופף */
    .header-cta {
        display: none;
    }

    /* הפיכת תפריט הניווט לטבלה/מסך מלא יפהפה בפורמט Soft UI */
    nav {
        display: block !important; /* מבטל את ה-display:none הישן */
        position: fixed;
        top: 0;
        right: -100%; /* מוסתר מחוץ למסך מימין */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -10px 0 40px rgba(14, 41, 84, 0.1);
        backdrop-filter: blur(10px);
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 100px 30px 40px 30px;
    }

    /* כשהתפריט פתוח (יופעל ע"י ה-JS) */
    nav.menu-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(14, 41, 84, 0.04);
    }
    
    nav ul li a.active-nav::after {
        bottom: 0;
        height: 2px;
        width: 40px;
    }

    .mobile-only-item {
        display: block;
    }

    /* --- אופטימיזציית אנימציות גלילה במובייל --- */
    /* במובייל הגלילה מהירה יותר, לכן נוריד את מרחק הקפיצה כדי שהגלילה תרגיש חלקה ולא מקוטעת */
    .scroll-reveal {
        opacity: 0;
        transform: translateY(15px); /* קפיצה עדינה יותר במובייל */
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .scroll-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   ניווט SPA – הסתרת/הצגת "עמודים" ללא טעינה מחדש
   ========================================================================== */

.page-hidden {
    display: none !important;
}

.page-section:not(.page-hidden) {
    padding-top: 140px;
}

.page-section.page-entering {
    animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* כפתורי כרטיס גדולים בגיבור */
.hero-action-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-action-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 30px;
    border-radius: 18px;
    cursor: pointer;
    border: none;
    text-align: right;
    direction: rtl;
    transition: var(--transition-smooth);
    min-width: 270px;
    flex: 1;
    max-width: 360px;
    font-family: 'Assistant', sans-serif;
}

.hero-card-candidate {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.38);
}

.hero-card-candidate:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(255, 107, 53, 0.48);
}

.hero-card-employer {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 28px rgba(14, 41, 84, 0.28);
}

.hero-card-employer:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(14, 41, 84, 0.38);
}

.hero-card-icon-wrap {
    font-size: 2.3rem;
    flex-shrink: 0;
    opacity: 0.95;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.hero-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-card-subtitle {
    font-size: 0.88rem;
    opacity: 0.88;
    line-height: 1.4;
}

/* כפתור חזרה לדף הראשי */
.page-back-bar {
    margin-bottom: 35px;
}

.btn-back-main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    background: white;
    border: none;
    border-radius: 50px;
    color: var(--primary-blue);
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(14, 41, 84, 0.1);
}

.btn-back-main i {
    color: var(--primary-orange);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.btn-back-main:hover {
    color: var(--primary-orange);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.btn-back-main:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-action-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-action-card {
        max-width: 100%;
        min-width: unset;
    }
}