/*
  Design tokens for the RM S.r.l. site.
  Palette ported from the old /css/style.css (red #cc071e / charcoal #232427 /
  grays #45464a, #dadada, #f0f0f0). --color-text-muted is a NEW value:
  the old #808080 on light backgrounds measured under 4.5:1 and is replaced
  here with a verified ≥4.5:1 gray (see verification notes in the project plan).

  2026-11-17: client rebrand — the old gray family (#45464a/#808080/#666666/
  #dadada/#f0f0f0) is replaced with teal tints/shades derived from the 2025
  logo (RM_logo2025.pdf), whose background fill is CMYK(0.81, 0.233, 0.39,
  0.063). Sampled from an actual rendered pixel (not a naive CMYK formula)
  the base teal is #369095; the values below are that same hue/saturation
  at different lightness steps. --color-text-muted is re-verified ≥4.5:1 on
  white (actual: 5.18:1). Red/charcoal are intentionally untouched — see plan.

  2026-11-18: header/footer trial — client asked to see the dark header/footer
  background in the new teal. The bright logo teal (#369095) only gives white
  text/logo 3.76:1 against it (fails AA), so --color-bg-dark now points at
  --color-gray-dark (#1b484b) instead of --color-charcoal: same hue/saturation,
  darker shade, re-verified white 10.1:1 / text-on-dark 9.3:1 / link-on-dark-
  hover 5.95:1. --color-charcoal itself is untouched (still used by headings
  and the skip-link). Red is intentionally untouched — separate client decision.

  2026-11-19: client approved the teal and asked (a) for lighter header/footer
  bands, "like the Certificazioni e autorizzazioni button", and (b) for the
  buttons and all red text to use that same button color. So --color-bg-dark
  and the new --color-accent both point at #2d777c (--color-text-muted).
  Re-verified: white on #2d777c 5.2:1, accent on white 5.2:1 / on bg-light
  4.7:1; hover uses the darker #1b484b (white 10.1:1). The old pink on-dark
  hover (#ffb3b3) only reached 3.06:1 on the new band, so on-dark text/links
  are plain white and hover/current state is signalled by underline instead.
  --color-red is kept as a token but is no longer referenced.
*/

:root {
  /* Brand colors */
  --color-red: #cc071e;
  --color-red-hover: #ff5555;
  --color-accent: #2d777c;         /* buttons, links, icons — replaces red */
  --color-accent-hover: #1b484b;
  --color-charcoal: #232427;
  --color-gray-dark: #1b484b;
  --color-gray-mid: #44b5bb;       /* decorative/border use only, never body text */
  --color-text-muted: #2d777c;     /* ≥4.5:1 on white, verified 5.18:1 */
  --color-gray-light: #c7e9eb;
  --color-bg-light: #e9f6f7;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Semantic text/background roles */
  --color-text: #1a1a1a;
  --color-text-on-dark: #ffffff;
  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-hover);
  --color-link-on-dark: #ffffff;
  --color-link-on-dark-hover: #ffffff;

  --color-bg-page: #ffffff;
  --color-bg-section: var(--color-bg-light);
  --color-bg-dark: var(--color-accent);

  /* Focus: accent clears 5.2:1 on white; white used on dark backgrounds */
  --color-focus: var(--color-accent);
  --color-focus-on-dark: #ffffff;

  /* Borders */
  --color-border: var(--color-gray-light);
  --color-border-on-dark: var(--color-gray-mid);

  /* Typography */
  --font-sans: 'Raleway', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.25;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  /* Layout */
  --content-max-width: 75rem;
  --radius-1: 0.25rem;
  --radius-2: 0.5rem;

  /* Motion */
  --transition-fast: 150ms ease;
}
