/* ============================================================================
   base.css - fundament: zmienne, fonty, reset, typografia
   Czarno-bialy design system spojny z aplikacja OrderSpot.
   ============================================================================ */

:root {
  /* Skala szarosci (czarno-bialy) */
  --ink: #18181b;          /* glowny tekst, czern */
  --ink-soft: #3f3f46;     /* ciemny szary */
  --muted: #71717a;        /* tekst drugorzedny */
  --faint: #a1a1aa;        /* napisy pomocnicze */
  --line: #e4e4e7;         /* obramowania */
  --line-soft: #f4f4f5;    /* delikatne tla/dzielniki */
  --paper: #ffffff;        /* tlo glowne */
  --white: #ffffff;        /* alias bieli (uzywany w konfiguratorze) */
  --surface: #fafafa;      /* tlo sekcji naprzemiennych */
  --black: #111111;        /* akcent (przyciski, naglowki) */

  /* Cienie */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 8px 24px rgba(17,17,17,0.055);
  --shadow-lg: 0 16px 44px rgba(17,17,17,0.075);

  /* Promienie */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Layout */
  --max: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Fonty */
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-desc: var(--font-main);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Twardo: nic nie rozpycha strony w poziomie (html + body). */
html { overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; line-height: 1.35; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* Tekst opisowy - font dodatkowy (Bai Jamjuree) */
.font-desc, .hero-lead, .lead, .section-heading p {
  font-family: var(--font-desc);
}

/* Kontener */
.container, .section-inner, .hero-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* Eyebrow - mala etykieta nad naglowkiem */
.eyebrow {
  display: inline-block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 0.9rem;
  overflow-wrap: anywhere;
}

/* Dostepnosc - focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Szanuj preferencje ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
}

[id] { scroll-margin-top: 88px; }
