/*
  Access Office — design tokens (access2026 theme)

  Direction: this is a spec-sheet for civic furniture, not a storefront.
  Access Office fabricates and installs furniture systems for WA libraries,
  schools, TAFEs and government offices, off real tender panels (CUAFWE2024
  is a genuine WA govt contract code) with a spec sheet already in normal
  use (Shipping_Quote.pdf, Access Catalogue 2019.pdf). The whole theme reads
  like an annotated technical drawing: dimension lines, title blocks, scale
  ticks, catalogue numbers — because that's literally how a facilities
  manager evaluates this stuff, not decoration borrowed from elsewhere.

  Hard constraints (client's own words): the logo file and Signal Yellow
  (extracted from the logo's own pixels) are unchanged. Everything else —
  type, layout, structural devices, motion — is a deliberate departure from
  the old theme, not a re-skin of it.
*/

:root {
  /* Colour */
  --color-signal: #FDE72E;      /* logo's own yellow — unchanged, the one hard colour constraint */
  --color-blueprint: #1B3A5C;   /* technical-drawing ink: dimension lines, callouts, catalogue numerals */
  --color-graphite: #1E1D1C;    /* printed-document black — headings/primary text */
  --color-concrete: #EDEAE2;    /* cooler, grittier page background than a generic "paper" neutral */
  --color-steel: #8A8D8F;       /* literal steel grey — secondary text, hairlines */
  --color-white: #FFFFFF;
  --color-stock-teal: #1FC0A0;  /* kept narrowly for real stock-availability signal only */

  /* Semantic aliases — templates reference these, never the raw hex above. */
  --color-text: var(--color-graphite);
  --color-text-muted: var(--color-steel);
  --color-surface: var(--color-white);
  --color-page-bg: var(--color-concrete);
  --color-action: var(--color-signal);
  --color-action-text: var(--color-graphite);
  --color-annotation: var(--color-blueprint);
  --color-stock-available: var(--color-stock-teal);

  /* Type — Oswald (condensed grotesk) carries real technical/civic
     character, kept deliberately. Body moves off the old theme's Hind to
     IBM Plex Sans — designed for engineering/technical documentation, not
     another humanist default. IBM Plex Mono is promoted from a tucked-away
     utility to a structural device: catalogue numbers, nav labels, title
     blocks, footer — everywhere a spec sheet would use monospace. */
  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* Spacing scale — 8px base. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  --radius-sm: 2px;
  --radius-md: 4px;

  --border-color: #D8D4C8; /* derived off Concrete */
  --border-color-strong: var(--color-graphite);
}

/* Minimal reset. */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guards against any component (carousels especially)
    pushing the page wide and creating a page-level horizontal scrollbar;
    doesn't clip anything vertically or affect normal layout */
}
html { overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-graphite);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-3);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================
   SIGNATURE SYSTEM — the recurring technical-drawing devices used across
   hero, section dividers, category index and product spec blocks.
   ===================================================== */

/* Scale-bar rule — a ruler's tick marks, used as the page's section
   divider instead of a plain hairline. Real structural grammar, not
   decoration: every major section break reads the same way. */
.scale-rule {
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    var(--color-steel) 0, var(--color-steel) 1px,
    transparent 1px, transparent 24px
  ),
  repeating-linear-gradient(
    to right,
    var(--color-steel) 0, var(--color-steel) 1px,
    transparent 1px, transparent 120px
  );
  background-size: 24px 5px, 120px 9px;
  background-position: left top, left top;
  background-repeat: repeat-x, repeat-x;
  border-bottom: 1px solid var(--border-color);
  margin: var(--space-6) 0;
}

/* Catalogue numeral — real category/product IDs rendered large, in mono,
   in Blueprint Ink. Encodes real information (this IS the item's actual
   catalogue number), never a decorative index. */
.catalogue-numeral {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-annotation);
  font-variant-numeric: tabular-nums;
}

/* Title block — the corner box on every technical drawing (project,
   scale, date, revision). Reused as a compact facts strip under headlines. */
.title-block {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color-strong);
  border-bottom: 1px solid var(--border-color-strong);
}
.title-block-field {
  padding: var(--space-2) var(--space-3);
  border-right: 1px solid var(--border-color-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}
.title-block-field:last-child { border-right: none; }
.title-block-label {
  display: block;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  margin-bottom: 2px;
}
.title-block-value { color: var(--color-graphite); }

/* Spec-table utility — dimensions/SKU/pricing blocks on product pages. */
.spec-table {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-color);
}
.spec-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Stock-status marker — real availability information, not decoration. */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.stock-status--available { color: var(--color-stock-available); }
.stock-status--available::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Primary action — Signal Yellow spent on exactly one thing per screen. */
.btn-primary {
  display: inline-block;
  background: var(--color-action);
  color: var(--color-action-text);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
}
.btn-primary:hover { background: #E6D129; }
