/* ============================================
   ALFA Gdynia - Suszarki na Balkon
   main.css - Design system, variables, reset
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #1B3A5C;
  --color-primary-light: #2E5A8E;
  --color-accent: #C0392B;
  --color-accent-hover: #A93226;
  --color-steel: #8A9BB0;
  --color-bg: #F8F9FA;
  --color-bg-dark: #1a2332;
  --color-text: #1C2B3A;
  --color-text-muted: #5A6A7A;
  --color-border: #DEE2E6;
  --color-white: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F0F4F8;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Raleway', 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing & Layout */
  --container-max: 1200px;
  --section-py: 5rem;
  --section-py-sm: 3rem;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-py-sm) 0;
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: var(--text-lg);
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.85);
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ===== Accessibility ===== */
.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;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Media queries ===== */
@media (min-width: 768px) {
  .section {
    padding: var(--section-py) 0;
  }

  .container {
    padding: 0 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
