/* Palmerston-style navbar (lifted from /assets/shared.css with vars resolved
   so it doesn't depend on shared.css's body/font/color rules.) Loaded after
   home.css so it wins on the <header> + nav block only. */

header {
  background: rgba(8, 20, 37, 0.9) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(69, 70, 77, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffb95f;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: transform 0.25s ease, filter 0.25s ease;
  text-decoration: none;
}
header .logo:hover {
  transform: scale(1.06);
  filter: brightness(1.2) drop-shadow(0 4px 12px rgba(240, 165, 0, 0.4));
}

header nav {
  display: flex;
  gap: 0;
  align-items: center;
  margin: 0;
}

header nav a {
  color: #c6c6cd;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-bottom: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}
header nav a:hover,
header nav a.active {
  color: #ffb95f;
  border-bottom-color: #ffb95f;
}

header .nav-dropdown {
  position: relative;
}
header .nav-dropdown > a {
  cursor: pointer;
}
header .nav-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
  margin-left: 2px;
  opacity: 0.7;
}

header .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(21, 32, 49, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(69, 70, 77, 0.6);
  border-radius: 12px;
  margin-top: 6px;
  min-width: 260px;
  padding: 8px 0;
  z-index: 1001;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  max-height: 70vh;
  overflow-y: auto;
}
header .nav-dropdown:hover .dropdown-menu {
  display: block;
}

header .dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: #c6c6cd;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  border-bottom: none;
  white-space: nowrap;
  text-decoration: none;
}
header .dropdown-menu a:hover {
  background: rgba(255, 185, 95, 0.08);
  color: #ffb95f;
  border-bottom-color: transparent;
}

header .dropdown-label {
  display: block;
  padding: 10px 20px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a93a8;
  pointer-events: none;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
header .dropdown-divider {
  border-top: 1px solid rgba(69, 70, 77, 0.5);
  margin: 6px 0;
}

header .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffb95f;
  font-size: 2.4rem;
  cursor: pointer;
  margin-right: 12px;
  line-height: 1;
}

@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 20, 37, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(69, 70, 77, 0.5);
    padding: 12px 0;
    align-items: stretch;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  header nav.active {
    display: flex;
  }
  header nav a {
    padding: 12px 20px;
    border-bottom: none;
  }
  header .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background: rgba(8, 20, 37, 0.5);
    min-width: 100%;
    padding: 0;
    margin: 0;
    max-height: none;
  }
  header .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  header .dropdown-menu a {
    padding: 8px 32px;
    font-size: 0.85rem;
  }
  header .menu-toggle {
    display: block;
  }
}
