#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 32px rgba(11, 36, 71, 0.10);
  backdrop-filter: blur(12px);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link img {
  height: 46px;
  display: block;
  transition: filter 0.3s;
}
#header:not(.scrolled) .logo-link img {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s;
  position: relative;
}
#header.scrolled .nav-links a {
  color: var(--text-mid);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--orange);
  transition: right 0.25s;
}
.nav-links a:hover {
  color: var(--orange);
}
.nav-links a:hover::after {
  right: 0;
}
#header.scrolled .nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--orange-light);
  color: var(--white);
  transform: translateY(-1px);
}
#header.scrolled .nav-cta {
  color: var(--white);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s;
}
#header.scrolled .menu-toggle span {
  background: var(--text-dark);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  background: var(--white);
  padding: 2.5rem 5%;
  flex-direction: column;
  z-index: 999;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--blue-ghost);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile a:hover {
  color: var(--orange);
}

@media (max-width: 900px) {
  .nav-links  { display: none; }
  .menu-toggle { display: flex; }
}
