/*
 * ATOM D&B — Design Tokens
 * Centralny plik zmiennych CSS używanych na wszystkich podstronach.
 * Linkuj na każdej stronie: <link rel="stylesheet" href="/css/tokens.css">
 *
 * Aktualizacja: kwiecień 2026
 */

:root {
  /* ============================================
     PRIMARY PALETTE — czarno-biała baza
     ============================================ */
  --atom-black: #0a0a0a;
  --atom-white: #ffffff;
  --atom-off-white: #f8f8f6;
  --atom-bg-secondary: #f4f6f8;

  /* ============================================
     BORDERS
     ============================================ */
  --border-tertiary: #e5e5e3;
  --border-secondary: #c5c5c0;
  --border-primary: #888780;

  /* ============================================
     TEXT
     ============================================ */
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a47;
  --text-tertiary: #888780;

  /* ============================================
     ACCENT — STALOWY (główny accent strategiczny)
     Office, hover states, borders, CTA
     ============================================ */
  --accent-stalowy: #4A6B7C;
  --accent-stalowy-light: #B5D4F4;
  --accent-stalowy-dark: #2C4A57;

  /* ============================================
     ACCENT — NAVY
     Tylko dla-inwestorow.html (paleta trust + finance)
     ============================================ */
  --accent-navy: #1A3A5C;
  --accent-navy-dark: #0a1628;

  /* ============================================
     ACCENT — TOBACCO
     Hospitality (border-top na kartach, deep dive bg)
     ============================================ */
  --accent-tobacco: #BA7517;
  --accent-tobacco-light: #FAC775;

  /* ============================================
     ACCENT — AMBER
     Gastro (border-top na kartach, deep dive bg)
     ============================================ */
  --accent-amber: #C9882D;

  /* ============================================
     ACCENT — GRAY WARM
     Retail, przemysł (border-top na kartach)
     ============================================ */
  --accent-gray-warm: #888780;
  --accent-gray-warm-dark: #5F5E5A;

  /* ============================================
     ACCENT — GREEN
     Tylko esg.html (3 dyskretne miejsca)
     ============================================ */
  --accent-green: #1D9E75;
  --accent-green-dark: #0F6E56;
  --accent-green-light: #6FCBA8;

  /* ============================================
     STATUS COLORS (opcjonalnie, error/success)
     ============================================ */
  --status-success: #97C459;
  --status-warning: #FAC775;
  --status-danger: #E07060;

  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-bodoni: 'Bodoni 72', 'Didot', 'Bodoni Moda', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;

  /* ============================================
     SPACING SCALE
     ============================================ */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 22px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* ============================================
     RADIUS
     ============================================ */
  --radius-sm: 2px;       /* przyciski, badge'e */
  --radius-md: 4px;       /* karty, sekcje */
  --radius-full: 9999px;  /* dot indicators, koła */

  /* ============================================
     LAYOUT
     ============================================ */
  --container-max: 1920px;
  --container-padding: 28px;

  /* ============================================
     ANIMATIONS
     ============================================ */
  --transition-fast: 150ms ease-out;
  --transition-base: 300ms ease-out;
  --transition-slow: 600ms ease-out;
  --transition-slow-zoom: 20s ease-out;
}

/* ============================================
   GLOBALNE BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--atom-white);
}

/* Fluid container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-bodoni { font-family: var(--font-bodoni); }
.font-mono { font-family: var(--font-mono); }

/* Hero headline — pierwsza linia weight 700 + druga linia weight 200 */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.hero-headline span {
  font-weight: 200;
  opacity: 0.7;
}

/* Section headline */
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

/* Mono label uppercase */
.mono-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
}

/* Mono ticker (z kropką) */
.mono-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.mono-ticker::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip-to-content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--atom-black);
  color: var(--atom-white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--accent-stalowy);
  outline-offset: 2px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HERO BACKGROUND ANIMATION (slow zoom)
   ============================================ */

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-bg-zoom {
  animation: slowZoom var(--transition-slow-zoom) ease-out forwards;
}

/* ============================================
   FADE-IN-UP ANIMATION (dla GSAP fallback)
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 800ms ease-out forwards;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
