/* Simple 3-line hamburger button styles */

.hamburger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1002;
  margin-left: auto;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger:active {
  background: rgba(17, 17, 17, 0.08);
}

.hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav links - shown by default */
.nav-links {
  display: flex;
  gap: 18px;
}

/* Mobile nav (slide-in panel) - hidden by default */
.mobile-nav {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(12, 34, 58, 0.08);
  box-shadow: 0 4px 12px rgba(6, 20, 35, 0.06);
  padding: 6px 8px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 62px);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #0d243f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav a:active {
  background-color: rgba(0, 86, 201, 0.08);
}

.mobile-nav a:hover {
  background-color: rgba(0, 86, 201, 0.06);
  color: #0056c9;
}

.mobile-nav a:focus-visible {
  outline: 2px solid #0056c9;
  outline-offset: 2px;
}

/* Backdrop overlay for menu open state */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 31, 0.22);
  z-index: 999;
}

/* Desktop: hamburger hidden, nav-links visible */
@media (min-width: 901px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }
}

/* Mobile: hamburger visible, nav-links hidden, mobile-nav available only when open */
@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.open {
    display: flex;
  }
}

/* Prevent background scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}
