/* ==========================================================================
   אורכל אלומיניום · כיוון 4 "פרופיל דמוי עץ" (נבנה מהתבנית v5 של המייסד)
   Design tokens: copy unchanged into the app
   ========================================================================== */
:root {
  /* colour roles */
  --c-canvas: #F4F5F6;         /* aluminium white, page ground */
  --c-alu: #E5E8EB;            /* brushed aluminium, quiet bands */
  --c-ink: #0C1B2D;            /* navy ink from the brand's #001C38: plate, bands, footer */
  --c-ink-2: #22344C;          /* rules on ink */
  --c-red: #C9101A;            /* the logo's red: the action, everywhere */
  --c-red-hover: #A50D16;
  --c-red-press: #860A11;
  --c-on-red: #FCFCFD;         /* 5.8:1 on red */
  --c-red-text: #B00E17;       /* red as text/icon on light: 6.6:1 canvas, 5.8:1 alu */
  --c-wood: #D9A46A;           /* wood-look profile, on ink only: 7.7:1 */
  --c-wood-2: #8A5A33;         /* profile shade (decorative) */
  --c-wood-3: #5E3A20;         /* profile groove (decorative) */
  --c-text: #121C28;           /* 16:1 on canvas */
  --c-text-muted: #4A5664;     /* 7:1 canvas · 6.2:1 alu */
  --c-text-inv: #F1F3F5;       /* 16:1 on ink */
  --c-text-inv-muted: #AEB9C6; /* 8.7:1 on ink */
  --c-line: #CDD3D9;
  --c-line-strong: #77828E;    /* field borders, 3.8:1 */
  --c-error: #A1080D;
  --c-success: #1E6B3A;

  /* type */
  --f-display: "Assistant", "Open Sans", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-display: clamp(3.5rem, 2rem + 6vw, 7rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  --fs-word: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-label: .9375rem;
  --fs-small: .875rem;

  /* spacing (4-base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: 72px;
  --gutter: 20px;
  --container: 1280px;
  --header-h: 72px;
  --bar-h: 64px;

  /* radius · shadow (one system: 4px, images square) */
  --r-1: 4px;
  --shadow-plate: 0 24px 48px -24px rgb(12 27 45 / .45);
  --shadow-float: 0 12px 32px -8px rgb(12 27 45 / .35);

  /* the profile motif: 10px profile, 6px gap */
  --lam-w: 10px;
  --lam-gap: 6px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-gate: cubic-bezier(.65, 0, .15, 1);
  --t-press: 120ms;
  --t-ui: 220ms;
  --t-reveal: 700ms;
  --t-gate: 1100ms;
  --dir: -1;
}
@media (min-width: 1024px) { :root { --section: 112px; --gutter: 40px; } }

@property --m { syntax: "<length>"; inherits: false; initial-value: 16.5px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--c-canvas); color: var(--c-text);
  font: 400 var(--fs-body)/1.7 var(--f-body);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
p { max-width: 62ch; text-wrap: pretty; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--c-text-muted); }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alu { background: var(--c-alu); }
.dark { background: var(--c-ink); color: var(--c-text-inv); }
.dark p { color: var(--c-text-inv-muted); }

:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.dark :focus-visible, .plate :focus-visible, .footer :focus-visible, .menu :focus-visible, .header.is-over :focus-visible, .actionbar :focus-visible { outline-color: var(--c-wood); }

.skip {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-ink); color: var(--c-text-inv); padding: var(--s-3) var(--s-4); border-radius: var(--r-1);
}
.skip:focus { top: var(--s-3); }


/* the profile strip: wood-look profiles on the edge of every dark band */
.lam-edge { height: 12px; background: repeating-linear-gradient(90deg, var(--c-wood-2) 0 var(--lam-w), transparent var(--lam-w) calc(var(--lam-w) + var(--lam-gap))); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-1); border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) var(--ease-out), color var(--t-ui);
}
.btn:active { transform: scale(.97); }
.btn .ic { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .btn:hover .ic.fwd { transform: translateX(calc(var(--dir) * 4px)); } }
.btn--primary { background: var(--c-red); color: var(--c-on-red); }
@media (hover: hover) { .btn--primary:hover { background: var(--c-red-hover); } }
.btn--primary:active { background: var(--c-red-press); }
.btn--line { border-color: var(--c-line-strong); color: var(--c-text); background: transparent; }
.dark .btn--line, .plate .btn--line { border-color: var(--c-text-inv-muted); color: var(--c-text-inv); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-label); }
.link { color: var(--c-red-text); font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.dark .link, .plate .link { color: var(--c-wood); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--c-canvas); border-bottom: 1px solid var(--c-line);
  transition: background-color var(--t-ui), color var(--t-ui), border-color var(--t-ui);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.has-hero .header { margin-bottom: calc(var(--header-h) * -1); }
.header.is-over { background: linear-gradient(rgb(12 27 45 / .85), rgb(12 27 45 / 0)); border-color: transparent; color: var(--c-text-inv); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font: 800 1.25rem/1 var(--f-display); margin-inline-end: auto; min-height: 44px; white-space: nowrap; }
.logo-chip { display: inline-grid; place-items: center; background: var(--c-canvas); padding: 4px 8px; border-radius: var(--r-1); box-shadow: 0 0 0 1px var(--c-line); }
.logo-chip img { height: 36px; width: auto; }
/* R-5: the header logo stands on its own, no chip behind it */
.header .logo-chip { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.header .logo-chip img { height: 48px; }
@media (min-width: 1024px) { .header .logo-chip img { height: 54px; } }
.header.is-over .logo-chip img { filter: drop-shadow(0 0 1px rgb(241 243 245 / .8)) drop-shadow(0 0 1px rgb(241 243 245 / .5)); }
.logo-name { display: none; }
@media (min-width: 480px) { .logo-name { display: inline; } }
.nav { display: none; }
.nav > ul { display: flex; align-items: center; gap: var(--s-1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-3); text-decoration: none; font-weight: 600; font-size: var(--fs-label); background: linear-gradient(currentColor, currentColor) no-repeat 50% 85% / 0 2px; transition: background-size var(--t-ui) var(--ease-out); }
.nav > ul > li > a[aria-current="page"], .nav > ul > li > a:hover, .has-sub > a:hover { background-size: calc(100% - 24px) 2px; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: grid; place-items: center; width: 32px; height: 44px; margin-inline-start: -10px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--r-1); }
.sub-toggle .ic { width: 16px; height: 16px; transition: transform var(--t-ui) var(--ease-out); }
.has-sub.open .sub-toggle .ic { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; inset-inline-start: 0; width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--s-2);
  padding: var(--s-3); background: var(--c-canvas); color: var(--c-text); border-radius: 0 0 var(--r-1) var(--r-1); box-shadow: var(--shadow-float);
  border-top: 4px solid var(--c-wood-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: top;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s var(--t-ui);
}
.has-sub:hover .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.submenu a { display: flex; width: 100%; padding-inline: var(--s-3); background: none; border-radius: var(--r-1); transition: background-color var(--t-ui); }
@media (hover: hover) { .submenu a:hover { background: var(--c-alu); } }
.submenu .all { grid-column: 1 / -1; border-top: 1px solid var(--c-line); margin-top: var(--s-1); }
.submenu .all a { color: var(--c-red-text); }
.header-tel { display: none; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; text-decoration: none; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--r-1); }
.menu-btn .ic { width: 28px; height: 28px; }
@media (min-width: 1024px) { .nav { display: block; } .menu-btn { display: none; } }
@media (min-width: 1280px) { .header-tel { display: inline-flex; } }
/* R-6: the menu sits in the true centre of the header (logo | nav | actions, equal side columns) */
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
@media (min-width: 1024px) {
  .header .wrap { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: var(--s-4); }
  .header .logo { margin-inline-end: 0; justify-self: start; }
  .header .nav { justify-self: center; }
  .header-actions { justify-self: end; }
}

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--c-ink); color: var(--c-text-inv);
  padding: var(--s-3) var(--gutter) var(--s-6); display: flex; flex-direction: column; gap: var(--s-5); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s var(--t-ui);
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.menu-list > li > a { display: block; font: 800 2.5rem/1.2 var(--f-display); text-decoration: none; }
.menu-list a[aria-current="page"] { color: var(--c-wood); }
.menu-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); margin-block: var(--s-1) var(--s-3); padding-inline-start: var(--s-3); border-inline-start: 1px solid var(--c-ink-2); }
.menu-subs a { display: flex; align-items: center; min-height: 44px; color: var(--c-text-inv-muted); text-decoration: none; font-size: var(--fs-label); }
.menu .btn { align-self: flex-start; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--c-text-inv-muted); border-radius: var(--r-1); background: transparent; color: var(--c-text-inv); cursor: pointer; }

/* ---------- hero: the wood-look profiles slide aside ---------- */
.hero { position: relative; background: var(--c-ink); }
.hero-media { position: relative; height: 54svh; min-height: 340px; overflow: clip; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.gate { display: none; }
.js .gate { position: absolute; inset: 0; display: flex; pointer-events: none; overflow: clip; }
.gate span {
  flex: 1; --slat: #94603A; transform-origin: left center;
  background: linear-gradient(90deg, var(--slat) 0 calc(100% - 3px), var(--c-wood-3) 0);
  animation: gate-open var(--t-gate) var(--ease-gate) calc(150ms + var(--i) * 30ms) both;
}
.gate span:nth-child(3n+1) { --slat: #A06A40; }
.gate span:nth-child(3n+2) { --slat: #87562F; }
/* every slat slides to the gate's pocket at the left edge, then the stack folds away: nothing leaves the photo */
@keyframes gate-open { 72% { transform: translateX(calc(var(--i) * -100%)); } to { transform: translateX(calc(var(--i) * -100%)) scaleX(0); } }

.plate {
  position: relative; z-index: 2; margin-top: -48px; margin-inline: 12px;
  background: var(--c-ink); color: var(--c-text-inv); padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-plate);
}
.plate::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: repeating-linear-gradient(90deg, var(--c-wood) 0 var(--lam-w), transparent var(--lam-w) calc(var(--lam-w) + var(--lam-gap))); }
.plate h1 { font-size: var(--fs-display); line-height: .95; }
.plate h1 .sub { font-size: .46em; line-height: 1.15; color: var(--c-wood); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.js .line > span { animation: rise var(--t-reveal) var(--ease-out) 650ms both; }
.js .line + .line > span { animation-delay: 740ms; }
@keyframes rise { from { transform: translateY(105%); } }
.plate p { margin-block: var(--s-4) var(--s-5); color: var(--c-text-inv-muted); font-size: var(--fs-lead); line-height: 1.55; }
.plate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.js .hero .plate > :not(h1) { animation: lift var(--t-reveal) var(--ease-out) 950ms both; }
/* transform only: fading the plate's text would drop its contrast below AA while it plays (BUG-003) */
@keyframes lift { from { transform: translateY(12px); } }

@media (min-width: 768px) {
  .hero-media { height: min(92svh, 860px); }
  .plate { position: absolute; margin: 0; inset-inline-start: var(--gutter); bottom: -64px; width: min(660px, 62%); padding: var(--s-7); }
  .hero { margin-bottom: 64px; }
}
@media (min-width: 1024px) {
  .plate { width: min(740px, 60%); }
  .plate h1 { font-size: clamp(4rem, 2rem + 5vw, 6.5rem); }
  .plate .line { white-space: nowrap; }
}
@media (min-width: 1360px) { .plate { inset-inline-start: calc((100vw - var(--container)) / 2 + var(--gutter)); } }

/* short gate on inner pages */
.hero--short .hero-media { height: 40svh; min-height: 260px; }
.hero--short .gate span { animation-duration: var(--t-reveal); animation-delay: calc(var(--i) * 12ms); }
.js .hero--short .line > span, .js .hero--short .line + .line > span { animation-delay: 300ms; }
.js .hero--short .plate > :not(h1) { animation-delay: 450ms; }
.hero--short .plate h1 { font-size: clamp(2.75rem, 1.8rem + 3vw, 4.5rem); line-height: 1; }
@media (min-width: 768px) { .hero--short .hero-media { height: min(60svh, 560px); } }
.crumbs { font-size: var(--fs-small); color: var(--c-text-inv-muted); margin-block: -12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); }
.crumbs a { color: var(--c-text-inv); display: inline-flex; align-items: center; min-height: 44px; }

/* plain page head (gallery) */
.page-head { padding-block: var(--s-8) var(--s-6); }
.page-head h1 { font-size: var(--fs-display); line-height: .95; margin-bottom: var(--s-4); }
.page-head p { color: var(--c-text-muted); font-size: var(--fs-lead); }
.page-head .crumbs { color: var(--c-text-muted); }
.page-head .crumbs a { color: var(--c-red-text); }

/* ---------- section heads ---------- */
.head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.head p { color: var(--c-text-muted); font-size: var(--fs-lead); }
.dark .head p { color: var(--c-text-inv-muted); }
@media (min-width: 768px) {
  .head--split { grid-template-columns: 1fr auto; align-items: end; }
  .head--split p, .head--split .link { max-width: 36ch; }
}

/* ---------- profile reveal for images (the slats open) ---------- */
.lam { display: block; overflow: hidden; background: var(--c-alu); }
.lam img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform var(--t-ui) var(--ease-out); }
.io .lam img {
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 var(--m), transparent var(--m) 16px);
          mask-image: repeating-linear-gradient(90deg, #000 0 var(--m), transparent var(--m) 16px);
  --m: 0px; transition: --m var(--t-reveal) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.io .lam.in img { --m: 16.5px; }

/* ---------- products: unequal tiles (8) ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.svc-tile { display: flex; flex-direction: column; text-decoration: none; position: relative; }
.svc-tile .lam { aspect-ratio: 1; }
.svc-tile:first-child, .svc-tile:last-child { grid-column: 1 / -1; }
.svc-tile:first-child .lam { aspect-ratio: 4 / 3; }
.svc-tile:last-child .lam { aspect-ratio: 16 / 9; }
.svc-cap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); position: relative; flex: 1; }
.svc-cap::after, .tile-cap::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--c-red); transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out); }
.svc-cap h3 { font-size: 1.0625rem; line-height: 1.25; }
.svc-cap p { font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.45; margin-top: 2px; }
.svc-cap .ic { color: var(--c-red-text); }
@media (hover: hover) {
  .svc-tile:hover .svc-cap::after, .tile :is(a, button):hover .tile-cap::after { transform: scaleX(1); }
  .svc-tile:hover img, .tile :is(a, button):hover img { transform: scale(1.02); }
}
.svc-more { margin-top: var(--s-5); }
@media (min-width: 768px) {
  .svc { grid-template-columns: repeat(4, 1fr); gap: var(--s-6) var(--s-5); }
  .svc-tile:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .svc-tile:last-child { grid-column: span 2; }
  .svc-tile:first-child .lam { aspect-ratio: auto; flex: 1; min-height: 420px; position: relative; }
  .svc-tile:first-child .lam img { position: absolute; inset: 0; }
  .svc-tile:first-child .svc-cap { flex: none; }
  .svc-tile:first-child h3 { font-size: 1.5rem; }
  .svc-tile .lam, .svc-tile:last-child .lam { aspect-ratio: 4 / 3; }
  .svc-tile:last-child .lam { aspect-ratio: 2.1 / 1; }
  .svc-cap h3 { font-size: var(--fs-h3); }
}

/* ---------- about: statement + text, then a wide photo ---------- */
.intro { display: grid; gap: var(--s-5); }
.intro .statement { font-size: var(--fs-h2); line-height: 1; max-width: 16ch; }
.intro-copy { display: grid; gap: var(--s-4); }
.intro-copy p:first-child { font-size: var(--fs-lead); color: var(--c-text); font-weight: 600; }
.intro-copy p { color: var(--c-text-muted); }
@media (min-width: 900px) { .intro { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--s-9); } }
.wide-photo { margin-top: var(--s-7); }
.wide-photo .lam { aspect-ratio: 4 / 3; }
.wide-photo figcaption { padding-top: var(--s-3); font-size: var(--fs-small); color: var(--c-text-muted); }
@media (min-width: 768px) { .wide-photo .lam { aspect-ratio: 21 / 9; } }

/* ---------- plaque: the facts, engraved on ink ---------- */
.plaque { padding-block: 0 var(--section); }
.plaque .lam-edge { margin-bottom: var(--section); }
.plaque-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
.fact { display: grid; gap: var(--s-2); align-content: start; }
.fact strong { font: 800 var(--fs-word)/1 var(--f-display); color: var(--c-wood); }
.fact > span { font-size: var(--fs-label); color: var(--c-text-inv); line-height: 1.5; max-width: 24ch; }
@media (min-width: 900px) {
  .plaque-row { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .fact + .fact { padding-inline-start: var(--s-6); position: relative; }
  .fact + .fact::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -16px; width: 22px; background: repeating-linear-gradient(90deg, var(--c-ink-2) 0 4px, transparent 4px 9px); }
}

/* ---------- rail: the process ---------- */
.rail-box { position: relative; padding-inline-start: 44px; }
.rail-track, .rail-fill { position: absolute; inset-inline-start: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--c-line-strong); }
.rail-fill { background: var(--c-red); transform-origin: top; transform: scaleY(0); }
.rail { display: grid; gap: var(--s-7); }
.rail li { position: relative; }
.rail li::before { content: ""; position: absolute; inset-inline-start: -40px; top: 12px; width: 16px; height: 16px; background: var(--c-alu); border: 2px solid var(--c-line-strong); transition: background-color var(--t-ui), border-color var(--t-ui); }
.rail-n { font: 800 3.5rem/.9 var(--f-display); color: var(--c-text-muted); display: block; margin-bottom: var(--s-2); transition: color var(--t-ui); }
.rail h3 { font: 800 1.75rem/1.1 var(--f-display); margin-bottom: var(--s-2); }
.rail p { font-size: var(--fs-label); color: var(--c-text-muted); }
.in .rail li::before { background: var(--c-red); border-color: var(--c-red); }
.in .rail .rail-n { color: var(--c-red-text); }
.in .rail li:nth-child(2)::before, .in .rail li:nth-child(2) .rail-n { transition-delay: 300ms; }
.in .rail li:nth-child(3)::before, .in .rail li:nth-child(3) .rail-n { transition-delay: 600ms; }
.in .rail-fill { transform: none; transition: transform 1000ms var(--ease-gate); }
@media (min-width: 900px) {
  .rail-box { padding: 48px 0 0; }
  .rail { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
  .rail-track, .rail-fill { inset-inline: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .rail-fill { transform-origin: right; transform: scaleX(0); }
  .rail li::before { inset-inline-start: 0; top: -48px; }
}

/* ---------- mosaic / tiles ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.tile :is(a, button) { display: block; text-decoration: none; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.tile .lam { aspect-ratio: 4 / 3; }
.mosaic .tile:first-child, .mosaic .tile:last-child { grid-column: 1 / -1; }
@media (max-width: 767px) { .mosaic--3 .tile { grid-column: 1 / -1; } }
.tile-cap { display: block; position: relative; padding-block: var(--s-3); font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.4; }
.tile-cap b { display: block; color: var(--c-text); font-weight: 600; font-size: var(--fs-label); }
@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); gap: var(--s-6) var(--s-5); }
  .mosaic .tile, .mosaic .tile:last-child { grid-column: span 4; }
  .mosaic .tile:nth-child(1) { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
  .mosaic .tile:nth-child(1) :is(a, button) { flex: 1; display: flex; flex-direction: column; }
  .mosaic .tile:nth-child(1) .lam { aspect-ratio: auto; flex: 1; position: relative; min-height: 360px; }
  .mosaic .tile:nth-child(1) .lam img { position: absolute; inset: 0; }
  .mosaic .tile:nth-child(2), .mosaic .tile:nth-child(3) { grid-column: span 5; }
  .mosaic .tile:nth-child(2) .lam, .mosaic .tile:nth-child(3) .lam { aspect-ratio: 16 / 9; }
}

/* ---------- form (F3) ---------- */
.form-layout { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .form-layout { grid-template-columns: 7fr 5fr; gap: var(--s-9); } }
.form-layout h2 + p { margin-block: var(--s-4) var(--s-6); color: var(--c-text-muted); font-size: var(--fs-lead); }
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); border: 0; padding: 0; margin: 0; min-width: 0; align-content: start; }
.field label { font-size: var(--fs-label); font-weight: 600; }
.opt, .hint { color: var(--c-text-muted); font-weight: 400; font-size: var(--fs-small); }
.input {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line-strong); border-radius: var(--r-1);
  background: var(--c-canvas); color: var(--c-text); font: inherit; font-size: 1rem;
}
.input[dir="ltr"] { text-align: end; }
.input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 1px; border-color: var(--c-ink); }
.err { display: none; align-items: center; gap: var(--s-2); color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.field.invalid .err { display: flex; }
.field.invalid .input { border: 2px solid var(--c-error); }
.hp { display: none; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.form .btn[type="submit"] { min-width: 200px; }
.btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
.form-alt { font-size: var(--fs-small); color: var(--c-text-muted); }
.form-alt a { color: var(--c-red-text); font-weight: 600; }
.success { display: none; padding: var(--s-6); background: var(--c-canvas); border-top: 4px solid var(--c-success); }
.success .ic { width: 40px; height: 40px; color: var(--c-success); }
.success h3 { font: 800 2.25rem/1 var(--f-display); margin-block: var(--s-3); }
.success a { color: var(--c-red-text); font-weight: 600; }
.form-box.is-sent .form { display: none; }
.form-box.is-sent .success { display: block; }

.aside { display: grid; gap: var(--s-5); align-content: start; }
.aside .lam { aspect-ratio: 4 / 3; }
.aside-h { font: 600 var(--fs-h3)/1.3 var(--f-body); }
.contact-list { display: grid; gap: var(--s-2); }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-4); background: var(--c-canvas); text-decoration: none; border-radius: var(--r-1); font-weight: 600; }
.contact-list small { display: block; font-weight: 400; color: var(--c-text-muted); font-size: var(--fs-small); }
.contact-list .ic { width: 28px; height: 28px; color: var(--c-red-text); }
.contact-list .big { font: 800 1.75rem/1.1 var(--f-display); }

/* ---------- service page: nav chips, types, gallery ---------- */
.svc-nav { margin-bottom: var(--s-8); }
.svc-nav h2 { font: 600 var(--fs-label)/1.4 var(--f-body); color: var(--c-text-muted); margin-bottom: var(--s-3); }
.svc-nav ul { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
@media (min-width: 900px) { .svc-nav ul { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5); border: 1px solid var(--c-line-strong); border-radius: var(--r-1); background: transparent; color: var(--c-text); font: 600 var(--fs-label) var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t-ui), color var(--t-ui), transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(.97); }
@media (hover: hover) { .chip:hover { background: var(--c-alu); } }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--c-ink); color: var(--c-text-inv); border-color: var(--c-ink); }
.types { display: grid; gap: var(--s-7); }
.type .lam { aspect-ratio: 3 / 4; margin-bottom: var(--s-4); }
.type h3 { font: 800 1.75rem/1.1 var(--f-display); margin-bottom: var(--s-2); }
.type p { color: var(--c-text-muted); font-size: var(--fs-label); }
@media (min-width: 768px) {
  .types { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .type:nth-child(2) { margin-top: var(--s-9); }
}
.gal-3 { display: grid; gap: var(--s-5) var(--s-4); }
@media (min-width: 768px) { .gal-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA strip ---------- */
.cta { padding-block: 0 var(--section); }
.cta .lam-edge { margin-bottom: var(--section); }
.cta-in { display: grid; gap: var(--s-5); align-items: end; }
.cta p { margin-top: var(--s-3); font-size: var(--fs-lead); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; } }

/* ---------- gallery: filter, grid, empty ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.count { font-size: var(--fs-small); color: var(--c-text-muted); margin-bottom: var(--s-6); }
.grid-p { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); transition: opacity 150ms; }
.grid-p.is-swapping { opacity: 0; }
.grid-p .tile.tall { grid-row: span 2; }
.grid-p .tile.tall .lam { aspect-ratio: 3 / 5; }
.grid-p .tile[hidden] { display: none; }
@media (min-width: 900px) { .grid-p { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: var(--s-6) var(--s-5); } }
@media (min-width: 1440px) { .grid-p { grid-template-columns: repeat(4, 1fr); } }
.empty { padding: var(--s-8) var(--s-5); background: var(--c-alu); text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.empty[hidden] { display: none; }
.empty h3 { font: 800 1.75rem/1.1 var(--f-display); }
.empty p { font-size: var(--fs-lead); color: var(--c-text-muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(12 27 45 / .96); color: var(--c-text-inv); display: none; grid-template-rows: auto 1fr auto; padding: var(--s-3); gap: var(--s-3); }
.lightbox.is-open { display: grid; animation: fade var(--t-ui) var(--ease-out); }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-cap { flex: 1; text-align: center; color: var(--c-text-inv); max-width: none; }
.lightbox :focus-visible { outline-color: var(--c-wood); }
@keyframes fade { from { opacity: 0; } }

/* ---------- map ---------- */
.map-grid { display: grid; gap: var(--s-4); }
.map-grid .lam { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 5fr 7fr; } .map-grid .lam, .map-grid .map { aspect-ratio: auto; min-height: 380px; } }
.map { position: relative; min-height: 280px; background: var(--c-alu); display: grid; place-items: center; overflow: hidden; padding: var(--s-5); }
.map::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(12 27 45 / .05) 0 var(--lam-w), transparent var(--lam-w) calc(var(--lam-w) + var(--lam-gap))); }
.map-pin { position: relative; display: grid; justify-items: center; gap: var(--s-2); text-align: center; color: var(--c-text); }
.map-pin .ic { width: 44px; height: 44px; color: var(--c-red-text); }
.map-pin strong { font: 800 2rem/1 var(--f-display); }
.map-pin p { color: var(--c-text-muted); }

/* ---------- footer ---------- */
.footer { background: var(--c-ink); color: var(--c-text-inv); padding-bottom: var(--s-6); }
.footer .lam-edge { margin-bottom: var(--s-8); }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1.1fr; } }
.footer h2 { font: 600 var(--fs-label)/1.4 var(--f-body); color: var(--c-text-inv-muted); margin-bottom: var(--s-3); }
.footer p { color: var(--c-text-inv-muted); }
.footer ul a { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; text-decoration: none; }
@media (hover: hover) { .footer ul a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.footer-svc ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-4); }
.footer-brand { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); text-decoration: none; }
.footer-brand b { font: 800 clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem)/.95 var(--f-display); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--c-ink-2); font-size: var(--fs-small); color: var(--c-text-inv-muted); }
.footer-bottom a { color: var(--c-text-inv); display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom nav { display: flex; gap: var(--s-5); }

/* ---------- action bar (phone): never animates ---------- */
.actionbar {
  position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.3fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-ink); border-top: 4px solid var(--c-wood-2);
}
.actionbar a { display: flex; align-items: center; justify-content: center; gap: var(--s-2); color: var(--c-text-inv); text-decoration: none; font-weight: 600; font-size: var(--fs-label); }
.actionbar .ab-quote { background: var(--c-red); color: var(--c-on-red); }
.actionbar :focus-visible { outline-offset: -4px; }
@media (min-width: 1024px) { .actionbar { display: none; } }
.menu-open .actionbar, .lb-open .actionbar { display: none; }

/* ---------- reduced motion: content at rest, 150ms fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 150ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .gate { display: none; }
  .js .line > span, .js .hero .plate > :not(h1) { animation: none; }
  .io .lam img { -webkit-mask-image: none; mask-image: none; }
  .rail-fill { transform: none !important; }
  .btn:active, .chip:active { transform: none; }
}

/* ==========================================================================
   App additions: states and pages the prototype did not show (DESIGN.md, "what the prototype did not show")
   ========================================================================== */
.nav > ul > li > a[aria-current="true"] { background-size: calc(100% - 24px) 2px; }
.submenu a[aria-current="page"] { color: var(--c-red-text); }
.menu-subs a[aria-current="page"] { color: var(--c-wood); }
.menu { overscroll-behavior: contain; }
.menu .link { color: var(--c-wood); }
body.menu-open, body.lb-open { overflow: hidden; }

/* form: error summary above, send failure above the button */
.form-alert { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--c-canvas); border-inline-start: 4px solid var(--c-error); color: var(--c-error); font-weight: 600; }
.form-alert[hidden], .form-fail[hidden] { display: none; }
.form-alert ul { list-style: disc; padding-inline-start: 1.25em; }
.form-alert a { color: var(--c-error); text-underline-offset: 3px; }
.form-alert .ic { width: 24px; height: 24px; }
.form-fail { color: var(--c-error); font-weight: 600; }
.input[readonly] { background: var(--c-alu); }

/* services list (/page-3): the visible "לפרטים נוספים" */
.svc-go { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-red-text); font-weight: 600; font-size: var(--fs-small); white-space: nowrap; }

/* a service with one picture: one tile, never an empty cell (F4) */
.gal-3.gal-single { grid-template-columns: 1fr; max-width: 560px; }
.gal-single .tile .lam { aspect-ratio: 3 / 4; }

/* lightbox with a single picture */
.lightbox .icon-btn[hidden] { visibility: hidden; }

/* testimonials (#reviews, only when real ones exist) */
.quotes-nav { display: flex; gap: var(--s-2); }
.quotes-nav .icon-btn { border-color: var(--c-line-strong); color: var(--c-text); }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 520px); gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.quote { scroll-snap-align: start; background: var(--c-alu); padding: var(--s-6); border-top: 4px solid var(--c-wood-2); }
.quote blockquote p { font-size: var(--fs-lead); }
.quote-by { margin-top: var(--s-4); color: var(--c-text-muted); font-size: var(--fs-label); }
.quote-by b { color: var(--c-text); }

/* text pages: accessibility statement, 404 */
.doc { display: grid; gap: var(--s-4); padding-bottom: var(--section); max-width: 820px; }
.doc h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin-top: var(--s-5); }
.doc ul { list-style: disc; padding-inline-start: 1.25em; display: grid; gap: var(--s-1); }
.nf-links { display: grid; gap: var(--s-1); margin-top: var(--s-5); padding-bottom: var(--section); }

/* controls on phones */
.btn, .chip, .icon-btn, .menu-btn, .sub-toggle, .lb-trigger { touch-action: manipulation; }
