/* ════════════════════════════════════════════════════════════
   NexusOps · Shared header, footer, journey progress
   Loaded on ALL pages. Pages keep their own page-specific CSS.
   ════════════════════════════════════════════════════════════ */

:root {
  --nx-ink:        #0C0C0C;
  --nx-ink-2:      #1F1F1F;
  --nx-stone:      #6B6358;
  --nx-stone-2:    #9C9388;
  --nx-bone:       #C7BFB1;
  --nx-rule:       #E0DACE;
  --nx-paper:      #F6F2EA;
  --nx-paper-2:    #E8E2D5;
  --nx-amber:      #C4731E;
  --nx-amber-deep: #8E5215;
}

/* ─── Sticky header ─── */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nx-paper);
  border-bottom: 1px solid var(--nx-rule);
  height: 56px;
}
.nx-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.nx-header-wm {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--nx-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
}
.nx-header-wm .nx { font-weight: 200; }
.nx-header-wm .op { font-weight: 800; }
.nx-header-wm .dot { color: var(--nx-amber); }

.nx-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', system-ui, sans-serif;
}
.nx-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--nx-ink-2);
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: color .15s;
}
.nx-nav a:hover {
  color: var(--nx-amber);
}
.nx-nav a:hover::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: var(--nx-amber);
}
.nx-nav a.active {
  color: var(--nx-amber);
}
.nx-nav .sep {
  color: var(--nx-bone);
  font-size: 12px;
  user-select: none;
  pointer-events: none;
}
.nx-nav .conversemos {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  background: var(--nx-amber);
  color: var(--nx-ink);
  padding: 8px 14px;
  border-radius: 2px;
  margin-left: 12px;
  transition: background .15s;
}
.nx-nav .conversemos:hover {
  background: var(--nx-amber-deep);
  color: var(--nx-paper);
}
.nx-nav .conversemos:hover::after { display: none; }

/* ─── Hamburger (mobile only) ─── */
.nx-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  font-family: inherit;
  color: var(--nx-ink);
}
.nx-hamburger svg { display: block; }

/* ─── Mobile dropdown menu ─── */
.nx-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--nx-paper);
  border-bottom: 1px solid var(--nx-rule);
  z-index: 49;
  padding: 12px 32px 24px;
}
.nx-mobile-menu[data-open="true"] {
  display: block;
}
.nx-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--nx-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--nx-rule);
  transition: color .15s;
}
.nx-mobile-menu a:hover,
.nx-mobile-menu a.active {
  color: var(--nx-amber);
}
.nx-mobile-menu a:last-child {
  border-bottom: 0;
  margin-top: 8px;
  background: var(--nx-amber);
  color: var(--nx-ink);
  padding: 14px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nx-mobile-menu a:last-child:hover {
  background: var(--nx-amber-deep);
  color: var(--nx-paper);
}

/* ─── Journey progress strip ─── */
.nx-journey {
  position: sticky;
  top: 56px;
  z-index: 49;
  height: 3px;
  background: var(--nx-rule);
  overflow: hidden;
}
.nx-journey-fill {
  height: 100%;
  background: var(--nx-amber);
  width: var(--nx-journey-progress, 25%);
  transition: width .35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Footer ─── */
.nx-footer {
  border-top: 1px solid var(--nx-amber);
  background: var(--nx-paper);
  padding: 48px 32px 36px;
}
.nx-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.nx-footer-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.nx-footer-wm {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--nx-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.nx-footer-wm .nx { font-weight: 200; }
.nx-footer-wm .op { font-weight: 800; }
.nx-footer-wm .dot { color: var(--nx-amber); }
.nx-footer-tag {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nx-stone);
  line-height: 1.7;
}
.nx-footer-tag b { color: var(--nx-ink); font-weight: 500; }

.nx-footer-nav {
  padding: 20px 0;
  border-top: 1px solid var(--nx-rule);
  border-bottom: 1px solid var(--nx-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
}
.nx-footer-nav a {
  color: var(--nx-ink);
  text-decoration: none;
  transition: color .15s, border-color .15s;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.nx-footer-nav a:hover {
  color: var(--nx-amber);
  border-color: var(--nx-amber);
}
.nx-footer-nav a.active {
  color: var(--nx-amber);
}

.nx-footer-row-bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nx-footer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--nx-stone);
}
.nx-footer-contact a {
  color: var(--nx-ink);
  border-bottom: 1px solid var(--nx-rule);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.nx-footer-contact a:hover {
  color: var(--nx-amber);
  border-color: var(--nx-amber);
}
.nx-footer-copy {
  color: var(--nx-stone-2);
}

/* ─── Mobile breakpoint ─── */
@media (max-width: 820px) {
  .nx-header { height: 52px; }
  .nx-header-inner { padding: 0 20px; }
  .nx-nav:not(.mobile) { display: none; }
  .nx-hamburger { display: inline-flex; }
  .nx-mobile-menu { top: 52px; padding: 8px 20px 20px; }
  .nx-journey { top: 52px; }

  .nx-footer { padding: 40px 20px 32px; }
  .nx-footer-row-top { grid-template-columns: 1fr; gap: 16px; }
  .nx-footer-tag { text-align: left; }
  .nx-footer-row-bottom { flex-direction: column; gap: 16px; }
  .nx-footer-contact { gap: 16px; }
  .nx-footer-nav { gap: 18px; padding: 16px 0; }
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .nx-journey-fill { transition: none; }
}

/* ─── Page-level offset for sticky elements (so anchor scrolls land right) ─── */
html {
  scroll-padding-top: 80px;
}
