/* ============================================
   FONTS
   ============================================ */

@font-face {
  font-family: "din-next-w01-light";
  font-style: normal;
  font-weight: 400;
  src: url("//static.parastorage.com/fonts/v2/eca8b0cd-45d8-43cf-aee7-ca462bc5497c/v1/din-next-w01-light.woff2")
    format("woff2");
  font-display: swap;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--color-white);
  box-shadow: 0 10px 22px rgba(10, 18, 41, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  margin: 24px 0;
  width: 100%;
}

/* If your SVG has intrinsic size, this won't fight it; it's just a safety cap */
.brand svg {
  display: block;
  height: 100%;
  width: auto;
}

.brand svg ~ .brand__fallback {
  display: none;
}

.brand__fallback {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ============================================
   MOBILE MENU TOGGLE (Hamburger Button)
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 10px;
  position: relative;
  z-index: 10000;
}

.mobile-menu-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-black);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Hamburger to X animation when open */
.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"]
  .mobile-menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY & CONTAINER
   ============================================ */

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.mobile-menu.is-open {
  display: block !important;
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.mobile-menu__container {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 80%;
  height: 100%;
  background-color: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  z-index: 9999;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu__close-line {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: var(--color-black);
}

.mobile-menu__close-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close-line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav {
  padding: 100px 36px 0;
}

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

.mobile-menu__item {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__link {
  display: block;
  font-family: "Roboto Primary", sans-serif;
  font-size: 20px;
  line-height: 1.4em;
  color: var(--color-black);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s ease;
  font-weight: 400;
}

.mobile-menu__link:hover {
  color: var(--color-primary);
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.lang-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector--desktop {
  margin-left: auto;
  margin-right: 20px;
}

.lang-selector--mobile {
  display: none;
  justify-content: center;
  margin-top: 32px;
}

.lang-selector__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-dark);
  font-family: "din-next-w01-light", sans-serif;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.5;
  transition:
    opacity 0.2s ease,
    font-weight 0.2s ease;
}

.lang-selector__link:hover,
.lang-selector__link.is-active {
  opacity: 1;
}

.lang-selector__link.is-active {
  font-weight: 700;
}

.lang-selector__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .brand {
    margin-left: 0;
    width: auto;
    flex: 1;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .lang-selector--desktop {
    display: none;
  }

  .lang-selector--mobile {
    display: flex;
  }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}
