/* avocado4ai /bizz — shared by the English (LTR) and Hebrew (RTL) pages.
   Layout uses logical properties so one stylesheet serves both directions. */
:root {
    --bg: #FFFFFF;
    --tint: #F4F7FB;
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #475569;
    --line: #E2E8F0;
    --brand: #0369A1;
    --brand-2: #075985;
    --brand-soft: #E8F4FB;
    --ok: #047857;
    --ok-soft: #E7F6EF;
    --dark: #0F172A;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 1px 2px rgba(15, 23, 42, .05), 0 28px 56px -28px rgba(15, 23, 42, .28);
    --container: 1160px;
    --header-h: 68px;
    --font: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.he { font-family: 'Heebo', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* Skip link: clipped, never positioned off-screen (an off-screen box widens RTL pages) */
.skip-link {
    position: absolute; inset-block-start: 0; inset-inline-start: 0;
    clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    clip-path: none; width: auto; height: auto; padding: .6rem 1rem; margin: .75rem;
    background: var(--bg); border: 2px solid var(--brand); border-radius: 10px; z-index: 1000; font-weight: 600;
}

.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: flex; align-items: baseline; gap: .15rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; direction: ltr; }
.logo-sub { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: .975rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); }
.nav-links .nav-cta {
    background: var(--brand); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--brand-2); color: #fff; }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 .85rem;
    border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle {
    display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; }
body.he h1, body.he h2, body.he h3, body.he h4 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.kicker { display: inline-block; color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.lead { color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.lead-strong { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.6rem;
    border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(3, 105, 161, .8); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(3, 105, 161, .10), transparent 70%),
        radial-gradient(700px 360px at 5% 10%, rgba(99, 102, 241, .07), transparent 70%),
        var(--bg);
}
[dir="rtl"] .hero {
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(3, 105, 161, .10), transparent 70%),
        radial-gradient(700px 360px at 95% 10%, rgba(99, 102, 241, .07), transparent 70%),
        var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-content { display: grid; gap: 1.4rem; justify-items: start; }
.pill {
    display: inline-block; padding: .4rem .95rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2);
    font-weight: 600; font-size: .9rem;
}
.subhead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.microcopy { color: var(--muted); font-size: .95rem; }

/* A → B card */
.journey {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.j-col { display: grid; gap: .6rem; align-content: start; padding: 1rem; border-radius: var(--radius); }
.j-a { background: var(--tint); }
.j-b { background: var(--ok-soft); }
.j-label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.j-b .j-label { color: var(--ok); }
.j-title { font-size: 1.3rem; font-weight: 700; }
.j-col ul { display: grid; gap: .7rem; margin-top: .35rem; }
.j-col li { display: flex; gap: .6rem; align-items: flex-start; font-size: .975rem; line-height: 1.5; }
.j-col li .ic { width: 18px; height: 18px; margin-top: 2px; }
.j-a li { color: var(--muted); }
.j-a li .ic { color: #94A3B8; }
.j-b li { color: var(--ink); font-weight: 500; }
.j-b li .ic { color: var(--ok); }
.j-arrow {
    align-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(3, 105, 161, .12);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; display: grid; gap: 1rem; justify-items: center; }

/* Bridge steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; display: grid; gap: 1.1rem; align-content: start; }
.step-n {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
    background: #fff; border: 2px solid var(--line); color: var(--ink-2); position: relative; z-index: 1;
}
.step-mid .step-n { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(3, 105, 161, .12); }
.step:last-child .step-n { border-color: var(--ok); color: var(--ok); }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 27px; inset-inline-start: calc(56px + .75rem); width: calc(100% - 56px);
    border-top: 2px dashed #CBD5E1;
}
.step p { color: var(--muted); margin-top: .4rem; }
.step h3 { font-size: 1.3rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: .9rem; align-content: start;
    box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(3, 105, 161, .45); box-shadow: var(--shadow-lg); }
.card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card-ic .ic { width: 26px; height: 26px; }
.card p { color: var(--muted); }

/* Proof */
.cases { display: grid; gap: 1.5rem; max-width: 980px; margin-inline: auto; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.case-name { font-size: 1.35rem; }
.case-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.case-col { display: grid; gap: .5rem; align-content: start; padding: 1.15rem 1.25rem; border-radius: var(--radius); }
.case-col p { color: var(--muted); font-size: 1rem; }
.case-ch { background: var(--tint); }
.case-rs { background: var(--ok-soft); }
.case-rs h4 { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.tag { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.case-rs .tag { color: var(--ok); }
.case-arrow { align-self: center; color: var(--brand); }
.case-arrow .ic { width: 26px; height: 26px; }
[dir="rtl"] .case-arrow .ic { transform: scaleX(-1); }

/* About + contact */
.section-dark { background: var(--dark); color: #E2E8F0; background-image: radial-gradient(800px 380px at 90% 0%, rgba(3, 105, 161, .35), transparent 70%); }
[dir="rtl"] .section-dark { background-image: radial-gradient(800px 380px at 10% 0%, rgba(3, 105, 161, .35), transparent 70%); }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: #7DD3FC; }
.section-dark .lead { color: #CBD5E1; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy { display: grid; gap: 1.1rem; justify-items: start; }
.about-links { display: grid; gap: .75rem; margin-top: .75rem; }
.about-links a { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.about-links a:hover { color: #7DD3FC; }
.about-links .ic { color: #7DD3FC; }
.contact-panel { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-lg); }
.contact-form { display: grid; gap: 1rem; }
.form-sub { color: var(--muted); }
.field { display: grid; gap: .45rem; }
label { font-weight: 600; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 500; }
input, textarea {
    width: 100%; min-height: 50px; border: 1px solid #CBD5E1; border-radius: 12px; padding: .7rem .9rem; background: #fff; font-size: 1rem;
    transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.error { color: #B91C1C; font-size: .875rem; min-height: 1.1rem; }
.form-foot { color: var(--muted); font-size: .9rem; }
.form-foot a { color: var(--brand); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.75rem 0; color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a:hover { color: var(--brand); }

/* Reveal on scroll (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in-view { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset-inline: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-links .nav-cta { margin-top: 1rem; border: 0; text-align: center; padding: 1rem; font-size: 1.05rem; }

    .journey { grid-template-columns: 1fr; padding: 1.1rem; }
    .j-arrow { justify-self: center; }
    .j-arrow .ic { transform: rotate(90deg); }
    [dir="rtl"] .j-arrow .ic.flip { transform: rotate(90deg); }

    .steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .step { grid-template-columns: 56px 1fr; gap: 1rem; }
    .step:not(:last-child)::after {
        top: calc(56px + .5rem); inset-inline-start: 27px; width: 0; height: calc(100% - 56px + 1.25rem);
        border-top: 0; border-inline-start: 2px dashed #CBD5E1;
    }
    .step p { margin-top: .3rem; }

    .case-body { grid-template-columns: 1fr; }
    .case-arrow { justify-self: center; }
    .case-arrow .ic, [dir="rtl"] .case-arrow .ic { transform: rotate(90deg); }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .container { width: min(100% - 2rem, var(--container)); }
    .cards { grid-template-columns: 1fr; }
    .cta-row .btn { flex: 1 1 100%; }
    .lead { font-size: 1.05rem; }
    .card, .case { padding: 1.25rem; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .reveal.in-view { opacity: 1; transform: none; transition: none; }
    .btn, .card { transition: none; }
}

/* ---------- Private AI band ---------- */
.band { background: var(--brand-soft); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band-copy { display: grid; gap: 1rem; justify-items: start; }
.band-pts { display: grid; gap: 1rem; }
.band-pts li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.band-pts .ic { width: 26px; height: 26px; margin-top: 2px; color: var(--ok); }
.band-pts h3 { font-size: 1.05rem; }
.band-pts p { color: var(--muted); font-size: .975rem; margin-top: .2rem; }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: .8rem; align-content: start; box-shadow: var(--shadow); }
.proc-n { font-size: 2.25rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.03em; direction: ltr; justify-self: start; }
.proc-step p { color: var(--muted); }
.dur { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; margin-top: .25rem; padding: .35rem .8rem; border-radius: 999px; background: var(--tint); color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.dur .ic { width: 16px; height: 16px; color: var(--brand); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: .75rem; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; padding: 1.15rem 3.25rem 1.15rem 1.35rem; font-weight: 700; font-size: 1.05rem; position: relative; }
[dir="rtl"] .qa summary { padding: 1.15rem 1.35rem 1.15rem 3.25rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; inset-inline-end: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--brand); line-height: 1; }
.qa[open] summary::after { content: "\2212"; }
.qa p { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- About card, chips, hidden honeypot ---------- */
.about-card { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .06); width: 100%; }
.about-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid rgba(255, 255, 255, .25); }
.about-card strong { display: block; color: #fff; font-size: 1.15rem; }
.about-card span { display: block; color: #CBD5E1; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chips li { padding: .25rem .7rem; border-radius: 999px; background: rgba(125, 211, 252, .14); color: #BAE6FD; font-size: .8rem; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: .95rem; font-weight: 600; color: var(--ok); min-height: 1.2rem; }

/* ---------- Floating contact: WhatsApp button (desktop) + call bar (mobile) ---------- */
.fab {
    position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: .6rem; min-height: 54px; padding: 0 1.25rem;
    border-radius: 999px; background: #128C4A; color: #fff; font-weight: 700; font-size: .975rem; box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .65);
    transition: transform .15s ease, opacity .2s ease;
}
.fab:hover { transform: translateY(-2px); background: #0E7A40; }
.fab .ic { width: 24px; height: 24px; }
.fab.hide { opacity: 0; pointer-events: none; transform: translateY(8px); }
.mbar { display: none; }

@media (max-width: 1000px) {
    .band-grid { grid-template-columns: 1fr; }
    .proc { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .fab { display: none; }
    .mbar {
        display: flex; gap: .6rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 55; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
        transform: translateY(110%); transition: transform .25s ease;
    }
    .mbar.show { transform: none; }
    .mbar .btn { flex: 1; min-height: 48px; padding: 0 1rem; }
    body.mbar-on { padding-bottom: 72px; }
}
@media (max-width: 640px) {
    .about-card { align-items: flex-start; }
    .about-photo { width: 76px; height: 76px; }
    .proc-step, .qa summary { padding-block: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .fab, .mbar { transition: none; } }
