/* VarAxis visual polish
   Add this file after styles.css and pages.css, or append its contents to styles.css.
   Logo path expected: /assets/varaxis-logo.png
*/

:root {
  --vx-ink: #071522;
  --vx-navy: #0b2033;
  --vx-navy-2: #102f46;
  --vx-cyan: #12c7e8;
  --vx-cyan-dark: #079bb8;
  --vx-text: #243746;
  --vx-muted: #607485;
  --vx-line: #dce7ee;
  --vx-soft: #f4f8fa;
  --vx-white: #ffffff;
  --vx-radius: 14px;
  --vx-shadow: 0 16px 45px rgba(7, 21, 34, .12);
}

/* Global rhythm and readability */
html { scroll-behavior: smooth; }
body {
  color: var(--vx-text);
  background: var(--vx-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Header: dark surface gives the pale parts of the new logo enough contrast */
header,
.header,
.site-header,
.header-surface {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-bottom: 1px solid rgba(18, 199, 232, .22) !important;
  box-shadow: 0 5px 20px rgba(7, 21, 34, .12);
  position: relative;
  z-index: 50;
}

header a,
.header a,
.site-header a,
.header-surface a {
  color: #c9d8e2;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

header a:hover,
.header a:hover,
.site-header a:hover,
.header-surface a:hover,
header a[aria-current="page"],
.header a[aria-current="page"],
.site-header a[aria-current="page"] {
  color: var(--vx-white) !important;
}

header a[aria-current="page"]::after,
.header a[aria-current="page"]::after,
.site-header a[aria-current="page"]::after {
  background: var(--vx-cyan) !important;
}

/* Logo sizing, alignment and a subtle light panel so the supplied artwork stays crisp */
.brand-logo,
.logo,
.site-logo,
header img[src*="varaxis-logo"],
.header img[src*="varaxis-logo"],
.site-header img[src*="varaxis-logo"] {
  display: block;
  width: min(210px, 34vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

header .brand,
.header .brand,
.site-header .brand,
header .logo-wrap,
.header .logo-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Navigation and calls to action */
header nav,
.header nav,
.site-header nav,
.header-surface nav {
  color: #c9d8e2;
}

.header-cta,
header .cta,
.header .cta,
.site-header .cta {
  border-color: rgba(255,255,255,.28) !important;
  color: var(--vx-white) !important;
}

button,
.btn,
a.button,
a.cta,
.header-cta {
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

button:hover,
.btn:hover,
a.button:hover,
a.cta:hover,
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 21, 34, .16);
}

/* Hero and section hierarchy */
.hero,
.hero-section {
  background-color: var(--vx-ink);
  overflow: hidden;
}

.hero h1,
.hero-section h1 {
  letter-spacing: -.045em;
  line-height: 1.02;
}

.hero p,
.hero-section p {
  color: #d8e7ef;
}

section {
  scroll-margin-top: 90px;
}

section:nth-of-type(even) {
  background: var(--vx-soft);
}

.card,
.panel,
.feature-card,
.service-card,
article {
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  box-shadow: 0 8px 28px rgba(7, 21, 34, .06);
}

.card:hover,
.panel:hover,
.feature-card:hover,
.service-card:hover,
article:hover {
  box-shadow: var(--vx-shadow);
  transform: translateY(-3px);
  transition: transform .2s ease, box-shadow .2s ease;
}

h2, h3 { color: var(--vx-ink); letter-spacing: -.025em; }

.accent,
.highlight,
.text-cyan,
.hero strong,
.hero .accent {
  color: var(--vx-cyan) !important;
}

/* Forms and footer */
input, textarea, select {
  border: 1px solid #cbd9e2;
  border-radius: 10px;
  color: var(--vx-text);
  background: var(--vx-white);
}

input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(18, 199, 232, .2);
  border-color: var(--vx-cyan-dark);
}

footer,
.site-footer {
  background: var(--vx-ink) !important;
  color: #c9d8e2;
}

footer a,
.site-footer a { color: #dcebf2; }
footer a:hover,
.site-footer a:hover { color: var(--vx-cyan); }

/* Mobile layout */
@media (max-width: 760px) {
  header,
  .header,
  .site-header,
  .header-surface { padding-block: 12px; }

  .brand-logo,
  .logo,
  .site-logo,
  header img[src*="varaxis-logo"],
  .header img[src*="varaxis-logo"],
  .site-header img[src*="varaxis-logo"] {
    width: 170px;
    max-height: 48px;
  }

  header nav,
  .header nav,
  .site-header nav {
    background: var(--vx-ink) !important;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .hero h1,
  .hero-section h1 { font-size: clamp(2.5rem, 12vw, 4.4rem); }

  section { padding-block: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}