header .current-menu-item > a > span,
header .current-menu-parent > a > span,
header .current_page_item > a > span,
header .current_page_parent > a > span {
  color: var(--brand-secondary-color) !important;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 999;
  background: var(--brand-primary-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
}
.header * {
  color:var(--brand-primary-color-text)
}
.header-desktop.hide {
  transform: translateY(-150%);
}

.header-mobile {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.logo-mobile {
  display: block;
  padding: 1.5rem;
  max-width: 100px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.header-mobile .logo-mobile.hide {
  pointer-events: none;
  opacity: 0;
}
.header-mobile .burger {
  z-index: 1001;
  width: fit-content;
  padding: 1.5rem;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}
.header-mobile .burger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background:  var(--brand-primary-color);
  transition: all 0.3s ease;
}

.header-mobile .burger span:first-child {
  transform: translateY(-8px);
}
.header-mobile .burger span:last-child {
  transform: translateY(8px);
}

.header-mobile .burger.open span:first-child {
  transform: rotate(-45deg) translateY(4px);
}
.header-mobile .burger.open span:nth-child(2) {
  opacity: 0;
}
.header-mobile .burger.open span:last-child {
  transform: rotate(45deg) translateY(-4px);
}
.header-mobile .burger.open span {
  box-shadow: none;
}

.burger-menu {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  padding: 50px 24px 24px 50px;
  border-radius: 0 0 0 7px;
  background: #1d2f2ec0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}
.burger-menu.active {
  transform: translateX(0);
  height: 100vh;
  z-index: 1000;
  overflow: auto;
}

.burger-menu a {
  font-size: 0.9rem;
}
.mobile-menu li {
  font-size: 1rem;
  font-weight: 500;
  line-height: 3.5rem;
  margin: 0;
}

.logo {
  height: 100%;
}

.menu-item a span:hover {
  color: var(--brand-primary-color-hover);
}
.logo img {
  object-fit: contain;
  height: inherit;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar {
  gap: 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
}

.nav-list {
  max-width: 1200px;
  width: 100%;
}

.nav-list ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  position: relative;
  white-space: nowrap;
}

.nav-list a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.54px;
  position: relative;
}

.nav-list li:not(:last-child) a::after {
  content: '';
  display: block;
  width: 2px;
  height: 1rem;
  background: var(--brand-primary-color-text);
  position: absolute;
  top: 2px;
  right: -1.5rem;
}
.nav-list li:has(.children) a {
  padding-right: 10px;
}
.nav-list li:has(.children)::before {
  content: '▶';
  font-size: 0.6rem;
  position: absolute;
  right: 0;
  color: var(--brand-primary-color-text);
  transform: translateX(5px) translateY(5px);
  transition: transform 0.2s ease;
}
.nav-list li:has(.children):hover::before {
  transform: rotate(90deg) translateX(5px) translateY(-5px);
}

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

.nav-list li .children {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  padding: 2rem;
  background: var(--brand-primary-color);
  border-radius: 10px;
  z-index: 999;
  transform: translateX(-2rem) translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}
.nav-list li:hover .children {
  transform: translateX(-2rem) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.nav-list li .children li {
  margin: 0;
  padding: 0.5rem 0;
}
.nav-list li .children li a {
  padding: 1rem 0;
  transition: all 0.15s ease;
}

.nav-list li .children li a::after {
  display: none;
}

.mobile-menu .children {
  padding-left: 1.5rem;
}

@media (min-width: 992px) and (max-width: 1400px) {
  header a.button {
    display: none !important;
  }
}
@media (max-width: 1200px) {
  .logo {
    width: 150px;
  }
  .nav-list li:not(:last-child) a::after {
    right: -1rem;
  }
  .nav-list {
    gap: 2rem !important;
  }
}
@media (max-width: 992px) {
  .header-mobile {
    display: flex;
  }
  .header-desktop {
    display: none;
  }
  .nav-list li:not(:last-child) a::after {
    display: none;
  }
  .navbar {
    flex-direction: column;
    margin-top: 1rem;
  }
}

.mobile-menu .children li {
  opacity: 0;
  line-height: 0;
}
.mobile-menu .children.open li {
  opacity: 1;
  line-height: 3.5rem;
}

.mobile-menu span.submenu-arrow {
  content: '▶';
  font-size: 1rem;
  top: 0;
  right: 0;
  padding: 0 50px;
  position: absolute;
  display: block;
  color: var(--brand-primary-color-text);
  transition: transform 0.2s ease;
}
.mobile-menu span.submenu-arrow.open {
  transform: rotate(90deg);
}
