/* Navinax — Trust + Premium Legal Design System
 * Adapted from new_design_files/styles.css.
 * Locked to gold accent + light theme (no dark mode, no accent toggle).
 */

:root {
  /* Core trust palette: Navy + Royal Blue + Warm Gold */
  --ink: #0B2545;          /* deepest navy — headlines, primary surfaces */
  --ink-2: #13315C;        /* secondary navy */
  --royal: #1448B8;        /* brand primary CTA */
  --royal-dark: #103D9E;
  --royal-tint: rgba(20, 72, 184, 0.08);
  --gold: #C9A96E;         /* warm gold accent */
  --gold-soft: #E8D7B0;
  --gold-tint: rgba(201, 169, 110, 0.14);

  /* Surfaces — warm-leaning paper whites */
  --paper: #FBF9F4;        /* warm off-white page bg */
  --surface: #FFFFFF;
  --surface-2: #F5F2EB;    /* warm cream alt */
  --line: #E7E1D3;
  --line-strong: #D4CCB6;

  /* Text */
  --text: #0B2545;
  --text-muted: #5A6B85;
  --text-soft: #7A8AA3;

  /* States */
  --success: #0F766E;
  --danger: #B83A2D;

  /* Type */
  --font-display: "Outfit", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow: 0 8px 24px -8px rgba(11, 37, 69, 0.12), 0 2px 6px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 24px 60px -16px rgba(11, 37, 69, 0.22), 0 4px 12px rgba(11, 37, 69, 0.06);
  --shadow-gold: 0 14px 40px -12px rgba(201, 169, 110, 0.55);

  /* Density */
  --density: 1;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0; }

/* === Layout === */
main { flex: 1; }

.nx-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .nx-container { padding: 0 20px; }
}

/* === Eyebrow === */
.nx-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nx-eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: var(--gold);
}
.nx-eyebrow--center { justify-content: center; }

/* === Buttons === */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.nx-btn:hover { text-decoration: none; }
.nx-btn--primary {
  background: var(--ink);
  color: #FBF9F4;
  box-shadow: var(--shadow);
}
.nx-btn--primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #FBF9F4;
}
.nx-btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.nx-btn--gold:hover {
  background: #BC9A5C;
  transform: translateY(-1px);
  color: var(--ink);
}
.nx-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.nx-btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.nx-btn--link {
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.nx-btn--lg { padding: 18px 28px; font-size: 16px; }
.nx-btn--sm { padding: 10px 14px; font-size: 13px; }
.nx-btn--block { width: 100%; }
.nx-btn[disabled],
.nx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* === Card === */
.nx-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: calc(28px * var(--density));
}

/* === Chip === */
.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: #6E5530;
  letter-spacing: 0.02em;
}
.nx-chip--royal {
  background: var(--royal-tint);
  border-color: rgba(20, 72, 184, 0.18);
  color: var(--royal);
}
.nx-chip--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* === Pulse dot === */
.nx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  position: relative;
  display: inline-block;
}
.nx-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; opacity: 0.5;
  animation: nxPulse 1.8s ease-out infinite;
}
@keyframes nxPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes nxFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* === Form fields (auth + contact) === */
.nx-field { display: flex; flex-direction: column; gap: 6px; }
.nx-field__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nx-field__wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 12px;
  transition: all 0.15s ease;
}
.nx-field__wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.nx-field__input,
.nx-field__textarea {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  width: 100%;
}
.nx-field__textarea {
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  resize: vertical;
  min-height: 120px;
}
.nx-field__textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.nx-field__error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* === Sticky navbar === */
.nx-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 244, 0);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.nx-nav.is-scrolled {
  background: rgba(251, 249, 244, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.nx-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
@media (max-width: 640px) {
  .nx-nav__inner { height: 64px; }
}
.nx-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nx-nav__logo img { height: 62px; width: auto; }
@media (max-width: 640px) {
  .nx-nav__logo img { height: 52px; }
}
.nx-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 900px) {
  .nx-nav__links { display: none; }
}
.nx-nav__link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nx-nav__link:hover { color: var(--ink); }
.nx-nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.nx-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nx-nav__hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nx-nav__hamburger { display: inline-flex; }
  .nx-nav__ghost { display: none; }
}
.nx-nav__panel {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.nx-nav__panel.is-open { display: flex; }
.nx-nav__panel-link {
  padding: 12px 8px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.nx-nav__panel-link.is-active { color: var(--ink); }

/* === Footer (dark navy) === */
.nx-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: auto;
  padding: 64px 0 24px;
}
@media (max-width: 640px) {
  .nx-footer { padding: 48px 0 24px; }
}
.nx-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 249, 244, 0.12);
}
@media (max-width: 900px) {
  .nx-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nx-footer__grid { grid-template-columns: 1fr; }
}
.nx-footer__brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nx-footer__tag {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(251, 249, 244, 0.72);
  line-height: 1.55;
  max-width: 320px;
}
.nx-footer__trust {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}
.nx-footer__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nx-footer__col-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.nx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nx-footer__links a {
  font-size: 14px;
  color: rgba(251, 249, 244, 0.85);
  transition: color 0.2s ease;
}
.nx-footer__links a:hover { color: var(--gold); }
.nx-footer__bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(251, 249, 244, 0.55);
}
.nx-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nx-footer__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(251, 249, 244, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(251, 249, 244, 0.7);
  transition: all 0.2s ease;
}
.nx-footer__social a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.nx-footer__social svg { width: 14px; height: 14px; fill: currentColor; }

/* === Section === */
.nx-section { padding: 96px 0; }
.nx-section--sm { padding: 64px 0; }
.nx-section--lg { padding: 112px 0; }
.nx-section--ink {
  background: var(--ink);
  color: var(--paper);
}
.nx-section--ink h1, .nx-section--ink h2, .nx-section--ink h3 { color: var(--paper); }
.nx-section--alt { background: var(--surface-2); }
@media (max-width: 768px) {
  .nx-section, .nx-section--lg { padding: 64px 0; }
  .nx-section--sm { padding: 40px 0; }
}

/* Legal / prose pages */
.nx-legal {
  padding: 96px 0 64px;
}
@media (max-width: 768px) { .nx-legal { padding: 56px 0 40px; } }
.nx-legal__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.nx-legal__head h1 {
  font-size: 48px;
  margin: 14px 0 14px;
  letter-spacing: -0.03em;
}
@media (max-width: 768px) { .nx-legal__head h1 { font-size: 32px; } }
.nx-legal__head .nx-legal__updated {
  font-size: 13px;
  color: var(--text-soft);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-prose {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
.legal-prose h1,
.legal-prose h2,
.legal-prose h3,
.legal-prose h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal-prose h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  position: relative;
}
.legal-prose h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: var(--gold);
}
.legal-prose h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-prose p { margin: 0 0 16px; color: var(--text); }
.legal-prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.legal-prose a:hover { color: var(--royal); }
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-prose li { margin-bottom: 6px; }
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.legal-prose blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.legal-prose th, .legal-prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.legal-prose th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
}
