/**
 * The site chrome: header and footer styles shared by the storefront app and
 * the static landing page. Plain CSS (no Tailwind) so the landing page can load
 * the very same file — `pnpm sync:chrome` copies it to
 * public/landing/assets/site-chrome.css.
 *
 * Markup: components/layout/site-header.tsx + site-footer.tsx (app) and
 * public/landing/assets/site-chrome.js (landing).
 */

:root {
  --nq-navy: #1e2a38;
  --nq-footer: #1f2937;
  --nq-gold: #b8894a;
}

/* ---------- header ---------- */
.nq-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nq-navy);
  color: #fff;
  box-shadow: 0 12px 32px rgba(13, 28, 43, 0.18);
}
.nq-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1325px;
  height: 64px;
  margin-inline: auto;
  padding-inline: 16px;
}
.nq-header-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nq-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nq-logo img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.nq-nav { display: none; align-items: center; gap: 36px; }
.nq-nav a { color: rgba(255, 255, 255, 0.8); font: 500 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; white-space: nowrap; transition: color .2s; }
.nq-nav a:hover, .nq-nav a[aria-current="page"] { color: #fff; }
.nq-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; color: rgba(255, 255, 255, 0.85); }
.nq-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; color: inherit; background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.nq-icon:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nq-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nq-badge { position: absolute; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9999px; background: var(--nq-gold); color: #10161f; font: 700 10px/1 Inter, sans-serif; }
.nq-menu { display: inline-flex; }
.nq-search { display: none; position: relative; width: 16rem; margin-right: 8px; }

/* the landing page's plain search form, styled to match the app's SearchBox
   (which brings its own styles and its autocomplete dropdown) */
.nq-search-form { display: flex; width: 100%; position: relative; align-items: center; }
.nq-search-form input {
  height: 44px; width: 100%; border: 0; border-radius: 12px; padding: 0 56px 0 16px;
  background: #fff; color: #0d1c2b; font: 14px Inter, ui-sans-serif, system-ui, sans-serif; outline: none;
  box-shadow: 0 2px 8px rgba(13, 28, 43, 0.12);
}
.nq-search-form input:focus { box-shadow: 0 0 0 2px rgba(184, 137, 74, 0.4); }
.nq-search-form .nq-search-go {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: var(--nq-gold); color: #10161f; cursor: pointer; transition: background-color .2s;
}
.nq-search-form .nq-search-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nq-search-form .nq-search-go:hover { background: #a87b3f; }

/* the app's notification bell, sized like the other action icons */
.nq-bell button { width: 40px; height: 40px; border-radius: 9999px; }
.nq-bell svg { width: 22px; height: 22px; }

/* which actions are shown at which width (plain CSS: these rules also have to
   win over the app's utility classes, which live in a cascade layer) */
.nq-search-link { display: inline-flex; }
.nq-wishlist, .nq-compare { display: none; }
.nq-compare { width: auto; padding-inline: 12px; font: 500 14px Inter, ui-sans-serif, system-ui, sans-serif; }

/* mobile menu panel (landing only; the storefront has its bottom navigation) */
.nq-mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nq-navy); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 8px 16px 16px; }
.nq-mobile-nav.is-open { display: block; }
.nq-mobile-nav a { display: block; padding: 12px 0; color: rgba(255, 255, 255, 0.85); font: 500 16px Inter, sans-serif; }
.nq-mobile-nav a:hover { color: #fff; }

@media (min-width: 640px) {
  .nq-header-inner { height: 80px; padding-inline: 32px; }
  .nq-logo img { height: 56px; }
  .nq-actions { gap: 6px; }
  .nq-wishlist { display: inline-flex; }
}
@media (min-width: 768px) {
  .nq-search { display: block; }
  .nq-search-link { display: none; }
}
@media (min-width: 1024px) {
  .nq-header-inner { height: 96px; }
  .nq-logo img { height: 64px; }
  .nq-nav { display: flex; }
  .nq-menu { display: none; }
  .nq-compare { display: inline-flex; }
}
@media (min-width: 1280px) {
  .nq-search { width: 18rem; }
}

/* ---------- footer ---------- */
.nq-footer { background: var(--nq-footer); color: #d1d5db; }
.nq-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 48px 16px;
}
.nq-footer-brand { grid-column: span 2; }
.nq-footer-brand img { height: 80px; width: auto; display: block; filter: brightness(0) invert(1); }
.nq-footer-tagline { margin-top: 12px; max-width: 24rem; color: #9ca3af; font: 14px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.nq-footer h2, .nq-footer-h { margin: 0; color: #fff; font: 600 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.nq-footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nq-footer ul a { color: #d1d5db; font: 14px Inter, ui-sans-serif, system-ui, sans-serif; transition: color .2s; }
.nq-footer ul a:hover { color: #fff; }
.nq-social { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.nq-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9999px; color: #d1d5db; transition: background-color .2s, color .2s; }
.nq-social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nq-social svg { width: 20px; height: 20px; fill: currentColor; }
.nq-apps { margin-top: 24px; }
.nq-apps ul { gap: 10px; }
.nq-apps ul a { display: inline-flex; border-radius: 8px; transition: opacity .2s, transform .2s; }
.nq-apps ul a:hover { opacity: .85; transform: translateY(-1px); }
.nq-apps img { height: 42px; width: auto; display: block; }
.nq-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px; text-align: center; color: #9ca3af; font: 12px Inter, ui-sans-serif, system-ui, sans-serif; }

@media (min-width: 640px) {
  .nq-footer-brand img { height: 96px; }
}
@media (min-width: 1024px) {
  .nq-footer-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px; padding: 48px 32px; }
}
