/* ==========================================================================
   SMRC Design Tokens
   Source of truth for color, type, spacing, and other shared primitives.
   Every other stylesheet should reference these custom properties rather
   than hard-coding values.
   ========================================================================== */

:root {
  /* ---- Brand colors (from SMRC logo) ---- */
  --color-forest-green: #185534;   /* primary — header, footer, section backgrounds, CTAs */
  --color-forest-green-dark: #103d26; /* hover/active state for forest green surfaces */
  --color-gold: #E4AA38;           /* accent — buttons, hover states, highlights, dividers */
  --color-gold-dark: #c68f24;      /* hover/active state for gold surfaces */
  --color-black: #0E0F0E;          /* dark text, dark sections */
  --color-white: #FFFFFF;          /* base background, light text on dark */
  --color-off-white: #F7F6F2;      /* warm light section background, alt to pure white */
  --color-gray-placeholder: #4A4A4A; /* temporary neutral fill for hero/section backgrounds pending real photography */

  /* ---- Functional color roles ---- */
  --color-text: var(--color-black);
  --color-text-muted: #4b4f4c;
  --color-text-on-dark: var(--color-white);
  --color-text-on-dark-muted: #cfe0d3;
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-off-white);
  --color-bg-dark: var(--color-forest-green);
  --color-border: #e2e0d8;
  --color-border-on-dark: rgba(255, 255, 255, 0.18);
  --color-link: var(--color-gold);       /* inline body-copy links (base `a`) */
  --color-link-hover: var(--color-gold-dark);
  --color-focus-ring: var(--color-gold);

  /* ---- Type families ----
     Prompt (weight 700): hero title, section titles, h1–h6.
     Lato: nav links, body copy, buttons, and all other UI text.
     Mono: "engineering drawing" motif only (drawing tag, section labels,
     spec-sheet list numbers, stamp strip) — never body/heading copy. */
  --font-heading: "Prompt", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;

  /* ---- Type scale (1rem = 16px baseline) ---- */
  --font-size-xs: 0.8125rem;   /* 13px */
  --font-size-sm: 0.9375rem;   /* 15px */
  --font-size-base: 1.0625rem; /* 17px — body copy */
  --font-size-md: 1.25rem;     /* 20px */
  --font-size-lg: 1.5rem;      /* 24px */
  --font-size-xl: 1.875rem;    /* 30px */
  --font-size-2xl: 2.25rem;    /* 36px */
  --font-size-3xl: 2.75rem;    /* 44px */
  --font-size-4xl: 3.5rem;     /* 56px */
  --font-size-5xl: 4.25rem;    /* 68px — hero H1 */

  --line-height-tight: 1.1;
  --line-height-heading: 1.2;
  --line-height-base: 1.6;

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --letter-spacing-heading: 0.01em;
  --letter-spacing-eyebrow: 0.12em;

  /* ---- Spacing scale (4px base unit) ---- */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 2.5rem;   /* 40px */
  --space-8: 3rem;     /* 48px */
  --space-9: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-padding: var(--space-5);

  /* ---- Shape & effects ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 15, 14, 0.08);
  --shadow-md: 0 4px 16px rgba(14, 15, 14, 0.12);
  --shadow-lg: 0 12px 32px rgba(14, 15, 14, 0.18);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* ---- Z-index scale ---- */
  --z-header: 100;
  --z-dropdown: 110;
  --z-mobile-nav: 120;
}
