/*
 * The one site navigation bar, shared by every marketing page (markup is the
 * same on each; nav.js marks the current page and runs the mobile menu).
 * Everything is namespaced .nq-nav so no page's own styles reach in.
 */
.nq-nav {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 235, 242, 0.9);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  direction: ltr;
  transition: box-shadow 0.3s ease;
}
/* The home page keeps its bar fixed over the hero. */
.nq-nav--fixed { position: fixed; left: 0; right: 0; }
.nq-nav.scrolled { box-shadow: 0 4px 18px rgba(13, 30, 45, 0.07); }
.nq-nav *, .nq-nav *::before, .nq-nav *::after { box-sizing: border-box; }

.nq-nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nq-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #0D1E2D;
  text-decoration: none;
}
.nq-logo-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0D1E2D;
}
.nq-logo-icon::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4BBDE8;
  transform: translateY(-50%);
}
.nq-logo-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  width: 7px;
  height: 18px;
  border-radius: 2px;
  background: #4BBDE8;
  transform: translateY(-50%);
}
.nq-logo-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nq-logo-dot { color: #4BBDE8; }

/* Every item — links, the Sign In button and the profile chip — is 38px tall
   and centred on the same line. */
.nq-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nq-nav-links > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nq-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #5B6B7C;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nq-nav-links a:hover { color: #0D1E2D; background: #F2F6FA; }
.nq-nav-links a.active { color: #1F87B0; background: #E8F7FD; font-weight: 600; }
.nq-nav-links a.nq-nav-cta {
  margin-left: 8px;
  padding: 0 18px;
  color: #fff;
  background: #0D1E2D;
  font-weight: 600;
}
.nq-nav-links a.nq-nav-cta:hover { background: #1A3552; }

.nq-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #4BBDE8;
  color: #06344A;
  font-size: 0.7rem;
  font-weight: 700;
}
.nq-cart-count[hidden] { display: none; }

/* The signed-in profile chip (auth-widget.js), sized to match the links. */
.nq-nav .nq-profile { margin-left: 8px; }
.nq-nav .nq-profile-btn { height: 38px; padding: 0 12px 0 4px; }
.nq-nav .nq-avatar { width: 30px; height: 30px; }

.nq-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid #E4EBF2;
  border-radius: 8px;
  background: #F7F9FC;
  cursor: pointer;
}
.nq-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #0D1E2D;
}

@media (max-width: 980px) {
  .nq-nav-inner { padding: 0 16px; }
  .nq-hamburger { display: flex; }
  .nq-nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid #E4EBF2;
    box-shadow: 0 12px 24px rgba(13, 30, 45, 0.08);
  }
  .nq-nav-links.open { display: flex; }
  .nq-nav-links > li { display: block; }
  .nq-nav-links a { display: flex; width: 100%; height: 46px; padding: 0 14px; font-size: 1rem; }
  .nq-nav-links a.nq-nav-cta { margin: 6px 0 0; justify-content: center; }
  .nq-nav .nq-profile { margin: 6px 0 0; }
  .nq-nav .nq-profile-btn { width: 100%; height: 46px; }
}

/* ── Announcement banner (admin → Site settings) ── */
.nq-banner {
  box-sizing: border-box;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 48px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.nq-banner--fixed { position: fixed; top: 0; left: 0; right: 0; }
.nq-banner--info { background: #0D1E2D; color: #fff; }
.nq-banner--success { background: #178A55; color: #fff; }
.nq-banner--warning { background: #F5B83D; color: #3D2A00; }
.nq-banner-text { color: inherit; text-decoration: none; }
.nq-banner-more { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nq-banner--info .nq-banner-more { color: #4BBDE8; }
.nq-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.nq-banner-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 600px) { .nq-banner { padding: 8px 44px 8px 16px; font-size: 0.82rem; } }
