@charset "utf-8";

@import "global.css";

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: var(--header-z-index);
  background: #404040;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.transparent {
  background: linear-gradient(
    to bottom,
    rgba(64, 64, 64, 0.15) 0%,
    rgba(64, 64, 64, 0.1) 70%,
    rgba(64, 64, 64, 0.05) 90%,
    rgba(64, 64, 64, 0) 100%
  );
  backdrop-filter: blur(10px);
}

header.opaque {
  background: #404040;
}

header div.wrapper {
  width: 100%;
  padding: 10px 16px;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper {
    width: var(--desktop-max-width);
    padding: 13px 0;
  }
}

header div.wrapper div.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper div.container {
    gap: 0px;
  }
}

header div.wrapper div.container div.logo {
  cursor: pointer;
}

header div.wrapper div.container div.menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper div.container div.menu {
    justify-content: flex-end;
  }
}

header div.wrapper div.container div.menu a {
  display: inline-block;
  padding: 0px 29px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  cursor: pointer;
}

header div.wrapper div.container div.menu a.active {
  font-weight: 900;
}

header div.wrapper div.container div.menu div.language-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-left: 0px;
  padding: 72px 0;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper div.container div.menu div.language-wrapper {
    display: inline-flex;
    margin-left: 32px;
    padding: 0px;
  }
}

header div.wrapper div.container div.menu div.language-wrapper p {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper div.container div.menu div.language-wrapper p {
    padding: 0px 12px;
  }
}

header div.wrapper div.container div.menu div.language-wrapper span {
  padding: 0 12px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
}

@media only screen and (min-width: 1280px) {
  header div.wrapper div.container div.menu div.language-wrapper span {
    padding: 0;
  }
}

/* Hide mobile-only close button by default (desktop) */
header div.wrapper div.container div.menu .menu-close {
  display: none;
}

/* Mobile navigation */
header .hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

header .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

header .hamburger span::before,
header .hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

header .hamburger span::before {
  top: -6px;
}
header .hamburger span::after {
  top: 6px;
}

header .menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--header-z-index) - 1);
}

body.menu-open header .menu-overlay {
  display: block;
}

@media only screen and (max-width: 1280px) {
  header div.wrapper div.container div.menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 340px;
    background: #404040;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -6px 0 16px rgba(0, 0, 0, 0.2);
    z-index: var(--header-z-index);
  }

  body.menu-open header div.wrapper div.container div.menu {
    transform: translateX(0);
  }

  header div.wrapper div.container div.menu a {
    padding: 14px 0;
    font-size: 18px;
    width: 100%;
  }

  header div.wrapper div.container div.menu .menu-close {
    display: inline-flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  header .hamburger {
    display: inline-flex;
  }

  header div.wrapper div.container div.menu a {
    display: block;
  }

  @supports (transform: translateX(100%)) {
    header div.wrapper div.container div.menu {
      gap: 0;
    }
  }

  body.menu-open {
    overflow: hidden;
  }
}
