/*
Theme Name: H-Systems Child
Theme URI: https://h-systems.co.il
Description: עיצוב מותאם אישית ל"ח. מערכות" — מבוסס על Hello Elementor. עמוד בית בעיצוב HTML מלא, RTL, dark theme.
Author: ח. מערכות
Template: hello-elementor
Version: 1.0.0
Text Domain: h-systems-child
*/

/* ============================================================
   ח. מערכות — Home page styles
   Brand: deep navy + blue→cyan gradient (from logo)
   Type:  Heebo (display) / Assistant (text) — Hebrew, RTL
   ============================================================ */

:root {
  /* brand gradient (overridden by accent tweak) */
  --brand-1: #2C7BF2;
  --brand-2: #36D8D8;
  --brand-grad: linear-gradient(115deg, var(--brand-1), var(--brand-2));

  /* dark theme (default) */
  --bg:        #081320;
  --bg-2:      #0B1A2C;
  --surface:   #0F2238;
  --surface-2: #14304E;
  --line:      rgba(150, 190, 230, 0.12);
  --line-2:    rgba(150, 190, 230, 0.20);
  --text:      #EAF2FB;
  --heading:   #FFFFFF;
  --muted:     #93A8C2;
  --faint:     #6B81A0;
  --on-brand:  #061018;

  /* shape + rhythm (overridden by radius/density tweaks) */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --section-y: 116px;
  --maxw: 1240px;

  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.6);

  --display: "Heebo", system-ui, sans-serif;
  --body: "Assistant", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg:        #EFF4FA;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F1F6FC;
  --line:      rgba(16, 44, 78, 0.10);
  --line-2:    rgba(16, 44, 78, 0.16);
  --text:      #2A3D54;
  --heading:   #0C2138;
  --muted:     #5B7088;
  --faint:     #8497AD;
  --on-brand:  #FFFFFF;
  --shadow:    0 30px 60px -32px rgba(18, 49, 84, 0.30);
  --shadow-sm: 0 14px 30px -18px rgba(18, 49, 84, 0.22);
}

/* radius presets */
[data-radius="sharp"] { --r-sm: 3px; --r: 5px; --r-lg: 8px; }
[data-radius="round"] { --r-sm: 14px; --r: 22px; --r-lg: 34px; }

/* density presets */
[data-density="compact"] { --section-y: 84px; }
[data-density="comfy"]   { --section-y: 148px; }

/* ============================================================
   reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--heading);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brand-1); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--brand-2);
  text-transform: none;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.services .section-head { margin-inline: auto; text-align: center; }
.services .section-head p { margin-inline: auto; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 19px;
  margin-top: 18px;
  max-width: 620px;
}

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand-grad);
  color: var(--on-brand);
  box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--brand-1) 65%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px color-mix(in oklab, var(--brand-1) 70%, transparent); }
.btn-ghost {
  background: color-mix(in oklab, var(--text) 6%, transparent);
  border-color: var(--line-2);
  color: var(--heading);
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-2px); }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, backdrop-filter .3s ease;
}
/* over the cover: translucent so the image shows through, with a soft top scrim for legibility */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,16,28,0.55), rgba(6,16,28,0));
  opacity: 1;
  transition: opacity .3s ease;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.scrolled::before { opacity: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h, 92px);
}
.brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 3; }
.brand .logo-chip {
  height: 76px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #0a1422;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
  flex: none;
}
.brand .logo-chip img { height: 64px; width: auto; object-fit: contain; display: block; }
.footer-brand .logo-chip { height: 56px; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.brand .brand-name span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--muted);
  padding: 9px 15px;
  border-radius: var(--r-sm);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--heading); background: color-mix(in oklab, var(--text) 6%, transparent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.header-phone svg { width: 22px; height: 22px; color: var(--brand-2); }
.header-phone { padding: 8px; border-radius: var(--r-sm); transition: background .2s ease; }
.header-phone:hover { background: color-mix(in oklab, var(--brand-2) 14%, transparent); }

.nav-toggle { display: none; }

/* ============================================================
   hero
   ============================================================ */
/* full-width cover banner — shows the whole image, with the header sitting over it */
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;     /* full image, nothing cropped top-to-bottom */
  max-height: 92vh;
  overflow: hidden;
  background: #0a1422;
  margin-top: calc(-1 * var(--header-h, 92px));  /* tuck image up behind the menu */
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;   /* shift framing down so the screen + all categories stay in view */
  /* "living photo" — slow zoom + drift loop so the cover feels like video */
  transform-origin: 30% 35%;       /* keep the on-screen categories anchored */
  animation: cover-pan 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes cover-pan {
  0%   { transform: scale(1.04) translate(1.5%, 1%); }
  100% { transform: scale(1.12) translate(-2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .cover img { animation: none; transform: scale(1.04); }
}
.cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,16,28,0.45) 0%, rgba(6,16,28,0) 20%),
    linear-gradient(to top, var(--bg) 0%, rgba(6,16,28,0) 16%);
}

/* intro band beneath the cover */
.intro {
  background: var(--bg);
  padding-block: clamp(44px, 6.5vw, 80px);
  text-align: center;
}
.intro-inner { max-width: 880px; margin-inline: auto; }
.intro h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  margin-top: 20px;
  letter-spacing: -0.02em;
}
.intro h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro .eyebrow { justify-content: center; }
.intro-sub {
  font-size: 20px;
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 640px;
}
.intro-actions { display: flex; gap: 14px; margin-top: 34px; justify-content: center; flex-wrap: wrap; }
.intro-stats {
  display: flex;
  gap: 0;
  margin-top: 50px;
  justify-content: center;
  flex-wrap: wrap;
}
.intro-stats .stat { padding-inline: 40px; }
.intro-stats .stat + .stat { border-inline-start: 1px solid var(--line); }
.intro-stats .stat b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  color: var(--heading);
  display: block;
  line-height: 1;
}
.intro-stats .stat span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 620px) {
  .intro-stats .stat { padding-inline: 22px; }
}

/* image placeholder */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--brand-1) 12%, var(--surface)) 0 2px,
      var(--surface) 2px 13px);
  display: grid;
  place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: "Heebo", monospace;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--faint);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ============================================================
   logos / trust strip
   ============================================================ */
.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label { font-size: 14px; color: var(--faint); font-family: var(--display); font-weight: 500; white-space: nowrap; }
.trust-logos { display: flex; gap: 38px; align-items: center; flex-wrap: wrap; }
.trust-logos .lg {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--faint);
  opacity: .8;
  letter-spacing: .01em;
}

/* ============================================================
   services
   ============================================================ */
.services { padding-block: var(--section-y); background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: var(--ti, right);
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand-1) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand-2) 28%, transparent);
  margin-bottom: 22px;
}
.svc-icon svg { width: 28px; height: 28px; color: var(--brand-2); stroke-width: 1.6; }
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 16px; }
.service-card ul {
  list-style: none; padding: 0; margin-top: 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.service-card li {
  font-size: 14.5px; color: var(--faint);
  display: flex; align-items: center; gap: 9px;
}
.service-card li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--brand-2); flex: none;
}

/* ============================================================
   why-us  (split: copy + advantage list)
   ============================================================ */
.why { padding-block: var(--section-y); background: var(--bg-2); border-block: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.why-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}
.why-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.adv {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.adv .ico {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: var(--on-brand);
}
.adv .ico svg { width: 21px; height: 21px; stroke-width: 1.8; }
.adv b { font-family: var(--display); font-size: 16.5px; color: var(--heading); display: block; margin-bottom: 3px; }
.adv span { font-size: 14px; color: var(--muted); }

/* ============================================================
   process
   ============================================================ */
.process { padding-block: var(--section-y); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brand-2);
  border: 1.5px solid color-mix(in oklab, var(--brand-2) 45%, transparent);
  margin-bottom: 20px;
}
.step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.step .line {
  position: absolute;
  top: 51px;
  inset-inline-start: -9px;
  width: 18px; height: 2px;
  background: var(--line-2);
}
.steps .step:first-child .line { display: none; }

/* ============================================================
   projects gallery
   ============================================================ */
.projects { padding-block: var(--section-y); background: var(--bg-2); border-block: 1px solid var(--line); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.proj {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.proj.tall { grid-row: span 2; }
.proj.wide { grid-column: span 2; }
.proj > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.proj .cap {
  position: absolute;
  z-index: 2;
  inset-block-end: 0; inset-inline: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, color-mix(in oklab, var(--bg) 92%, transparent), transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.proj .cap b { font-family: var(--display); font-size: 15.5px; color: var(--heading); }
.proj .cap span { font-size: 12.5px; color: var(--brand-2); font-weight: 600; }

/* ============================================================
   clients carousel
   ============================================================ */
.clients { padding-block: 48px; }
.clients-head { text-align: center; margin-bottom: 28px; }
.clients-head h2 { font-size: clamp(18px, 2vw, 26px); margin-top: 0; }

.car-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.car-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: car-scroll 28s linear infinite;
}
.car-track:hover { animation-play-state: paused; }

@keyframes car-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.car-slide { flex: none; }

.logo-box {
  width: 190px;
  height: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  padding: 16px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.logo-box:hover {
  border-color: var(--brand-2);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.logo-box img { max-width: 100%; max-height: 60px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-box:hover img { filter: grayscale(0); opacity: 1; }
.logo-ph {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   contact + CTA form
   ============================================================ */
.contact { padding-block: var(--section-y); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: stretch;
}
.contact-info h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 16px 0 18px; }
.contact-info > p { color: var(--muted); font-size: 18px; max-width: 440px; }

.info-list { margin-top: 38px; display: flex; flex-direction: column; gap: 4px; }
.info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row .ic {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand-1) 14%, transparent);
  border: 1px solid var(--line);
  color: var(--brand-2);
}
.info-row .ic svg { width: 22px; height: 22px; stroke-width: 1.7; }
.info-row .meta small { font-size: 13px; color: var(--faint); font-family: var(--display); font-weight: 600; display: block; margin-bottom: 3px; }
.info-row .meta b { font-family: var(--display); font-size: 18px; color: var(--heading); font-weight: 700; }
.info-row .meta b.ltr { direction: ltr; display: inline-block; }
.info-row .meta p { font-size: 15px; color: var(--muted); margin-top: 2px; }

.hours-note { color: var(--faint); font-size: 13.5px; margin-top: 14px; }

/* form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--brand-grad);
}
.form-card h3 { font-size: 25px; margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-2) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn-primary { width: 100%; margin-top: 6px; padding-block: 16px; font-size: 17px; }
.form-foot { text-align: center; font-size: 13px; color: var(--faint); margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .btn-ghost { margin-top: 22px; }
.field label .opt { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-grad); color: var(--on-brand);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* ============================================================
   footer
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--heading); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .2s ease; }
.footer-col a:hover { color: var(--brand-2); }
.footer-col p.ltr { direction: ltr; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
  flex-wrap: wrap;
  text-align: right;
}
.footer-bottom p { font-size: 13.5px; color: var(--faint); }

/* reveal animation — progressive enhancement.
   Content is visible by default; only hidden once JS confirms it's running
   (html[data-js="1"]). A failed/blocked script therefore can never blank the page. */
.reveal { opacity: 1; transform: none; }
[data-js="1"] .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-js="1"] .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-js="1"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   accessibility widget
   ============================================================ */
#a11y-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  font-family: var(--body), system-ui, sans-serif;
  direction: rtl;
}

#a11y-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--brand-2, #2C7BF2);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .2s;
}
#a11y-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
#a11y-toggle svg { width: 22px; height: 22px; }

#a11y-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 280px;
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  padding: 0 0 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}
#a11y-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.a11y-header h2 { font-size: 15px; font-weight: 700; color: #111; margin: 0; }
.a11y-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  color: #555;
  transition: background .2s;
}
.a11y-close:hover { background: #e5e7eb; }
.a11y-close svg { width: 14px; height: 14px; }

.a11y-section { padding: 12px 16px 4px; }
.a11y-section-label { font-size: 11px; font-weight: 600; color: #888; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }

.a11y-row { display: flex; gap: 8px; }
.a11y-btn {
  flex: 1; padding: 8px 4px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #333;
  transition: background .2s, border-color .2s;
}
.a11y-btn:hover { background: #e5e7eb; border-color: #d1d5db; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggle-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  background: #f3f4f6; border: 1.5px solid #e5e7eb;
  border-radius: 10px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: #444;
  text-align: center; line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}
.a11y-toggle-btn:hover { background: #e5e7eb; }
.a11y-toggle-btn[aria-pressed="true"] {
  background: #eff6ff; border-color: #2C7BF2; color: #1d4ed8;
}
.a11y-icon { font-size: 18px; line-height: 1; }

.a11y-reset {
  display: block; width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 10px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #555;
  text-align: center;
  transition: background .2s;
}
.a11y-reset:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.a11y-statement {
  display: block; text-align: center; margin-top: 10px;
  font-size: 12px; color: #2C7BF2; text-decoration: underline;
}
.a11y-standard { text-align: center; font-size: 10.5px; color: #aaa; margin-top: 8px; padding-inline: 16px; }

/* accessibility states applied to <html> */
html.a11y-high-contrast { filter: contrast(150%); }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-highlight-links a { outline: 2px solid #f59e0b !important; background: #fef3c7 !important; color: #92400e !important; }
html.a11y-readable-font * { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; letter-spacing: .03em !important; }
html.a11y-line-spacing p, html.a11y-line-spacing li { line-height: 2 !important; }
html.a11y-stop-animations *, html.a11y-stop-animations *::before, html.a11y-stop-animations *::after { animation: none !important; transition: none !important; }
html.a11y-big-cursor, html.a11y-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='white' stroke='black' stroke-width='2' d='M8 4l16 12-7 1-4 8-5-21z'/%3E%3C/svg%3E") 8 4, auto !important; }
html.a11y-focus-highlight *:focus { outline: 3px solid #f59e0b !important; outline-offset: 3px !important; }

/* ============================================================
   modal popup
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: translateY(20px);
  transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.modal-close:hover { background: var(--surface); border-color: var(--text); color: var(--heading); }
.modal-close svg { width: 14px; height: 14px; }

/* ============================================================
   hamburger + mobile nav
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: absolute; top: 100%; inset-inline: 0; z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.mobile-nav.open {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mob-link {
  font-family: var(--display); font-weight: 500; font-size: 17px;
  color: var(--text); padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .2s;
}
.mob-link:last-of-type { border-bottom: none; }
.mob-link:hover { color: var(--brand-2); }
.mob-cta { margin-top: 12px; text-align: center; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step .line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { max-width: 100%; aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj.wide { grid-column: span 2; }
  .proj.tall { grid-row: span 1; }
  /* hide desktop nav, show hamburger */
  .nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-hide { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  :root { --section-y: 64px; }
  .services-grid { grid-template-columns: 1fr; }
  .adv-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .intro-stats { flex-wrap: wrap; gap: 16px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj.wide, .proj.tall { grid-column: span 1; grid-row: span 1; }
  .cover { aspect-ratio: 4/3; max-height: 60vh; }
  .logo-box { width: 140px; height: 80px; }
  .section-head h2 { font-size: clamp(22px, 6vw, 30px); }
  .brand .logo-chip { height: 48px; padding: 6px 10px; }
  .header-inner { height: 68px; }
  :root { --header-h: 68px; }
}

/* ============================================================
   WPForms — match the dark form-card design
   ============================================================ */
.form-card .wpforms-container,
.modal-box .wpforms-container { margin: 0; }
.form-card .wpforms-form .wpforms-field,
.modal-box .wpforms-form .wpforms-field { padding: 0 0 16px; }
.form-card .wpforms-field-label,
.modal-box .wpforms-field-label {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--text) !important;
  margin-bottom: 8px !important;
}
.wpforms-field-label .wpforms-required-label { color: var(--brand-2); }
.form-card .wpforms-form input[type=text],
.form-card .wpforms-form input[type=email],
.form-card .wpforms-form input[type=tel],
.form-card .wpforms-form textarea,
.modal-box .wpforms-form input[type=text],
.modal-box .wpforms-form input[type=email],
.modal-box .wpforms-form input[type=tel],
.modal-box .wpforms-form textarea {
  width: 100% !important;
  font-family: var(--body) !important;
  font-size: 16px !important;
  color: var(--text) !important;
  background: var(--bg) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-sm) !important;
  padding: 13px 15px !important;
  box-shadow: none !important;
}
.wpforms-form input::placeholder, .wpforms-form textarea::placeholder { color: var(--faint) !important; }
.form-card .wpforms-form input:focus,
.modal-box .wpforms-form input:focus,
.form-card .wpforms-form textarea:focus,
.modal-box .wpforms-form textarea:focus {
  outline: none !important;
  border-color: var(--brand-2) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-2) 22%, transparent) !important;
}
.form-card .wpforms-form button[type=submit],
.modal-box .wpforms-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100% !important;
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  padding: 16px 26px !important;
  margin-top: 6px !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid transparent !important;
  background: var(--brand-grad) !important;
  color: var(--on-brand) !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease;
}
.form-card .wpforms-form button[type=submit]:hover,
.modal-box .wpforms-form button[type=submit]:hover { transform: translateY(-2px); }
.wpforms-form .wpforms-field-description,
.wpforms-confirmation-container-full,
.wpforms-form .wpforms-required-label { font-family: var(--body); }
.wpforms-confirmation-container-full {
  background: color-mix(in oklab, var(--brand-2) 12%, transparent) !important;
  border: 1px solid color-mix(in oklab, var(--brand-2) 35%, transparent) !important;
  color: var(--text) !important;
  border-radius: var(--r-sm);
  padding: 18px 16px;
}
.wpforms-error { color: #ff8b8b !important; font-size: 13px !important; }
.wpforms-form input.wpforms-error, .wpforms-form textarea.wpforms-error { border-color: #ff8b8b !important; }

/* ============================================================
   REVISIONS (post-launch fixes)
   ============================================================ */
/* נגישות: כפתור עגול עם אייקון בלבד (ללא כיתוב) */
#a11y-toggle {
  width: 54px;
  height: 54px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  justify-content: center;
}
#a11y-toggle span { display: none; }
#a11y-toggle svg { width: 26px; height: 26px; }

/* "השאירו פרטים" — כפתור גלוי וקומפקטי בהדר גם בנייד */
@media (max-width: 900px) {
  .header-cta .btn-primary.mobile-hide,
  .header-cta .btn-primary { display: inline-flex; padding: 11px 16px; font-size: 14px; }
}
@media (max-width: 400px) {
  .header-cta .btn-primary { padding: 9px 12px; font-size: 13px; }
  .header-cta { gap: 8px; }
  .brand .logo-chip { padding: 6px 8px; }
}

/* הלוגו במובייל — בלי "קופסה" (רקע/מסגרת/צל), לוגו נקי */
@media (max-width: 900px) {
  .brand .logo-chip {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
  }
  .brand .logo-chip img { height: 44px; }
}

/* קרוסלת לקוחות — הלוגואים הם תמונות עם רקע לבן, לכן כרטיס לבן נקי
   ללא grayscale/הנמכת שקיפות, כדי שהלוגואים ייראו ברור */
.clients .logo-box {
  background: var(--surface);
  border: 1px solid var(--line);
}
/* Client logos are white-background JPEGs. Render them as uniform monochrome
   logos that blend into the dark card: invert+grayscale turns the white bg to
   black and the dark mark to light, then mix-blend-mode:screen drops the black
   onto the dark surface — no white rectangle. */
.clients .logo-box img {
  filter: grayscale(1) invert(1) brightness(1.7) contrast(1.04) !important;
  mix-blend-mode: screen;
  opacity: .8 !important;
  max-height: 64px;
}
.clients .logo-box:hover { border-color: var(--brand-2); }
.clients .logo-box:hover img { opacity: 1 !important; }

/* ============================================================
   COLOR/FONT GUARDS — לנצח את סגנון ה-parent (hello-elementor)
   ושל Elementor שעלולים לדרוס ל-#333 / system font.
   "html body ..." בעל specificity גבוה מ-body/h2 רגילים.
   ============================================================ */
html body {
  color: var(--text);
  font-family: var(--body);
  background: var(--bg);
}
html body h1, html body h2, html body h3, html body h4 {
  color: var(--heading);
  font-family: var(--display);
}
html body .eyebrow { color: var(--brand-2); }
html body .section-head p,
html body .service-card p,
html body .intro-sub,
html body .contact-info > p { color: var(--muted); }
html body .service-card li { color: var(--faint); }
html body a { color: inherit; }
html body .nav a { color: var(--muted); }
html body .nav a:hover { color: var(--heading); }

/* ============================================================
   קרוסלת לקוחות — לופ אינסופי חלק + כרטיס לבן אחיד
   הבעיה: flex gap יוצר אי-התאמה ב--50% ולכן "קפיצה" בלופ.
   הפתרון: כל שקופית נושאת רווח משלה (margin), כך ש--50% מתיישר מושלם
   על שקופית זהה מהסט המשוכפל → רצף בלי קפיצות.
   ============================================================ */
.clients .car-track { gap: 0; }
.clients .car-slide { margin-inline-end: 20px; }
/* כרטיס לבן אחיד, בדיוק בגובה הקרוסלה */
.clients .logo-box {
  width: 190px;
  height: 96px;
  padding: 14px 22px;
  margin: 0;
}
.clients .logo-box img { max-height: 60px; }
@media (max-width: 620px) {
  .clients .logo-box { width: 150px; height: 84px; }
  .clients .car-slide { margin-inline-end: 14px; }
}

/* Footer legal link (privacy policy) — footer only */
.footer-bottom a.footer-legal { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-bottom a.footer-legal:hover { color: var(--brand-2); text-decoration: underline; }
