/* design-v4/desk · base layer (header, form, footer, CTA). The desk system sits on top in desk.css.
   Brand: orange #FF6F00, black #231F20, white. Orange is never text on white.
   Each direction sets --bg, --fg, --mute, --line, --acc and its fonts. */
:root {
  --orange: #FF6F00;
  --black: #231F20;
  --white: #FFFFFF;
  --grey: #5E5859;      /* 6.9:1 on white */
  --grey-d: #B9B3B4;    /* on black */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(18px, 3vw, 44px);
  --f-body: "Heebo", system-ui, sans-serif;
  --f-disp: "Heebo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--f-body); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
sup { line-height: 0; }

.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--black); color: var(--white); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus, var(--orange)); outline-offset: 3px; }
.ph { font-size: .8em; opacity: .7; white-space: nowrap; }
.case[hidden] { display: none !important; }

/* header: same items and order in every direction */
.hd { position: relative; z-index: 20; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 16px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-height: 44px; }
.brand .logo { width: 30px; height: 30px; }
.brand .dot { fill: var(--orange); }
.nav { display: flex; gap: 4px 18px; margin-inline-start: auto; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.lang { display: inline-flex; border: 2px solid currentColor; border-radius: 999px; padding: 2px; }
.lang a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; }
.lang a[aria-current="true"] { background: var(--lang-on-bg, var(--black)); color: var(--lang-on-fg, var(--white)); }
.cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; font-weight: 700; }
@media (max-width: 760px) {
  .hd { gap: 4px 10px; padding-block: 10px 4px; flex-wrap: wrap; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang a { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .hd .cta { min-height: 40px; font-size: 15px; }
  .nav { order: 5; width: 100%; margin: 0; gap: 0 16px; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
  .nav a { flex: none; }
  .lang { margin-inline-start: auto; }
  .nav a { min-height: 40px; }
  .cta { padding: 0 14px; }
}

/* filter */
.filter { display: grid; gap: 8px; }
.f-row { display: flex; flex-wrap: wrap; gap: 6px; }
.f-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
@media (max-width: 760px) {
  .f-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .f-btn { flex: none; }
}

/* contact + form: structure only, each direction colours it */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); padding: clamp(56px, 8vw, 120px) var(--pad); }
.cb { display: grid; gap: 18px; align-content: start; }
.cb-p { max-width: 46ch; }
.cta-inline { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; font-weight: 700; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; align-content: start; }
.f-h, .f-p, .f-foot, .f-below, .f-ok, .fld-wide { grid-column: 1 / -1; }
.f-p { margin-top: -8px; font-size: 15px; }
.fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fld label { font-size: 15px; font-weight: 500; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: inherit; background: transparent; border: 2px solid currentColor; border-radius: 0; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld select { appearance: none; -webkit-appearance: none; }
.f-n { font-size: 13px; opacity: .8; }
.f-err { font-size: 14px; font-weight: 700; }
.fld[data-bad] input { border-width: 3px; }
.f-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-submit { min-height: 54px; padding: 0 28px; font-weight: 700; }
.f-below { font-size: 13px; opacity: .85; }
.form.is-done > :not(.f-ok) { display: none; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* footer */
.ft { padding: clamp(48px, 7vw, 100px) var(--pad) 28px; }
.foot-big { display: inline-block; line-height: .95; }
.ft-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 18px 36px; margin-top: 36px; font-size: 15px; }
.ft-legal { opacity: .8; }
@media (max-width: 860px) { .ft-row { grid-template-columns: 1fr; } }

/* reveal: only with JS, never hides the hero */
.js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* one primary action: orange "בואו נדבר" to WhatsApp. Black text on orange, 5.8:1 */
.cta, .cta-hero, .cta-fixed, .cta-inline { background: var(--orange) !important; color: var(--black) !important; font-weight: 700; }
.cta, .cta-hero, .cta-inline { border: 2px solid var(--black); border-radius: 999px; }
.cta-hero { display: none; }
.cta-fixed { display: none; }
/* the form button is secondary: outlined, never orange */
.f-submit { background: transparent !important; color: inherit !important; border: 2px solid currentColor !important; }
@media (max-width: 760px) {
  .cta-hero { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 18px; justify-self: start; }
  .cta-fixed { display: flex; align-items: center; justify-content: center; position: fixed; z-index: 80; inset: auto 12px 12px 12px; min-height: 54px; border-radius: 999px; font-size: 18px; box-shadow: 0 8px 24px rgba(35,31,32,.35); transition: transform .35s var(--ease), opacity .25s; }
  .js .cta-fixed { transform: translate3d(0, 140%, 0); opacity: 0; }
  .js .cta-fixed.show { transform: none; opacity: 1; }
  .ft { padding-bottom: 96px; }
}
