/* ══════════════════════════════════════════════════════
   Variables — תואם לצבעי הלוגו (נייבי → תכלת)
══════════════════════════════════════════════════════ */
:root {
    --navy-dark:   #0B1F5C;
    --navy-mid:    #123072;
    --blue-accent: #1E9BE0;
    --blue-light:  #4FC3F7;
    --bg:          #F7F9FC;
    --surface:     #FFFFFF;
    --text:        #131B2E;
    --text-muted:  #5A6B85;
    --border:      #E3E8F1;
    --header-bg:   #F7F6F7;
    --radius:      14px;
    --radius-sm:   8px;
    --shadow:      0 4px 20px rgba(11,31,92,.08);
    --shadow-lg:   0 12px 40px rgba(11,31,92,.14);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}
body {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(11,31,92,.08);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: .7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; display: block; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-text strong { color: var(--navy-dark); font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.site-logo-text span { color: var(--blue-accent); font-size: .68rem; font-weight: 500; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}
.main-nav a:not(.btn) {
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    transition: color .15s;
    white-space: nowrap;
}
.main-nav a:not(.btn):hover { color: var(--blue-accent); text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy-dark);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .3rem .5rem;
}

/* ── Hero (בהיר, split - טקסט + תמונת מוצר) ───────────────────────────────── */
.hero {
    background: var(--bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(30,155,224,.1);
    border: 1px solid rgba(30,155,224,.25);
    color: var(--blue-accent);
    border-radius: 100px;
    padding: .4rem 1.1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 1.3rem;
}
.hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 1.1rem;
    color: var(--text);
}
.hero h1 span { color: var(--blue-accent); }

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.hero-trust span { white-space: nowrap; }
.hero-trust i { color: var(--blue-accent); }

.hero-visual {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 10;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Main ──────────────────────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: .8rem;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

/* ── Services - כרטיסים קומפקטיים בשני טורים ───────────────────────────────── */
.services-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.service-card-compact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .2s, box-shadow .2s;
}
.service-card-compact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card-compact h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--text); }
.service-card-compact p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.service-card-compact img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-dark), var(--blue-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: .9rem;
}

/* ── איך אנחנו עובדים - 3 כרטיסים קצרים ────────────────────────────────────── */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.how-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
}
.how-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-dark), var(--blue-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto .9rem;
}
.how-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.how-card p { color: var(--text-muted); font-size: .88rem; }

/* ── רצועת הדגשה ───────────────────────────────────────────────────────────── */
.highlight-banner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    color: var(--navy-dark);
    white-space: nowrap;
}
.highlight-item i { color: var(--blue-accent); }

/* ── Contact CTA - סקשן שיווקי בולט, גרדיאנט נייבי→תכלת ──────────────────── */
.contact-cta {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid) 55%, var(--blue-accent));
    padding: 4rem 0;
}
.contact-cta-head { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }
.contact-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.contact-cta-eyebrow i { color: var(--blue-light); }
.contact-cta .section-title { color: #fff; }
.contact-cta .section-sub { color: rgba(255,255,255,.82); }
.contact-cta-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-top: 1.4rem;
}
.contact-cta-trust span { color: rgba(255,255,255,.9); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.contact-cta-trust i { color: var(--blue-light); margin-left: .35rem; }

/* ── Contact form (קומפקטי) ───────────────────────────────────────────────── */
.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.contact-form .required { color: #c0392b; }
.form-row-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.form-group-full { grid-column: 1 / -1; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.contact-form input.field-error,
.contact-form textarea.field-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.contact-form .btn-block {
    width: 100%;
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-size: 1.02rem;
}
.contact-form .btn-block:disabled { opacity: .7; cursor: default; }

/* ── noty - ערכת עיצוב מותאמת (אין תמה מוכנה ל-noty ב-CDN שהשתמשנו בו,
   בונים תמה מינימלית משלנו כדי לא להיות תלויים בקובץ תמה חיצוני) ──────────── */
.noty_theme__tasystems.noty_bar { border-radius: var(--radius-sm); font-family: 'Heebo', sans-serif; direction: rtl; text-align: right; box-shadow: var(--shadow-lg); margin: .5rem; overflow: hidden; }
.noty_theme__tasystems .noty_body { padding: .9rem 1.1rem; font-size: .92rem; font-weight: 500; }
.noty_theme__tasystems.noty_type__success .noty_body { background: #ecfdf5; border-inline-start: 4px solid #10b981; color: #065f46; }
.noty_theme__tasystems.noty_type__error .noty_body { background: #fef2f2; border-inline-start: 4px solid #c0392b; color: #991b1b; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.65);
    margin-top: 0;
    padding: 2.5rem 0;
    text-align: center;
    font-size: .9rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a[dir="ltr"] { unicode-bidi: isolate; white-space: nowrap; }

/* ── Back to top (מתמלא לפי אחוז גלילה) ───────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 150;
    border: none;
    padding: 0;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top svg circle {
    fill: none;
    stroke-width: 4;
}
.back-to-top svg circle.bg-ring { stroke: var(--border); }
.back-to-top svg circle.fg-ring {
    stroke: var(--blue-accent);
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}
.back-to-top i { color: var(--navy-dark); font-size: 1.1rem; position: relative; z-index: 1; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--blue-accent); color: #fff; }
.btn-primary:hover { background: var(--blue-light); }
.btn-outline-dark { background: transparent; border: 2px solid var(--navy-dark); color: var(--navy-dark); }
.btn-outline-dark:hover { background: var(--navy-dark); color: #fff; }
.btn-dark  { background: var(--navy-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger   { background: #c0392b; color: #fff; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(30,155,224,.15);
}

label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: .92rem; }

.form-group { margin-bottom: 1.25rem; }

/* ── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error   { background: #f8d7da; color: #721c24; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--header-bg);
        box-shadow: 0 8px 16px rgba(11,31,92,.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .main-nav.open { max-height: 320px; }
    .main-nav a:not(.btn) {
        padding: .9rem 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    .main-nav .btn { margin: 1rem 1.5rem; }
    .site-header { position: sticky; }
    .hero h1 { font-size: 1.7rem; }
    .hero { padding: 2.5rem 0; }
    .section { padding: 2.5rem 0; }
    .services-grid-compact { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: 1fr; }
    .back-to-top { bottom: 16px; inset-inline-end: 16px; width: 46px; height: 46px; }
}
