/* =============================================================================
   A&J Computers — brand design tokens.
   Imported 2026-07-11 from the "A&J Computers Design System" (claude.ai/design,
   project b6419a19) via the DesignSync MCP — tokens/colors.css, typography.css,
   fonts.css, spacing.css. This is the T14 deliverable: real brand, not placeholder.

   app.css (structure/components) reads the --brand-* / --font-* / --radius aliases
   at the bottom, so the whole UI picks up the brand from this one file.
   ============================================================================= */

/* Working type families from Google Fonts (Micro Extended, the licensed wordmark
   face, is only used in the logo — which we render from the SVG — so it is not
   loaded here). system-ui fallbacks keep the app usable offline. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Expanded:wght@600;700;800;900&family=Public+Sans:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* ---- Brand ---- */
  --aj-blue:        #004280;  /* primary */
  --aj-blue-deep:   #00305c;
  --aj-navy:        #0d1b2a;
  --aj-blue-light:  #1565a8;
  --aj-red:         #7A1613;  /* accent / key CTAs */
  --aj-red-hover:   #5f110e;
  --aj-red-light:   #9a2420;

  /* ---- Neutrals ---- */
  --aj-ink:         #16191d;
  --aj-body:        #46515f;
  --aj-muted:       #6b7787;
  --aj-faint:       #9aa6b4;
  --aj-border:      #e4e9f0;
  --aj-border-soft: #eef2f6;
  --aj-bg-soft:     #f5f8fb;
  --aj-bg-hero:     #f5f9fd;
  --aj-white:       #ffffff;

  /* ---- Type ---- */
  --aj-font-display: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --aj-font-heading: 'Archivo', system-ui, sans-serif;
  --aj-font-body:    'Public Sans', system-ui, sans-serif;
  --aj-font-mono:    'Spline Sans Mono', ui-monospace, Menlo, monospace;
  --aj-weight-body:     400;
  --aj-weight-medium:   500;
  --aj-weight-semibold: 600;
  --aj-weight-bold:     700;
  --aj-text-eyebrow: 13px; --aj-text-small: 14px; --aj-text-body: 16px;
  --aj-text-h3: 20px; --aj-text-h2: 30px; --aj-text-h1: 40px;
  --aj-lh-heading: 1.22; --aj-lh-body: 1.55;
  --aj-eyebrow-ls: 0.16em;

  /* ---- Spacing / radius / shadow ---- */
  --aj-space-xs: 12px; --aj-space-sm: 16px; --aj-space-md: 22px;
  --aj-space-lg: 28px; --aj-space-xl: 46px; --aj-space-2xl: 84px;
  --aj-radius-btn: 9px; --aj-radius-card: 16px; --aj-radius-pill: 999px;
  --aj-shadow-btn:  0 1px 2px rgba(122,22,19,.3);
  --aj-shadow-card: 0 16px 40px -22px rgba(0,48,92,.4);

  /* ---- Semantic aliases ---- */
  --action-primary: var(--aj-blue);   --action-primary-hover: var(--aj-blue-deep);
  --action-quote:   var(--aj-red);    --action-quote-hover:   var(--aj-red-hover);

  /* ---- Compatibility layer: the names app.css + the Blade views already use ----
     Mapping them to the A&J values restyles the whole app with no view changes. */
  --brand-primary:      var(--aj-blue);
  --brand-primary-hover:var(--aj-blue-deep);
  --brand-primary-ink:  var(--aj-white);
  --brand-bg:           var(--aj-bg-soft);
  --brand-surface:      var(--aj-white);
  --brand-text:         var(--aj-ink);
  --brand-muted:        var(--aj-muted);
  --brand-border:       var(--aj-border);
  --brand-danger:       var(--aj-red);
  --font-heading:       var(--aj-font-heading);
  --font-body:          var(--aj-font-body);
  --radius:             var(--aj-radius-btn);
  --space:              var(--aj-space-sm);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--aj-text-body);
  line-height: var(--aj-lh-body);
  color: var(--aj-body);
  background: var(--brand-bg);
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--aj-ink);
  line-height: var(--aj-lh-heading);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--aj-text-h1); }
h2 { font-size: var(--aj-text-h2); }
h3 { font-size: var(--aj-text-h3); }
a { color: var(--brand-primary); }

/* ---- Base components (app.css adds variants on top of these) ---- */
.app-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--aj-space-lg);
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}
.app-nav .brand-logo { height: 30px; width: auto; display: block; }
.app-main { max-width: 1100px; margin: 2rem auto; padding: 0 var(--aj-space-lg); }
.card {
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  border-radius: var(--aj-radius-card); padding: var(--aj-space-lg);
  box-shadow: var(--aj-shadow-card);
}
.btn {
  display: inline-block; border: 0; border-radius: var(--aj-radius-btn);
  padding: 0.6rem 1.05rem; font: inherit; font-weight: var(--aj-weight-semibold);
  cursor: pointer; text-decoration: none;
  background: var(--action-primary); color: var(--brand-primary-ink);
}
.btn:hover { background: var(--action-primary-hover); }
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.25rem; color: var(--brand-muted); font-size: var(--aj-text-small); }
.error { color: var(--aj-red); margin: 0 0 1rem; }
/* Brand focus ring (replaces the browser default black outline). */
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--aj-blue-light); outline-offset: 1px; border-color: var(--aj-blue);
}
.btn:focus-visible { outline: 2px solid var(--aj-blue-light); outline-offset: 2px; }
.eyebrow {
  font-family: var(--font-heading); font-size: var(--aj-text-eyebrow);
  font-weight: var(--aj-weight-bold); letter-spacing: var(--aj-eyebrow-ls);
  text-transform: uppercase; color: var(--aj-muted);
}
