/* =========================================================
   י.ח.ש פרויקטים — מערכת עיצוב "בטון ואור"
   Mobile-first · RTL · WCAG 2.1 AA
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("../fonts/heebo-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("../fonts/heebo-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 800; font-display: swap; src: url("../fonts/heebo-hebrew-800-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("../fonts/heebo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("../fonts/heebo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Heebo"; font-weight: 800; font-display: swap; src: url("../fonts/heebo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url("../fonts/assistant-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url("../fonts/assistant-hebrew-600-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url("../fonts/assistant-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url("../fonts/assistant-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

/* ---------- Tokens ---------- */
:root {
  --ground: #F4F2EE;       /* רקע בטון בהיר */
  --sand: #E9E5DD;         /* רקע משני */
  --ink: #1C1D1F;          /* טקסט ראשי — 15:1 */
  --night: #161718;        /* כותרת ופוטר */
  --muted: #5E5B56;        /* טקסט משני — 6:1 */
  --line: #DAD6CD;         /* קווי הפרדה דקורטיביים */
  --field: #8C877E;        /* מסגרות שדות — 3.2:1 */
  --accent: #76BC21;       /* ירוק המותג (מילוי בלבד) */
  --accent-ink: #3F6B0E;   /* ירוק לטקסט על רקע בהיר — 5.6:1 */
  --on-night: #F4F2EE;
  --on-night-muted: #B8B4AB;
  --focus: #1D4ED8;
  --danger: #A11D1D;

  --font-display: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --font-body: "Assistant", "Heebo", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(72px, 10vw, 120px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .band-dark :focus-visible { outline-color: #FFD24A; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: var(--night); }
.btn-accent:hover { background: #8AD22F; color: var(--night); }
.btn-ghost-light { border-color: var(--on-night); color: var(--on-night); background: transparent; }
.btn-ghost-light:hover { background: var(--on-night); color: var(--night); }
.link-arrow { font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); color: var(--on-night);
  border-bottom: 3px solid var(--accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand {
  display: flex; align-items: center; flex: none; align-self: stretch;
  background: #fff; padding: 6px 14px; margin-block: 0 -3px; border-bottom: 3px solid var(--accent);
}
.brand:focus-visible { outline-offset: -4px; outline-color: var(--focus); }
.brand img { height: 64px; width: auto; transition: height .25s var(--ease); }
.site-header.is-compact .brand img { height: 54px; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--on-night); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; color: var(--on-night); font-family: var(--font-display); font-weight: 700; text-decoration: none; direction: ltr; }
.header-phone:hover { color: var(--accent); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 12px;
  background: transparent; border: 1px solid rgba(244, 242, 238, .35); border-radius: var(--radius);
  color: var(--on-night); cursor: pointer; font-family: var(--font-display); font-weight: 500;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { background: var(--night); border-top: 1px solid rgba(244, 242, 238, .12); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.mobile-nav a {
  display: block; padding: 14px 0; color: var(--on-night); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  border-bottom: 1px solid rgba(244, 242, 238, .1);
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-phone, .header-cta { display: inline-flex; }
  .brand { padding: 8px 22px; }
  .brand img { height: 104px; }
  .site-header.is-compact .brand img { height: 72px; }
  .header-inner { min-height: 120px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: .875rem; letter-spacing: .08em;
  color: var(--accent-ink); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); display: inline-block; }
.h2 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 2.9rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 80px) clamp(48px, 7vw, 72px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; bottom: 0; inset-inline-end: 0; background: var(--ground);
  padding: 10px 16px; font-size: .9rem; color: var(--muted);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .hero-figure img { aspect-ratio: auto; height: min(620px, 70vh); }
}


/* ---------- Background videos (AI) ---------- */
.video-figure { margin: 0; position: relative; background: var(--sand); }
.video-figure video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.video-figure figcaption {
  position: absolute; bottom: 0; inset-inline-end: 0; background: var(--ground);
  padding: 10px 16px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.ai-label { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.video-toggle {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(22, 23, 24, .72); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.video-toggle:hover { background: var(--night); }
.video-toggle svg { width: 20px; height: 20px; }
.video-toggle :focus-visible, .video-toggle:focus-visible { outline-color: #FFD24A; }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }
.video-wide { margin-bottom: 24px; }
.video-wide video { aspect-ratio: 16 / 7; }
@media (max-width: 719px) { .video-wide video { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) {
  .hero-figure.video-figure video { aspect-ratio: auto; height: min(620px, 70vh); }
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.stats-list li:last-child { border-bottom: 0; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; margin-bottom: 8px; }
.stat-label { color: var(--muted); font-size: 1rem; }
@media (min-width: 720px) {
  .stats-list li { padding: 32px 28px; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .stats-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- Service cards ---------- */
.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.service-card { background: var(--ground); display: flex; }
.service-card a, .service-card > div {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 24px; width: 100%;
  text-decoration: none; color: var(--ink); min-height: 280px; transition: background-color .25s var(--ease);
}
.service-card a:hover { background: #fff; color: var(--ink); }
.service-card svg { width: 34px; height: 34px; stroke: var(--ink); }
.service-card h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.service-card p { color: var(--muted); font-size: 1.05rem; }
.service-card .more { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--accent-ink); }

/* ---------- Project cards (home) ---------- */
.projects-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.project-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.project-card .media { overflow: hidden; background: var(--sand); }
.project-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.project-card p { color: var(--muted); font-size: 1rem; }
.project-card.is-wide { grid-column: 1 / -1; }
.project-card.is-wide img { aspect-ratio: 16 / 7; }
@media (max-width: 719px) { .project-card.is-wide img { aspect-ratio: 4 / 3; } }

/* ---------- Split (about / story) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split figcaption { font-size: .9rem; color: var(--muted); padding-top: 10px; }
.split .h2 { margin-bottom: 24px; }
.split p + p { margin-top: 16px; }
.split .body-lg { font-size: 1.2rem; }
@media (min-width: 960px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split.reverse figure { order: 2; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; }
.process li { border-top: 3px solid var(--ink); padding-top: 20px; counter-increment: step; }
.process li:last-child { border-top-color: var(--accent); }
.process h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 6px; letter-spacing: 0; }
.process h3::before { content: "0" counter(step) " · "; }
.process p { color: var(--muted); font-size: 1rem; }

/* ---------- Dark band (CTA) ---------- */
.band-dark { background: var(--ink); color: var(--on-night); }
.band-dark .h2 { color: #fff; }
.band-dark .lead { color: #C9C5BC; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--field); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Services page ---------- */
.service-block { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-block h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.service-block ul { margin: 20px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-block li { display: flex; gap: 12px; align-items: baseline; }
.service-block li::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; transform: translateY(-1px); }
@media (min-width: 960px) {
  .service-block { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .service-block:nth-child(even) figure { order: 2; }
}
.service-block figure { margin: 0; }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
}
.chips a:hover { background: var(--ink); color: #fff; }
.chips .count { font-size: .8rem; color: inherit; opacity: .75; }
.gallery-section { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.gallery-section:last-of-type { border-bottom: 0; }
.gallery-section header { margin-bottom: 28px; }
.gallery-section h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid.no-feature li:first-child { grid-column: auto; grid-row: auto; }
.gallery-grid + .gallery-grid { margin-top: 10px; }
@media (min-width: 720px) { .gallery-grid + .gallery-grid { margin-top: 14px; } }
.gallery-item { display: block; height: 100%; overflow: hidden; background: var(--sand); position: relative; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; border: 3px solid transparent; transition: border-color .2s;
}
.gallery-item:hover::after { border-color: var(--accent); }

/* Before / after */
.ba-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: ba; }
.ba-item { display: block; position: relative; overflow: hidden; background: var(--sand); }
.ba-item img { width: 100%; aspect-ratio: 5 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.ba-item:hover img { transform: scale(1.03); }
.ba-label {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--night); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 6px 14px;
}
.ba-strip li:last-child .ba-label { background: var(--accent); color: var(--night); }
@media (max-width: 719px) { .ba-strip { gap: 6px; } .ba-label { font-size: .85rem; padding: 4px 8px; top: 6px; inset-inline-start: 6px; } }

/* Field videos */
.field-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--night); }
.field-video h3 { font-weight: 700; font-size: 1.2rem; margin-top: 12px; letter-spacing: 0; }
.field-video p { color: var(--muted); font-size: 1rem; }
@media (min-width: 1100px) { .field-videos { grid-template-columns: repeat(3, minmax(0, 340px)); } }

/* Lightbox (native <dialog>) */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(14, 15, 16, .97); color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 12px; gap: 12px; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox-counter { font-size: .95rem; color: #D8D4CC; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { text-align: center; font-size: 1rem; color: #E6E2DA; min-height: 1.6em; }
.lb-btn {
  min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer;
}
.lb-btn:hover { background: var(--accent); color: var(--night); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 4px; }
.lb-next { inset-inline-end: 4px; }
.lightbox :focus-visible { outline-color: #FFD24A; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.form-card { background: #FBFAF7; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.form-card h2 { font-weight: 800; font-size: 1.8rem; margin-bottom: 8px; }
.form-intro { color: var(--muted); margin-bottom: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--field); border-radius: var(--radius); font-size: 1.05rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { color: var(--danger); font-size: .95rem; font-weight: 600; }
.field-error:empty { display: none; }
.req { color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 22px; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; font-weight: 600; border-inline-start: 4px solid transparent; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #EEF6E4; border-color: var(--accent-ink); color: #234007; }
.form-status.is-error { background: #FBEAEA; border-color: var(--danger); color: #6F1414; }
.form-status.is-busy { background: var(--sand); border-color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-list li { background: var(--ground); }
.contact-list a, .contact-list .item { display: flex; gap: 16px; align-items: center; padding: 20px; text-decoration: none; color: var(--ink); }
.contact-list a:hover { background: #FBFAF7; color: var(--ink); }
.contact-list svg { width: 26px; height: 26px; flex: none; }
.contact-list .label { display: block; font-size: .9rem; color: var(--muted); }
.contact-list .value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.map-frame { margin-top: 24px; border: 1px solid var(--line); background: var(--sand); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(1) contrast(1.05) sepia(.12); }
.a11y-contrast .map-frame iframe { filter: none; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-weight: 800; font-size: 1.6rem; margin: 40px 0 12px; }
.prose h3 { font-weight: 700; font-size: 1.25rem; margin: 28px 0 8px; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose .fill { background: #FFF3C4; padding: 0 4px; }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-block: 56px 32px; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.logo-plate { display: inline-block; background: #fff; padding: 10px 16px; margin-bottom: 16px; }
.footer-brand img { height: 84px; width: auto; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244, 242, 238, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-bottom button { background: none; border: 0; padding: 0; color: var(--on-night-muted); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--night); border-top: 1px solid rgba(244, 242, 238, .15);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; color: var(--on-night); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: .85rem;
}
.action-bar a + a { border-inline-start: 1px solid rgba(244, 242, 238, .12); }
.action-bar svg { width: 22px; height: 22px; }
.action-bar .is-primary { background: var(--accent); color: var(--night); font-weight: 700; }
body { padding-bottom: 64px; }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* Floating WhatsApp (desktop only) */
.wa-float {
  display: none; position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40;
  align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  background: var(--night); color: #fff; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.wa-float svg { width: 26px; height: 26px; color: #25D366; }
.wa-float:hover { background: #000; color: #fff; }
@media (min-width: 960px) { .wa-float { display: inline-flex; } }

/* ---------- Reveal on scroll ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-pending.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 60; inset-inline: 12px; bottom: 140px;
  max-width: 560px; margin-inline: auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 20px;
}
.consent[hidden] { display: none; }
.consent p { font-size: 1rem; margin-bottom: 14px; }
.consent .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .consent { bottom: 24px; inset-inline-start: 24px; inset-inline-end: auto; margin: 0; } }

/* =========================================================
   Accessibility widget
   ========================================================= */
.a11y-toggle {
  position: fixed; z-index: 45; bottom: 76px; inset-inline-start: 12px;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  background: #1D4ED8; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.a11y-toggle svg { width: 30px; height: 30px; }
.a11y-toggle:hover { background: #1E40AF; }
@media (min-width: 960px) { .a11y-toggle { bottom: 24px; inset-inline-start: 24px; } }

.a11y-panel {
  width: min(420px, calc(100vw - 24px)); max-height: min(86dvh, 760px); margin: auto;
  padding: 0; border: 0; border-radius: 8px; background: #fff; color: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: auto;
}
.a11y-panel::backdrop { background: rgba(0, 0, 0, .45); }
.a11y-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #1D4ED8; color: #fff; }
.a11y-head h2 { font-size: 1.15rem; letter-spacing: 0; color: #fff; }
.a11y-head button { min-width: 44px; min-height: 44px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; cursor: pointer; }
.a11y-head :focus-visible { outline-color: #FFD24A; }
.a11y-body { padding: 16px 18px 8px; }
.a11y-body h3 { font-family: var(--font-display); font-size: .95rem; letter-spacing: 0; color: #444; margin: 8px 0 10px; }
.a11y-size { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 84px; padding: 10px 8px; background: #F3F4F6; color: #111; border: 2px solid transparent; border-radius: 8px;
  cursor: pointer; font-size: .95rem; font-weight: 600; line-height: 1.25;
}
.a11y-opt svg { width: 24px; height: 24px; }
.a11y-opt:hover { background: #E5E7EB; }
.a11y-opt[aria-pressed="true"] { background: #DBEAFE; border-color: #1D4ED8; color: #1E3A8A; }
.a11y-size .a11y-opt { min-height: 56px; }
.a11y-foot { display: grid; gap: 8px; padding: 8px 18px 18px; }
.a11y-foot .btn { width: 100%; }
.a11y-foot a { text-align: center; font-size: .95rem; }

/* ---- Modes (classes on <html>) ---- */
.a11y-contrast {
  --ground: #000; --sand: #000; --ink: #FFF; --night: #000; --muted: #FFF; --line: #FFF; --field: #FFF;
  --accent: #FFFF00; --accent-ink: #FFFF00; --on-night: #FFF; --on-night-muted: #FFF; --focus: #FFFF00;
}
.a11y-contrast body, .a11y-contrast .form-card, .a11y-contrast .field input, .a11y-contrast .field select, .a11y-contrast .field textarea,
.a11y-contrast .contact-list a:hover, .a11y-contrast .service-card a:hover, .a11y-contrast .consent, .a11y-contrast .hero-figure figcaption { background: #000 !important; color: #FFF !important; }
.a11y-contrast a { color: #FFFF00 !important; }
.a11y-contrast .btn-dark, .a11y-contrast .btn-accent, .a11y-contrast .action-bar .is-primary { background: #FFFF00 !important; color: #000 !important; }
.a11y-contrast .btn-outline, .a11y-contrast .btn-ghost-light, .a11y-contrast .chips a { border-color: #FFFF00 !important; color: #FFFF00 !important; }
.a11y-contrast .band-dark .lead, .a11y-contrast .band-dark .h2 { color: #FFF; }
.a11y-mono main, .a11y-mono .site-header, .a11y-mono .site-footer { filter: grayscale(1); }
.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 1px dashed currentColor; outline-offset: 2px; }
.a11y-headings h1, .a11y-headings h2, .a11y-headings h3 { outline: 3px solid var(--accent); outline-offset: 4px; background: rgba(118, 188, 33, .12); }
.a11y-readable body, .a11y-readable h1, .a11y-readable h2, .a11y-readable h3, .a11y-readable .btn { font-family: Arial, "Arial Hebrew", sans-serif !important; letter-spacing: 0 !important; }
.a11y-spacing body { line-height: 2 !important; word-spacing: .12em; letter-spacing: .03em; }
.a11y-spacing p, .a11y-spacing li { line-height: 2 !important; }
.a11y-focus :focus-visible, .a11y-focus :focus { outline: 4px solid #FF8A00 !important; outline-offset: 4px !important; box-shadow: 0 0 0 8px rgba(255, 138, 0, .3) !important; }
.a11y-cursor, .a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important; }
.a11y-nomotion *, .a11y-nomotion *::before, .a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-nomotion .reveal-pending { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media print {
  .site-header, .action-bar, .wa-float, .a11y-toggle, .consent, .site-footer { display: none !important; }
  body { padding: 0; background: #fff; }
}
