/* =========================================================================
   eDTAA Technologies — design tokens
   Generated from the brand colours sampled out of the original logo source.
   Contrast ratios noted below are computed, not estimated.
   ========================================================================= */

:root {
  /* --- Brand colours: EXACT values. Logo use only. Do not alter. --------- */
  --brand-navy:  #002060;  /* wordmark            15.27:1 on white */
  --brand-blue:  #2F5597;  /* rule under wordmark  7.32:1 on white */
  --brand-grey:  #767171;  /* tagline              4.80:1 on white */
  --brand-red:   #FF0000;  /* icon */
  --brand-green: #7FBA00;  /* icon */
  --brand-amber: #FFB900;  /* icon */
  --brand-sky:   #00A4EF;  /* icon */

  /* --- Primary (navy) --------------------------------------------------- */
  --navy-50:  #EBF1FF;
  --navy-100: #D1E0FF;
  --navy-200: #A3C2FF;
  --navy-300: #6699FF;
  --navy-400: #1F69FF;
  --navy-500: #0049DB;
  --navy-600: #003AAD;
  --navy-700: #002C85;
  --navy-800: #002061;   /* ~= brand navy */
  --navy-900: #00143D;

  /* --- Secondary (blue) ------------------------------------------------- */
  --blue-50:  #EFF3FA;
  --blue-100: #DCE5F4;
  --blue-200: #B9CBE9;
  --blue-300: #8AA8DB;
  --blue-400: #547FCA;
  --blue-500: #345EA7;
  --blue-600: #294A84;   /* ~= brand blue */
  --blue-700: #1F3965;
  --blue-800: #172A4A;
  --blue-900: #0F1A2F;

  /* --- Neutrals --------------------------------------------------------- */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F9F9F9;
  --neutral-100: #F1F1F1;
  --neutral-200: #E3E2E2;
  --neutral-300: #CCCBCB;
  --neutral-400: #A9A8A8;
  --neutral-500: #858484;
  --neutral-600: #6C6B6B;   /* 5.31:1 on white — smallest passing body grey */
  --neutral-700: #525151;   /* 7.91:1 on white */
  --neutral-800: #383838;
  --neutral-900: #212121;
  --neutral-950: #121212;

  /* --- Accents ---------------------------------------------------------- *
   * The raw icon colours are deliberately vivid and FAIL WCAG AA as text or
   * small UI marks on white (amber 1.72:1, green 2.35:1, sky 2.78:1,
   * red 4.00:1). Use the -ui variants for anything a user must read; keep
   * the raw brand values for the logo and for large decorative fills only.  */
  --accent-red-ui:   #EB0000;  /* 4.63:1 on white */
  --accent-green-ui: #598200;  /* 4.55:1 on white */
  --accent-amber-ui: #996F00;  /* 4.54:1 on white */
  --accent-sky-ui:   #007AB2;  /* 4.74:1 on white */

  /* --- Semantic --------------------------------------------------------- */
  --success: var(--accent-green-ui);
  --warning: var(--accent-amber-ui);
  --danger:  var(--accent-red-ui);
  --info:    var(--accent-sky-ui);

  /* --- Applied roles (light) -------------------------------------------- */
  --bg:            var(--neutral-0);
  --bg-subtle:     var(--neutral-50);
  --bg-raised:     var(--neutral-0);
  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --text:          var(--neutral-900);
  --text-muted:    var(--neutral-600);
  --text-on-dark:  var(--neutral-0);
  --accent:        var(--brand-navy);
  --accent-hover:  var(--navy-700);
  --focus-ring:    var(--navy-400);

  /* --- Type ------------------------------------------------------------- *
   * Open Sans is the logo wordmark font, so using it for headings keeps the
   * site tied to the mark. Both families are SIL OFL — free to self-host.   */
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-accent: "Montserrat", var(--font-sans);   /* eyebrows, tagline echoes */

  /* --- Spacing / radius / shadow ---------------------------------------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 4px; --radius: 8px; --radius-lg: 14px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 32, 96, .07);
  --shadow:    0 2px 8px rgba(0, 32, 96, .09);
  --shadow-lg: 0 12px 32px rgba(0, 32, 96, .14);
  --measure: 68ch;
}

/* --- Dark theme ---------------------------------------------------------
   Navy-900 ground rather than pure black, so the brand hue carries through. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            var(--navy-900);   /* white on this = 17.99:1 */
    --bg-subtle:     #001030;
    --bg-raised:     #001A4D;
    --border:        #123168;
    --border-strong: #1D4488;
    --text:          var(--neutral-100);
    --text-muted:    #9FB3D9;
    --accent:        var(--navy-200);   /* 10.04:1 on navy-900 */
    --accent-hover:  var(--navy-100);
    --focus-ring:    var(--navy-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 2px 8px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg:            var(--navy-900);
  --bg-subtle:     #001030;
  --bg-raised:     #001A4D;
  --border:        #123168;
  --border-strong: #1D4488;
  --text:          var(--neutral-100);
  --text-muted:    #9FB3D9;
  --accent:        var(--navy-200);
  --accent-hover:  var(--navy-100);
  --focus-ring:    var(--navy-300);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 2px 8px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
}
