/* Match the Wix header. Logo sits at 3% from the left (160×38).
   Menu links are right-aligned at 17.01% and each keeps a bullet slot
   (• plus 3px) so the current-page dot does not shift the row. */

@media (min-width: 861px) {
  .topbar-inner {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 90px;
    box-sizing: border-box;
  }

  .logo,
  a.logo {
    position: absolute;
    left: 3%;
    top: 26px;
    margin: 0;
    width: 160px;
    height: 38px;
  }

  a.logo img {
    width: 160px;
    height: 38px;
  }

  .nav-desktop {
    display: flex;
    position: static;
    margin: 0;
    gap: 0;
  }

  .menu-toggle { display: none !important; }

  .nav-links {
    position: absolute;
    right: 17.01%;
    top: 24px;
    height: 38px;
    margin: 0;
    gap: 0;
    align-items: center;
  }

  .nav-links a {
    gap: 0;
    margin: 0;
    padding: 0;
    font-family: "marzo-w00-regular", fantasy;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: none;
    color: #707070;
  }

  .nav-links a::before {
    content: "•";
    width: 6.83px;
    text-align: center;
    box-sizing: content-box;
    height: auto;
    margin: 0;
    padding: 0 3px 0 0;
    background: none;
    border-radius: 0;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    opacity: 0;
  }

  .nav-links a:hover,
  .nav-links a.current { color: #000; }

  .nav-links a.current::before {
    opacity: 1;
    content: "•";
    width: 6.83px;
    height: auto;
    border-radius: 0;
    background: none;
  }

  .bd-lang,
  .nav-desktop .lang-wrap {
    position: absolute;
    left: calc(97.46% - 97.3px);
    right: auto;
    top: 22px;
    height: 45px;
    margin: 0;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 860px) {
  :root { --bd-bar: 60px; }

  .topbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px 0 12px;
    gap: 22px;
    box-sizing: border-box;
  }

  .logo,
  a.logo {
    position: static;
    order: 1;
    left: auto;
    top: auto;
    margin: 0;
    width: auto;
    height: 32px;
    flex: 0 1 auto;
    min-width: 0;
  }

  a.logo img {
    display: block;
    width: auto !important;
    height: 32px !important;
    max-width: min(148px, 46vw);
  }

  .menu-toggle {
    display: block !important;
    position: static;
    order: 2;
    left: auto;
    top: auto;
    flex: 0 0 36px;
    width: 36px;
    height: 40px;
    margin: 0;
    z-index: 2;
  }

  .nav-desktop {
    display: flex !important;
    position: static;
    order: 3;
    margin: 0 0 0 auto;
    gap: 0;
    min-width: 0;
  }

  .nav-links { display: none !important; }

  .bd-lang,
  .nav-desktop .lang-wrap {
    position: static;
    right: auto;
    top: auto;
    height: auto;
    margin: 0;
    transform: none;
  }
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  font-family: "marzo-w00-regular", fantasy;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: #707070;
}

.nav-drawer-links a::before {
  content: "•";
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 3px 0 0;
  background: none;
  border-radius: 0;
  color: #000;
  font-weight: 700;
  display: inline-block;
  opacity: 0;
}

.nav-drawer-links a.current { color: #000; }
.nav-drawer-links a.current::before { opacity: 1; }

html[dir="rtl"] .nav-links a::before,
html[dir="rtl"] .nav-drawer-links a::before {
  padding: 0 0 0 3px;
}

/* Same header motion as the Wix menu bar: fixed over the page, fade out
   after scrolling down, fade back in on scroll-up or when the pointer
   returns to the top of the page. */
:root { --bd-bar: 72px; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  background: #fff;
  transition: opacity 0.3s cubic-bezier(0.5, 0, 0.75, 0);
}

.site,
body:not(:has(.site)) {
  padding-top: var(--bd-bar, 72px);
}

.topbar.is-scrolled-away {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.5, 0, 0.75, 0),
    visibility 0s linear 0.3s;
}

@media (min-width: 861px) {
  :root { --bd-bar: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .topbar.is-scrolled-away {
    transition: none;
  }
}
