/*
  App4everyone's header: the line with the phone, and the menu. Every page of app4everyone.com has it,
  the business pages and the apps' sites under /viyomi/, /sikumit/ and /vitrina/ alike (Ariel, 29.10.2026),
  and each of those has its own stylesheet. So everything here has class names of its own, sizes in rem,
  and its own font, box sizing and colours, and the page links this file after its own stylesheet.

  No scripts (the CSP blocks them): the submenus of the apps open on hover and on keyboard
  focus. Below 1000px the menu hides behind a "תפריט" button, a checkbox, and opens as a list with
  the submenus under their apps; there the header is not sticky, so the open list never covers the page.
*/

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.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-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.topline,
.topbar {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Heebo", system-ui, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.topline svg,
.topbar svg {
  flex: none;
}

/* Words for screen readers only: ViYomi's stylesheet has no such class, so the header brings its own. */
.topline .visually-hidden,
.topbar .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The page's first line: the phone, and a word about one of the apps. Its colour is the app's. */

/* The line on top in each section's colour: the business's petrol blue of its logo on its own pages
   (Ariel, 6.11.2026: "בצבע יותר מתאים", until then ViYomi's green), ViYomi's green, Sikumit's purple, and
   since 23.11.2026 Vitrina's terracotta (white on it is 6.27:1). */
.topline {
  background: #0f5e7a;
  color: #ffffff;
  font-size: 0.9375rem;
}

.topline--viyomi {
  background: #1b6b3a;
}

.topline--sikumit {
  background: #5a4bc2;
}

.topline--vitrina {
  background: #a63f1a;
}

.topline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 22px;
}

.topline p {
  margin: 0;
}

.topline a {
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.topline a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.topline a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  border-radius: 6px;
}

.topline-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  white-space: nowrap;
  text-decoration: none;
}

.topline-phone:hover {
  text-decoration: underline;
}

.topline-phone svg {
  width: 18px;
  height: 18px;
}

/* The menu bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #1d1d1f;
}

/* Anchors and keyboard focus stop below the sticky bar, never under it. */
html {
  scroll-padding-top: 88px;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.topbar a:focus-visible,
.menu-toggle:focus-visible + .menu-button {
  outline: 3px solid #0071e3;
  outline-offset: 2px;
  border-radius: 10px;
}

.topbar-logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 48px;
}

.topbar-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 0 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
}

.menu-link:hover,
.has-sub:hover > .menu-link {
  background: #f0f0f3;
  color: #000000;
}

/* Three apps in the Hebrew menu since 23.11.2026 (Vitrina): just above 1000px the bar had some 12px to spare.
   There the links stand a little closer, so that it stays on one line, with larger text too. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .topbar-inner {
    column-gap: 20px;
  }

  .menu {
    column-gap: 16px;
  }

  .menu-link {
    padding: 0 10px;
  }
}

/* The page you are on, or the app whose page it is. */
.menu-link[aria-current] {
  font-weight: 700;
  box-shadow: inset 0 -3px 0 #0071e3;
  border-radius: 12px 12px 0 0;
}

.menu-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.has-sub:hover .menu-chevron,
.has-sub:focus-within .menu-chevron {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% - 2px);
  inset-inline-start: 0;
  z-index: 1;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 18px 40px -12px rgba(0, 0, 0, 0.28);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s linear 0.15s;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 1rem;
  white-space: nowrap;
}

.submenu a:hover {
  background: #f0f0f3;
  color: #000000;
}

.menu-lang {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: #424245;
  font-size: 0.9375rem;
}

.topbar a.menu-lang:hover {
  color: #000000;
  text-decoration: underline;
}

/* The "תפריט" button of small screens: a checkbox, out of sight but in the tab order, and its label. */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
}

/* Download links: a computer opens the QR page, a phone goes straight to Google Play. */
@media (hover: hover) and (pointer: fine) {
  .topbar .on-phone {
    display: none;
  }
}

@media not all and (hover: hover) and (pointer: fine) {
  .topbar .on-computer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .submenu,
  .menu-chevron {
    transition: none;
  }
}

@media (max-width: 999px) {
  html {
    scroll-padding-top: 0;
  }

  .topline-inner {
    justify-content: center;
    padding: 6px 16px;
    text-align: center;
  }

  .topbar {
    position: relative;
  }

  .topbar-inner {
    gap: 0 12px;
    min-height: 64px;
    padding: 0 16px;
  }

  .topbar-logo img {
    height: 34px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-inline-start: auto;
    padding: 0 16px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #ffffff;
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }

  .menu-button svg {
    width: 20px;
    height: 20px;
  }

  .menu-button .menu-close,
  .menu-toggle:checked + .menu-button .menu-open {
    display: none;
  }

  .menu-toggle:checked + .menu-button .menu-close {
    display: block;
  }

  .menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 16px;
  }

  .menu-toggle:checked ~ .menu {
    display: flex;
  }

  .menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-item {
    border-top: 1px solid #e8e8ed;
  }

  .menu-link {
    display: flex;
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    font-size: 1.125rem;
  }

  .menu-link:hover,
  .has-sub:hover > .menu-link {
    background: none;
  }

  .menu-link[aria-current] {
    box-shadow: none;
    color: #0066cc;
  }

  .menu-chevron {
    display: none;
  }

  .submenu {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    min-width: 0;
    padding: 0 0 10px;
    padding-inline-start: 16px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .submenu a {
    min-height: 44px;
    padding: 6px 8px;
    color: #424245;
    /* A long name, as "For organizations and local authorities", wraps in its column instead of
       running over the one beside it (12.11.2026). */
    white-space: normal;
  }

  .menu-lang {
    align-self: flex-start;
    border-top: 0;
  }
}

@media print {
  .topline,
  .topbar {
    display: none;
  }
}
