/* ============================================================================
   UNIWERSUM PRZEDSIĘBIORCÓW — Design System
   colors_and_type.css — foundational + semantic tokens
   Brand: terracotta (#D9693A) · ink (#141416) · warm neutrals · Pilat + Gza
   ============================================================================ */

/* ----------------------------------------------------------------------------
   FONTS
   Pilat            — geometric grotesque. Book(400) / Demi(600) / Heavy(800).
                      The brand's workhorse: UI, body, headings.
   Pilat Condensed  — Heavy(800). Big marketing display caps (hero headlines).
   Gza Semibold     — high-contrast serif, used ITALIC for emphasis words inside
                      sans headlines ("najlepszych", "częścią", "droga").
---------------------------------------------------------------------------- */
@font-face {
  font-family: "Pilat";
  src: url("fonts/Pilat-Book.woff2") format("woff2"), url("fonts/Pilat-Book.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pilat";
  src: url("fonts/Pilat-Demi.woff2") format("woff2"), url("fonts/Pilat-Demi.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pilat";
  src: url("fonts/Pilat-Heavy.woff2") format("woff2"), url("fonts/Pilat-Heavy.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pilat Condensed";
  src: url("fonts/PilatCondensed-Heavy.woff2") format("woff2"), url("fonts/PilatCondensed-Heavy.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gza";
  src: url("fonts/Gza-Semibold.woff2") format("woff2"), url("fonts/Gza-Semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gza";
  src: url("fonts/Gza-Semibold-Italic.woff2") format("woff2"), url("fonts/Gza-Semibold-Italic.woff") format("woff");
  font-weight: 600; font-style: italic; font-display: swap;
}

:root {
  /* ===== BRAND — Terracotta ("Red Damask") ============================== */
  --brand-50:  #FCF6F0;   /* cream wash — tinted card / hero footers */
  --brand-100: #F9E9DB;
  --brand-200: #F2CFB6;
  --brand-300: #E9AF88;
  --brand-400: #E08557;
  --brand-500: #D9693A;   /* PRIMARY — buttons, links, accents, fills */
  --brand-600: #CA502C;   /* hover / pressed */
  --brand-700: #A83D26;   /* deep terracotta */
  --brand-800: #88332A;
  --brand-900: #5E2A22;

  /* ===== INK / NEUTRALS ================================================= */
  --black:      #141416;  /* near-black — text, dark sections, footer */
  --white:      #FFFFFF;

  /* Warm-cool neutral ramp (UI grays) */
  --gray-25:   #FCFCFD;
  --gray-50:   #F6F7F8;   /* app canvas / page background */
  --gray-100:  #EBECEE;   /* hairline separators */
  --gray-200:  #DFE1E4;   /* default borders */
  --gray-300:  #C3C8CD;
  --gray-400:  #A6ABB4;   /* disabled text / placeholders */
  --gray-500:  #7F8491;   /* muted / hint text */
  --gray-600:  #727683;   /* secondary body text (cards) */
  --gray-700:  #4F5259;   /* secondary text */
  --gray-800:  #333438;
  --gray-900:  #141416;

  /* Warm stone neutrals (Loża / editorial surfaces) */
  --stone-50:  #F7F6F5;
  --stone-100: #ECEAE8;
  --stone-300: #C0B8B1;
  --stone-500: #95837A;
  --stone-600: #5B534D;   /* warm taupe — used in marketing copy */
  --stone-900: #282222;

  /* ===== SEMANTIC ======================================================= */
  --success-50:#F0FDF5; --success-500:#22C55E; --success-600:#16A34A; --success-700:#15803C;
  --warning-50:#FFF9EB; --warning-500:#F8AE27; --warning-600:#F28B0E; --warning-700:#D66709;
  --error-50:  #FEF2F2; --error-500:  #EF4444; --error-600:  #DC2626; --error-700:  #B91C1C;
  --info-50:   #EFF5FF; --info-500:   #3B82F6; --info-600:   #2570EB; --info-700:   #1D64D8;

  /* ===== SEMANTIC ALIASES (use these in product code) =================== */
  --bg:          var(--gray-50);
  --bg-surface:  var(--white);
  --bg-cream:    var(--brand-50);
  --bg-dark:     var(--black);
  --fg:          var(--black);     /* primary text */
  --fg-secondary:var(--gray-700);  /* secondary text */
  --fg-muted:    var(--gray-500);  /* hints, captions */
  --fg-on-dark:  var(--white);
  --fg-on-brand: var(--white);
  --accent:      var(--brand-500);
  --accent-hover:var(--brand-600);
  --border:      var(--gray-200);
  --border-light:var(--gray-100);
  --ring:        rgba(217,105,58,0.35);

  /* ===== TYPE FAMILIES ================================================== */
  --font-sans:      "Pilat", "Helvetica Neue", Arial, sans-serif;
  --font-display:   "Pilat", "Helvetica Neue", Arial, sans-serif; /* Heavy weight headings */
  --font-condensed: "Pilat Condensed", "Pilat", "Arial Narrow", sans-serif; /* big display caps */
  --font-serif:     "Gza", Georgia, "Times New Roman", serif;     /* italic accent */

  /* ===== TYPE SCALE (px) — mirrors the .text-* scale in Figma ========== */
  --text-xs:   12px;   --lh-xs:   20px;
  --text-sm:   14px;   --lh-sm:   24px;
  --text-md:   16px;   --lh-md:   27px;   /* base body */
  --text-base: 18px;   --lh-base: 30px;
  --text-xl:   20px;   --lh-xl:   30px;
  --text-2xl:  24px;   --lh-2xl:  32px;
  --text-3xl:  30px;   --lh-3xl:  38px;
  --text-4xl:  36px;   --lh-4xl:  44px;
  --text-5xl:  48px;   --lh-5xl:  58px;
  --text-6xl:  60px;   --lh-6xl:  72px;
  --text-7xl:  72px;   --lh-7xl:  90px;
  --text-8xl:  96px;   --lh-8xl:  104px;

  /* ===== WEIGHTS ======================================================== */
  --fw-book: 400;
  --fw-demi: 600;
  --fw-heavy: 800;

  /* ===== RADII ========================================================== */
  --radius-xs: 2px;    /* buttons, inputs, hero blocks (signature: sharp) */
  --radius-sm: 4px;
  --radius-md: 6px;    /* cards, thumbnails */
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* ===== SHADOWS (soft, low-opacity, neutral) ========================== */
  --shadow-xs: 0 1px 2px 0 rgba(10,13,18,0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.10), 0 1px 2px 0 rgba(0,0,0,0.06);
  --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 16px -4px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);

  /* ===== SPACING (4px base grid) ====================================== */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
}

/* ============================================================================
   SEMANTIC TYPE CLASSES
   ========================================================================== */
.display-condensed {            /* big marketing caps — Pilat Condensed Heavy */
  font-family: var(--font-condensed);
  font-weight: var(--fw-heavy);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
}
.h1 { font-family: var(--font-display); font-weight: var(--fw-heavy);
      font-size: var(--text-5xl); line-height: var(--lh-5xl); color: var(--fg); letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-weight: var(--fw-heavy);
      font-size: var(--text-4xl); line-height: var(--lh-4xl); color: var(--fg); letter-spacing: -0.01em; }
.h3 { font-family: var(--font-sans); font-weight: var(--fw-demi);
      font-size: var(--text-3xl); line-height: var(--lh-3xl); color: var(--fg); }
.h4 { font-family: var(--font-sans); font-weight: var(--fw-demi);
      font-size: var(--text-2xl); line-height: var(--lh-2xl); color: var(--fg); }
.title { font-family: var(--font-sans); font-weight: var(--fw-demi);
      font-size: var(--text-xl); line-height: var(--lh-xl); color: var(--fg); }
.lead { font-family: var(--font-sans); font-weight: var(--fw-book);
      font-size: var(--text-base); line-height: var(--lh-base); color: var(--fg-secondary); }
.p   { font-family: var(--font-sans); font-weight: var(--fw-book);
      font-size: var(--text-md); line-height: var(--lh-md); color: var(--fg-secondary); }
.small { font-family: var(--font-sans); font-weight: var(--fw-book);
      font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--fg-muted); }

/* Italic serif emphasis — drop inside a sans headline */
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 600; }

/* Section eyebrow: small orange square + uppercase tracked label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: var(--fw-demi);
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--accent); flex: none;
}
