/* ===========================================================================
   Wealth Compoundry site navigation, for the static career-tools pages.
   ---------------------------------------------------------------------------
   These pages are plain HTML served from /public, so they cannot render the
   React <DentalHeader>. This is its static twin: same tokens, same sizes, same
   gold/outline pill CTAs as src/components/dental-mba/header.tsx and the
   .dmba-gold-btn / .dmba-outline-btn rules in src/app/globals.css. Keep the two
   in step if the site header changes.

   Everything is namespaced under .wc-sitenav and declares its own custom
   properties, because the host pages define conflicting :root variables --
   index.html's are the dark site palette, the tools' are the blue/white
   Dental Wealth MBA palette.

   Two sizes:
     .wc-sitenav              84px -- the standard site nav (the map, the lesson)
     .wc-sitenav.is-compact   56px -- the cut-down nav the tools need; their
                                      no-scroll layout fits at 56px and no taller
   =========================================================================== */
.wc-sitenav {
  --nav-bg: #0b0a0a;
  --nav-gold: #dfc372;
  --nav-heading: #ebeae0;
  --nav-text: #94918a;
  --nav-line: #423e3f;
  --nav-h: 84px;
  --nav-logo-h: 40px;

  position: sticky;
  top: 0;
  z-index: 150;
  /* Opaque, unlike the site header's bg-wc-bg/40 + blur. That translucency
     exists so the hero's gold glow bleeds up behind the bar; here the bar
     scrolls over the tools' and the lesson's LIGHT pages, where a 40% black
     blur reads as washed-out grey and the links stop being legible. On the
     map it makes no difference -- that page's own background is #0b0a0a. */
  background: var(--nav-bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wc-sitenav.is-compact {
  --nav-h: 56px;
  --nav-logo-h: 28px;
}

.wc-sitenav * { box-sizing: border-box; }

.wc-sitenav .wc-nav-in {
  max-width: 1440px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) {
  .wc-sitenav .wc-nav-in { padding: 0 40px; }
}

.wc-sitenav .wc-nav-logo {
  flex: none;
  display: flex;
  align-items: center;
}
.wc-sitenav .wc-nav-logo img {
  height: var(--nav-logo-h);
  width: auto;
  display: block;
}

.wc-sitenav .wc-nav-links {
  display: none;
  flex: 1;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .wc-sitenav .wc-nav-links { display: flex; }
}
.wc-sitenav .wc-nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.wc-sitenav .wc-nav-links a:hover { color: var(--nav-heading); }
.wc-sitenav .wc-nav-links a[aria-current="page"] {
  color: var(--nav-gold);
  font-weight: 500;
}

.wc-sitenav .wc-nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mirrors .dmba-gold-btn / .dmba-outline-btn in src/app/globals.css. */
.wc-sitenav .wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
}
.wc-sitenav.is-compact .wc-btn { padding: 8px 14px; font-size: 14px; }

.wc-sitenav .wc-btn-gold {
  background-image: linear-gradient(135deg, #b8963f 0%, #d4af43 100%);
  color: #ffffff;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.wc-sitenav .wc-btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }

.wc-sitenav .wc-btn-outline {
  color: var(--nav-heading);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--nav-bg), var(--nav-bg)) padding-box,
    linear-gradient(150deg, #423e3f 30%, #cba742 100%) border-box;
  transition: filter 0.2s ease;
}
.wc-sitenav .wc-btn-outline:hover { filter: brightness(1.1); }
/* Below sm the site header drops "Sign in" and keeps the purchase CTA. */
@media (max-width: 639px) {
  .wc-sitenav .wc-btn-outline { display: none; }
}

.wc-sitenav a:focus-visible {
  outline: 2px solid var(--nav-gold);
  outline-offset: 3px;
  border-radius: 9999px;
}
