/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #0f172a; /* dark-blue/graphite industrial background */
  --color-surface: #111827;
  --color-surface-alt: #0b1220;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-primary: #0ea5e9; /* cyan/technical accent */
  --color-primary-soft: rgba(14, 165, 233, 0.1);
  --color-primary-strong: #0284c7;
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;

  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-4: 0.25rem;   /* 4px */
  --space-8: 0.5rem;    /* 8px */
  --space-12: 0.75rem;  /* 12px */
  --space-16: 1rem;     /* 16px */
  --space-20: 1.25rem;  /* 20px */
  --space-24: 1.5rem;   /* 24px */
  --space-32: 2rem;     /* 32px */
  --space-40: 2.5rem;   /* 40px */
  --space-48: 3rem;     /* 48px */
  --space-64: 4rem;     /* 64px */
  --space-80: 5rem;     /* 80px */
  --space-96: 6rem;     /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Shadows (subtle, suitable for industrial UI) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.55);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.7);

  /* Borders */
  --border-subtle: 1px solid rgba(148, 163, 184, 0.18);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 250ms ease-out;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--gray-50);
}

h1 {
  font-size: clamp(2.25rem, 2.4vw + 1.6rem, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 1.8vw + 1.3rem, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 1.875rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text-muted);
}

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

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

a:hover {
  color: var(--color-primary-strong);
}

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

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: var(--space-24) 0;
}

/* ========================================================================== 
   Accessibility
   ========================================================================== */

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

@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;
  }
}

/* Screen-reader only utility */
.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;
}

/* ========================================================================== 
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1200px; /* suitable for B2B desktop-focused layout */
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.section--dense {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-sm {
  gap: var(--space-12);
}

.gap-md {
  gap: var(--space-20);
}

.gap-lg {
  gap: var(--space-32);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-12); }
.mt-md { margin-top: var(--space-24); }
.mt-lg { margin-top: var(--space-40); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-12); }
.mb-md { margin-bottom: var(--space-24); }
.mb-lg { margin-bottom: var(--space-40); }

.py-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

/* Constraining content width for long Polish technical copy */
.content-awwol{
  max-width: 720px;
}

/* ========================================================================== 
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #0b1120;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background-color: rgba(15, 23, 42, 0.9);
}

.btn--ghost {
  background-color: rgba(15, 23, 42, 0.8);
  color: var(--gray-100);
}

.btn--ghost:hover {
  background-color: rgba(15, 23, 42, 1);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Form controls */
.input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
  background-color: #020617;
}

.input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-200);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.form-helper {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

/* Card: for product categories, offers, logistics details */
.card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), #020617);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card__header {
  margin-bottom: var(--space-16);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Tag/pill for statuses like "Nowa dostawa", "Oferta specjalna" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--primary {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge--success {
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
}

.badge--warning {
  background-color: rgba(251, 191, 36, 0.12);
  color: var(--color-warning);
}

/* ========================================================================== 
   Site-Specific Structural Helpers (KO-REK)
   ========================================================================== */

/* Hero section background: subtle industrial grid */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.6), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* Navigation base (for structured B2B menu) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.navbar__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.navbar__link:hover,
.navbar__link[aria-current="page"] {
  color: var(--gray-50);
}

@media (max-width: 768px) {
  .navbar__menu {
    display: none;
  }
}

/* Footer base */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

/* Tables for technical specs */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead {
  background-color: rgba(15, 23, 42, 0.9);
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--gray-200);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.7);
}

/* Alerts for logistics, delivery info, terms */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-16);
  border: 1px solid transparent;
  font-size: var(--text-sm);
}

.alert--info {
  background-color: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

.alert--success {
  background-color: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.6);
}

.alert--warning {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.7);
}

.alert--danger {
  background-color: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.7);
}

/* Testimonials */
.testimonial {
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(145deg, #020617, #020617 40%, #0b1120 100%);
}

.testimonial__quote {
  font-style: italic;
  color: var(--color-text);
}

.testimonial__author {
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--gray-300);
}

/* Badges for product categories (metal, hydraulika, ogrzewanie, etc.) */
.category-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* Chips for filters (e.g. branże, zastosowanie) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: var(--text-xs);
  color: var(--gray-200);
}

.chip--active {
  background-color: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Simple badge-style status indicator */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-success);
}

.status-dot--offline {
  background-color: var(--gray-500);
}

/* End of base.css */
