/* ==========================================================================
   tokens.css: ATEO Door — design tokens (direction 3 „Pro firmy“, approved 2026-11-26)
   The only file with literal colours, fonts, sizes, radii, shadows and timings.
   Contrast measured with production-code-standards/scripts/contrast.py (ratio noted per token).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: neutrals */
  --c-ink: #1A2233;              /* body text · 15.90:1 on #FFFFFF */
  --c-muted: #4B5568;            /* secondary text · 7.50:1 on #FFFFFF, 6.81:1 on #F2F4F7 */
  --c-brand-gray: #5B6478;       /* brand names strip · 5.93:1 on #FFFFFF */
  --c-surface: #FFFFFF;
  --c-surface-2: #F2F4F7;        /* tinted sections */
  --c-line: #DDE2EA;             /* decorative dividers only */
  --c-line-strong: #B9C1CF;      /* card frames (decorative) */

  /* Colour: brand */
  --c-navy-950: #0C1C45;         /* dark sections, footer · #FFFFFF 16.57:1 */
  --c-navy-800: #102763;         /* headings, buttons · 14.07:1 on #FFFFFF, 12.77:1 on #F2F4F7 */
  --c-accent: #C9373F;           /* light red: primary buttons, markers · #FFFFFF on it 5.12:1 */
  --c-accent-hover: #B42F37;     /* hover of accent buttons · #FFFFFF on it 6.17:1 */
  --c-on-dark: #FFFFFF;
  --c-on-dark-2: #D5DCE8;        /* text on navy · 12.02:1 on #0C1C45 */
  --c-on-dark-muted: #C3CCDD;    /* notes on navy · 10.26:1 on #0C1C45 */
  --c-on-dark-line: rgba(255, 255, 255, 0.16);     /* decorative lines on dark */
  --c-on-dark-line-strong: rgba(255, 255, 255, 0.6); /* outline buttons on dark · ≥ 3:1 */
  --c-on-dark-line-btn: rgba(255, 255, 255, 0.8);
  --c-on-dark-fact: rgba(255, 255, 255, 0.5);
  --c-ghost: rgba(255, 255, 255, 0.04);
  --c-on-dark-glass: rgba(255, 255, 255, 0.1);
  --c-grid-line: rgba(255, 255, 255, 0.05);

  /* Colour: feedback */
  --c-error-on-dark: #FFC9CC;    /* error text on navy · 11.42:1 on #0C1C45 */

  /* Overlays over photos (navy #0C1C45 with alpha) */
  --o-hero: linear-gradient(90deg, rgba(12, 28, 69, 0.97) 0%, rgba(12, 28, 69, 0.88) 42%, rgba(12, 28, 69, 0.45) 100%);
  --o-card-bottom: linear-gradient(180deg, rgba(12, 28, 69, 0.1) 10%, rgba(12, 28, 69, 0.75) 45%, rgba(12, 28, 69, 0.95) 100%);
  --o-card-left: linear-gradient(90deg, rgba(12, 28, 69, 0.92) 0%, rgba(12, 28, 69, 0.35) 75%);
  --o-photo-bottom: linear-gradient(180deg, rgba(12, 28, 69, 0) 50%, rgba(12, 28, 69, 0.9) 100%);
  --o-hero-card: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --fs-2xs: 0.875rem;               /* step label, job place */
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-body: 1.125rem;
  --fs-xl: 1.1875rem;
  --fs-tile: 0.8438rem;             /* product tiles, bold uppercase */
  --fs-step: 1.1875rem;
  --fs-card: 1.25rem;
  --fs-brand: 1.375rem;
  --fs-reach: 1.4375rem;
  --fs-form-title: 1.5625rem;
  --fs-fact: clamp(1.375rem, 4.5vw + 0.53rem, 1.625rem);
  --fs-case: 1.875rem;
  --fs-badge: 2.5rem;
  --fs-h2: clamp(2.25rem, 1.2vw + 1.75rem, 2.625rem);
  --fs-h2-xl: clamp(2.25rem, 2vw + 1.25rem, 2.8125rem);
  --fs-h1: clamp(2.75rem, 2.5vw + 1.875rem, 3.5rem);
  --fs-ghost: 12.6875rem;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-hero: 1.02;
  --lh-tight: 1.05;
  --lh-h2: 1.1;             /* room for fallback fonts' taller glyphs (no clipping before the web font loads) */
  --lh-heading: 1.2;
  --lh-card: 1.1;
  --lh-snug: 1.35;
  --lh-body: 1.6;
  --ls-heading: -0.5px;
  --ls-wide: 0.5px;
  --ls-brand: 1px;

  /* Spacing & layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-section: clamp(64px, 10vw + 16px, 112px);
  --container: 1280px;
  --gutter: clamp(20px, 5vw - 8px, 40px);
  --header-h: 84px;
  --chamfer: 36px;
  --chamfer-s: 18px;
  --chamfer-btn: 12px;
  --grid-size: 48px;
  --stripe: 14px;

  /* Radii (sharp industrial style) */
  --r-0: 0;

  /* Shadows */
  --shadow-strip: 0 24px 48px rgba(12, 28, 69, 0.18);
  --shadow-float: 0 16px 40px rgba(12, 28, 69, 0.16);

  /* Layers & motion */
  --z-raised: 2;
  --z-header: 10;
  --z-menu: 20;
  --dur-fast: 0.15s;
  --ease: ease;
}

/* Tablet and phone: the approved design sets h1 44px and h2 36px at ≤ 960px; below 390px they shrink further
   so long Czech words (SPOLUPRÁCE, PRŮMYSL) fit down to 240px wide screens. */
@media (max-width: 60em) {
  :root {
    --fs-h1: clamp(2rem, 8vw + 0.8rem, 2.75rem);
    --fs-h2: clamp(1.75rem, 6vw + 0.7875rem, 2.25rem);
    --fs-h2-xl: clamp(1.75rem, 6vw + 0.7875rem, 2.25rem);
    --fs-ghost: 7.5rem;
  }
}
