/* ==========================================================================
   אירוע בריבוע - עיצוב האתר
   צבעים לפי ערכות הצבע של האתר המקורי (Elementor):
   primary #2599D5 | text #3758A7 | secondary #54595F | accent #E1E2E6
   ========================================================================== */

:root {
  --blue: #3758A7;
  --sky: #2599D5;
  --sky-deep: #1C7AB8;   /* סוף הגרדיאנט: מספיק ניגודיות לטקסט לבן (4.6:1) */
  --sky-soft: #ACC7EB;
  --chip: #E1E2E6;
  --surface: #F7F7F7;
  --white: #FFFFFF;
  --text: #54595F;
  --ink: #1C2B4A;
  --line: #E4E7EC;
  --danger: #B3261E;
  --success: #1E7B4B;

  --radius: 14px;
  --shadow: 0 12px 32px rgba(55, 88, 167, .12);
  --container: 1180px;
  --header-h: 76px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* הסתרת שדה דבש (honeypot) מהמשתמשים ומקוראי מסך, בלי לשבור את פריסת RTL */
.hp {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-light { background: var(--chip); color: var(--blue); box-shadow: 0 10px 24px rgba(10, 30, 80, .18); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(55, 88, 167, .25); }
.btn-blue:hover { background: #2d4a8e; }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(55, 88, 167, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(16, 32, 70, .2);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  opacity: .92;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 0; cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, background-color .3s ease;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--sky-deep) 100%);
  padding: calc(var(--header-h) + 96px) 0 112px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 12% 18%, rgba(255, 255, 255, .14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero-brand {
  font-size: 18px;
  font-weight: 500;
  opacity: .92;
  margin-bottom: 8px;
}
.hero-title {
  color: #fff;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.12;
}
.hero-lead {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.8;
  opacity: .95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- רצועת השארת פרטים ---------- */
.callback {
  background: var(--sky-soft);
  padding: 30px 0;
}
.callback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.callback-title {
  flex: 1 1 260px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.lead-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 2 1 520px;
  justify-content: flex-end;
}
.field {
  height: 50px;
  min-width: 0;
  flex: 1 1 180px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #8a94a6; }
.field:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(37, 153, 213, .25);
}
.lead-form > .btn { min-width: 150px; height: 50px; min-height: 50px; }
.form-status {
  flex: 0 0 100%;
  min-height: 1.6em;
  font-size: 15px;
  margin-top: 2px;
}
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--success); }
.form-status a { color: inherit; font-weight: 700; }

/* ---------- כללי לסקשנים ---------- */
.section { padding: 104px 0; }
.section--soft { background: var(--surface); }

.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  color: var(--blue);
}
.section-head p {
  margin-top: 16px;
  font-size: 18px;
}

/* ---------- סקשן "העסק שלכם" עם הסרטון ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  color: var(--blue);
  margin-bottom: 24px;
}
.split-text p + p { margin-top: 16px; }

.media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0b1630;
}
.media video {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 492;
  object-fit: cover;
}

/* ---------- כרטיסי מאפיינים ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(55, 88, 167, .10);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(55, 88, 167, .16);
}
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 26px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.card p {
  font-size: 15px;
  line-height: 1.75;
}

.card--plain {
  padding: 28px 22px 30px;
  gap: 10px;
}
.card--plain h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.card--plain p { font-size: 15px; line-height: 1.75; }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--sky);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- לוגואים של לקוחות (רצועה נעה) ---------- */
.logos {
  direction: ltr;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 60s linear infinite;
}
.logos:hover .logos-track { animation-play-state: paused; }
.logos-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-inline-end: 64px;
}
.logos-group li { flex: none; }
.logos-group img {
  width: auto;
  height: 66px;
  max-width: 190px;
  object-fit: contain;
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .logos { overflow-x: auto; }
  .logos-track { animation: none; }
  .logos-group[aria-hidden="true"] { display: none; }
}

/* ---------- תמיכה מרחוק (רצועה כחולה) ---------- */
.band {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--sky-deep) 100%);
  color: rgba(255, 255, 255, .94);
}
.band .split-text h2 { color: #fff; }
.band-phone { font-size: 18px; margin-top: 22px !important; }
.band-phone a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 4px;
}
.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(10, 30, 80, .25);
  padding: 34px;
}
.lead-form--stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}
.lead-form--stack label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 6px;
}
.lead-form--stack .field { flex: none; width: 100%; height: 52px; background: #F4F6FA; border-color: #DCE3EE; }
.lead-form--stack .btn { margin-top: 12px; }
.lead-form--stack .form-status { text-align: center; color: var(--text); }
.lead-form--stack .form-status.is-error { color: var(--danger); }
.lead-form--stack .form-status.is-ok { color: var(--success); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.brand--dark { color: var(--blue); font-weight: 800; font-size: 20px; }
.brand--dark img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--blue); font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copy { color: var(--text); }

/* ---------- סרגל יצירת קשר במובייל ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -8px 24px rgba(16, 32, 70, .12);
}
.mobile-cta .btn { flex: 1; min-height: 46px; font-size: 16px; }

/* ---------- אנימציית הופעה ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- רספונסיביות ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(55, 88, 167, .98);
    box-shadow: 0 16px 30px rgba(16, 32, 70, .25);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .15); opacity: 1; font-size: 17px; }
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 100px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--container), 100% - 32px); }
  .hero { padding: calc(var(--header-h) + 56px) 0 84px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .callback-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .callback-title { flex: none; }
  .lead-form { flex: none; width: 100%; justify-content: stretch; }
  .lead-form .field { flex: 1 1 100%; }
  .lead-form > .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .section-head { margin-bottom: 40px; }
  .panel { padding: 26px 22px; }
  .logos-group { gap: 40px; padding-inline-end: 40px; }
  .logos-group img { height: 52px; }
}

/* ---------- רכיבים משותפים לעמודים המשפטיים ---------- */
.legal-links {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-links a { color: var(--text); font-size: 14px; text-decoration: none; }
.legal-links a:hover { color: var(--blue); text-decoration: underline; }

.legal-top {
  padding: 22px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.legal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-back { color: var(--blue); font-weight: 500; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

.legal { padding: 56px 0 96px; }
.legal-wrap { max-width: 820px; }
.legal h1 { color: var(--blue); font-size: clamp(32px, 4vw, 44px); }
.legal-date { margin-top: 10px; font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-size: 24px; color: var(--ink); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-inline-start: 22px; list-style: disc; }
.legal li { margin: 8px 0; }
.legal a { color: var(--blue); }

/* סימון שדות שצריך למלא לפני פרסום */
.ph {
  padding: 0 6px;
  border-radius: 4px;
  background: #FFF1B8;
  color: #5C4300;
  font-weight: 500;
  white-space: nowrap;
}
