/* ============================================================
   Peakline Media — Shared Navigation
   Used on all marketing and form-flow pages.
   ============================================================ */

:root {
  --nav-orange: #ff8d40;
  --nav-orange-dark: #ff6700;
  --nav-gradient: linear-gradient(135deg, #ff8d40 0%, #ff6700 100%);
  --nav-dark: #2e2e2e;
  --nav-white: #ffffff;
  --nav-gray: #888888;
  --nav-border: #3a3a3a;
  --nav-font: "owners", system-ui, -apple-system, sans-serif;
}

/* ── Tier 1: Marketing Nav ────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  z-index: 1000;
  transition:
    background 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    backdrop-filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-bottom: none;
  background: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--nav-gradient);
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1px;
}

.nav.scrolled {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav.scrolled::after {
  width: 100%;
}

.nav-links {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--nav-orange);
  outline: none;
}

.nav-link-active {
  color: var(--nav-orange);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: inherit;
  text-decoration: none;
}

.nav > .nav-logo .logo-icon {
  display: flex;
  align-items: center;
  color: var(--nav-orange);
}

.nav > .nav-logo .logo-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.nav .btn-primary {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Tier 2: Minimal Bar ──────────────────────────────────── */

.nav-min {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-min--centered {
  justify-content: center;
}

.nav-min .nav-logo {
  color: var(--nav-white);
}

.nav-min .nav-logo .logo-icon {
  color: var(--nav-orange);
  display: flex;
  align-items: center;
}

.nav-min .nav-logo .logo-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-min__aside {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nav-font);
  font-size: 12px;
  color: var(--nav-gray);
}

.nav-min__aside svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--nav-gray);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav {
    padding: 8px 16px;
    height: 48px;
  }

  .nav .btn-primary {
    display: none;
  }

  .nav-links {
    left: 16px;
    gap: 12px;
  }

  .nav > .nav-logo .logo-icon svg {
    width: 28px;
    height: 28px;
  }

  .nav-min {
    padding: 14px 20px;
  }
}

@media (max-width: 600px) {
  .nav {
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .nav-links {
    position: static;
    transform: none;
    display: flex;
    gap: 10px;
    margin-left: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: calc(100% - 140px);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-logo {
    margin-left: auto;
    margin-right: 12px;
  }

  .nav > .nav-logo .logo-icon svg {
    width: 24px;
    height: 24px;
  }

  .nav .btn-primary {
    display: inline-flex;
    position: static;
    transform: none;
    padding: 8px 14px;
    font-size: 11px;
    flex-shrink: 0;
  }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav::after,
  .nav-link {
    transition: none;
  }
}
