/* ==========================================================================
   VAV Global - base.css
   Loaded on EVERY page.
   Contents: design tokens, reset, typography, container, buttons, pills,
             eyebrow, section + section head, visually-hidden helper.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours, taken from the logo */
  --navy: #2B3391;
  --navy-700: #222A78;
  --navy-900: #181D4F;
  --lime: #D7DF21;

  /* Neutrals */
  --ink: #141836;        /* body text */
  --ink-2: #434866;      /* secondary text */
  --ink-3: #5A6080;      /* captions, labels */
  --paper: #F4F6FB;      /* page background */
  --white: #FFFFFF;
  --line: #DDE1EF;       /* hairlines */
  --field: #7A819F;      /* form control borders (3:1 on white) */

  /* Discipline tints: each service keeps the same colour everywhere */
  --legal-bg: #E3E6F7;
  --legal-ink: #1F2778;
  --logi-bg: #DDF0EE;
  --logi-ink: #0A4F49;
  --fin-bg: #F0F4B8;
  --fin-ink: #464E00;

  /* Feedback */
  --ok: #0B5D3B;
  --error: #A31D1D;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: 20px;
  --header-h: 76px;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;

  color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- 4. Accessibility helpers ---------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
}

.skip-link:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Container ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-900);
}

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* Buttons on dark backgrounds */
.btn--lime {
  background: var(--lime);
  color: var(--navy-900);
}

.btn--lime:hover {
  background: #fff;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--navy-900);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------- 7. Pills (Legal / Logistics / Finance tags) ---------- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--legal { background: var(--legal-bg); color: var(--legal-ink); }
.pill--logistics { background: var(--logi-bg); color: var(--logi-ink); }
.pill--finance { background: var(--fin-bg); color: var(--fin-ink); }

/* ---------- 8. Eyebrow, sections and section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--lime);
}

.on-dark .eyebrow {
  color: var(--lime);
}

.section {
  padding-block: 88px;
  scroll-margin-top: var(--header-h);
}

.section--white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--navy-900);
  color: #fff;
}

.head {
  max-width: 740px;
  margin-bottom: 48px;
}

.head__title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.head__lead {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.section--dark .head__lead {
  color: #C9CEEA;
}

@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }

  .head {
    margin-bottom: 36px;
  }
}
