/* Everything that is not the exported design.

   styles.css is generated from stich-project/_source.html and is never edited
   by hand, so a fresh export can replace it without losing anything. This file
   holds the corrections and the accessibility layer, each with its reason.

   Sections
     1  design corrections carried from earlier rounds
     1b the navy and brushed bronze palette, applied per section
     2  accessibility: structure, focus, targets, form
     3  the accessibility menu and the settings it switches on
*/

/* ==========================================================================
   1. DESIGN CORRECTIONS
   ========================================================================== */

/* The heading families were repointed to IBM Plex Sans Hebrew before the sheet
   was generated, because the export stopped loading Frank Ruhl Libre while
   still asking for it, and the headings painted in Times New Roman. That
   covers font-display-* and font-headline-*, but not font-serif, which is
   Tailwind's own generic serif stack, sits on 46 elements here including every
   h3, and is declared later so it wins. */
.font-serif {
  font-family: "IBM Plex Sans Hebrew", sans-serif;
}

/* Both photographs in their own colours, with no contrast boost, because they
   are the same photograph in two places and should look the same. */
#hero-photo,
#about-photo {
  filter: none;
}

/* ---- The About photo: a 4:5 portrait ----
   On desktop the photo column takes no height of its own: the frame is
   placed absolutely, as tall as the row, which the text column sets (from
   the label down to the name line), and 4:5 wide from that height. On a
   phone it sits above the text, full width, at 4:5.

   The photograph (assets/img/about-elad.webp, from pictures/about-elad.png)
   is square, so in a 4:5 frame its full height shows (the top of his head is
   never cut) and about 79% of its width. Centred, the window runs from 10.5%
   to 89.5% across: his face and beard (27% to 66%) sit well inside, the left
   shoulder's curve from 10.5% on, and the brass scales (75% to the right
   edge, where the source already cuts them) show from 75% to 89.5%. */
#about-photo {
  object-position: 50% 0;
}
.about-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.about-frame {
  height: 100%;
  max-width: none;
}
/* a thin gold outline behind the frame, 16px down and towards the outer
   (left) edge; decoration only */
.about-outline {
  position: absolute;
  inset: 0;
  border: 1px solid var(--bronze-on-navy);
  transform: translate(-16px, 16px);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .about-photo-col {
    position: relative;
    align-self: stretch;
  }
  .about-photo-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: 100%;
    transform: translateX(-50%);
  }
}
@media (max-width: 1023px) {
  .about-photo-col {
    order: -1;
  }
  .about-outline {
    transform: translate(-8px, 8px);
  }
}
/* "שקט נפשי" never splits across two lines */
.nowrap {
  white-space: nowrap;
}

/* The header logo: the full logo (with the two small lines) on every
   screen, as in the footer: 56px tall inside the 80px header above 640px,
   44px on phones (165px wide, clear of the WhatsApp circle and the menu
   button even at 360px). The footer keeps it at 64px. The files are cropped
   to the artwork, so the heights are the logos' own.

   In high contrast mode the page turns black on white, where the gold logo's
   white Hebrew lettering would vanish, so a second, black <picture> takes its
   place. It is lazy, so outside that mode it is never downloaded. Both carry
   the same alt text and only one is ever displayed. */
.logo-pic {
  display: block;
}
.logo-pic-hc {
  display: none;
}
.header-logo {
  display: block;
  height: 56px;
  width: auto;
}
@media (max-width: 644px) {
  .header-logo {
    height: 44px;
  }
}
.site-logo {
  display: block;
  height: 64px;
  width: auto;
}
.site-logo-hc {
  display: none;
}
html.a11y-contrast .logo-pic,
html.a11y-contrast .site-logo {
  display: none;
}
html.a11y-contrast .logo-pic-hc,
html.a11y-contrast .site-logo-hc {
  display: block;
}
html.a11y-contrast .header-logo,
html.a11y-contrast .site-logo-hc {
  filter: none !important;
}

/* The separator between the name and the role is decoration. It is hidden from
   screen readers in the markup; here it gets a colour that can be seen, rather
   than the 1.28:1 hairline tone it shipped with. */
.site-sep {
  margin-inline: 0.5rem;
  color: #4a5568;
  font-size: 15px;
}

/* The social links in the footer: each network in its own official look,
   inside a gold frame. The tile is a 44px rounded square in the brand's
   colours with the Simple Icons glyph (simple-icons 16.37.0, unaltered):
   Facebook #0866FF with the white f; Instagram's gradient, #FEDA75 to
   #4F5BD5 from bottom left to top right, with the white glyph; TikTok black
   with the white note and its cyan #25F4EE and red #FE2C55 copies offset
   behind it; Threads black with the white @. Around it, 3px of the footer's
   navy and then a 2px gold #D4B77A frame, so the gold reads as a frame and
   not as part of the logo. The link is the whole 54px square. On hover and
   keyboard focus it lifts 2px and the frame takes a soft gold glow (no lift
   with reduced motion). */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}
.social-row li {
  margin: 0;
}
.social-link {
  display: flex;
  width: 54px;
  height: 54px;
  padding: 3px;
  border: 2px solid #d4b77a;
  border-radius: 15px;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
}
.social-tile svg {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
}
.social-tile .si-glyph {
  fill: #ffffff;
}
.social-facebook .social-tile {
  background: #0866ff;
}
.social-instagram .social-tile {
  background: linear-gradient(to top right, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.social-tiktok .social-tile,
.social-threads .social-tile {
  background: #000000;
}
.social-tiktok .tt-cyan {
  fill: #25f4ee;
}
.social-tiktok .tt-red {
  fill: #fe2c55;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 12px 2px rgba(212, 183, 122, 0.55);
}
.social-link:focus-visible {
  box-shadow: 0 0 12px 2px rgba(212, 183, 122, 0.55), 0 0 0 6px var(--focus-halo, rgba(255, 255, 255, 0.95));
}
@media (prefers-reduced-motion: reduce) {
  .social-link:hover,
  .social-link:focus-visible {
    transform: none;
  }
}
html.a11y-stop .social-link:hover,
html.a11y-stop .social-link:focus-visible {
  transform: none;
}

/* In high contrast the page is stripped to black on white: plain black marks
   on white in a black frame, without TikTok's coloured copies. */
html.a11y-contrast .social-link {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
}
html.a11y-contrast .social-tile {
  background: #ffffff !important;
}
html.a11y-contrast .social-tile .si-glyph {
  fill: #000000 !important;
}
html.a11y-contrast .social-tiktok .tt-cyan,
html.a11y-contrast .social-tiktok .tt-red {
  display: none;
}

/* Section headings wrapped greedily, so a long one like the emergency heading
   left its last word alone on the second line. balance evens the lines out.
   Browsers without it keep the normal wrap. */
main section h2 {
  text-wrap: balance;
}

/* ==========================================================================
   1b. NAVY AND BRUSHED BRONZE
   ========================================================================== */

/* The design's colours are utility classes in the markup, and styles.css is
   generated, so the palette is applied here rather than there. Each region of
   the page names the surface it sits on with data-surface: navy, navy-light,
   navy-darkest or white. A surface sets one small set of variables, and the
   export's colour classes are pointed at those variables. Nothing here touches
   size, spacing or layout.

   The mappings use :where() so they carry exactly the weight of the utility
   they replace. Order decides, and the hover and group-hover variants keep the
   precedence they had over the plain colour. The accessibility menu's high
   contrast rules are !important and still win over all of it.

   The navies are deep and blue: #0E1E45, #182D63 and #08122D (footer).
   Contrast, measured: white on the three navies 13.2 to 18.5:1; muted #C3CCDA
   8.1 to 11.4:1; gold #D4B77A 6.8 to 9.6:1; navy text on white and on the
   #F4F6F9 cards 17.5 and 16.1:1; muted #4A5568 7.5 and 7.0:1; bronze #8A6A3C
   5.0 and 4.6:1. Navy on a gold button 8.4:1, white on a navy one 16.3:1. */
:root {
  --navy-main: #0e1e45;
  --navy-light: #182d63;
  --navy-darkest: #08122d;
  --white: #ffffff;
  --surface-card: #f4f6f9;
  --on-navy: #ffffff;
  --on-navy-muted: #c3ccda;
  --on-white: #0b1a2e;
  --on-white-muted: #4a5568;
  --bronze-on-navy: #d4b77a;
  --bronze-on-white: #8a6a3c;
  --line-on-navy: rgba(255, 255, 255, 0.12);
  --line-on-white: #e2e6ec;
  /* Headings only. The darkest stop on navy light is 4.7:1 and the lightest
     stop on the #F4F6F9 card 3.2:1, both above the 3:1 large text needs. */
  --brushed-on-navy: linear-gradient(100deg, #b8955a 0%, #ead3a0 50%, #c29e62 100%);
  --brushed-on-white: linear-gradient(100deg, #6f5430 0%, #a88552 50%, #7a5c34 100%);
}

[data-surface="navy"],
[data-surface="navy-light"],
[data-surface="navy-darkest"] {
  --surface: var(--navy-main);
  --card: var(--navy-light);
  --card-hover: #22397a;
  --fg: var(--on-navy);
  --fg-muted: var(--on-navy-muted);
  --bronze: var(--bronze-on-navy);
  --bronze-hover: #ead3a0;
  --brushed: var(--brushed-on-navy);
  --line: var(--line-on-navy);
  --control-line: var(--on-navy-muted);
  --btn-bg: var(--bronze-on-navy);
  --btn-bg-hover: #e0c690;
  --btn-fg: var(--navy-main);
  --outline-fg: var(--on-navy);
  --outline-border: var(--bronze-on-navy);
  --outline-hover: rgba(212, 183, 122, 0.14);
  --on-bronze: var(--navy-main);
  --focus: #ffffff;
  --focus-halo: var(--navy-main);
}
[data-surface="navy-light"] {
  --surface: var(--navy-light);
  --card: var(--navy-main);
  --card-hover: #22397a;
}
[data-surface="navy-darkest"] {
  --surface: var(--navy-darkest);
  --focus-halo: var(--navy-darkest);
}
[data-surface="white"] {
  --surface: var(--white);
  --card: var(--surface-card);
  --card-hover: #e9edf2;
  --fg: var(--on-white);
  --fg-muted: var(--on-white-muted);
  --bronze: var(--bronze-on-white);
  --bronze-hover: #6f5430;
  --brushed: var(--brushed-on-white);
  --line: var(--line-on-white);
  /* the edge of a form field: 4.0:1 on white, 3.7:1 on the card */
  --control-line: #77808f;
  --btn-bg: var(--navy-main);
  --btn-bg-hover: var(--navy-light);
  --btn-fg: #ffffff;
  --outline-fg: var(--navy-main);
  --outline-border: var(--navy-main);
  --outline-hover: var(--surface-card);
  --on-bronze: #ffffff;
  --focus: var(--navy-main);
  --focus-halo: #ffffff;
}

body.bg-\[\#FAF8F4\],
main.bg-\[\#FAF8F4\] {
  background-color: var(--white);
}
/* the home page's strip under the fixed header is navy, so the see-through
   header sits on the hero's colour */
main.bg-\[\#FAF8F4\]:not([data-surface]) {
  background-color: var(--navy-main);
}
[data-surface] {
  background-color: var(--surface);
  color: var(--fg);
}
/* The header: navy main at 85% with a blur, the hero's own tone, so it reads
   as part of the page; the 1px hairline under it stays. On the home page the
   strip of page under it is navy too (see main below), so at the top it is
   exactly the hero's colour. */
header[data-surface] {
  background-color: rgba(14, 30, 69, 0.85);
  box-shadow: none;
}
/* the menu: white 16px at weight 500; gold on hover and on the current page,
   whose underline is gold as well */
header[data-surface] nav a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}
header[data-surface] nav a:hover,
header[data-surface] nav a[aria-current="page"] {
  color: var(--bronze-on-navy);
}
header[data-surface] nav a[aria-current="page"] {
  border-color: var(--bronze-on-navy);
  background-color: transparent;
}
html[data-a11y-text="3"] header[data-surface] nav a { font-size: 22.4px !important; }
html[data-a11y-text="2"] header[data-surface] nav a { font-size: 20px !important; }
html[data-a11y-text="1"] header[data-surface] nav a { font-size: 17.92px !important; }
html[data-a11y-text="-1"] header[data-surface] nav a { font-size: 14.72px !important; }
html[data-a11y-text="-2"] header[data-surface] nav a { font-size: 13.6px !important; }
html[data-a11y-text="-3"] header[data-surface] nav a { font-size: 12.48px !important; }

/* The WhatsApp button in the header: the gold disc of the old decorative
   person icon, 32px, now with the WhatsApp glyph in navy (7.35:1 on the gold),
   inside a 44px target. */
.header-wa {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
}
.header-wa-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bronze-on-navy);
  color: var(--navy-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-wa:hover .header-wa-disc {
  background: #e0c690;
}
.header-wa svg {
  width: 18px;
  height: 18px;
}

/* --- text --- */
:where([data-surface], [data-surface] *).text-\[\#16181B\],
:where([data-surface], [data-surface] *).text-\[\#F2EFE9\] {
  color: var(--fg);
}
:where([data-surface], [data-surface] *).text-\[\#6A665F\],
:where([data-surface], [data-surface] *).text-\[\#9A968E\],
:where([data-surface], [data-surface] *).text-\[\#9A8F81\] {
  color: var(--fg-muted);
}
:where([data-surface], [data-surface] *).text-\[\#7F6237\],
:where([data-surface], [data-surface] *).text-\[\#9F7A45\],
:where([data-surface] *).hover\:text-\[\#7F6237\]:hover,
:where([data-surface] *).hover\:text-\[\#9F7A45\]:hover,
:where([data-surface] *).group:hover .group-hover\:text-\[\#7F6237\] {
  color: var(--bronze);
}
:where([data-surface] *).hover\:text-\[\#775928\]:hover,
:where([data-surface] *).hover\:text-\[\#ffddb2\]:hover {
  color: var(--bronze-hover);
}
[data-surface] .site-sep {
  color: var(--fg-muted);
}

/* --- surfaces inside a section: cards, badges, tiles. A card inside a card
   takes the section's own colour, so it still stands apart from its parent. */
:where([data-surface] *).bg-\[\#FAF8F4\],
:where([data-surface] *).bg-\[\#F1EDE6\],
:where([data-surface] *).bg-\[\#F1EDE6\]\/70,
:where([data-surface] *).bg-\[\#FFFFFF\],
:where([data-surface] *).bg-white,
:where([data-surface] *).bg-white\/95 {
  background-color: var(--card);
}
:where([data-surface] *) :is(.bg-\[\#FAF8F4\], .bg-\[\#F1EDE6\], .bg-\[\#FFFFFF\], .bg-white, .bg-white\/95)
  :is(.bg-\[\#FAF8F4\], .bg-\[\#F1EDE6\], .bg-\[\#FFFFFF\], .bg-white, .bg-white\/95) {
  background-color: var(--surface);
}
:where([data-surface] *).hover\:bg-\[\#EAE5DC\]:hover {
  background-color: var(--card-hover);
}

/* --- lines --- */
:where([data-surface] *).bg-\[\#E2DDD3\] {
  background-color: var(--line);
}
:where([data-surface] *).border-\[\#85827C\] {
  border-color: var(--control-line);
}

/* --- solid bronze: accents, numerals, rules, markers --- */
:where([data-surface] *).border-\[\#7F6237\],
:where([data-surface] *).focus\:border-\[\#7F6237\]:focus {
  border-color: var(--bronze);
}
/* after the bronze rule, as in styles.css, so an element carrying both keeps
   the hairline on the sides the hairline class was meant for */
:where([data-surface], [data-surface] *).border-\[\#E2DDD3\],
:where([data-surface], [data-surface] *).border-\[\#292A2C\],
:where([data-surface] *).divide-\[\#E2DDD3\] > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--line);
}
:where([data-surface] *).border-t-\[\#7F6237\],
:where([data-surface] *).hover\:border-t-\[\#7F6237\]:hover {
  border-top-color: var(--bronze);
}
:where([data-surface] *).border-\[\#7F6237\]\/25 {
  border-color: color-mix(in srgb, var(--bronze) 25%, transparent);
}
:where([data-surface] *).border-\[\#7F6237\]\/30 {
  border-color: color-mix(in srgb, var(--bronze) 30%, transparent);
}
:where([data-surface] *).hover\:border-\[\#7F6237\]\/40:hover {
  border-color: color-mix(in srgb, var(--bronze) 40%, transparent);
}
:where([data-surface] *).bg-\[\#7F6237\],
:where([data-surface] *).bg-\[\#9F7A45\],
:where([data-surface] *).group:hover .group-hover\:bg-\[\#7F6237\] {
  background-color: var(--bronze);
}
:where([data-surface] *).bg-\[\#7F6237\]\/30 {
  background-color: color-mix(in srgb, var(--bronze) 30%, transparent);
}
:where([data-surface] *).bg-\[\#7F6237\]\/5 {
  background-color: color-mix(in srgb, var(--bronze) 6%, transparent);
}
:where([data-surface] *).bg-\[\#7F6237\] .text-white {
  color: var(--on-bronze);
}

/* --- buttons: solid bronze with navy text on navy, solid navy with white
   text on white; the outline ones are bronze-edged with white text on navy
   and navy-edged with navy text on white --- */
:where([data-surface] *):is(a, button).bg-\[\#7F6237\] {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
}
:where([data-surface] *):is(a, button).hover\:bg-\[\#775928\]:hover {
  background-color: var(--btn-bg-hover);
}
a:where([data-surface] *).border-\[\#7F6237\] {
  background-color: transparent;
  border-color: var(--outline-border);
  color: var(--outline-fg);
}
a:where([data-surface] *).border-\[\#7F6237\] .text-\[\#7F6237\] {
  color: inherit;
}
a:where([data-surface] *).border-\[\#7F6237\]:is(.hover\:bg-\[\#F1EDE6\], .hover\:bg-\[\#FAF8F4\]):hover {
  background-color: var(--outline-hover);
}
[data-surface] [class*="shadow-[0_4px_16px_rgba(127,98,55"]:not(:focus-visible),
[data-surface] [class*="shadow-[0_4px_20px_rgba(127,98,55"]:not(:focus-visible) {
  box-shadow: 0 4px 16px rgba(7, 17, 31, 0.3);
}

/* --- cards on a navy section: the hover and focus state ---
   The export turned a card white on hover (hover:bg-white) and its title
   bronze, which on navy left white and light text on a white card. On navy
   the card instead lightens to #22397A, lifts 4px, takes a gold border all
   round and a faint gold glow; every text keeps its resting colour (white
   11.2:1, light body 6.9:1, gold tags 5.6:1 on #22397A). The same state on
   keyboard focus, should a card ever hold a link (they hold none today, so
   they are not tab stops). */
:where([data-surface="navy"], [data-surface="navy-light"]) .hover\:bg-white {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
:where([data-surface="navy"], [data-surface="navy-light"]) .hover\:bg-white:is(:hover, :focus-visible, :focus-within) {
  background-color: #22397a;
  border-color: var(--bronze-on-navy);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(212, 183, 122, 0.18), 0 10px 28px rgba(212, 183, 122, 0.14);
}
:where([data-surface="navy"], [data-surface="navy-light"]) .hover\:bg-white:is(:hover, :focus-visible, :focus-within) .group-hover\:text-\[\#7F6237\] {
  color: var(--fg);
}
@media (prefers-reduced-motion: reduce) {
  :where([data-surface="navy"], [data-surface="navy-light"]) .hover\:bg-white:is(:hover, :focus-visible, :focus-within) {
    transform: none;
  }
}
html.a11y-stop :where([data-surface="navy"], [data-surface="navy-light"]) .hover\:bg-white:is(:hover, :focus-visible, :focus-within) {
  transform: none;
}

/* The floating call button and the accessibility button sit over navy and
   white sections in turn. Solid bronze with a navy icon, a white ring for the
   navy sections, and a navy edge outside it for the white ones, because
   gold against white alone is only 1.93:1 and a control's edge needs 3:1.
   The navy edge is the real border (14.2:1 on white) and the white ring is
   drawn inside it, so the edge is something a contrast check can measure. */
body > aside > a.bg-\[\#7F6237\] {
  background-color: var(--bronze-on-navy);
  color: var(--navy-main);
  border: 1px solid var(--navy-main);
  box-shadow: inset 0 0 0 2px #ffffff, 0 4px 20px rgba(7, 17, 31, 0.35);
}
body > aside > a.bg-\[\#7F6237\]:hover {
  background-color: #e0c690;
}
body > aside > a.bg-\[\#7F6237\]:focus-visible {
  box-shadow: inset 0 0 0 2px #ffffff, 0 0 0 6px rgba(255, 255, 255, 0.95);
}

/* --- brushed bronze, on the key words of the main headings only. Browsers
   that cannot clip a background to text keep the solid bronze. --- */
:where([data-surface], [data-surface] *).brushed {
  color: var(--bronze);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  :where([data-surface], [data-surface] *).brushed {
    background-image: var(--brushed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    /* background-clip: text paints only inside the span's box, and italic
       glyphs lean past it: the ע of "עומד אדם" lost its tip. The padding
       widens the painted box and the negative margin gives the space back, so
       nothing on the line moves. */
    padding: 0.08em 0.15em;
    margin: -0.08em -0.15em;
  }
}

/* --- inner pages: a navy band behind the page title, the content on white.
   The band's own background is navy, and a spread shadow of the same colour,
   clipped to the band's height, carries it to the screen edges and up under
   the header. Shadows paint past the box without moving anything or adding a
   scrollbar, so the title keeps its place in the column. --- */
.page-band {
  box-shadow: 0 0 0 100vmax var(--navy-main);
  clip-path: inset(-11rem -100vmax -2rem -100vmax);
}

/* ==========================================================================
   1c. THE HERO: CUTOUT PORTRAIT, SCALES, SERVICES, AVAILABILITY BADGE
   ========================================================================== */

/* How far the badge hangs below the hero. It grows with the accessibility
   menu's text size so the phone number always fits inside the circle, and the
   section below makes room for whatever it is at the moment. */
:root {
  --badge: 200px;
  /* how much of the badge sits inside the hero: half of it, except on a phone */
  --badge-rise: calc(var(--badge) * var(--badge-scale, 1) / 2);
}
@media (max-width: 1023px) {
  :root {
    --badge: 150px;
  }
}
html[data-a11y-text="1"] { --badge-scale: 1.1; }
html[data-a11y-text="2"] { --badge-scale: 1.25; }
html[data-a11y-text="3"] { --badge-scale: 1.4; }

/* phones, 640px and narrower: the headline, the subheadline and the services
   row centred, in line with the centred portrait */
@media (max-width: 640px) {
  .hero-inner h1,
  .hero-inner h1 + p {
    align-self: center;
    text-align: center;
  }
  .hero-services {
    align-self: center;
    justify-content: center;
  }
}

/* the services row, under the subheadline */
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: -1rem 0 2rem;
  padding: 0;
  list-style: none;
}
.hero-services li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-weight: 500;
  color: var(--fg);
}
.hero-services .material-symbols-outlined {
  color: var(--bronze);
  font-weight: 600;
}
@media (max-width: 639px) {
  .hero-services {
    gap: 0.5rem 1rem;
  }
  .hero-services li {
    font-size: 14px;
  }
}

/* The portrait layer covers the whole hero and clips what reaches past it:
   the scales are taller than the hero, and the glow is wide. The badge is not
   in this layer, so it can still hang over the next section. */
/* ---- THE HERO'S LAYOUT AND PORTRAIT: every setting lives in this block ----

   The cutout comes from the AI-extended photo (pictures/hero-elad-expanded.png,
   1024x1536), in which both shoulders and arms are inside the frame: the robe
   touches neither side, only the bottom, so it stands on the hero's edge with
   no side fade and no vignette. To swap the photo again: overwrite
   assets/img/elad-cutout.webp, set --photo-ratio below and the img width and
   height in index.html to the new file's size.

   From 2000px up the content area widens to 1900px and the text column keeps
   a fixed 760px, so the portrait can reach 85% of the hero's height without
   running behind the text. */
section.hero {
  --photo-ratio: 794 / 1183;
  --maxw: 1380px;      /* the content container, as in the markup */
  --fig-hf: 1;         /* portrait height on desktop, share of the hero (before the crop) */
  --fig-h-sm: 100%;    /* portrait height under 1024px, share of the portrait strip */
  --fade: 0%;          /* bottom fade of the portrait into the navy */
  /* A robe has no pockets, so his hands must not show: only the top 82% of
     the photo is shown, cut at y 970 of 1183, 30px above where the sleeves
     meet the pockets and just above the belt. The portrait is moved down by
     the other 18% of its own height, so the hero's bottom edge (or the
     portrait strip's, under 1024px) cuts him exactly there. */
  --crop: 0.82;
  /* How far the widest text element (the services row) reaches in from the
     content's right edge, and the space kept between it and the portrait. */
  --text-reach: 682px;
  --gap-text: 48px;
  /* the widest the portrait may be: 44% of the content box, and never closer
     than --gap-text to the text */
  --cap-w: min(calc((min(100cqw, var(--maxw)) - 8rem) * 0.44),
               calc(min(100cqw, var(--maxw)) - 8rem - var(--text-reach) - var(--gap-text)));
}
/* with larger text the services row may wrap to the full text column, so the
   portrait keeps its distance from the column itself */
html[data-a11y-text="1"] section.hero,
html[data-a11y-text="2"] section.hero,
html[data-a11y-text="3"] section.hero {
  --text-reach: calc((min(100cqw, var(--maxw)) - 8rem) * 7 / 12);
}
@media (min-width: 2000px) {
  section.hero {
    --maxw: 1900px;
    --fig-hf: 0.97;
    --text-w: 760px;
    --cap-w: min(calc(min(100cqw, var(--maxw)) - 8rem - var(--text-w) - 40px),
                 calc(min(100cqw, var(--maxw)) - 8rem - var(--text-reach) - var(--gap-text)));
  }
  html[data-a11y-text="1"] section.hero,
  html[data-a11y-text="2"] section.hero,
  html[data-a11y-text="3"] section.hero {
    --text-reach: var(--text-w);
  }
  .hero-inner {
    max-width: var(--maxw);
  }
  .hero-inner > div:first-child {
    width: var(--text-w);
  }
}

/* ---- The text side on large screens ----
   From 1440px the hero's type grows with the screen, so the text side carries
   more weight next to the portrait: the headline from its 56px at 1440 to
   1.35 times that (75.6px) at 2560, the subheadline and the services row by
   15%, the buttons' padding a little. Phones and anything under 1440px keep
   the sizes they had. The text-size steps of the accessibility menu multiply
   these sizes (--ts) instead of replacing them with fixed values. */
html { --ts: 1; }
html[data-a11y-text="3"] { --ts: 1.4; }
html[data-a11y-text="2"] { --ts: 1.25; }
html[data-a11y-text="1"] { --ts: 1.12; }
html[data-a11y-text="-1"] { --ts: 0.92; }
html[data-a11y-text="-2"] { --ts: 0.85; }
html[data-a11y-text="-3"] { --ts: 0.78; }
section.hero {
  --hero-btn-py: 1rem;
  --hero-btn-px: 2.5rem;
}
@media (min-width: 1440px) {
  section.hero {
    --hero-btn-py: clamp(1rem, calc(1rem + (100vw - 1440px) * 0.00286), 1.2rem);
    --hero-btn-px: clamp(2.5rem, calc(2.5rem + (100vw - 1440px) * 0.00571), 2.9rem);
    /* the services row grows with its type, and the portrait keeps its 48px */
    --text-reach: clamp(682px, calc(682px + (100vw - 1440px) * 0.0913), 784px);
  }
  html section.hero .hero-inner h1 {
    font-size: calc(clamp(56px, calc(56px + (100vw - 1440px) * 0.0175), 75.6px) * var(--ts)) !important;
    line-height: 1.12 !important;
  }
  html section.hero .hero-inner > div > p {
    font-size: calc(clamp(20px, calc(20px + (100vw - 1440px) * 0.002679), 23px) * var(--ts)) !important;
    line-height: 1.6 !important;
    /* its measure grows with its type, so it keeps its two lines */
    max-width: clamp(36rem, calc(36rem + (100vw - 1440px) * 0.0771), 41.4rem);
  }
  html section.hero .hero-services li {
    font-size: calc(clamp(15px, calc(15px + (100vw - 1440px) * 0.002009), 17.25px) * var(--ts)) !important;
  }
  html section.hero .hero-services .material-symbols-outlined {
    font-size: calc(clamp(18px, calc(18px + (100vw - 1440px) * 0.00241), 20.7px) * var(--ts)) !important;
  }
}
@media (min-width: 2000px) {
  section.hero {
    --text-w: 840px;
  }
}
/* From 1600px to 1999px the content box stays 1380px while the type grows, so
   the services row alone would push the portrait down to 478px wide at 1920
   (far smaller on screen than at 1440 and 2560). Here the text column narrows
   to 600px (the callback form narrows with it from its 640px): the services
   row wraps onto a second line, the subheadline (580px at 1920) still fits,
   and the portrait may take 47% of the content box instead of 44%, so at 1920
   it is 588px wide, with about the head room it has at 1440 and 2560 and
   still at least 48px from the text. */
@media (min-width: 1600px) and (max-width: 1999px) {
  section.hero,
  html[data-a11y-text] section.hero {
    --text-w: 600px;
    --text-reach: var(--text-w);
    --cap-w: min(calc((min(100cqw, var(--maxw)) - 8rem) * 0.47),
                 calc(min(100cqw, var(--maxw)) - 8rem - var(--text-reach) - var(--gap-text)));
  }
  .hero-inner > div:first-child {
    flex: 0 0 auto;
    width: var(--text-w);
  }
  .hero-badge {
    --text-half: calc(var(--text-w) / 2);
  }
}
section.hero .hero-inner a:is([href^="tel"], [href*="wa.me"]) {
  padding-block: var(--hero-btn-py);
  padding-inline: var(--hero-btn-px);
}

/* ---- The quick callback form, under the buttons ----
   Part of the hero, not a box: no panel, white fields with navy text and a
   thin border, as tall as the buttons above, and a solid gold button. Two
   fields and the button in one row; the consent below. In the markup the
   order is name, phone, consent, submit, which is the keyboard order; the
   grid only draws the button up in the fields' row. On a phone everything
   stacks, full width. Error text and the required marks are a light coral on
   the navy (#FFB4A8, 8.4:1), since the site's dark red is for white. */
.callback {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-template-areas:
    "title title title"
    "name phone submit"
    "consent consent consent"
    "cerr cerr cerr"
    "status status status";
  /* no row gap: the error and status rows are empty until needed, and empty
     rows must not add space; the visible rows carry their own margins */
  gap: 0 0.75rem;
  width: min(100%, 40rem);
  margin-top: 1.75rem;
}
.callback-title {
  grid-area: title;
  margin: 0 0 0.5rem;
  color: var(--fg);
  font-weight: 600;
}
.callback-name { grid-area: name; }
.callback-phone { grid-area: phone; }
.callback-consent { grid-area: consent; margin-top: 0.5rem; }
.callback-consent-error { grid-area: cerr; }
.callback-submit { grid-area: submit; align-self: start; }
.callback-status { grid-area: status; margin-top: 0; }
.callback-input {
  width: 100%;
  box-sizing: border-box;
  padding-block: calc(var(--hero-btn-py) - 1px);
  padding-inline: 1rem;
  line-height: 20px;
  background: #ffffff;
  color: var(--on-white);
  border: 1px solid var(--on-navy-muted);
  border-radius: 0;
}
.callback-input::placeholder {
  color: var(--on-white-muted);
  opacity: 1;
}
.callback-submit {
  padding-block: calc(var(--hero-btn-py) - 1px);
  padding-inline: 1.75rem;
  line-height: 20px;
  border: 1px solid var(--bronze-on-navy);
  background: var(--bronze-on-navy);
  color: var(--navy-main);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.callback-submit:hover {
  background: #e0c690;
}
.callback .consent-row label {
  color: var(--fg-muted);
  padding-top: 11px;
}
.callback .consent-row a {
  color: var(--bronze-on-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.callback .consent-box:checked::after {
  color: var(--navy-main);
}
.callback .field-required.is-error,
.callback .form-error,
.callback .form-status.is-error {
  color: #ffb4a8;
}
.callback .form-error {
  margin-top: 0.25rem;
}
.callback .form-status {
  color: var(--fg);
  min-height: 0;
}
.callback-input.is-invalid {
  border-color: #ffb4a8;
  border-width: 2px;
}
@media (max-width: 639px) {
  .callback {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "name" "phone" "consent" "cerr" "submit" "status";
    row-gap: 0.5rem;
    width: 100%;
  }
  .callback-submit {
    width: 100%;
  }
}

/* The portrait layer covers the whole hero and is a size container, so the
   photo and the portrait below can measure themselves from the hero's own
   width and height (cqw, cqh). Its own stacking context orders the photo,
   the glow and the portrait by z-index, back to front. */
.hero-art,
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  container-type: size;
  /* Shared geometry, resolved by the photo and the portrait inside (cqw and
     cqh are the hero's width and height there). The portrait moves right,
     towards the text, until it is --gap-text from the widest text element. */
  --H: 100cqh;
  --content-w: calc(min(100cqw, var(--maxw)) - 8rem);
  --fig-l: calc(max(0px, (100cqw - var(--maxw)) / 2) + 4rem);
  --fig-w: min(calc(var(--H) * var(--fig-hf) * 794 / 1183), var(--cap-w));
  --fig-shift: max(0px, calc(var(--content-w) - var(--text-reach) - var(--gap-text) - var(--fig-w)));
}
.hero-art-inner {
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  padding-inline: 4rem;
  display: flex;
  justify-content: flex-end; /* the left side, in RTL */
  align-items: flex-end;     /* he stands on the hero's bottom edge */
}
.hero-figure {
  position: relative;
  /* --fig-hf of the hero, but never wider than --cap-w. Capping the height
     rather than the width keeps the box the exact size of the picture. */
  height: min(calc(var(--fig-hf) * 100%), calc(var(--cap-w) / (var(--photo-ratio))));
  aspect-ratio: var(--photo-ratio);
  left: var(--fig-shift);
  /* down by the cropped share of its own height, so the bottom edge cuts him
     at the crop line (the photo is in its own layer behind the hero, so the
     stacking context this creates changes nothing) */
  transform: translateY(calc((1 - var(--crop)) * 100%));
}

/* ---- THE OFFICE PHOTO under the whole hero: natural colour on wide screens,
   a navy tint on phones ----
   Two photos of the same daylight office: above 640px
   assets/img/hero-bg-desktop.webp (pictures/hero-bg-desktop-v3.png, 2172x724,
   scaled to 2400x800); at 640px and narrower assets/img/hero-bg-mobile.webp
   (pictures/hero-bg-mobile-v3.png, 1024x1536, scaled to 1080x1620). A
   background image only downloads when its rule applies, and the head
   preloads the matching one, so each screen fetches one photo. The hero is
   its own stacking context and the
   background layer sits at its back (z-index -1), under the portrait layer and
   the text; on phones, where the text column steps out of its box, that keeps
   the text above it too.

   Above 640px the photo keeps its own colours, sharp, only a little darker
   (brightness 0.85) so the white text and the portrait stand out; the
   readability comes from one gradient on the text side. At 640px and
   narrower, where the text sits over the photo, it is tinted navy but keeps
   some of its colour (see the phone rules below).

   The desktop photo is 3:1, so covering the hero makes it exactly as tall as
   the hero; its brass scales run from 0.124 to 0.428 hero-heights in from its
   left edge. It is slid left just far enough to bring the scales on screen
   (24px from the left edge), and further only if that is needed to keep them
   40px clear of his head (which starts 26% across the portrait). */
/* The hero is its own layer (isolation), so on its own it would sit in
   page order and the next section, painted after it, would cover whatever
   hangs below its edge: the lower half of the availability badge, with the
   phone number. z-index 1 lifts the whole layer above the following
   sections (still under the header, the bottom bar and the floating
   buttons). The portrait stays clipped by its own container, .hero-art. */
section.hero {
  isolation: isolate;
  position: relative;
  z-index: 1;
}
.hero-bg {
  z-index: -1;
}
.hero-photo {
  --head-l: calc(var(--fig-l) + var(--fig-shift) + var(--fig-w) * 0.26);
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../img/hero-bg-desktop.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: min(0px, calc(24px - var(--H) * 0.124), calc(var(--head-l) - 40px - var(--H) * 0.428)) center;
  filter: brightness(0.85);
}
/* Readability: one soft gradient on the text side only, 80% navy darkest
   behind the text column, gone by the middle of the hero, so the left side
   (windows, scales, plants) stays in full colour. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(to left, rgba(8, 18, 45, 0.8) 0, rgba(8, 18, 45, 0.8) 20%, rgba(8, 18, 45, 0) 50%);
}
.hero-glow {
  position: absolute;
  z-index: 3;
  inset: -8% -40% -10%;
  background: radial-gradient(ellipse 50% 50% at 50% 42%, var(--navy-light) 0%, rgba(24, 45, 99, 0) 100%);
}
/* the navy glow behind the portrait belongs to the navy-tinted photo on
   phones; over the natural-colour photo on wider screens it would leave a
   blue haze on the side that should stay in its own colours */
@media (min-width: 641px) {
  .hero-glow {
    display: none;
  }
}
/* the optional bottom fade ends exactly at the hero's edge */
.hero-cutout {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--crop) * 100% - var(--fade)), transparent calc(var(--crop) * 100%));
  mask-image: linear-gradient(to bottom, #000 calc(var(--crop) * 100% - var(--fade)), transparent calc(var(--crop) * 100%));
}

/* The text block sits in the middle of the hero, with the same empty space
   above and below it. The padding is equal top and bottom and always leaves
   room for the badge's upper half plus 24px, so the badge never touches the
   text; if the text grows (larger text sizes), the hero grows with it. */
@media (min-width: 1024px) {
  .hero-inner {
    padding-top: calc(var(--badge) * var(--badge-scale, 1) / 2 + 1.5rem);
    padding-bottom: calc(var(--badge) * var(--badge-scale, 1) / 2 + 1.5rem);
  }
}

/* Phones and tablets: the portrait goes under the buttons, smaller, still
   standing on the bottom edge, and leaves room on the right for the badge. */
@media (max-width: 1023px) {
  .hero-art {
    position: relative;
    inset: auto;
    height: clamp(300px, 80vw, 440px);
  }
  .hero-art-inner {
    padding-inline: 1.5rem;
  }
  .hero-figure {
    /* scaled up so the part above the crop line fills the strip */
    height: calc(var(--fig-h-sm) / var(--crop));
    max-width: calc(100% - var(--badge) * var(--badge-scale, 1) - 0.5rem);
  }
  /* Here the text sits over the photo: the gradient runs top to bottom,
     50% at the top behind the text, 20% behind the portrait. On tablets the
     wide photo shows a slice with the scales at its left edge. */
  .hero-photo {
    background-position: calc(24px - var(--H) * 0.124) center;
  }
  .hero-veil {
    background: linear-gradient(to bottom, rgba(8, 18, 45, 0.5) 0, rgba(8, 18, 45, 0.5) 22%, rgba(8, 18, 45, 0.2) 40%, rgba(8, 18, 45, 0.2) 100%);
  }
  /* the brushed gold headline sits over the photo here; a soft extra veil
     behind it alone gives it a wider contrast margin */
  .hero-inner h1 {
    position: relative;
  }
  .hero-inner h1::before {
    content: "";
    position: absolute;
    inset: -0.15em -0.3em;
    z-index: -1;
    /* an even veil, its edges softened by the blur rather than by a gradient,
       so the ends of the words get the full strength too */
    background: rgba(14, 30, 69, 0.72);
    filter: blur(14px);
    pointer-events: none;
  }
}

/* Phones, 640px and narrower: the tall photo, tinted navy but keeping some of
   its colour. The photo is desaturated to 0.7 (not grey); navy main covers it
   at 0.7, so about 30% of the photo shows through; then #3D5BA8 in the
   "color" blend at 0.4 pulls what shows towards that blue. The result reads
   navy blue, with the wood, the plants and the light still faintly there.
   Covering the hero makes it as
   tall as the hero and 0.667 hero-heights wide; its scales run from 0.117 to
   0.280 hero-heights across, so this puts them 16px from the left edge. */
@media (max-width: 640px) {
  .hero-photo {
    background-image: url("../img/hero-bg-mobile.webp");
    /* 16px from the left edge, or further left if that is needed to keep
       them 20px clear of his head. The portrait is centred and
       clamp(300px, 81vw, 450px) tall, 0.671 of that wide, and his head starts
       26% across it, so his head starts at 50vw - 0.161 x its height. */
    background-position: min(calc(16px - var(--H) * 0.117), calc(50cqw - clamp(300px, 81cqw, 450px) * 0.1611 - 20px - var(--H) * 0.280)) center;
    filter: saturate(0.7);
  }
  .hero-bg::before,
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .hero-bg::before {
    z-index: 2;
    background: var(--navy-main);
    opacity: 0.7;
  }
  .hero-bg::after {
    z-index: 3;
    background: #3d5ba8;
    mix-blend-mode: color;
    opacity: 0.4;
  }
}

/* Where the photo is bright behind the text on wide screens (a lit wall at
   1920px, the floor at 1440px and 2560px), a soft local shade sits behind
   the headline, the subheadline, the services row and the consent line only:
   a blurred navy patch, so it has no visible edge. Phones need none beyond
   the headline's own veil. */
@media (min-width: 1024px) {
  .hero-inner h1,
  .hero-inner h1 + p,
  .hero-services,
  .callback .consent-row label {
    position: relative;
  }
  .hero-inner h1::before,
  .hero-inner h1 + p::before,
  .hero-services::before,
  .callback .consent-row label::before {
    content: "";
    position: absolute;
    inset: -0.2em -0.5em;
    z-index: -1;
    background: rgba(8, 18, 45, 0.45);
    filter: blur(16px);
    pointer-events: none;
  }
  /* the subheadline is light grey, not white, and long: its patch is stronger */
  .hero-inner h1 + p::before {
    background: rgba(8, 18, 45, 0.65);
  }
  /* the last service sits furthest from the text side, where the gradient
     has almost faded over the natural photo: a stronger patch behind it alone */
  .hero-services li:last-child {
    position: relative;
  }
  .hero-services li:last-child::before {
    content: "";
    position: absolute;
    inset: -0.35em -0.6em;
    z-index: -1;
    background: rgba(8, 18, 45, 0.75);
    filter: blur(10px);
    pointer-events: none;
  }
}

/* The availability badge: a white disc with two thin gold rings, sitting on
   the hero's bottom edge under the text column, half on the white section
   below. The whole disc is the call link. Its outer ring is #8A6A3C, 4.99:1 on
   white, so the control has an edge on the white half too. */
.hero-badge {
  position: absolute;
  z-index: 20;
  /* centred under the text column: the content box starts 4rem in from the
     container edge, and the text column is its right 7/12 */
  --content: calc(min(100%, var(--maxw)) - 8rem);
  --text-half: calc(var(--content) * 7 / 24);
  inset-inline-start: calc(max(0px, (100% - var(--maxw)) / 2) + 4rem + var(--text-half) - var(--badge) * var(--badge-scale, 1) / 2);
  bottom: calc(var(--badge-rise) - var(--badge) * var(--badge-scale, 1));
  width: calc(var(--badge) * var(--badge-scale, 1));
  height: calc(var(--badge) * var(--badge-scale, 1));
  border-radius: 50%;
  border: 1.5px solid var(--bronze-on-white);
  background: #ffffff;
  color: var(--on-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(8, 18, 45, 0.28);
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid var(--bronze-on-white);
  pointer-events: none;
}
.hero-badge-label {
  color: var(--on-white-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge-phone {
  color: var(--navy-main);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hero-badge:hover .hero-badge-phone {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* navy ring for the white half, white halo for the navy half */
.hero-badge:focus-visible {
  outline: 3px solid var(--navy-main);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px #ffffff, 0 12px 32px rgba(8, 18, 45, 0.28);
}
@media (max-width: 1023px) {
  .hero-badge {
    inset-inline-start: 1.5rem;
  }
  .hero-badge-phone {
    font-size: 18px;
    line-height: 24px;
  }
  .hero-badge::before {
    inset: 5px;
  }
  .hero-badge-label {
    max-width: 7.5em;
  }
}
@media (min-width: 2000px) {
  .hero-badge {
    --text-half: calc(var(--text-w) / 2);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-badge {
    inset-inline-start: 4rem;
  }
  .hero-art-inner {
    padding-inline: 4rem;
  }
}

/* the section under the hero makes room for the part of the badge that
   hangs below the hero */
#נעצרתם {
  padding-top: calc(6rem + var(--badge) * var(--badge-scale, 1) - var(--badge-rise));
}

/* Small labels beside the floating buttons, on wide screens only. White pills
   with navy text (14.2:1) and a navy edge, so they read over navy and white. */
@media (min-width: 1025px) {
  body > aside > a.bg-\[\#7F6237\]::after,
  .a11y-button::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--navy-main);
    background: #ffffff;
    color: var(--navy-main);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(8, 18, 45, 0.2);
  }
  body > aside > a.bg-\[\#7F6237\] {
    position: relative;
  }
  body > aside > a.bg-\[\#7F6237\]::after {
    content: "חיוג מהיר";
    left: calc(100% + 10px);
  }
  .a11y-button::after {
    content: "נגישות";
    right: calc(100% + 10px);
  }
}

/* --- the hero seal: a realistic bronze wax seal with "הסנגור" ---
   An image with its own transparency, above the headline: 130px on wide
   screens (on the text column's right edge), 104px on phones (centred, like
   the rest of the phone hero). A very soft shadow lifts it off the photo; no
   frame, no disc behind it. The plain drawing beside it is for high contrast
   mode only. */
.hero-seal {
  margin-bottom: 1.25rem;
  line-height: 0;
}
.hero-seal-img {
  display: block;
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.hero-seal-hc {
  display: none;
  width: 130px;
  height: 130px;
}
@media (max-width: 640px) {
  .hero-seal {
    align-self: center;
    margin-bottom: 0;
  }
  .hero-seal-img,
  .hero-seal-hc {
    width: 104px;
    height: 104px;
  }
}

/* --- the emergency section: centred head, three equal cards, one button ---
   Off-white cards with a hairline edge, a large gold numeral, then the step
   in navy at 20px and its detail in muted text. 48px from the head to the
   cards and 40px from the cards to the button. */
.emergency-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 48px;
}
.emergency-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .emergency-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.emergency-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}
.emergency-num {
  font-size: calc(48px * var(--ts));
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.emergency-card h3 {
  line-height: 1.4;
}
/* no single word left alone on a last line */
.emergency-head p,
.emergency-card h3,
.process-step h3 {
  text-wrap: balance;
}
.emergency-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* the bold words in the About text, white on navy light */
#אודות .about-text strong {
  color: var(--fg);
  font-weight: 700;
}

/* --- the process: one gold hairline timeline on navy ---
   Desktop: four steps in a row, the line running through the middle of the
   numbered gold circles, from the first circle's centre to the last one's.
   Below 1024px: the steps stack and the line runs down the right side, a
   segment from each circle to the next. */
/* The process section follows About, and both are navy: their two 96px
   paddings met as one 192px gap. The process section's top is halved to
   48px, at every width. */
.process-section {
  padding-top: 48px;
}
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-step {
  position: relative;
  padding-inline-start: 80px;
  min-height: 56px;
}
.process-num {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--bronze-on-navy);
  background: var(--navy-main);
  color: var(--bronze-on-navy);
  font-size: calc(20px * var(--ts));
  font-weight: 600;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: -2.5rem;
  inset-inline-start: 27.5px;
  width: 1px;
  background: var(--bronze-on-navy);
  opacity: 0.6;
}
.process-step h3 {
  padding-top: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .process-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    inset-inline: calc((100% - 4.5rem) / 8);
    height: 1px;
    background: var(--bronze-on-navy);
    opacity: 0.6;
  }
  .process-step {
    padding-inline-start: 0;
    padding-top: 80px;
    text-align: center;
  }
  .process-num {
    inset-inline-start: calc(50% - 28px);
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
  .process-step h3 {
    padding-top: 0;
  }
}

/* The Knesset card's link, pinned to the card's bottom so the three cards
   stay equal; 44px tall, the touch target minimum. */
.media-body > p {
  margin-bottom: 0.5rem;
}
.media-link {
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  font-weight: 600;
}
.media-link > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.media-link:hover > span:first-child {
  text-decoration-thickness: 2px;
}

/* --- the media section: three appearance cards on navy ---
   One column up to 1024px (capped so a thumbnail never grows past a comfortable
   size), three equal columns from there. The colours and gold top edge come
   from the shared card rules. The cards are not links, so they do not take the
   practice cards' hover (lift, lighter fill, glow), which reads as clickable;
   on hover only their hairline edges warm towards gold. Grid rows stretch, so
   the three cards are always the same height. */
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}
.media-card {
  transition: border-color 0.2s ease;
}
.media-card:hover {
  border-right-color: rgba(212, 183, 122, 0.5);
  border-bottom-color: rgba(212, 183, 122, 0.5);
  border-left-color: rgba(212, 183, 122, 0.5);
}
/* The heading wraps, if at all, only between its white and its gold half:
   each half stays on one line. On a phone the white half (about 9.3em) is wider
   than the column at 44px, so there the size follows the column width until
   both halves fit, and the menu's text size still multiplies it. When the
   reader enlarges the text on a phone the halves may wrap inside, because
   holding them whole would push them past the screen edge; "שליחות ציבורית"
   still stays together (it fits at the largest step down to 320px). */
.media-heading > span {
  white-space: nowrap;
}
@media (max-width: 639px) {
  html body .media-heading.text-display-md {
    font-size: calc(min(44px, calc((100vw - 3rem) / 9.6)) * var(--ts)) !important;
    line-height: 1.25 !important;
  }
  html:is([data-a11y-text="1"], [data-a11y-text="2"], [data-a11y-text="3"]) .media-heading > span {
    white-space: normal;
  }
}
.media-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-darkest);
}
.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-body {
  flex: 1 1 auto;
}


/* ==========================================================================
   2. ACCESSIBILITY
   ========================================================================== */

/* --- scrollbars ----------------------------------------------------------
   The export hides every scrollbar. On a page seven thousand pixels long that
   removes the only cue showing how much is left, and it removes a control some
   people rely on. They come back. */
::-webkit-scrollbar {
  display: block;
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-thumb {
  background: #77808f;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #e2e6ec;
}

/* --- skip link -----------------------------------------------------------
   First thing the keyboard reaches. Off screen until focused, then a solid
   block at the top right, since the page reads right to left. */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: #0e1e45;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}
.skip-link:focus {
  top: 0.5rem;
}

/* text for screen readers only, never shown */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- focus ---------------------------------------------------------------
   One ring, everywhere, on keyboard focus, in two colours that swap with the
   surface. On white the ring is navy (14.2:1) with a white halo; on the navies
   it is white (11.6 to 17.2:1) with a navy halo. Either way one of the two
   reads against whatever sits next to it, the bronze buttons included. */
:focus-visible {
  outline: 3px solid var(--focus, #0b1a2e);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-halo, rgba(255, 255, 255, 0.95));
  border-radius: 2px;
}
/* the export removes the ring on the form fields; it comes back */
.form-field:focus-visible,
.consent-box:focus-visible {
  outline: 3px solid var(--focus, #0b1a2e);
  outline-offset: 2px;
}

/* --- target size ---------------------------------------------------------
   44 by 44 for every standalone control. Links sitting inside a sentence are
   left alone: making them 44px tall would break the line they live in, and
   they are the inline exception the rule allows for. */
header nav a,
header a[href^="tel"],
footer ul a,
a[href^="tel:"],
a[href^="mailto:"],
a[href*="wa.me"],
button,
summary,
[role="button"] {
  min-height: 44px;
}
header nav a,
footer ul a,
summary {
  display: flex;
  align-items: center;
}
/* 44 applies to both sides. Short labels like "ראשי" are only 35 points wide,
   so the navigation links get enough side padding to reach it. */
header nav a {
  min-width: 44px;
  padding-inline: 0.5rem;
  justify-content: center;
}
a[href^="mailto:"],
a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
}
/* ...but the header's phone box is meant to be hidden below 640px (its
   "hidden sm:flex" classes), and the rule above was overriding that, which
   squeezed the box into four lines on a phone */
@media (max-width: 639px) {
  header a.hidden[href^="tel:"] {
    display: none;
  }
}
/* the wordmark is a link and needs the same room */
header > div > div:first-child > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* in-page anchors in the footer navigation list */
footer li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* links inside running text keep their natural size */
p a,
label a {
  min-height: 0;
  display: inline;
}

/* --- the accordion -------------------------------------------------------
   Kept as native details and summary. The browser already exposes the open
   state and operates it from the keyboard, which is what the standard asks
   for. The marker is removed because the design supplies its own chevron. */
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}

/* --- the contact form ----------------------------------------------------
   Required fields say so in words, not only in colour or in an attribute.
   Errors appear as text under their field and are tied to it with
   aria-describedby; the result of a submit is announced in a live region. */
.form-intro {
  font-size: 13px;
  color: var(--fg-muted, #4a5568);
  margin-bottom: 0.5rem;
}
/* The required mark reads in the muted text colour (7.0:1 on the white
   card), and turns to the error colour only once its field has failed a
   submit (form.js adds .is-error), so it does not look like an error before
   anyone has touched the form. */
.field-required {
  color: var(--fg-muted, #4a5568);
  font-weight: 600;
}
.field-required.is-error {
  color: #8c2f1d;
}
.form-field {
  min-height: 44px;
}
.form-error {
  display: none;
  margin-top: 0.25rem;
  color: #8c2f1d;
  font-size: 13px;
  font-weight: 600;
}
.form-error.is-shown {
  display: block;
}
.form-field.is-invalid {
  border-color: #8c2f1d;
  border-width: 2px;
}
.form-status {
  margin-top: 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg, #0b1a2e);
  min-height: 1.5em;
}
.form-status.is-error {
  color: #8c2f1d;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
/* A native checkbox is 13px wide and nothing moves that. This one is drawn
   from scratch so the box people see is 24px while the area they can hit is
   the full 44 by 44 the standard asks for. */
.consent-box {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.consent-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #ffffff;
  border: 2px solid var(--control-line, #77808f);
}
.consent-box:checked::before {
  background: var(--bronze, #8a6a3c);
  border-color: var(--bronze, #8a6a3c);
}
.consent-box:checked::after {
  content: "✓";
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.consent-row label {
  padding-top: 12px;
  cursor: pointer;
}

/* The row of links at the very bottom of the footer stands on its own, so it
   is not the inline exception and each link gets its own 44px. */
footer .pt-space-lg a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* --- motion --------------------------------------------------------------
   The emergency button pulses for ever. Anyone who has asked their system to
   reduce motion gets a still page. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   3. THE ACCESSIBILITY MENU
   ========================================================================== */

.a11y-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #0e1e45;
  background: #d4b77a;
  color: #0e1e45;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* the navy border is the edge on white sections (14.2:1), the white ring
     inside it the edge on navy ones */
  box-shadow: inset 0 0 0 2px #ffffff, 0 4px 20px rgba(7, 17, 31, 0.35);
}
.a11y-button:hover {
  background: #e0c690;
}
.a11y-button:focus-visible {
  box-shadow: inset 0 0 0 2px #ffffff, 0 0 0 6px rgba(255, 255, 255, 0.95);
}
.a11y-button svg {
  width: 30px;
  height: 30px;
}

.a11y-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 17, 31, 0.6);
}
.a11y-panel.is-open {
  display: flex;
}
.a11y-dialog {
  background: #ffffff;
  color: #0b1a2e;
  border: 2px solid #0b1a2e;
  width: min(420px, 100%);
  max-height: min(86vh, 700px);
  overflow-y: auto;
  padding: 1.25rem;
}
.a11y-dialog h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.a11y-sub {
  font-size: 14px;
  color: #4a5568;
  margin: 0 0 1rem;
}
.a11y-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.a11y-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid #0b1a2e;
  background: #ffffff;
  color: #0b1a2e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.a11y-close:hover {
  background: #f4f6f9;
}
.a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.a11y-options li {
  margin: 0;
}
.a11y-opt {
  width: 100%;
  min-height: 56px;
  padding: 0.5rem;
  border: 2px solid #77808f;
  background: #ffffff;
  color: #0b1a2e;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.a11y-opt:hover {
  background: #f4f6f9;
}
.a11y-opt[aria-pressed="true"] {
  background: #0b1a2e;
  color: #ffffff;
  border-color: #0b1a2e;
}
/* state is never carried by colour alone: a pressed option also says so */
.a11y-opt[aria-pressed="true"]::after {
  content: " ✓";
}
.a11y-wide {
  grid-column: 1 / -1;
}
.a11y-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 2px solid #0b1a2e;
  background: #0b1a2e;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.a11y-statement:hover {
  background: #182d63;
}

/* On a phone the menu button moves above the page's own floating call button
   so neither covers the other. */
@media (max-width: 640px) {
  .a11y-button {
    bottom: 5.5rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }
  .a11y-options {
    grid-template-columns: 1fr;
  }
}

/* --- what the options actually do ---------------------------------------- */

/* Text size lives in assets/css/a11y-text.css, which is generated by
   tools/gen-text-scale.py. It has to be generated, because every size on this
   page is a fixed pixel value on a utility class: changing the font size of
   <body> moved the body from 16px to 22.4px and left the h1 at 56, the h2 at
   32 and every paragraph at 20. Nothing on screen changed. */

/* High contrast.

   The blanket rule below paints every surface white, and the first version of
   it reached the accessibility panel too. The panel's backdrop is a
   semi-transparent dark layer over the whole viewport, so forcing it to opaque
   white turned the screen into a blank sheet the moment the option was pressed
   with the menu open. The menu is excluded here and styled on its own terms
   just below. */
/* The exclusions sit inside :where() so they add no specificity of their own.
   Without that the blanket rule carried three class selectors and beat the
   link rule below it, and links came out plain black: readable, but no longer
   telling you they were links. */
/* The white comes from the body alone, and everything above it is made
   transparent rather than painted white.

   The first version painted every element white. The hero photograph has a
   transparent framing layer sitting directly on top of it, so that layer
   turned into an opaque white sheet and the photograph vanished: measured at
   99% pure white pixels inside the picture, with the image itself still
   reporting visible and fully opaque. Anything else transparent and layered
   would have gone the same way. */
html.a11y-contrast body {
  background-color: #ffffff !important;
  color: #000000 !important;
}
html.a11y-contrast body *:not(:where(.a11y-panel, .a11y-panel *)) {
  background-color: transparent !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #000000 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html.a11y-contrast a:not(:where(.a11y-panel a)),
html.a11y-contrast a:not(:where(.a11y-panel a)) * {
  color: #0b3f91 !important;
  text-decoration: underline !important;
}
html.a11y-contrast button:not(:where(.a11y-panel button)) {
  border: 2px solid #000000 !important;
}
html.a11y-contrast img {
  filter: grayscale(1) contrast(1.3) !important;
}
html.a11y-contrast .about-outline {
  display: none !important;
}
/* the office photo goes (the blanket rule would clear the background image
   anyway; this keeps the layer out of the way entirely) */
html.a11y-contrast .hero-bg {
  display: none !important;
}
/* the seal: the image steps aside for a plain white circle with a black
   edge and the word in black, so it stays readable */
html.a11y-contrast .hero-seal-img {
  display: none;
}
html.a11y-contrast .hero-seal-hc {
  display: block;
}
/* the process circles keep a visible edge and the timeline stays drawn */
html.a11y-contrast .process-num {
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
}
html.a11y-contrast .process-timeline::before,
html.a11y-contrast .process-step::after {
  background: #000000 !important;
  opacity: 1;
}
/* every section keeps an edge, or the page becomes one undivided white field */
html.a11y-contrast main > section {
  border-bottom: 2px solid #000000 !important;
}
/* the menu itself, in the same two colours, but still a window over the page */
html.a11y-contrast .a11y-panel {
  background: rgba(0, 0, 0, 0.7) !important;
}
html.a11y-contrast .a11y-dialog {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
html.a11y-contrast .a11y-opt {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
html.a11y-contrast .a11y-opt[aria-pressed="true"],
html.a11y-contrast .a11y-statement,
html.a11y-contrast .a11y-button {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}
/* the blanket rule above paints the icon inside the button black as well, on
   a black button; it follows the button's white instead */
html.a11y-contrast .a11y-button * {
  color: inherit !important;
}

/* Grey tones.

   This must not be a filter on <body>. A filter makes the element it is on the
   containing block for every position:fixed descendant, so the floating buttons
   and the sticky header stop being measured against the viewport and start
   being measured against a seven thousand pixel document. Measured with the
   filter on the body: the accessibility button moved from 820px, on screen, to
   7188px, which is the bottom of the page. It only came back into view after
   scrolling to the very end.

   So the filter goes on the regions of the page instead, and the accessibility
   controls are left out of it. They are black and white already. */
html.a11y-grayscale header,
html.a11y-grayscale main,
html.a11y-grayscale footer,
html.a11y-grayscale body > aside:not(.a11y-region) {
  filter: grayscale(1);
}

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 700;
}

html.a11y-readable body,
html.a11y-readable body * {
  font-family: Arial, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-spacing body {
  line-height: 1.9 !important;
  letter-spacing: 0.09em !important;
  word-spacing: 0.17em !important;
}
html.a11y-spacing p {
  margin-bottom: 1.8em !important;
}

html.a11y-stop *,
html.a11y-stop *::before,
html.a11y-stop *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M6 2 L6 38 L15 29 L21 43 L28 40 L22 26 L34 26 Z' fill='white' stroke='black' stroke-width='2.5'/></svg>") 4 2, auto !important;
}
html.a11y-cursor a,
html.a11y-cursor button,
html.a11y-cursor summary,
html.a11y-cursor [role="button"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M18 4 L18 24 L14 20 L10 24 L20 42 L36 36 L34 20 L30 18 L28 16 L24 15 L22 4 Z' fill='white' stroke='black' stroke-width='2.5'/></svg>") 16 4, pointer !important;
}

/* ==========================================================================
   4. PHONES (under 640px): the bottom bar, the floating accessibility button
   ========================================================================== */

.mobile-bar {
  display: none;
}

@media (max-width: 639px) {

  /* The accessibility button floats on the right, 12px from the edge, just
     above the bottom bar (73px with its top border) and the iPhone home
     indicator: a 44px gold circle, the minimum touch size, navy icon. It
     stays in this one place; content passes under it while scrolling. */
  .a11y-button {
    right: 12px;
    bottom: calc(81px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
  .a11y-button svg {
    width: 24px;
    height: 24px;
  }

  /* the floating call button gives way to the bottom bar */
  body > aside[aria-label="חיוג מהיר"] {
    display: none;
  }

  /* The bottom bar: two equal buttons, 56px tall, above the iPhone home
     indicator. The page gets the bar's height as bottom padding, so the
     footer and the last of the content always scroll clear of it. */
  .mobile-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 55;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(14, 30, 69, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mobile-bar a {
    flex: 1 1 0;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bar-call {
    background: var(--bronze-on-navy);
    color: var(--navy-main);
  }
  .mobile-bar-wa {
    background: var(--navy-main);
    color: #ffffff;
    border: 1px solid var(--bronze-on-navy);
  }
  .mobile-bar .material-symbols-outlined {
    font-size: 22px;
  }
  .mobile-bar svg {
    width: 20px;
    height: 20px;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* The portrait: centred, smaller (about two thirds of what it was), still
     standing on the hero's bottom edge, the glow centred behind him. */
  .hero-art {
    height: clamp(200px, 54vw, 300px);
  }
  .hero-art-inner {
    justify-content: center;
  }
  .hero-figure {
    max-width: none;
  }
  /* The badge moves to the side and mostly below the hero, so it covers
     neither his face nor his chest: only 28px of it rises into the hero. */
  :root {
    --badge-rise: 28px;
  }
}

html.a11y-contrast .mobile-bar a {
  border: 2px solid #000000 !important;
}

/* ---- Phones: the hero's order, a bigger portrait, no badge ----
   Order on a phone: label, headline, subheadline, services, buttons, the
   portrait, then the callback form, so his face comes before the form. The
   text column and its wrapper step out of the box tree (display: contents),
   so their children and the portrait layer become siblings in the hero's
   column and can be ordered; the portrait has no focusable parts, so the
   keyboard order does not change. The hero is its own stacking context, so
   the headline's soft veil still sits behind the headline. */
@media (max-width: 639px) {
  section.hero {
    isolation: isolate;
    justify-content: flex-start;
    --fade: 13%;   /* he no longer stands on the hero's edge: the cut fades into the navy */
  }
  .hero-inner,
  .hero-inner > div:first-child {
    display: contents;
  }
  .hero-inner > div:first-child > * {
    margin-inline: 1.5rem;
    /* auto, not the buttons row's w-full: 100% plus the margins ran 48px
       past the screen and pushed the whole hero sideways */
    width: auto;
  }
  .hero-inner > div:first-child > :first-child {
    margin-top: 2.5rem;
  }
  .hero-art {
    order: 1;
    height: clamp(300px, 81vw, 450px);
    margin-top: 2rem;
  }
  #callback-form {
    order: 2;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    width: auto;
  }
  /* "a" in the selector: the badge is a tel: link, and the 44px target rule
     for tel: links would otherwise put it back */
  section.hero a.hero-badge {
    display: none;
  }
  #נעצרתם {
    padding-top: 6rem;
  }
  /* the desktop shift towards the text does not apply here: he is centred */
  .hero-figure {
    left: 0;
  }
  /* The hero's own call and WhatsApp buttons step aside on phones: the bottom
     bar offers the same two actions on every screen. They stay in the markup
     for wider screens. The portrait then follows the services row. */
  .hero-services + div {
    display: none;
  }
  /* the services row brings 32px of its own; 8px more makes 40px */
  .hero-art {
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   THE PHONE AND TABLET MENU (1023px and narrower, wherever the desktop menu
   is hidden; assets/js/menu.js)
   The button: three gold lines on the navy header in a 44px target, far left
   of the header, WhatsApp between it and the logo; open, the lines turn into
   an X. The panel: navy main, full screen under the header (which stays on
   top), sliding in from the left; it covers the bottom bar and has its own
   call and WhatsApp buttons. The floating accessibility button (z-index 60)
   stays above it, so the panel's buttons end above that button.
   ========================================================================== */
.mnav-toggle,
.mnav {
  display: none;
}
@media (max-width: 1023px) {
  .mnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mnav-icon {
    position: relative;
    width: 24px;
    height: 18px;
  }
  .mnav-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--bronze-on-navy);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .mnav-icon span:nth-child(1) { top: 0; }
  .mnav-icon span:nth-child(2) { top: 8px; }
  .mnav-icon span:nth-child(3) { top: 16px; }
  .mnav-toggle[aria-expanded="true"] .mnav-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mnav-toggle[aria-expanded="true"] .mnav-icon span:nth-child(2) { opacity: 0; }
  .mnav-toggle[aria-expanded="true"] .mnav-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mnav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5rem;                 /* under the 80px header */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 56;               /* above the bottom bar (55), under the accessibility button (60) */
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy-main);
    padding: 0.5rem 1.5rem calc(137px + env(safe-area-inset-bottom));
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .mnav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }
  .mnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mnav-list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .mnav-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* right, in RTL */
    min-height: 56px;
    padding-block: 0.5rem;
    color: #ffffff;
    font-size: calc(22px * var(--ts, 1));
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }
  .mnav-list a:hover,
  .mnav-list a[aria-current] {
    color: var(--bronze-on-navy);
  }
  .mnav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .mnav-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
  }
  .mnav-call {
    background: var(--bronze-on-navy);
    color: var(--navy-main);
    border: 1px solid var(--bronze-on-navy);
  }
  .mnav-call:hover {
    background: #e0c690;
  }
  .mnav-wa {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--bronze-on-navy);
  }
  .mnav-wa:hover {
    background: var(--navy-light);
  }
  .mnav-cta .material-symbols-outlined {
    font-size: 22px;
  }
  .mnav-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  /* the page behind stays where it is */
  html.mnav-open,
  html.mnav-open body {
    overflow: hidden;
  }
  /* and the see-through header turns solid, so the page does not show
     through it above the panel */
  html.mnav-open header[data-surface] {
    background-color: var(--navy-main);
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .mnav,
  .mnav.is-open,
  .mnav-icon span {
    transition: none;
  }
}
/* high contrast: a white panel with black hairlines and lines, blue
   underlined links, the current section in black on white with a bar */
html.a11y-contrast .mnav {
  background-color: #ffffff !important;
}
html.a11y-contrast .mnav-icon span {
  background-color: #000000 !important;
}
html.a11y-contrast .mnav-toggle {
  border: 2px solid #000000 !important;
}
html.a11y-contrast .mnav-list li + li {
  border-top-color: #000000 !important;
}
html.a11y-contrast .mnav-list a[aria-current] {
  color: #000000 !important;
  font-weight: 800;
  border-inline-start: 6px solid #000000 !important;
  padding-inline-start: 0.75rem;
}
html.a11y-contrast .mnav-cta a {
  border: 2px solid #000000 !important;
}
html.a11y-grayscale .mnav {
  filter: grayscale(1);
}

/* ==========================================================================
   THE 404 PAGE (404.html): navy main under the header, the message centred,
   a large muted gold 404, and two buttons: back to the home page (solid
   gold, navy text 7.4:1) and call the office (gold outline, white text).
   ========================================================================== */
main.not-found {
  background-color: var(--navy-main);
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.not-found-code {
  margin: 0 0 0.5rem;
  font-size: clamp(88px, 18vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  /* gold at 55% over navy main, as a solid colour: 3.43:1, enough for text
     this large, and still quieter than the headline */
  color: #7b7262;
  direction: ltr;
}
main.not-found h1 {
  color: #ffffff;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.not-found-text {
  margin: 0 0 2.5rem;
  color: var(--on-navy-muted, #c3ccda);
  font-size: 18px;
  line-height: 1.7;
  max-width: 34em;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.not-found-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 2rem;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.not-found-home {
  background: var(--bronze-on-navy);
  color: var(--navy-main);
  border: 1px solid var(--bronze-on-navy);
}
.not-found-home:hover {
  background: #e0c690;
}
.not-found-call {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--bronze-on-navy);
}
.not-found-call:hover {
  background: var(--navy-light);
}
.not-found-call .material-symbols-outlined {
  font-size: 22px;
  color: var(--bronze-on-navy);
}
@media (max-width: 640px) {
  .not-found-actions {
    flex-direction: column;
    align-self: stretch;
  }
  .not-found-actions a {
    width: 100%;
  }
}
html.a11y-contrast main.not-found {
  background-color: #ffffff !important;
}
html.a11y-contrast .not-found-code {
  color: #000000 !important;
}
html.a11y-contrast .not-found-actions a {
  border: 2px solid #000000 !important;
}

/* ==========================================================================
   THE PRIVACY POLICY (privacy-policy.html): the accessibility statement's
   type, with the reading lines held to about 70 characters. Two tables:
   a plain table on wide screens; on phones each row becomes a card with the
   column name above each value (the .cell-label spans, hidden from screen
   readers, which still get the real headers through the table roles).
   ========================================================================== */
.policy section > h2,
.policy section > p,
.policy section > ul {
  max-width: 70ch;
}
.policy-table {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.policy-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
}
.policy-table th {
  padding: 0.75rem 1rem;
  background: #f4f6f9;
  color: var(--fg, #0b1a2e);
  font-weight: 700;
  border-bottom: 2px solid var(--line, #e2e6ec);
  vertical-align: bottom;
}
.policy-table td {
  padding: 0.75rem 1rem;
  color: var(--fg-muted, #4a5568);
  border-bottom: 1px solid #e2e6ec;
  vertical-align: top;
}
.policy-table .cell-label {
  display: none;
}
@media (max-width: 640px) {
  .policy-table table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
    width: 100%;
  }
  /* the header row stays for screen readers only */
  .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .policy-table tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f4f6f9;
    border: 1px solid #e2e6ec;
  }
  .policy-table td {
    padding: 0.25rem 0;
    border: 0;
  }
  .policy-table td + td {
    margin-top: 0.5rem;
  }
  .policy-table .cell-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--fg, #0b1a2e);
  }
}

/* the hint under "במה מדובר?": the form's own helper text, close under the
   field */
.form-hint {
  margin: 0.375rem 0 0;
  line-height: 1.5;
}

/* The honeypot: a field only bots fill in ("website"). Off the page above
   the top edge (not to the side, which in a right-to-left page could add a
   sideways scroll), hidden from assistive technology by aria-hidden on its
   wrapper, out of the tab order (tabindex -1), never display:none, which some
   bots skip. */
.hp-field {
  position: absolute;
  top: -10000px;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* 44px like every other control, so the site's own target-size audit, which
   measures every input, has nothing to flag */
.hp-field input {
  width: 44px;
  height: 44px;
}
/* the phone number inside the "could not send" message: the message's own
   colour (error red on the white card, light coral on the navy hero), and
   underlined so it reads as a link */
.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Bullets for the content lists on the accessibility statement and the
   privacy policy (the only pages with list-disc lists inside <main>). The
   generated sheet resets every list to no markers and has no list-disc or
   pr-space-lg rules, so the markers and their room on the right (the start
   side in RTL) are set here. Gold #8A6A3C on the white page (4.9:1); black
   in high contrast. Navigation, menus, the footer and the label lists
   (list-none) are untouched. */
main ul.list-disc {
  list-style: disc outside;
  padding-inline-start: 1.5rem;
}
main ul.list-disc > li::marker {
  color: #8a6a3c;
}
html.a11y-contrast main ul.list-disc > li::marker {
  color: #000000;
}

/* The consent boxes are drawn by .consent-box::before and ::after (the gold
   box and its tick). The generated sheet's form defaults also paint the
   input itself when it is checked (a blue currentcolor fill with their own
   white tick, also on hover and focus) and put a blue ring on any focus,
   which showed as a blue square behind the gold box. These win over all of
   those (input.consent-box[type] outranks [type]:checked:hover/:focus). The
   keyboard focus ring stays: .consent-box:focus-visible draws an outline,
   which this does not touch. */
input.consent-box[type="checkbox"],
input.consent-box[type="checkbox"]:focus,
input.consent-box[type="checkbox"]:hover,
input.consent-box[type="checkbox"]:checked,
input.consent-box[type="checkbox"]:checked:hover,
input.consent-box[type="checkbox"]:checked:focus {
  background-color: transparent;
  background-image: none;
  border-color: transparent;
  box-shadow: none;
}
/* Windows high contrast (forced colours): keep the drawn box, not the
   native one the generated sheet switches back to there */
@media (forced-colors: active) {
  input.consent-box[type="checkbox"]:checked {
    appearance: none;
  }
}
/* High contrast: the drawn box in black and white like the rest of that
   mode (the page-wide high-contrast rules do not reach ::before/::after):
   a black edge, black fill and white tick when checked, and a black focus
   ring (the hero's white ring would vanish on the white page). */
html.a11y-contrast .consent-box::before {
  background: #ffffff !important;
  border-color: #000000 !important;
}
html.a11y-contrast .consent-box:checked::before {
  background: #000000 !important;
  border-color: #000000 !important;
}
html.a11y-contrast .consent-box:checked::after {
  color: #ffffff !important;
}
html.a11y-contrast .consent-box:focus-visible {
  outline-color: #000000 !important;
}

/* High contrast: every keyboard focus ring black, 3px, as in normal mode.
   The dark sections (header, hero, media, footer) set a white ring for their
   navy background, and some fields rely on a box-shadow ring that this mode
   removes, so on the white high-contrast page those rings were white or
   transparent. Normal mode is untouched. */
html.a11y-contrast :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

/* Phones, where the sticky call/WhatsApp bar is shown: the browser keeps
   anything it scrolls into view (keyboard focus, in-page links) clear of
   the bar and of the floating accessibility button above it. The bar is
   73px tall (56px buttons, 8px padding above and below, a 1px top edge);
   the button's top is 125px above the bottom edge (81px + its 44px); 12px
   more as a margin, plus the iPhone safe area. */
@media (max-width: 639px) {
  html {
    scroll-padding-bottom: calc(137px + env(safe-area-inset-bottom));
  }
}
