/* Dark header for inner pages — NOT loaded on homepage */

body .rt-site-nav,
body > nav.rt-site-nav,
body > nav[style*="position:fixed"],
body #__next > nav[style*="position:fixed"],
nav[style*="position:fixed"],
body .nav {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.96) 0%, rgba(11, 17, 32, 0.9) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Default: grey — inactive menu items (works before JS adds rt-site-nav) */
nav[style*="position:fixed"] .rt-nav-links a:not(.rt-nav-active),
body .rt-site-nav .rt-nav-links a,
body .rt-site-nav .rt-nav-links li a,
body > nav.rt-site-nav .rt-nav-links a,
body > nav[style*="position:fixed"] .rt-nav-links a,
body #__next > nav[style*="position:fixed"] .rt-nav-links a,
body .nav .nav-links a,
body .nav .nav-links li a {
  color: rgba(255, 255, 255, 0.45) !important;
}

body .rt-site-nav .rt-nav-links a[href*="contact"],
body > nav.rt-site-nav .rt-nav-links a[href*="contact"],
body > nav[style*="position:fixed"] .rt-nav-links a[href*="contact"],
body #__next > nav[style*="position:fixed"] .rt-nav-links a[href*="contact"],
body .nav .nav-links a[href*="contact"] {
  color: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Active page: white */
nav[style*="position:fixed"] .rt-nav-links a.rt-nav-active,
body .rt-site-nav .rt-nav-links a.rt-nav-active,
body > nav.rt-site-nav .rt-nav-links a.rt-nav-active,
body > nav[style*="position:fixed"] .rt-nav-links a.rt-nav-active,
body #__next > nav[style*="position:fixed"] .rt-nav-links a.rt-nav-active,
body .nav .nav-links a.rt-nav-active,
body .rt-drawer-link.rt-nav-active {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body .rt-site-nav .rt-nav-links a.rt-nav-active[href*="contact"],
body > nav.rt-site-nav .rt-nav-links a.rt-nav-active[href*="contact"],
body > nav[style*="position:fixed"] .rt-nav-links a.rt-nav-active[href*="contact"],
body #__next > nav[style*="position:fixed"] .rt-nav-links a.rt-nav-active[href*="contact"],
body .nav .nav-links a.rt-nav-active[href*="contact"],
body .rt-drawer-link.rt-nav-active[href*="contact"] {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body .rt-drawer-link:not(.rt-nav-active) {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Mobile drawer — clean active state, Tabler chevrons */
body .rt-drawer-link {
  background: transparent !important;
  -webkit-tap-highlight-color: transparent;
}

body .rt-drawer-link.rt-nav-active {
  background: transparent !important;
  color: #ffffff !important;
}

body .rt-drawer-link.rt-nav-active span:first-child {
  color: #ffffff !important;
}

body .rt-drawer-link:not(.rt-nav-active) span:first-child {
  color: rgba(255, 255, 255, 0.45) !important;
}

body .rt-drawer-chevron {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

body .rt-drawer-link.rt-nav-active .rt-drawer-chevron {
  color: rgba(255, 255, 255, 0.55) !important;
}

body .rt-drawer > button[aria-label],
body .rt-drawer > button:first-of-type {
  line-height: 1;
}

body .rt-drawer-actions a,
body .rt-drawer > div[style*="flex-direction:column"] a {
  gap: 0.5rem;
}

/* Mobile drawer: one Contact entry — nav link only; hide duplicate CTA button */
body .rt-drawer .rt-drawer-cta-contact,
body .rt-drawer-actions > a[href*="/contact"]:not(.rt-drawer-cta-plan) {
  display: none !important;
}

body[data-rt-page="contact"] .rt-drawer a.rt-drawer-link[href*="/contact"] {
  display: none !important;
}

body .rt-site-nav > a img,
body > nav.rt-site-nav > a img,
body > nav[style*="position:fixed"] > a img,
body #__next > nav[style*="position:fixed"] > a img,
body .nav > a img {
  filter: brightness(0) invert(1) !important;
}

body .rt-site-nav .rt-burger span,
body > nav.rt-site-nav .rt-burger span,
body > nav[style*="position:fixed"] .rt-burger span,
body #__next > nav[style*="position:fixed"] .rt-burger span,
body .nav .rt-burger span {
  background: #ffffff !important;
}
