/* VarAxis corrected visual polish
   Upload to public_html/varaxis-polish.css and replace the existing file.
   Keep the existing stylesheet link in each page.
*/

:root {
  --vx-ink: #071522;
  --vx-cyan: #12c7e8;
  --vx-white: #f7fbff;
}

.header-surface {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-bottom: 1px solid rgba(18,199,232,.28) !important;
}

.header { min-height: 90px !important; }

.header nav,
.header nav a,
.header-cta { color: #dce8f0 !important; }

.header nav a[aria-current="page"],
.header nav a:hover,
.header-cta:hover { color: #ffffff !important; }

/* Correct logo rendering. The old rule cropped the image with a negative top offset. */
.header .brand-logo,
.footer .brand-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  width: 220px !important;
  height: 64px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  flex: 0 0 220px !important;
  background: transparent !important;
}

.header .brand-logo img,
.footer .brand-logo img {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 205px !important;
  height: 58px !important;
  max-width: 205px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
  transform: none !important;
}

/* Hero readability */
.hero h1,
.hero-content h1 {
  color: #f7fbff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.32) !important;
}

.hero h1 em,
.hero-content h1 em {
  color: var(--vx-cyan) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.22) !important;
}

.hero-copy { color: #e4f0f6 !important; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3,16,30,.94) 0%, rgba(6,20,37,.78) 48%, rgba(7,17,31,.22) 100%),
    linear-gradient(0deg, rgba(7,17,31,.86) 0%, rgba(7,17,31,.08) 65%) !important;
}

@media (max-width: 800px) {
  .header .brand-logo {
    width: 175px !important;
    min-width: 175px !important;
    max-width: 175px !important;
    height: 56px !important;
    flex-basis: 175px !important;
  }

  .header .brand-logo img {
    width: 165px !important;
    max-width: 165px !important;
    height: 50px !important;
    max-height: 50px !important;
  }

  .hero h1,
  .hero-content h1 { color: #f7fbff !important; }
}

/* Mobile navigation readability with the dark header. */
@media (max-width: 800px) {
  .header .menu-toggle {
    color: #dce8f0 !important;
    border-color: rgba(220,232,240,.35) !important;
  }
  .header nav.is-open {
    background: #071522 !important;
    border-bottom: 1px solid rgba(18,199,232,.28) !important;
  }
}

@media (max-width: 600px) {
  .footer .brand-logo {
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    flex: 0 0 155px !important;
  }
  .footer .brand-logo img {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
  }
}
