/* ==========================================================================
   VYLOX DIGITAL — DESIGN TOKENS
   "Precision Growth"

   Every colour, size and spacing value in the site is named here once.
   Nothing further down the stylesheets uses a raw hex code or a raw pixel
   value for these things. Change a token and it changes everywhere.
   ========================================================================== */

:root {

  /* ------------------------------------------------------------------
     BRAND COLOURS — the approved palette, unchanged
     ------------------------------------------------------------------ */
  --vxd-navy:        #073B60;  /* Deep Navy      */
  --vxd-midnight:    #04243C;  /* Midnight Navy  */
  --vxd-blue:        #087FC1;  /* Primary Blue   */
  --vxd-blue-btn:    #0670AB;  /* Button Blue    */
  --vxd-cyan:        #16B9D5;  /* Cyan           */
  --vxd-bg-light:    #F4F8FB;  /* Light Background */
  --vxd-white:       #FFFFFF;
  --vxd-ink:         #0B2233;  /* Ink — body text */
  --vxd-slate:       #4A5B6A;  /* Slate — secondary text */
  --vxd-border:      #DCE6EE;

  /* ------------------------------------------------------------------
     COLOUR ROLES — which colour does which job

     These exist because of one accessibility finding. Primary Blue
     (#087FC1) on white measures 4.36:1 contrast. WCAG AA asks for 4.5:1
     on normal-sized text, so Primary Blue fails it by a small margin.
     Button Blue (#0670AB) measures 5.37:1 and passes comfortably.

     So: Button Blue carries anything that is text a person must read —
     links, button fills, small labels. Primary Blue carries large
     headings, icons, borders and gradients, where the 3:1 large-text
     threshold applies and it passes easily.

     The palette is unchanged. Only the job each colour does is fixed.
     ------------------------------------------------------------------ */
  --vxd-text:            var(--vxd-ink);
  --vxd-text-muted:      var(--vxd-slate);      /* 7.01:1 on white  */
  --vxd-text-on-dark:    rgba(255, 255, 255, 0.92);
  --vxd-text-on-dark-mu: rgba(255, 255, 255, 0.72);

  --vxd-link:            var(--vxd-blue-btn);   /* 5.37:1 — AA pass */
  --vxd-link-hover:      var(--vxd-navy);
  --vxd-accent:          var(--vxd-blue);       /* headings, icons  */
  --vxd-accent-bright:   var(--vxd-cyan);

  --vxd-surface:         var(--vxd-white);
  --vxd-surface-alt:     var(--vxd-bg-light);
  --vxd-surface-dark:    var(--vxd-midnight);

  /* Focus ring. Deliberately high contrast on both light and dark. */
  /* Hover state for the cyan button. A lighter tint of Cyan, so it still
     reads as the same colour while clearly responding to the pointer. */
  --vxd-cyan-light:      #3ACBE3;

  --vxd-focus:           var(--vxd-cyan);
  --vxd-focus-width:     3px;
  --vxd-focus-offset:    2px;

  /* ------------------------------------------------------------------
     GRADIENTS AND PATTERNS
     ------------------------------------------------------------------ */
  --vxd-gradient-hero:
    linear-gradient(135deg, var(--vxd-midnight) 0%, var(--vxd-navy) 55%, #0A4E7A 100%);

  --vxd-gradient-accent:
    linear-gradient(90deg, var(--vxd-blue) 0%, var(--vxd-cyan) 100%);

  --vxd-gradient-cta:
    linear-gradient(135deg, var(--vxd-navy) 0%, var(--vxd-midnight) 100%);

  /* A fine grid, drawn in CSS so it costs no image request. */
  --vxd-grid-line: rgba(255, 255, 255, 0.055);
  --vxd-grid-size: 56px;

  /* ------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------ */
  --vxd-font-heading: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --vxd-font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* A fluid scale. Each size moves smoothly between mobile and desktop,
     so there is no sudden jump at a breakpoint. */
  --vxd-h1:   clamp(2.125rem, 1.45rem + 2.9vw, 3.5rem);     /* 34 → 56px */
  --vxd-h2:   clamp(1.625rem, 1.22rem + 1.75vw, 2.5rem);    /* 26 → 40px */
  --vxd-h3:   clamp(1.25rem, 1.08rem + 0.72vw, 1.625rem);   /* 20 → 26px */
  --vxd-h4:   clamp(1.0625rem, 0.99rem + 0.33vw, 1.25rem);  /* 17 → 20px */
  --vxd-body: 1.0625rem;                                     /* 17px      */
  --vxd-small: 0.9375rem;                                    /* 15px      */
  --vxd-tiny:  0.8125rem;                                    /* 13px      */

  --vxd-lh-tight: 1.15;
  --vxd-lh-snug:  1.35;
  --vxd-lh-body:  1.65;

  --vxd-weight-regular: 400;
  --vxd-weight-medium:  500;
  --vxd-weight-semi:    600;
  --vxd-weight-bold:    700;

  --vxd-track-tight: -0.02em;
  --vxd-track-wide:   0.08em;

  /* ------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------ */
  --vxd-container:     1200px;
  --vxd-container-narrow: 820px;   /* long-form reading width */

  --vxd-pad-x:         20px;       /* mobile  */
  --vxd-pad-x-tablet:  32px;
  --vxd-pad-x-desktop: 24px;

  --vxd-section-y:         48px;   /* mobile  */
  --vxd-section-y-tablet:  64px;
  --vxd-section-y-desktop: 80px;

  /* 80px gives the stacked logo lockup (symbol above wordmark) room to
     stay legible. A horizontal lockup would let this drop to about 72px
     and read better at the same time. */
  --vxd-header-height: 80px;

  /* ------------------------------------------------------------------
     SPACING SCALE
     ------------------------------------------------------------------ */
  --vxd-space-1:  4px;
  --vxd-space-2:  8px;
  --vxd-space-3:  12px;
  --vxd-space-4:  16px;
  --vxd-space-5:  20px;
  --vxd-space-6:  24px;
  --vxd-space-8:  32px;
  --vxd-space-10: 40px;
  --vxd-space-12: 48px;
  --vxd-space-16: 64px;
  --vxd-space-20: 80px;

  /* ------------------------------------------------------------------
     SHAPE
     ------------------------------------------------------------------ */
  --vxd-radius-sm:   8px;
  --vxd-radius:      16px;   /* cards */
  --vxd-radius-lg:   24px;
  --vxd-radius-pill: 999px;  /* buttons */

  --vxd-btn-height:     48px;
  --vxd-btn-height-sm:  40px;

  /* ------------------------------------------------------------------
     SHADOWS — soft and low, never heavy
     ------------------------------------------------------------------ */
  --vxd-shadow-sm:  0 1px 2px rgba(11, 34, 51, 0.05);
  --vxd-shadow:     0 2px 4px rgba(11, 34, 51, 0.04),
                    0 8px 24px rgba(11, 34, 51, 0.06);
  --vxd-shadow-lg:  0 4px 8px rgba(11, 34, 51, 0.05),
                    0 16px 48px rgba(11, 34, 51, 0.10);
  --vxd-shadow-btn: 0 2px 8px rgba(6, 112, 171, 0.25);

  /* ------------------------------------------------------------------
     MOTION
     ------------------------------------------------------------------ */
  --vxd-ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --vxd-speed-fast: 140ms;
  --vxd-speed:      220ms;
  --vxd-speed-slow: 380ms;

  /* ------------------------------------------------------------------
     LAYERING
     ------------------------------------------------------------------ */
  --vxd-z-dropdown: 900;
  --vxd-z-header:   1000;
  --vxd-z-overlay:  1100;
  --vxd-z-drawer:   1200;
}

/* Honour the operating system setting for people who get motion sickness
   or migraines from movement. This is a real accessibility requirement,
   not a nicety. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --vxd-speed-fast: 0ms;
    --vxd-speed:      0ms;
    --vxd-speed-slow: 0ms;
  }
}
