/* ════════════════════════════════════════════════════════════════════
   styles.css, "Ember & Graphite"
   ────────────────────────────────────────────────────────────────────
   • Warm graphite base (not blue-black), burnt-ember accent (not the
     stock Tailwind orange-500), warm steel neutrals, sage for ticks.
   • NO gradients on controls, NO coloured glow shadows, flat fills +
     realistic neutral elevation only.
   • One continuous canvas: sections are separated by air + a hairline
     rule that fades at both edges, never by tonal banding.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces, warm graphite */
  --ink:   #121110;
  --ink-1: #1A1917;
  --ink-2: #232120;
  --ink-3: #2C2A28;

  /* Lines */
  --line:   rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);

  /* Type */
  --text: #EDEAE6;                       /* warm off-white */
  --dim:  rgba(237, 234, 230, .58);
  --dimmer: rgba(237, 234, 230, .42);

  /* Accent, burnt ember */
  --accent:      #C2571F;
  --accent-deep: #9C3F12;
  --safety:      #C2571F;                /* aliases keep older rules valid */
  --safety-dark: #9C3F12;

  /* Neutrals + semantics */
  --steel:       #A8A29E;                /* warm steel */
  --steel-light: #D6D1CC;
  --clean:       #7A9A65;                /* sage, ticks / "done" only */
  --wa:          #4E7A52;                /* muted WhatsApp green */

  /* Elevation, neutral, never coloured */
  --shadow-sm: 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 24px -18px rgba(0,0,0,.9);
  --shadow-md: 0 1px 0 rgba(255,255,255,.06) inset, 0 22px 48px -30px rgba(0,0,0,.95);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -40px rgba(0,0,0,1);

  --r: 1.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
::selection { background: var(--accent); color: #fff; }
body { letter-spacing: .004em; }

/* ─────────────── MICRO-DETAIL POLISH ───────────────
   The layer people feel without consciously noticing it. */

/* One consistent, on-brand focus ring everywhere (keyboard users only). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Headlines rag much better when the browser balances the line breaks. */
h1, h2, h3, .section-title, .sub-title { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Lining, tabular figures so numbers and percentages never jitter as they
   count up or change, and stay optically aligned in columns. */
.nums, .stat-row-num, .risk-badge, #calc-hours-val, #calc-risk-pct,
.proc-stage-num, .proc-step__num, .std-badge {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

/* Latin/digit runs inside RTL copy stay visually correct. */
[dir="ltr"] { unicode-bidi: isolate; }

/* Slim, on-theme scrollbar instead of the default light one. */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 10px;
  border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* Images never stretch or overflow their container. */
img { max-width: 100%; height: auto; }
@media (max-width: 767px) { body { padding-bottom: 4.5rem; } }

/* ─────────────── SECTION RHYTHM + HAIRLINE SEAMS ───────────────
   Asymmetric padding (more above than below) breaks the old flat
   80/80 monotony; modifiers add hierarchy. */
.section { position: relative; padding-block: clamp(5rem, 8.5vw, 8rem) clamp(4rem, 7vw, 6.5rem); }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1180px, 92vw); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.section--lg    { padding-block: clamp(6.5rem, 11vw, 10rem) clamp(5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3.75rem, 6.5vw, 5.75rem) clamp(3.25rem, 5.5vw, 4.75rem); }
.section--norule::before { display: none; }

/* The seam rule DRAWS itself as the section arrives (origin = RTL start).
   Gated on html.js so the rules stay visible if JS never runs. */
.js .section::before, .js .proc::before {
  transform: translateX(-50%) scaleX(0); transform-origin: 100% 50%;
  transition: transform 1.15s var(--ease); }
.js .section.is-active::before, .js .proc.is-active::before { transform: translateX(-50%) scaleX(1); }

/* Per-section depth: a single large, soft light source, alternating side.
   Adds dimension WITHOUT reintroducing flat tonal banding. */
.section:nth-of-type(odd)  { background-image: radial-gradient(58% 42% at 88% 0%, rgba(194, 87, 31, .055), transparent 62%); background-repeat: no-repeat; }
.section:nth-of-type(even) { background-image: radial-gradient(58% 42% at 12% 2%, rgba(168, 162, 158, .05), transparent 62%);  background-repeat: no-repeat; }

/* Site-wide grain, ties every surface into one material. */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Headlines wipe up from behind a mask instead of just fading.
   NB: uses mask-position, NOT clip-path. clip-path collapses the element's
   intersection rectangle, so IntersectionObserver never reports it as
   visible and the heading stays hidden forever. Masks are paint-only. */
.js .reveal.section-title, .js .reveal.sub-title {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 100%);
          mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 100%);
  -webkit-mask-size: 100% 200%;  mask-size: 100% 200%;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transform: translateY(14px);
  transition: -webkit-mask-position 1s var(--ease), mask-position 1s var(--ease),
              transform 1s var(--ease), opacity .7s var(--ease); }
.js .reveal.section-title.is-in, .js .reveal.sub-title.is-in {
  -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; }

/* ─────────────── STICKY PROGRESS RAIL ─────────────── */
.rail { position: fixed; top: 50%; left: 1.4rem; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: .5rem; }
@media (min-width: 1140px) { .rail { display: flex; } }
.rail-dot { position: relative; width: 2px; height: 16px; border-radius: 2px;
  background: rgba(255, 255, 255, .15); transition: background .3s var(--ease), height .3s var(--ease); }
.rail-dot:hover { background: rgba(255, 255, 255, .45); }
.rail-dot.is-on { background: var(--accent); height: 30px; }
/* label sits to the right of the rail (toward page centre) */
.rail-dot::after { content: attr(data-label); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .72rem; font-weight: 600; color: var(--dim);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.rail-dot:hover::after { opacity: 1; }
.rail-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.section-title { font-family: "Assistant", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; color: #fff; }
.sub-title { font-family: "Assistant", sans-serif; font-weight: 700;
  font-size: clamp(1.55rem, 3.1vw, 2.3rem); line-height: 1.14; letter-spacing: -.01em; color: #fff; }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--accent);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; }
.eyebrow.justify-center { justify-content: center; }
.eyebrow-line { width: 1.9rem; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }

/* Icons */
.ic { width: 1.25rem; height: 1.25rem; flex: none; }
.ic-sm { width: 1rem; height: 1rem; }
.ic-lg { width: 1.75rem; height: 1.75rem; }

.text-safety { color: var(--accent); }
.text-steel-light { color: var(--steel-light); }
.text-clean { color: var(--clean); }

/* ─────────────── PRELOADER ─────────────── */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink); transition: opacity .6s var(--ease), visibility .6s;
  animation: preloaderSafety .01s linear 3.5s forwards; }
@keyframes preloaderSafety { to { opacity: 0; visibility: hidden; } }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.preloader-mark { width: 64px; height: 64px; }
.preloader-mark path { stroke: var(--accent); stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1.1s var(--ease) forwards; }
.preloader-word { font-size: 1.6rem; color: #fff; letter-spacing: .04em; opacity: 0; animation: fadeUp .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─────────────── HEADER ─────────────── */
#site-header.scrolled { background: rgba(18, 17, 16, .78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo-mark { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .7rem;
  background: var(--accent); }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 2.1rem; width: auto; display: block; }
@media (min-width: 768px) { .site-logo img { height: 2.6rem; } }
.site-logo--footer img { height: 2.9rem; }
.nav-link { position: relative; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 1.5px; background: var(--accent); transition: width .25s var(--ease); }
.nav-link:hover { color: #fff; } .nav-link:hover::after { width: 100%; }
.mobile-link { padding: .7rem .25rem; border-bottom: 1px solid var(--line); transition: color .2s; }
.mobile-link:hover { color: #fff; }

/* ─────────────── BUTTONS (flat fills, neutral elevation) ─────────────── */
.btn-primary, .btn-ghost, .btn-next, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: .7rem; font-weight: 700; padding: .95rem 1.6rem; font-size: 1.02rem;
  transition: transform .25s var(--ease), background .2s, box-shadow .3s, border-color .2s; will-change: transform; }
.btn-primary, .btn-submit, .btn-next { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-submit:hover, .btn-next:hover { background: var(--accent-deep); }
.btn-glow { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .95); }   /* neutral, not coloured */
.btn-glow:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 1); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .26); }
.btn-next { padding: .8rem 1.4rem; }
.btn-prev { color: var(--dim); font-weight: 600; padding: .8rem 1rem; transition: color .2s; }
.btn-prev:hover { color: #fff; }

/* ─────────────── HERO ─────────────── */
#hero { background: var(--ink); }
.hero-photo-wrap { position: absolute; inset: -6% 0; z-index: 0; will-change: transform; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 20% center;
  filter: saturate(.62) contrast(1.06) brightness(.76) sepia(.12);
  animation: heroZoom 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  linear-gradient(to bottom, rgba(18,17,16,.55) 0%, transparent 16%),
  linear-gradient(to top,    var(--ink) 0%, rgba(18,17,16,.1) 34%, transparent 56%),
  linear-gradient(to left,    var(--ink) 0%, rgba(18,17,16,.93) 32%, rgba(18,17,16,.6) 60%, rgba(18,17,16,.3) 100%); }
.hero-aura { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(48% 58% at 80% 14%, rgba(194, 87, 31, .16), transparent 62%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.spotlight { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .45;
  background: radial-gradient(280px 280px at var(--mx, 50%) var(--my, 30%), rgba(194, 87, 31, .12), transparent 70%); }

.glass-card { position: absolute; display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem;
  border-radius: 1rem; background: rgba(26, 25, 23, .58); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-md); }
.hero-float { left: 2.5rem; bottom: 8.5rem; }
@media (max-width: 1023px) { figure.hero-float { display: none; } }

.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10;
  width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px;
  border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 14px); } }

.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--text); }

/* ─────────────── MARQUEE ─────────────── */
.marquee { overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; white-space: nowrap; padding: 1rem 0; width: max-content;
  color: var(--steel); font-weight: 600; animation: marquee 36s linear infinite; }
.marquee-track span { font-size: .95rem; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: .68rem; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ─────────────── STANDARD: ghost numeral + stat tower ─────────────── */
.ghost-numeral { position: absolute; top: 50%; left: -2%; transform: translateY(-50%);
  font-family: "Assistant", sans-serif; font-weight: 800; font-size: 32vw; line-height: 1;
  color: rgba(255, 255, 255, .022); pointer-events: none; user-select: none; z-index: 0; }
.ghost-numeral span { color: rgba(194, 87, 31, .05); }
.feat { display: flex; align-items: flex-start; gap: .7rem; color: var(--dim); }
.feat-ico { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: .5rem; flex: none;
  background: rgba(122, 154, 101, .14); color: var(--clean); margin-top: .1rem; }
.stat-tower { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: var(--shadow-md); }
.stat-row { background: var(--ink-1); padding: 1.6rem 1.5rem; display: flex; align-items: baseline; gap: 1rem; }
.stat-row-num { font-family: "Assistant", sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff; flex: none; min-width: 4.5rem; letter-spacing: -.02em; }
.stat-row p { color: var(--dim); font-size: .95rem; line-height: 1.45; }

/* ─────────────── BEFORE/AFTER SCENE ─────────────── */
.ba-scene { position: relative; overflow: hidden; padding-block: clamp(5.5rem, 10vw, 9rem); }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(.6) contrast(1.05) brightness(.4) sepia(.14); z-index: 0; }
.band-scrim { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(to bottom, var(--ink) 0%, rgba(18,17,16,.74) 18%, rgba(18,17,16,.8) 74%, var(--ink) 100%); }

/* ─────────────── BEFORE / AFTER DRAG SLIDER ───────────────
   Two matched photos (same angle/crop). The BEFORE layer sits on top and
   is revealed left→right via clip-path driven by --pos (set in main.js). */
.ba-slider { --ba-before-src: url('../before.jpg'); --ba-after-src: url('../after.jpg');
  position: relative; width: 100%; aspect-ratio: 1408 / 768; border-radius: var(--r); overflow: hidden;
  cursor: ew-resize; touch-action: none; border: 1px solid var(--line-2); background: var(--ink-2);
  box-shadow: var(--shadow-lg); }
.ba-after, .ba-before { position: absolute; inset: 0; background-repeat: no-repeat;
  background-size: cover; background-position: center; }
.ba-after  { background-image: var(--ba-after-src); }                    /* clean */
.ba-before { --pos: 50%; background-image: var(--ba-before-src);          /* dirty */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0); transition: clip-path .15s ease; }
.ba-slider.is-dragging .ba-before { transition: none; }                  /* 1:1 tracking */

.ba-tag { position: absolute; top: 1rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem; border-radius: 9999px; font-weight: 700; font-size: .8rem; color: #fff;
  z-index: 3; backdrop-filter: blur(4px); transition: opacity .35s ease; pointer-events: none; }
.ba-tag-before { left: 1rem;  background: rgba(194, 87, 31, .92); }      /* לפני */
.ba-tag-after  { right: 1rem; background: rgba(122, 154, 101, .92); }    /* אחרי */
.ba-slider.is-dragging .ba-tag { opacity: 0; }                           /* fade while dragging */

.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; background: rgba(255, 255, 255, .92); z-index: 4; box-shadow: 0 0 18px rgba(0, 0, 0, .6); }
.ba-handle-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 9999px; background: #fff; cursor: ew-resize;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55); display: grid; place-items: center; }
/* the two facing arrows */
.ba-handle-grip::before, .ba-handle-grip::after { content: ""; position: absolute; width: 0; height: 0;
  border-block: 5px solid transparent; }
.ba-handle-grip::before { border-right: 7px solid var(--ink); right: 12px; }
.ba-handle-grip::after  { border-left:  7px solid var(--ink); left: 12px; }
.ba-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─────────────── PANELS / CARDS ─────────────── */
.panel { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); }

.aud-card { position: relative; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem; overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), border-color .3s; }
.aud-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.aud-card::before { content: ""; position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: var(--accent); }
.aud-ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.aud-card h3 { font-family: "Assistant", sans-serif; font-weight: 700; font-size: 1.5rem; color: #fff; margin: 1rem 0 .9rem; }
.aud-card ul { display: flex; flex-direction: column; gap: .7rem; }
.aud-card li { display: flex; align-items: flex-start; gap: .6rem; color: var(--dim); }

/* ─────────────── STANDARDS / CREDENTIALS ─────────────── */
.std-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem;
  box-shadow: var(--shadow-md); transition: transform .3s var(--ease), border-color .3s; }
.std-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.std-head { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.std-badge { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; flex: none; border-radius: .8rem;
  font-family: "Assistant", sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--steel-light);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.std-badge--nfpa { color: #fff; background: var(--accent); border-color: transparent; }
.std-card h3 { font-family: "Assistant", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; line-height: 1.2; }
.std-sub { margin-top: .3rem; font-size: .88rem; color: var(--dim); line-height: 1.45; }
.std-h4 { font-weight: 700; font-size: .76rem; letter-spacing: .12em; color: var(--accent); }
.std-list { margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.std-list li { position: relative; padding-inline-start: 1.1rem; color: var(--dim); line-height: 1.6; }
.std-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 4px; height: 4px;
  border-radius: 50%; background: var(--steel); }
.std-why { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .95rem; line-height: 1.65; }
.std-why strong { color: #fff; font-weight: 700; }

/* ─────────────── FAQ ─────────────── */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq { background: var(--ink-1); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .3s, background .3s; }
.faq[open] { border-color: rgba(194, 87, 31, .38); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.05rem; color: #fff; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 1rem; }
.faq-ico { position: relative; width: 1.15rem; height: 1.15rem; flex: none; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px;
  border-radius: 2px; background: var(--accent); transform: translateY(-50%); transition: transform .3s var(--ease); }
.faq-ico::after { transform: translateY(-50%) rotate(90deg); }
.faq[open] .faq-ico::after { transform: translateY(-50%) rotate(0deg); }
.faq-body { padding: 0 1.5rem 1.4rem; }
.faq-body p { color: var(--dim); line-height: 1.8; }

/* ─────────────── ASYMMETRIC SPLIT LAYOUT ───────────────
   Breaks the "heading stacked above a grid" pattern that repeats down the
   page. The aside sticks while its content column scrolls past. */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .split--wide { grid-template-columns: 4fr 8fr; }
  .split-aside { position: sticky; top: 7rem; }
}

/* ─────────────── SERVICE AREAS (editorial list, not a card grid) ─────────────── */
.area-grid { display: grid; grid-template-columns: 1fr; list-style: none;
  border-top: 1px solid var(--line); }
@media (min-width: 700px) { .area-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.area { display: flex; align-items: center; gap: .85rem; padding: 1.15rem .25rem;
  border-bottom: 1px solid var(--line); color: var(--text);
  font-size: 1.08rem; font-weight: 600; transition: color .25s var(--ease), padding-inline-start .3s var(--ease); }
.area:hover { color: #fff; padding-inline-start: .75rem; }
.area .ic { transition: transform .3s var(--ease); }
.area:hover .ic { transform: scale(1.15); }

/* ─────────────── CLIENT LOGO GRID ─────────────── */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; list-style: none; }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.client-tile { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line);
  border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
/* Absolute + object-fit reliably caps BOTH axes (percentage max-height did not). */
.client-tile img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14%;
  object-fit: contain; box-sizing: border-box;
  filter: grayscale(1); opacity: .85; transition: filter .35s var(--ease), opacity .35s var(--ease); }
.client-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -26px rgba(0, 0, 0, 1); }
.client-tile:hover img { filter: none; opacity: 1; }

/* ─────────────── CALCULATOR ─────────────── */
.label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.calc-input, .field { width: 100%; border-radius: .7rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035);
  padding: .85rem 1rem; font-size: 1rem; color: #fff; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.calc-input option, .field option { color: #111; }
.calc-input:focus, .field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 87, 31, .22); }
.calc-range { width: 100%; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .12); outline: none; -webkit-appearance: none; appearance: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 9999px;
  background: var(--accent); cursor: pointer; border: 3px solid var(--ink-1); box-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.calc-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 9999px; background: var(--accent); cursor: pointer; border: 3px solid var(--ink-1); }
/* Merged calculator: ONE frame, two halves split by a hairline.
   Inputs first in the DOM -> right column in RTL; result -> left. */
.calc-shell { display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); }
.calc-side { padding: 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 640px) { .calc-side { padding: 2.25rem; } }

/* MOBILE: the answer sits FIRST so it stays in view while the controls
   underneath are adjusted. Divider is a plain neutral hairline, never
   risk-coloured; risk reads from the badge and the meter instead. */
.calc-side--result { order: -1; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.calc-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .calc-foot { padding: 1.5rem 2.25rem 2.25rem; } }

/* Phones: compact the frame so the answer and the controls are on screen
   together and you can watch the result change as you drag. */
@media (max-width: 859px) {
  .calc-side { padding: 1.15rem 1.25rem; }
  .calc-foot { padding: .9rem 1.25rem 1.15rem; }
  .calc-hours-row { margin-top: 1.15rem; }
  .calc-meter    { margin-top: 1.15rem; }
  .calc-fine     { margin-top: 1.15rem; padding-top: .9rem; font-size: .8rem; }
  .calc-side--result #calc-note { margin-top: .5rem; }
  .calc-range { margin-top: .75rem; }
}

@media (min-width: 860px) {
  .calc-shell { grid-template-columns: 1fr 1fr; }
  /* DESKTOP: side by side. Inputs right, result left (RTL), CTA spans both. */
  .calc-side--result { order: 0; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .calc-foot { grid-column: 1 / -1; }
}
.risk-badge { border-radius: 9999px; padding: .3rem .8rem; font-size: .72rem; font-weight: 700; background: var(--clean); color: #fff; }
.risk-track { height: 8px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.risk-bar { height: 100%; width: 0; border-radius: 9999px; background: var(--clean); transition: width .5s var(--ease), background .5s; }

/* ─────────────── PROCESS: pinned scene ─────────────── */
.proc { position: relative; padding-block: clamp(6.5rem, 11vw, 10rem) clamp(5rem, 9vw, 8rem); }
/* NB: transform is owned by the seam-draw rule near the top of this file.
   Do not re-declare it here or the draw animation is cancelled. */
.proc::before { content: ""; position: absolute; top: 0; left: 50%;
  width: min(1180px, 92vw); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.proc-inner { position: relative; }
.proc-stage { display: none; }
.proc-step__content { background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; box-shadow: var(--shadow-sm); }
.proc-step__num { font-size: 1.6rem; color: var(--accent); font-weight: 800; }
.proc-step__content h3 { font-size: 1.15rem; color: #fff; margin: .6rem 0 .4rem; font-weight: 700; }
.proc-step__content p { font-size: .92rem; color: var(--dim); line-height: 1.6; }
.proc-track { display: flex; flex-direction: column; gap: 1rem; }

@media (min-width: 1024px) {
  .proc-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
  .proc-stage { display: flex; flex-direction: column; justify-content: center; gap: 1.75rem;
    position: sticky; top: 0; height: 100vh; }
  .proc-stage-num { font-size: clamp(9rem, 17vw, 16rem); font-weight: 800; line-height: .8; color: transparent;
    -webkit-text-stroke: 1.5px var(--accent); }
  .proc-stage-title { font-size: 1.9rem; font-weight: 700; color: #fff; }
  .proc-stage-desc { display: none; }
  .proc-progress { display: flex; gap: .5rem; }
  .proc-progress i { width: 3rem; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
  .proc-progress i.on { background: var(--accent); }
  .proc-track { gap: 0; }
  .proc-step { min-height: 50vh; display: flex; align-items: center; }
  .proc-step__content { display: block; width: 100%; padding: 2.4rem; }
  .proc-step__content .proc-step__num { font-size: 2rem; }
  .proc-step__content h3 { font-size: 1.6rem; }
  .proc-step__content p { font-size: 1.05rem; }
}

/* ─────────────── FORM ─────────────── */
.form-h { font-family: "Assistant", sans-serif; font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: 1rem; }
.form-step { display: none; } .form-step.is-active { display: block; animation: fade .4s var(--ease); }
.form-dot { flex: 1; height: 3px; border-radius: 9999px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.form-dot.is-active { background: var(--accent); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 2.2rem; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--accent); background: rgba(194, 87, 31, .05); }
.dz-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; color: var(--accent); background: rgba(194, 87, 31, .12); }
.success-ring { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 9999px; margin-inline: auto;
  background: rgba(122, 154, 101, .14); border: 1px solid rgba(122, 154, 101, .42); }
.success-ring .ic { width: 2rem; height: 2rem; }

/* ─────────────── MOBILE BAR ─────────────── */
.mobile-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 50; display: flex; gap: 1px;
  background: var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); }
.mobile-bar-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem;
  font-weight: 700; color: #fff; background: var(--ink-1); }
.mobile-bar-btn.is-wa { background: var(--wa); }
.mobile-bar-btn:not(.is-wa) { color: var(--accent); }
/* styles.css נטען אחרי tailwind-static.css, ולכן .mobile-bar{display:flex}
   היה גובר על md:hidden. ההסתרה בדסקטופ מוגדרת כאן במפורש. */
@media (min-width: 768px) { .mobile-bar { display: none; } }
.footer-h { font-weight: 700; color: #fff; font-size: .95rem; letter-spacing: .01em; }

/* ─────────────── MOTION ─────────────── */
/* Reveals only hide themselves when JS is present to bring them back. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .reveal.section-title, .reveal.sub-title {
    -webkit-mask-image: none !important; mask-image: none !important; }
  .section::before, .proc::before { transform: translateX(-50%) scaleX(1) !important; transition: none; }
  .hero-photo, .marquee-track, .scroll-cue span, .preloader-mark path, .preloader-word { animation: none; }
  .preloader-word { opacity: 1; }
  .risk-bar { transition: none; }
}
