/* v0.63 emergency navigation restore */
header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 2000;
  background: linear-gradient(135deg, var(--primary, #f39200), var(--primary-dark, #d37f00));
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

header .brand,
header .brand a {
  display: flex !important;
  align-items: center;
}

header .brand img {
  display: block;
  width: auto;
  height: 42px;
}

.nav-menu {
  display: flex !important;
  align-items: center;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li,
.nav-menu a {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: #fff !important;
  font-weight: 700;
  padding: .45rem .65rem;
  border-radius: .4rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(255,255,255,.16);
  text-decoration: none;
}

.nav-toggle {
  display: none !important;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex !important;
  }

  .nav-menu {
    display: none !important;
    position: fixed;
    top: 64px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background: var(--primary-dark, #d37f00);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: .6rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    padding: .75rem;
  }

  .nav-menu.show {
    display: flex !important;
  }

  .nav-menu li,
  .nav-menu a {
    width: 100%;
  }

  .nav-menu a {
    min-height: 42px;
    justify-content: flex-start;
  }
}
