/* דפוס קשת — דוגמת אתר: זכוכית חול חלבית בחלון של דפוס שכונתי */

:root {
  color-scheme: light;

  --ink: #15171e;
  --ink-2: #41454f;
  --ink-3: #575c67;
  --milk: 247 248 250;
  --paper: #f7f8fa;
  --magenta: #c9106f;
  --magenta-deep: #a10c58;
  --cyan: #1597ab;
  --yellow: #f2b90f;

  --mark: rgba(29, 26, 36, .6);
  --etch: rgba(29, 26, 36, .13);
  --r: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --gap: clamp(14px, 1.6vw, 20px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font-display: "Karantina", "Assistant", system-ui, sans-serif;
  --font-body: "Assistant", system-ui, "Segoe UI", Arial, sans-serif;

  --bd: url("assets/backdrop-wide.webp");

  /* גרגר החול של הזכוכית: נקודות לבנות + צל עדין */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .14 1.4 0 0 0 -.78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");

  --frost-blur: blur(20px) saturate(1.08) brightness(1.05);
  --shadow-pane: 0 1px 0 rgba(255, 255, 255, .55) inset,
                 0 0 0 1px rgba(255, 255, 255, .4) inset,
                 0 22px 48px -24px rgba(29, 26, 36, .5),
                 0 3px 10px -4px rgba(29, 26, 36, .2);
}

@media (max-aspect-ratio: 4/5) {
  :root { --bd: url("assets/backdrop-tall.webp"); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: rgba(29, 26, 36, .35) transparent;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #e4e7ec;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--magenta);
  overflow-x: clip;
}

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

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(29, 26, 36, .32); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }

img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible, textarea:focus-visible { border-radius: 8px; }

.ic {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }

.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;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ---------- מה שמאחורי הזכוכית: הדפוס עצמו ---------- */
.backdrop {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: var(--bd) center / cover no-repeat #cfd4db;
}

/* ---------- זכוכית ---------- */
.glass {
  position: relative;
  border-radius: var(--r);
  background-color: rgb(var(--milk) / .66);
  background-image: var(--grain), var(--grain-dark);
  background-blend-mode: soft-light, normal;
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  box-shadow: var(--shadow-pane);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .frost { background-color: rgb(var(--milk) / .94); }
}


/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 1.0625rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform .16s var(--ease-out), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(29, 26, 36, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  border-color: rgba(29, 26, 36, .18);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--magenta-deep); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .95); border-color: rgba(29, 26, 36, .3); }
}

/* ---------- סרגל עליון ---------- */
.topbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 30;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 8px 12px 8px 10px;
  padding-inline-start: 18px;
  background-color: rgb(var(--milk) / .82);
}
/* בדף הבית הסרגל מוסתר בהתחלה; site.js מציג אותו בגלילה, כשהלוגו "עף" אליו */
.page-home .topbar { opacity: 0; transform: translateY(-14px); }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; } /* assets/logo-a.webp — רקע שקוף (בלי multiply) */
/* עד שהלוגו "נוחת" — הלוגו של הסרגל ריק (אחרת יש שני לוגואים) */
html.has-hero:not(.logo-docked) .brand img { opacity: 0; }

/* הלוגו שעף מהפתיח לסרגל (נוצר ב-site.js) */
.fly-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 35;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
  visibility: hidden;
}
.nav { display: flex; gap: 4px; margin-inline-start: 6px; }
.nav a {
  padding: 8px 12px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .65); }
}
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.tel-link {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; color: var(--ink);
}
/* טלפון ווואטסאפ בסרגל — רק כשהכפתורים של הפתיח ושל "יצירת קשר" לא על המסך (בלי כפילות) */
.topbar .topbar-actions > * {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
html.bar-actions-on .topbar .topbar-actions > * {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
}
html.bar-actions-on .topbar .topbar-actions > :nth-child(1) { transition-delay: .05s; }
html.bar-actions-on .topbar .topbar-actions > :nth-child(2) { transition-delay: .16s; }

/* כפתור הנגישות: עיגול כחול גדול בצד ימין (דוד: "לא נגיש — יותר גדול, יותר בולט, צד ימין").
   הכחול = הצבע המוכר של כפתורי נגישות; לבן עליו 5.3:1 */
.a11y-fab {
  --a11y-blue: #0b5bd3;
  position: fixed;
  z-index: 45;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--a11y-blue);
  color: #fff;
  box-shadow: 0 2px 4px rgba(21, 23, 30, .18), 0 12px 26px -8px rgba(21, 23, 30, .5);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s, transform .16s var(--ease-out);
}
.a11y-fab .ic { width: 38px; height: 38px; stroke-width: 1.7; }
.a11y-fab:active { transform: translateY(-50%) scale(.94); }
.a11y-fab[aria-expanded="true"] { background: #0846a6; }
.a11y-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .a11y-fab:hover { background: #0846a6; }
  .a11y-fab::after {
    content: "נגישות";
    position: absolute;
    right: calc(100% + 10px);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font: 700 .95rem/1 var(--font-body);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(4px);
    pointer-events: none;
    transition: opacity .2s, transform .2s var(--ease-out);
  }
  .a11y-fab:hover::after { opacity: 1; transform: none; }
  .a11y-fab[aria-expanded="true"]::after { display: none; }
}

/* ---------- פתיח ---------- */
.hero { margin-top: 20px; }
html.js-fly .hero-logo img { opacity: 0; }
.hero-pane {
  position: relative;
  padding: clamp(22px, 3.6vw, 52px);
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(18px, 3vw, 36px);
  border-radius: var(--r);
  box-shadow: var(--shadow-pane);
}
/* שכבת החול. החור שלה ("הניגוב") נע עם העכבר דרך --lx/--ly/--lr */
.frost {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgb(var(--milk) / .62);
  background-image: var(--grain), var(--grain-dark);
  background-blend-mode: soft-light, normal;
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  --hole: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), transparent calc(var(--lr, 0px) * .5), #000 var(--lr, 0px));
  -webkit-mask-image: var(--hole);
  mask-image: var(--hole);
}
.hero-pane > :not(.frost) { position: relative; }

/* הלוגו בגודל בינוני במרכז, עם מעט אוויר סביבו (בקשת דוד: "לא צריך כל כך הרבה שטח ריק").
   הטקסט והטופס מתחילים מיד מתחתיו. הרקע הלבן של קובץ הלוגו "נעלם" בזכוכית בזכות multiply */
.hero-top {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px) 0 64px;
}
.hero-logo {
  justify-self: stretch;
  width: 100%;
  margin: 0;
  line-height: 0;
}
.hero-logo img { margin-inline: auto; }
.hero-logo img {
  /* כמה שיותר רחב, אבל שלא יעבור את גובה המסך (יחס הלוגו 1316:672) */
  width: min(100%, clamp(300px, 40vw, 600px), calc((100svh - 420px) * 1.958));
  height: auto;
}

/* ---------- הפתיח (intro.js) ----------
   intro-cover: a11y-boot.js החליט להריץ פתיח — מסך בהיר מכסה הכל עד שהפתיח עולה.
   מפסק ביטחון: אם intro.js לא נטען, הכיסוי נעלם לבד אחרי 2.5 ש׳.
   intro-on: הפתיח רץ — הלוגו של האתר מוסתר (הלוגו של הפתיח "נוחת" במקומו), בלי גלילה. */
html.intro-cover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: radial-gradient(ellipse at 50% 42%, #fdfdfe 0%, #eef0f4 60%, #e2e6ec 100%);
  animation: dk-cover-off .4s ease 2.5s forwards;
}
@keyframes dk-cover-off { to { opacity: 0; visibility: hidden; } }
/* ⚠ לא overflow:hidden כדי לחסום גלילה — זה מעלים את פס הגלילה, הדף זז 7px והנחיתה "קופצת".
   את הגלילה חוסם intro.js (wheel/touchmove/מקשים → דילוג). */
html.intro-on .fly-logo, html.intro-on .hero-logo img, html.intro-on .scroll-cue { opacity: 0 !important; }
/* חץ "גללו למטה" — נעלם ברגע שמתחילים לגלול */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 6px 16px -8px rgba(22, 24, 31, .45);
  color: var(--ink);
  transition: opacity .35s ease;
  animation: cue-bob 2.2s var(--ease-out) infinite;
}
.scroll-cue .ic { width: 26px; height: 26px; stroke-width: 2.2; }
html.has-scrolled .scroll-cue { opacity: 0; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}
.lead {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
}
.slogan {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink-2);
}
/* חותמת "מספר 1 באמינות" — תג אמייל שחור עם שפת זהב וגביע (צילום שקוף, tools/seal/), מוטה קצת ועם צל רך על הזכוכית */
.seal {
  display: block;
  width: clamp(150px, 15vw, 220px);
  height: auto;
  margin: 0 0 18px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 14px rgba(20, 16, 10, .28)) drop-shadow(0 1px 1px rgba(20, 16, 10, .22));
}

/* טופס "מה מדפיסים?" — שולח לוואטסאפ */
.order { display: grid; gap: 12px; }
.order fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.order legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 1.125rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid rgba(29, 26, 36, .18);
  background: rgba(255, 255, 255, .62);
  font-weight: 600;
  font-size: .975rem;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color .18s, color .18s, border-color .18s, transform .16s var(--ease-out);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chip input:not(:checked):hover + span { background: rgba(255, 255, 255, .95); border-color: rgba(29, 26, 36, .32); }
}
.order textarea {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 26, 36, .2);
  background: rgba(255, 255, 255, .72);
  font: 500 1rem/1.45 var(--font-body);
  color: var(--ink);
}
.order textarea::placeholder { color: var(--ink-3); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-hint { margin: 0; font-size: .95rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- לקוחות: כל לוגו על לוח אקריליק קטן עם ברגים (כמו הדוגמאות) ---------- */
.clients { margin-top: clamp(40px, 6vw, 80px); }
.window-sub { margin: 0; max-width: 56ch; font-weight: 600; font-size: 1.05rem; color: var(--ink-2); }
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.logos li {
  --bolt: radial-gradient(circle at 42% 36%, #fff 0 1.1px, #dfe2e7 1.9px, #a3a9b3 3.6px, #6c727c 4.9px, rgba(0, 0, 0, .18) 5.4px, transparent 6px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  padding: 12px;
  background: linear-gradient(155deg, #fff 0%, #f7f8fa 55%, #eef0f3 100%);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .9),
    0 1px 0 rgba(22, 24, 31, .08),
    0 16px 24px -18px rgba(22, 24, 31, .5);
}
.logos li::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background:
    var(--bolt) top left / 12px 12px no-repeat,
    var(--bolt) top right / 12px 12px no-repeat,
    var(--bolt) bottom left / 12px 12px no-repeat,
    var(--bolt) bottom right / 12px 12px no-repeat;
}
.logos li { container-type: inline-size; }
/* גודל הלוגו לפי גודל הלוח (cqi = אחוז מרוחב הלוח) — אותו יחס במחשב, בטאבלט ובנייד */
.logos img { width: auto; height: auto; max-width: 84%; max-height: clamp(52px, 6.2vw, 92px); max-height: 60cqi; }

/* ---------- חלון הראווה: דוגמאות מודבקות על הזכוכית ---------- */
.services { margin-top: clamp(56px, 8vw, 104px); }
.window { padding: clamp(22px, 3.4vw, 48px); }
.window-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.window h2, .more-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: .95;
  padding-top: .08em;
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(201, 16, 111, .55);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--magenta); }
}

.samples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 52px) clamp(20px, 3vw, 40px);
}
/* כל דוגמה = לוח אקריליק לבן שתלוי על הזכוכית בארבעה ברגי ריחוק (כמו שלט אמיתי) */
.sample {
  --bolt: radial-gradient(circle at 42% 36%, #fff 0 1.4px, #dfe2e7 2.4px, #a3a9b3 4.6px, #6c727c 6.2px, rgba(0, 0, 0, .18) 6.9px, transparent 7.6px);
  position: relative;
  display: grid;
  gap: 2px;
  padding: 24px 24px 22px;
  background: linear-gradient(155deg, #fff 0%, #f7f8fa 55%, #eef0f3 100%);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .9),
    0 1px 0 rgba(22, 24, 31, .08),
    0 20px 30px -20px rgba(22, 24, 31, .55);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.sample::before {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  background:
    var(--bolt) top left / 16px 16px no-repeat,
    var(--bolt) top right / 16px 16px no-repeat,
    var(--bolt) bottom left / 16px 16px no-repeat,
    var(--bolt) bottom right / 16px 16px no-repeat;
}
.sample img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 12px;
}
.sample-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: .95;
  padding-top: .06em;
  margin-inline: 4px;
}
.sample-items { font-weight: 600; font-size: .975rem; color: var(--ink-2); margin-inline: 4px; }
.sample-go {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 6px 4px 0;
  font-weight: 700; font-size: .95rem; color: var(--magenta-deep);
}
.sample-go .ic { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .sample:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 0 rgba(22, 24, 31, .08), 0 30px 40px -22px rgba(22, 24, 31, .6); }
  .sample:hover .sample-go .ic { transform: translateX(-4px); }
}
.sample:focus-visible { outline-offset: 6px; border-radius: 4px; }

.more-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--etch);
}
.more-row h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.more {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 6px 0;
  font-weight: 600;
  color: var(--ink-2);
}
.more li { display: inline-flex; align-items: center; }
.more li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-inline: 12px;
  background: var(--magenta);
  transform: rotate(45deg);
}
.more li:nth-child(3n+2)::before { background: var(--cyan); }
.more li:nth-child(3n)::before { background: var(--yellow); }

/* ---------- מי אנחנו ---------- */
.studio {
  margin-top: clamp(64px, 9vw, 120px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.studio-photo {
  grid-column: 4 / -1;
  grid-row: 1;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-pane);
}
.studio-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.studio-pane {
  grid-column: 1 / 7;
  grid-row: 1;
  z-index: 1;
  padding: clamp(24px, 3.4vw, 48px);
  background-color: rgb(var(--milk) / .72);
}
.studio-pane h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: .86;
  padding-top: .06em;
}
.studio-pane p { margin: 0 0 12px; max-width: 44ch; font-size: 1.125rem; }
.facts { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--etch); display: grid; gap: 10px; font-weight: 700; }
.facts li { display: flex; align-items: center; gap: 12px; }
.sq { width: 14px; height: 14px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sq-m { background: var(--magenta); }
.sq-c { background: var(--cyan); }
.sq-y { background: var(--yellow); }

/* ---------- יצירת קשר ---------- */
.contact { margin-top: clamp(64px, 9vw, 120px); }
.contact-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.6vw, 48px);
  align-items: center;
}
.contact h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  line-height: .84;
  padding-top: .06em;
}
.contact-main p { margin: 0 0 22px; max-width: 40ch; font-size: 1.125rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--etch);
}
.contact-list .ic { width: 22px; height: 22px; color: var(--magenta-deep); }
.contact-list span { display: grid; gap: 0; min-width: 0; }
.contact-list b { font-size: .875rem; font-weight: 700; color: var(--ink-3); }
.contact-list a { font-weight: 700; font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a[dir="ltr"] { text-align: right; }
.addr-nav { display: block; font-size: .95rem; color: var(--magenta-deep); }
.hours-val { font-weight: 700; font-size: 1.125rem; }
.nf-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.nf-links li { border-top: 1px solid var(--etch); }
.nf-links li:last-child { border-bottom: 1px solid var(--etch); }
.nf-links a { display: block; padding: 14px 0; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nf-links a:hover { color: var(--magenta-deep); } }
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover { text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 4px; }
}
.contact-photo { margin: 0; align-self: center; }
.contact-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--r) - 2px);
}

/* ---------- פס ה"סלאג" בתחתית, כמו בשולי גיליון ---------- */
.slug { margin: clamp(48px, 7vw, 88px) auto 24px; }
.slug-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-2);
}
.cmyk { display: inline-flex; }
.cmyk i { width: 16px; height: 12px; display: block; }
.cmyk i:nth-child(1) { background: #00a0dc; }
.cmyk i:nth-child(2) { background: #e2007a; }
.cmyk i:nth-child(3) { background: #ffe500; }
.cmyk i:nth-child(4) { background: #1d1a24; }
.reg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.slug-links { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.slug-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .slug-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- סרגל פעולות בנייד ---------- */
.dock { display: none; }

/* ---------- דף טקסט (הצהרת נגישות) ---------- */
.page-doc main { padding-top: 92px; }
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);
  background-color: rgb(var(--milk) / .86);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink-2); text-decoration: none;
  margin-bottom: 14px;
}
.back-link .ic { order: 2; } /* חץ "חזור" ← בסוף (שמאל) — ui-rules.md */
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: .9;
  padding-top: .06em;
}
.doc-meta { margin: 8px 0 0; color: var(--ink-2); font-weight: 600; }
.doc h2 { margin: 2em 0 .5em; font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-inline-start: 1.2em; margin: .4em 0 1em; }
.doc li { margin-bottom: .35em; }
.doc li::marker { color: var(--magenta); }
.todo { background: #fff0a6; color: #000; padding: 0 .25em; border-radius: 3px; }
.doc-contact { margin: 16px 0 0; display: grid; gap: 0; }
.doc-contact div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--etch); }
.doc-contact dt { font-weight: 700; color: var(--ink-3); }
.doc-contact dd { margin: 0; font-weight: 700; }
.doc-contact a[dir="ltr"] { display: inline-block; }
@media (max-width: 640px) { .doc-contact div { grid-template-columns: 1fr; gap: 0; } }

/* ======================= תפריט נגישות ======================= */
.a11y-panel {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: 92px;
  transform: translateY(-50%);
  width: min(380px, 100vw - 108px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 18px;
  background-color: rgb(var(--milk) / .95);
  font-size: 1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; font-family: var(--font-body); }
.a11y-x {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 99px;
  border: 1px solid rgba(29, 26, 36, .2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.a11y-size {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(29, 26, 36, .14);
  font-weight: 700;
}
.a11y-size button {
  min-width: 46px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(29, 26, 36, .2);
  background: var(--paper);
  color: var(--ink);
  font: 800 1.05rem/1 var(--font-body);
  cursor: pointer;
}
.a11y-size button:disabled { opacity: .4; cursor: default; }
.a11y-size output { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 26, 36, .14);
  background: #fff;
  color: var(--ink);
  font: 700 .975rem/1.2 var(--font-body);
  text-align: start;
  cursor: pointer;
}
.a11y-opt .ic { width: 22px; height: 22px; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.a11y-reset {
  min-height: 42px; padding: 0 16px;
  border-radius: 99px;
  border: 1px solid rgba(29, 26, 36, .25);
  background: transparent;
  color: var(--ink);
  font: 700 .975rem/1 var(--font-body);
  cursor: pointer;
}
.a11y-foot a { font-weight: 700; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .a11y-opt:not([aria-pressed="true"]):hover, .a11y-size button:not(:disabled):hover, .a11y-x:hover { background: var(--paper); border-color: rgba(29, 26, 36, .35); }
}

/* ---------- מצבי הנגישות (מחלקות על <html>) ---------- */
html.a11y-size-1 { font-size: 112.5%; }
html.a11y-size-2 { font-size: 125%; }
html.a11y-size-3 { font-size: 140%; }

/* ביטול שקיפות: זכוכית אטומה, בלי טשטוש */
html.a11y-solid .glass, html.a11y-solid .frost,
html.a11y-contrast .glass, html.a11y-contrast .frost {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-image: none;
  background-color: rgb(var(--milk));
}

/* ניגודיות גבוהה */
html.a11y-contrast {
  --ink: #000;
  --ink-2: #000;
  --ink-3: #000;
  --mark: #000;
  --etch: #000;
  --milk: 255 255 255;
  --magenta: #000;
  --magenta-deep: #000;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .backdrop { display: none; }
html.a11y-contrast .glass, html.a11y-contrast .hero-pane { box-shadow: 0 0 0 2px #000; }
html.a11y-contrast .btn-ghost, html.a11y-contrast .chip span,
html.a11y-contrast .order textarea { background: #fff; border: 2px solid #000; }
html.a11y-contrast .a11y-fab { background: #000; border-color: #fff; box-shadow: 0 0 0 2px #000; }
html.a11y-contrast .sample { box-shadow: 0 0 0 2px #000; transform: none; }
html.a11y-contrast .sample::before { display: none; }
html.a11y-contrast a:not(.btn):not(.sample) { text-decoration: underline; }
html.a11y-contrast .sq, html.a11y-contrast .cmyk, html.a11y-contrast .more li + li::before { background: #000; }

/* עצירת אנימציות */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* הדגשת קישורים */
html.a11y-links a:not(.btn):not(.sample) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
  background-color: #fff3a8;
  color: #000;
}
html.a11y-links a, html.a11y-links button {
  outline: 2px solid #0b5bd3;
  outline-offset: 2px;
}

/* גופן קריא */
html.a11y-font { --font-display: "Assistant", system-ui, Arial, sans-serif; }
html.a11y-font :is(.window h2, .more-row h3, .studio-pane h2, .contact h2, .sample-name) { font-weight: 800; line-height: 1.1; }
html.a11y-font .window h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
html.a11y-font :is(.studio-pane h2, .contact h2) { font-size: clamp(2.2rem, 4vw, 3.6rem); }
html.a11y-font .sample-name { font-size: 1.5rem; }

/* ======================= רספונסיבי ======================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-body { grid-template-columns: 1fr; align-items: start; }
  .order { max-width: 640px; }
  .lead { max-width: 30ch; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .studio { grid-template-columns: 1fr; }
  .studio-photo { grid-column: 1; grid-row: 1; }
  .studio-pane { grid-column: 1; grid-row: 2; margin: -64px 14px 0; }

  .contact-pane { grid-template-columns: 1fr; }
  .contact-photo { order: -1; }
  .contact-photo img { min-height: 0; aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* בנייד הסרגל הוא "גלולה" קטנה עם הלוגו בלבד; טלפון ווואטסאפ בסרגל התחתון */
  .topbar { top: 8px; left: auto; right: 10px; width: auto; min-height: 0; padding: 6px 14px; gap: 0; }
  .brand img { height: 38px; }
  .topbar-actions { display: none; }
  .page-doc main { padding-top: 72px; }

  /* בפינה למטה; כשהסרגל התחתון מופיע — עולה מעליו */
  .a11y-fab {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: 10px;
    transform: none;
    width: 58px;
    height: 58px;
    transition: background-color .2s, transform .45s var(--ease-out);
  }
  .a11y-fab .ic { width: 34px; height: 34px; }
  .a11y-fab:active { transform: scale(.94); }
  html.dock-on .a11y-fab { transform: translateY(-80px); }
  html.dock-on .a11y-fab:active { transform: translateY(-80px) scale(.94); }
  .a11y-panel {
    top: auto;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    max-height: calc(100dvh - 92px - env(safe-area-inset-bottom));
  }
  html.dock-on .a11y-panel { bottom: calc(162px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 184px - env(safe-area-inset-bottom)); }
  .a11y-opts { grid-template-columns: 1fr; }

  .hero { margin-top: 10px; }
  .hero-pane { min-height: 0; padding: 22px 18px 24px; gap: 22px; }
  .hero-top { padding: 12px 0 62px; }
  .hero-logo img { width: min(86%, 320px); margin-inline: auto; }
  .lead { font-size: 1.35rem; }
  .slogan { font-size: 1.05rem; }
  .order-actions .btn { flex: 1 1 auto; }

  .window { padding: 22px 16px 26px; }
  .samples { grid-template-columns: 1fr; gap: 22px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logos li { padding: 8px; }
  .seal { width: 150px; margin: 0 auto 14px; }

  .studio-pane { margin: -40px 10px 0; }
  .slug-links { margin-inline-start: 0; }

  .dock {
    display: flex;
    gap: 10px;
    position: fixed;
    z-index: 40;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 8px;
    border-radius: 999px;
    background-color: rgb(var(--milk) / .8);
    /* מוסתר כל עוד הכפתורים של הפתיח או של "יצירת קשר" על המסך (site.js) */
    opacity: 0;
    transform: translateY(140%);
    visibility: hidden;
    transition: transform .45s var(--ease-out), opacity .3s ease, visibility 0s linear .45s;
  }
  html.dock-on .dock {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: transform .45s var(--ease-out), opacity .3s ease, visibility 0s;
  }
  .dock .btn { flex: 1; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .sample, .btn, .chip span { transition: none; }
}
