/* ==========================================================================
   MAVERICK PERFORMANCE SOLUTIONS — Design Tokens & Base
   tokens.css — per BUILD_SPEC §2. Use variables only; never raw hex in pages.
   ========================================================================== */

:root {
  /* Brand */
  --mav-blue: #0E5FD8;          /* primary brand blue */
  --mav-blue-deep: #0A3D8F;     /* hover/dark variant */
  --mav-blue-electric: #3D8BFF; /* accents on dark */
  --mav-charcoal: #1C2026;      /* primary dark surface */
  --mav-charcoal-2: #262B33;    /* raised dark surface */
  --mav-steel: #5A6472;         /* muted text on light */
  --mav-line: #DDE3EA;          /* borders on light */
  --mav-bg: #F5F7FA;            /* page background */
  --mav-surface: #FFFFFF;       /* cards on light */
  --mav-ink: #14171C;           /* body text */
  --mav-safety: #FF8A00;        /* sparing accent: CTAs badges only */
  /* MAVJOINT standard colors (CSS-approximated swatch chips) */
  --mavjoint-black: #1F2123;
  --mavjoint-concrete-gray: #8E9196;
  --mavjoint-dovetail-gray: #7E7B74;
  --mavjoint-gauntlet-gray: #66625C;
  --mavjoint-intellectual-gray: #A8A294;
  --mavjoint-warmstone: #B3A48C;
  /* Type */
  --font-display: "Barlow Condensed", sans-serif;  /* headings, all-caps, 600/700 */
  --font-body: "Inter", sans-serif;                /* body, UI */
  /* Scale */
  --radius: 6px;
  --shadow-card: 0 1px 3px rgba(20,23,28,.08), 0 8px 24px rgba(20,23,28,.06);
  --maxw: 1200px;
}

/* --------------------------------------------------------------------------
   Base reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mav-ink);
  background: var(--mav-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Typography defaults
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  color: inherit;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.25vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: .95rem; font-weight: 600; }

p {
  line-height: 1.65;
}

a {
  color: var(--mav-blue);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--mav-blue-deep);
}

strong {
  font-weight: 600;
}

small {
  font-size: .85em;
}

::selection {
  background: var(--mav-blue);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Focus visibility (WCAG)
   -------------------------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--mav-blue-electric);
  outline-offset: 2px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.dark-section :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--mav-blue-electric);
}

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