.siteHeader {
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1003;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.siteHeader.is-scrolled {
  background-color: #000000;
}

.siteHeader__container {
  align-items: center;
  display: flex;
  gap: 24px;
  height: 98px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  width: 90%;
}

.siteHeader__brand img {
  display: block;
  height: auto;
  width: 282px;
}

.siteHeader__nav {
  margin: 0 auto;
}

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

.siteHeader__menu > li {
  position: relative;
}

.siteHeader__menu > li.menu-item-has-children::before {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: -14px;
  right: -14px;
  height: 16px;
}

.siteHeader__menu > li > a {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  gap: 4px;
  line-height: 1.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.siteHeader__menu > li > a:hover {
  opacity: 0.85;
}

.siteHeader__menu > li.menu-item-has-children > a::after {
  background-image: var(
    --site-header-chevron,
    url("../icons/header-chevron.svg")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  content: "";
  display: block;
  height: 24px;
  width: 24px;
}

.siteHeader__menu .sub-menu {
  background: #05262e;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  left: 0;
  list-style: none;
  margin: 0;
  width: 272px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 10px);
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 50;
  padding: 0;
}

.siteHeader__menu .sub-menu > li:first-child {
  padding: 22px 0 0 0;
}

.siteHeader__menu .sub-menu > li:last-child {
  padding: 0 0 22px 0;
}

.siteHeader__menu > li.menu-item-has-children:hover > .sub-menu,
.siteHeader__menu > li.menu-item-has-children:focus-within > .sub-menu,
.siteHeader__menu > li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.siteHeader__menu .sub-menu > li > a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 30px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.siteHeader__menu .sub-menu > li > a:hover,
.siteHeader__menu .sub-menu > li:hover {
  background: #021b22;
  color: #ffffff;
}

.siteHeader__actions {
  align-items: center;
  display: flex;
  gap: 16px;
  position: relative;
}

.siteHeader__button {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  line-height: 1.6;
  padding: 10px 20px;
  text-decoration: none;
}

.siteHeader__button--primary {
  background: #00ccff;
  border: 1px solid #00ccff;
  color: #ffffff;
}

.siteHeader__button--primary:hover {
  background: #00728e;
  border: 1px solid #00728e;
}

.siteHeader__search {
  position: relative;
  z-index: 4;
}

.siteHeader__searchForm {
  align-items: center;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 4px;
  display: flex;
  gap: 0;
  height: 44px;
  overflow: hidden;
  position: relative;
  top: auto;
  transform: none;
  transition:
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  width: 122px;
}

.siteHeader__search.is-open .siteHeader__searchForm {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  width: 480px;
}

.siteHeader__searchForm:focus-within {
  border-color: rgba(255, 255, 255, 0.9);
}

.siteHeader__searchTrigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  gap: 10px;
  height: 100%;
  line-height: 1.6;
  padding: 0 14px;
  transition: background-color 0.18s ease;
}

.screen-reader-text {
  display: none;
}

.siteHeader__searchTrigger img {
  display: block;
  height: 20px;
  width: 20px;
}

.siteHeader__searchTrigger span {
  transition:
    opacity 0.14s ease,
    transform 0.18s ease;
}

.siteHeader__searchTrigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.siteHeader__search.is-open .siteHeader__searchTrigger span {
  opacity: 0;
  transform: translateX(-6px);
  width: 0;
}

.siteHeader__searchInput {
  background: transparent;
  border: 0;
  color: #ffffff;
  flex: 0 1 auto;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  outline: none;
  padding: 0;
  transform: translateX(10px);
  transition:
    opacity 0.14s ease,
    transform 0.2s ease;
  width: 0;
}

.siteHeader__search.is-open .siteHeader__searchInput {
  flex: 1 1 auto;
  opacity: 1;
  transform: translateX(0);
  width: auto;
}

.siteHeader__searchInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.siteHeader__searchSubmit {
  align-items: center;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  margin-right: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 0.14s ease,
    transform 0.2s ease;
  width: 42px;
}

.siteHeader__search.is-open .siteHeader__searchSubmit {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.siteHeader__searchSubmit img {
  display: block;
  height: 20px;
  width: 20px;
}

.siteHeader__searchSubmit:hover {
  background: rgba(255, 255, 255, 0.08);
}

.siteHeader__lang,
.siteHeader__button--primary {
  transition:
    opacity 0.18s ease,
    transform 0.2s ease,
    visibility 0s linear;
}

.siteHeader__actions.is-search-open .siteHeader__lang,
.siteHeader__actions.is-search-open .siteHeader__button--primary {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  visibility: hidden;
}

.siteHeader__button img {
  display: block;
  height: 24px;
  width: 24px;
}

.siteHeader__lang {
  position: relative;
}

/* ── Desktop lang-menu ── */
.lang-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level trigger link */
.lang-menu > li > a {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  gap: 8px;
  line-height: 1.6;
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
}

/* Chevron on items with a dropdown */
.lang-menu > li.menu-item-has-children > a::after {
  background-image: var(
    --site-header-chevron,
    url("../icons/header-chevron.svg")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  content: "";
  display: block;
  height: 20px;
  transition: transform 0.2s ease;
  width: 20px;
}

/* WPML flag images inside the menu */
.lang-menu img {
  border-radius: 2px;
  display: inline-block;
  height: 16px;
  width: auto;
}

/* Dropdown sub-menu — matches the nav sub-menu look */
.lang-menu .sub-menu {
  background: #05262e;
  border-radius: 10px;
  list-style: none;
  margin: 0;
  min-width: 150px;
  opacity: 0;
  padding: 8px 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 50;
}

.lang-menu > li:hover > .sub-menu,
.lang-menu > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu .sub-menu > li > a {
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  gap: 8px;
  line-height: 1.5;
  padding: 8px 20px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.lang-menu .sub-menu > li > a:hover {
  background: #021b22;
  color: #ffffff;
}

.siteHeader__mobileToggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.siteHeader__mobileToggle span {
  background: #ffffff;
  display: block;
  height: 2px;
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  width: 100%;
}

/* Hamburger → X when menu is open */
.siteHeader.is-open .siteHeader__mobileToggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.siteHeader.is-open .siteHeader__mobileToggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.siteHeader.is-open .siteHeader__mobileToggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1280px) {
  .siteHeader {
    padding-left: 40px;
    padding-right: 40px;
  }

  .siteHeader__button--primary {
    display: none;
  }

  .siteHeader__searchForm {
    width: 122px;
  }

  .siteHeader__search.is-open .siteHeader__searchForm {
    width: 420px;
  }
}

@media (max-width: 1024px) {
  .siteHeader {
    position: fixed;
    padding-left: 24px;
    padding-right: 24px;
  }

  .siteHeader__container {
    height: 78px;
  }

  .siteHeader__brand img {
    width: 198px;
  }

  .siteHeader__mobileToggle {
    display: inline-flex;
    height: 24px;
    width: 30px;
  }

  .siteHeader__nav {
    background: #05262e;
    border-radius: 12px;
    left: 24px;
    margin: 0;
    opacity: 0;
    padding: 16px;
    pointer-events: none;
    position: absolute;
    right: 24px;
    top: 92px;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
    z-index: 60;
  }

  .siteHeader.is-open .siteHeader__nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .siteHeader__menu > li > a {
    justify-content: space-between;
    padding: 10px 0;
  }

  .siteHeader__menu > li.menu-item-has-children::before {
    display: none;
  }

  .siteHeader__menu .sub-menu {
    border-radius: 8px;
    display: none;
    margin-top: 6px;
    opacity: 1;
    padding: 10px 0;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .siteHeader__menu > li.menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  .siteHeader__search,
  .siteHeader__lang {
    display: none;
  }

  /* Hide original nav — replaced by the mobile drawer */
  .siteHeader__nav {
    display: none;
  }
}

/* ── Mobile Drawer ──────────────────────────────────────────── */

.siteHeader__drawer {
  display: none;
}

@media (max-width: 1024px) {
  /* Full-screen slide-in panel */
  .siteHeader__drawer {
    background: linear-gradient(180deg, #082129 0%, #06161c 100%);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1002;
  }

  .siteHeader.is-open ~ .siteHeader__drawer {
    transform: translateX(0);
  }

  /* Body scroll lock applied via JS; insurance rule */
  .siteHeader.is-open ~ .siteHeader__drawer,
  .siteHeader.is-open ~ .siteHeader__drawer * {
    -webkit-overflow-scrolling: touch;
  }

  /* ── Drawer inner layout ── */
  .siteHeader__drawerBody {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    /* Push content below the fixed header bar */
    padding-top: 78px;
  }

  /* ── Nav links ── */
  .siteHeader__drawerNav {
    flex: 1;
    padding: 6px 0 10px;
  }

  .siteHeader__drawerMenu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .siteHeader__drawerMenu > li > a {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #ffffff;
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    padding: 14px 22px;
    text-decoration: none;
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }

  .siteHeader__drawerMenu > li.menu-item-has-children {
    position: relative;
  }

  .siteHeader__drawerMenu > li.menu-item-has-children > a {
    padding-right: 70px;
  }

  .siteHeader__drawerMenu > li > a:hover,
  .siteHeader__drawerMenu > li.current-menu-item > a,
  .siteHeader__drawerMenu > li.current-menu-ancestor > a {
    background: rgba(0, 204, 255, 0.06);
    color: #00ccff;
  }

  /* Chevron for dropdown items */
  .siteHeader__drawerMenu > li.menu-item-has-children > a::after {
    display: none;
  }

  .siteHeader__drawerSubmenuToggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 0;
    transition: background-color 0.15s ease;
    width: 52px;
  }

  .siteHeader__drawerSubmenuToggle::before {
    background-image: var(
      --site-header-chevron,
      url("../icons/header-chevron.svg")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    content: "";
    display: block;
    height: 20px;
    transition: transform 0.22s ease;
    width: 20px;
  }

  .siteHeader__drawerSubmenuToggle:hover,
  .siteHeader__drawerSubmenuToggle:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }

  .siteHeader__drawerMenu > li.menu-item-has-children.is-open > .siteHeader__drawerSubmenuToggle::before {
    transform: rotate(180deg);
  }

  /* Drawer sub-menu */
  .siteHeader__drawerMenu .sub-menu {
    background: rgba(0, 0, 0, 0.18);
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .siteHeader__drawerMenu > li.is-open > .sub-menu {
    display: block;
  }

  .siteHeader__drawerMenu .sub-menu > li > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.5;
    padding: 10px 22px 10px 34px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }

  .siteHeader__drawerMenu .sub-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
  }

  /* ── Drawer footer actions ── */
  .siteHeader__drawerFoot {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px 28px;
  }

  /* CTA button — full width */
  .siteHeader__drawerCta {
    background: #00ccff;
    border-radius: 6px;
    color: #ffffff;
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.18s ease;
  }

  .siteHeader__drawerCta:hover {
    opacity: 0.85;
  }

  /* Search form */
  .siteHeader__drawerSearch form {
    align-items: center;
    background: rgba(5, 32, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    height: 44px;
    overflow: hidden;
  }

  .siteHeader__drawerSearch input[type="search"] {
    background: transparent;
    border: 0;
    color: #ffffff;
    flex: 1;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    min-width: 0;
    outline: none;
    padding: 0 14px;
  }

  .siteHeader__drawerSearch input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }

  .siteHeader__drawerSearch button[type="submit"] {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 100%;
    justify-content: center;
    padding: 0 14px;
  }

  .siteHeader__drawerSearch button[type="submit"] img {
    display: block;
    filter: brightness(0) invert(1);
    height: 18px;
    opacity: 0.55;
    width: 18px;
  }

  /* Language button */
  /* Lang menu inside the mobile drawer */
  .siteHeader__lang--drawer {
    position: static;
  }

  .lang-menu--drawer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .lang-menu--drawer > li > a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    gap: 6px;
    line-height: 1.5;
    padding: 5px 10px;
    text-decoration: none;
    transition:
      background-color 0.15s ease,
      color 0.15s ease,
      border-color 0.15s ease;
  }

  .lang-menu--drawer > li.current-lang > a,
  .lang-menu--drawer > li.current-menu-item > a {
    border-color: #00ccff;
    color: #00ccff;
  }

  .lang-menu--drawer > li > a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
  }

  /* Sub-menu from WPML in drawer — expand inline */
  .lang-menu--drawer .sub-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
  }

  .lang-menu--drawer .sub-menu > li > a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    gap: 6px;
    line-height: 1.5;
    padding: 5px 10px;
    text-decoration: none;
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }

  .lang-menu--drawer .sub-menu > li > a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
  }

  /* Hide chevron arrows on drawer lang menu */
  .lang-menu--drawer > li.menu-item-has-children > a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .siteHeader {
    padding-left: 0px;
    padding-right: 0px;
  }

  .siteHeader__container {
    height: 70px;
  }

  .siteHeader__brand img {
    width: 164px;
  }

  .siteHeader__drawerBody {
    padding-top: 70px;
  }

  .siteHeader__drawerMenu > li > a {
    font-size: 15px;
    padding: 12px 16px;
  }

  .siteHeader__drawerMenu > li.menu-item-has-children > a {
    padding-right: 62px;
  }

  .siteHeader__drawerSubmenuToggle {
    height: 48px;
    right: 2px;
    width: 48px;
  }

  .siteHeader__drawerMenu .sub-menu > li > a {
    padding: 9px 16px 9px 26px;
  }

  .siteHeader__drawerFoot {
    padding: 16px 16px 22px;
  }
}
