/* WorkMesh Navigation & Header */

.site-header {
  background: var(--wm-color-white);
  border-bottom: 1px solid var(--wm-color-grey-200);
  padding: var(--wm-space-4) 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: var(--wm-z-dropdown);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--wm-space-4);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: var(--wm-space-8);
}

.nav-link {
  color: var(--wm-color-grey-700);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--wm-brand);
  text-decoration: none;
}

.nav-cta {
  display: none;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wm-brand);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--wm-color-white);
  border-bottom: 1px solid var(--wm-color-grey-200);
  padding: var(--wm-space-4) var(--wm-space-6);
  box-shadow: var(--wm-shadow-lg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  padding: var(--wm-space-3) 0;
  border-bottom: 1px solid var(--wm-color-grey-100);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: var(--wm-space-4);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Language switcher */
.language-switcher {
  position: relative;
  display: inline-block;
  margin-left: var(--wm-space-4);
}

.language-switcher-toggle {
  background: transparent;
  border: 1px solid var(--wm-color-grey-300);
  border-radius: var(--wm-radius-md);
  color: var(--wm-color-grey-700);
  cursor: pointer;
  font-family: var(--wm-font-family);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--wm-space-2) var(--wm-space-3);
  display: flex;
  align-items: center;
  gap: var(--wm-space-2);
}

.language-switcher-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.language-switcher-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--wm-space-2);
  background: var(--wm-color-white);
  border: 1px solid var(--wm-color-grey-200);
  border-radius: var(--wm-radius-md);
  box-shadow: var(--wm-shadow-lg);
  min-width: 140px;
  z-index: var(--wm-z-dropdown);
  padding: var(--wm-space-2) 0;
}

.language-switcher:hover .language-switcher-menu,
.language-switcher:focus-within .language-switcher-menu {
  display: block;
}

.lang-option {
  display: block;
  padding: var(--wm-space-2) var(--wm-space-4);
  color: var(--wm-color-grey-700);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.lang-option:hover,
.lang-option[aria-current="true"] {
  background: var(--wm-color-grey-100);
  color: var(--wm-brand);
}

/* Mobile language switcher */
.mobile-language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wm-space-2);
  margin-top: var(--wm-space-4);
  padding-top: var(--wm-space-4);
  border-top: 1px solid var(--wm-color-grey-200);
}

.mobile-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--wm-space-2) var(--wm-space-3);
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-color-grey-300);
  color: var(--wm-color-grey-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-language-switcher a.current {
  background: var(--wm-color-grey-100);
  color: var(--wm-brand);
  border-color: var(--wm-brand);
}

/* Spacer for fixed header */
.header-spacer {
  height: 73px;
}

@media (min-width: 1024px) {
  .header-spacer {
    height: 81px;
  }
}
