/*
 * 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: var(--nq-ink-v3);
  text-decoration: none;
}
.nq-logo-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--nq-navy-v3);
}
.nq-logo-icon::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nq-sky-v2);
  transform: translateY(-50%);
}
.nq-logo-icon::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  width: 7px;
  height: 18px;
  border-radius: 2px;
  background: var(--nq-sky-v2);
  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: var(--nq-sky-v2); }

/* 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: var(--nq-dim-v4);
  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: var(--nq-ink-v3); background: var(--nq-panel-2-v2); }
.nq-nav-links a.active { color: var(--nq-sky-deep-v5); background: var(--nq-sky-soft-v3); font-weight: 600; }
.nq-nav-links a.nq-nav-cta {
  margin-left: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--nq-navy-v3);
  font-weight: 600;
}
.nq-nav-links a.nq-nav-cta:hover { background: var(--nq-navy-2-v7); }

.nq-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nq-sky-v2);
  color: var(--nq-ink-fixed);
  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 var(--nq-line-v4);
  border-radius: 8px;
  background: var(--nq-panel-v4);
  cursor: pointer;
}
.nq-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--nq-navy-v3);
}

@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: var(--nq-paper);
    border-bottom: 1px solid var(--nq-line-v4);
    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: var(--nq-navy-v3); color: #fff; }
.nq-banner--success { background: var(--nq-green-bg-v3); color: #fff; }
.nq-banner--warning { background: var(--nq-amber-bg-2-v2); color: var(--nq-amber-ink-v2); }
.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: var(--nq-sky-v2); }
.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; } }

/* ── Light / dark switch (theme.js) ── */
.nq-theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--nq-line, #E4EBF2); background: var(--nq-paper, #fff); color: var(--nq-ink, #0D1E2D);
  cursor: pointer; padding: 0; margin-left: 6px; flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.nq-theme-btn:hover { border-color: var(--nq-sky, #4BBDE8); transform: rotate(-12deg); }
.nq-theme-btn svg { width: 18px; height: 18px; }
.nq-theme-btn .nq-sun { display: none; }
html.dark .nq-theme-btn .nq-sun { display: block; }
html.dark .nq-theme-btn .nq-moon { display: none; }

/* ── Dark theme (theme.js sets html.dark) ── */
html.dark .nq-nav { background: rgba(11, 22, 33, 0.88); border-bottom-color: rgba(35, 54, 74, 0.9); }
html.dark .nq-nav.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
