/* nav-white-fix-1350571.css — Task #1350571: Force white nav background at ALL scroll positions.
   Root cause: premium-v2.css section 3 sets `html body header[role='banner'] { background: var(--sr-navy) !important }`
   with specificity 0,1,2 + !important, which overrides nav-header-authority.css (specificity 0,1,1).
   Fix: Match or exceed that specificity with white background, loaded LAST in cascade. */

/* ════════════════════════════════════════════════════════════════
   1. HEADER BACKGROUND — WHITE (override premium-v2.css navy)
   Specificity: 0,2,2 with !important — beats premium-v2.css 0,1,2
════════════════════════════════════════════════════════════════ */

html body header[role='banner'],
html body header[role='banner'] nav#mainNav,
body > header,
.sr-header, .site-header,
.nav-header, .nav-bar, .navbar,
.sr-nav-container, .nav-flat-container,
#srNav, #mainNav,
html body > nav#mainNav,
body > nav[role='navigation']:first-of-type {
  background: rgba(255, 255, 255, 0.97) !important;
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Scroll state — add subtle shadow for separation (white bg stays) */
html body header[role='banner'] nav#mainNav.nav-scrolled,
html body nav#mainNav.nav-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
}

/* ════════════════════════════════════════════════════════════════
   2. HEADER TEXT — DARK (override premium-v2.css white text)
   On a white background, text MUST be dark for contrast.
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] a,
html body header[role='banner'] span,
html body header[role='banner'] button,
header[role='banner'] a,
header[role='banner'] span {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}

/* Nav links — dark text, blue hover */
html body header[role='banner'] .nav-flat-link,
html body header[role='banner'] .nav-link,
html body header[role='banner'] .nav-item a,
html body header[role='banner'] .mega-btn,
header a[href]:not([class*='btn']):not([class*='cta']),
.nav-header a[href]:not([class*='btn']):not([class*='cta']) {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}

html body header[role='banner'] .nav-flat-link:hover,
html body header[role='banner'] .nav-link:hover,
html body header[role='banner'] .mega-btn:hover,
html body header[role='banner'] .mega-btn.open {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: #f3f4f6 !important;
}

/* Active nav state */
html body header[role='banner'] .mega-btn.nav-active {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  font-weight: 700 !important;
}

/* ════════════════════════════════════════════════════════════════
   3. LOGO — REMOVE INVERT FILTER (override premium-v2.css filter)
   Logo should show natural colors on white background.
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-logo,
html body header[role='banner'] .sr-logo,
html body header[role='banner'] .nav-brand img,
html body header[role='banner'] .nav-header img,
html body header[role='banner'] .nav-header .logo-text,
html body header[role='banner'] .sr-header .logo-text,
html body header[role='banner'] .nav-logo-text,
.nav-logo, .sr-logo, .nav-brand img,
.nav-header img, .nav-header .logo-text,
.sr-header .logo-text, .nav-logo-text {
  filter: none !important;
}

/* Logo text colors — dark on white */
html body header[role='banner'] .nav-logo-settlement {
  color: #1a2332 !important;
  -webkit-text-fill-color: #1a2332 !important;
}

html body header[role='banner'] .nav-logo-radar {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
}

html body header[role='banner'] .nav-logo-tagline {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
}

/* ════════════════════════════════════════════════════════════════
   4. CTA BUTTON — BLUE PILL (override premium-v2.css gold)
   "Get Started" button stays blue on white nav.
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-cta-go-pro,
html body nav .nav-cta-go-pro,
html body .nav-cta-go-pro {
  background: #2563eb !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25) !important;
  font-weight: 700 !important;
  border: none !important;
}

html body header[role='banner'] .nav-cta-go-pro:hover,
html body .nav-cta-go-pro:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* ════════════════════════════════════════════════════════════════
   5. HAMBURGER — DARK BARS (override premium-v2.css white)
   Hamburger lines must be dark on white background.
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-hamburger span,
html body .nav-hamburger span,
.nav-hamburger span {
  background-color: #374151 !important;
  background: #374151 !important;
}

/* ════════════════════════════════════════════════════════════════
   6. SIGN IN LINK — DARK TEXT
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-signin-link,
html body header[role='banner'] .nav-cta-check-elig {
  color: #374151 !important;
  -webkit-text-fill-color: #374151 !important;
}

html body header[role='banner'] .nav-cta-check-elig {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
}

/* ════════════════════════════════════════════════════════════════
   7. SEARCH ICON — DARK ON WHITE
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-header-search-btn {
  color: #6b7280 !important;
}

html body header[role='banner'] .nav-header-search-btn:hover {
  color: #111827 !important;
  background: #f3f4f6 !important;
}

/* ════════════════════════════════════════════════════════════════
   8. MEGA CHEVRONS + SVG ICONS — DARK
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .mega-chevron,
html body header[role='banner'] svg {
  color: currentColor !important;
  fill: currentColor !important;
}

/* Radar icon SVG in logo should NOT have color override */
html body header[role='banner'] .radar-icon,
html body header[role='banner'] .radar-icon * {
  color: unset !important;
  fill: unset !important;
  -webkit-text-fill-color: unset !important;
}

/* ════════════════════════════════════════════════════════════════
   9. ACCOUNT BUTTON + AVATAR — preserve colors on white bg
════════════════════════════════════════════════════════════════ */

html body header[role='banner'] .nav-avatar {
  background: #2563eb !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body header[role='banner'] .nav-account-btn {
  color: #374151 !important;
}

html body header[role='banner'] .nav-more-chevron {
  color: #6b7280 !important;
}
