/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - Dark casino-inspired */
  --color-background: #05070b; /* deep casino background */
  --color-surface: #10131b; /* cards/table surface */
  --color-surface-alt: #171b25;

  --color-text: #f5f5f5;
  --color-text-muted: #a4a9b6;

  --color-primary: #d4af37; /* gold accent */
  --color-primary-soft: rgba(212, 175, 55, 0.12);
  --color-primary-strong: #f0c94a;

  --color-accent-red: #c62828; /* roulette/red chips */
  --color-accent-red-soft: rgba(198, 40, 40, 0.14);

  --color-success: #2e7d32;
  --color-warning: #ffa000;
  --color-danger: #d32f2f;

  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5f5;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

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

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows - subtle, premium */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-soft-gold: 0 0 0 1px rgba(212, 175, 55, 0.25);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* =========================================================
   Reset / Normalize
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none !important;
}

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

/* Tables */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th, td {
  padding: var(--space-2) var(--space-3);
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #151823 0, #05070b 55%, #020309 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

/* Headings - premium display for key elements */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

h1, h2, h3 {
  margin-bottom: var(--space-4);
}

h4, h5, h6 {
  margin-bottom: var(--space-3);
}

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

strong {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

/* Links */

a {
  color: var(--color-primary);
  transition: color var(--transition-normal),
              opacity var(--transition-fast),
              text-shadow var(--transition-normal);
}

a:hover {
  color: #fff !important;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}

a:active {
  opacity: 0.85;
}

/* Lists (navigation / catalog filters often use flex) */

ul, ol {
  margin-bottom: var(--space-4);
}

/* Figures */

figure {
  margin: 0;
}

/* =========================================================
   Accessibility & Focus
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

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

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

/* Layout */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

/* Flex helpers */

.flex {
  display: flex;
}

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

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

.flex-col {
  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-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

/* Text alignment */

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

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

.text-uppercase {
  text-transform: uppercase;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Spacing utilities (margin-bottom only for brevity) */

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: var(--space-2) !important;
}

.mb-3 {
  margin-bottom: var(--space-3) !important;
}

.mb-4 {
  margin-bottom: var(--space-4) !important;
}

.mb-6 {
  margin-bottom: var(--space-6) !important;
}

.mb-8 {
  margin-bottom: var(--space-8) !important;
}

/* Utility: subtle top border for sections (gold line like table edge) */

.section-border-top {
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

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

/* Buttons - primary action (e.g., showroom visit, catalog download) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #f0c94a);
  color: #000;
  box-shadow: var(--shadow-sm);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(212, 175, 55, 0.6);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
  color: #fff;
  border-color: var(--color-primary-strong);
}

.btn-ghost {
  background-color: rgba(15, 17, 26, 0.7);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-ghost:hover {
  background-color: rgba(24, 28, 40, 0.9);
  border-color: rgba(212, 175, 55, 0.6);
}

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

/* Inputs / Form controls - used for catalog filters, search, etc. */

.input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.38);
  background-color: rgba(6, 9, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-fast);
}

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

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
  background-color: rgba(10, 13, 24, 0.95);
}

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

/* Cards - for product tiles, collection previews, showroom sections */

.card {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06) 0,
      rgba(15, 17, 26, 0.98) 40%, #05070b 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal),
              border-color var(--transition-normal),
              background var(--transition-slow);
}

.card--compact {
  padding: var(--space-4);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.45);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.card-meta {
  margin-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Tag / chip-like label - for product attributes ("Nowa kolekcja", "Limitowana seria") */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-muted);
}

.badge--gold {
  border-color: rgba(212, 175, 55, 0.7);
  color: var(--color-primary-strong);
  background-color: rgba(212, 175, 55, 0.08);
}

.badge--red {
  border-color: rgba(198, 40, 40, 0.7);
  color: #ffebee;
  background-color: var(--color-accent-red-soft);
}

/* Catalog-specific helper: subtle divider for product lists */

.catalog-divider {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  margin: var(--space-4) 0;
}

/* Header / nav accent bar (used optionally) */

.accent-bar {
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-red));
  border-radius: var(--radius-full);
}

/* Hero-style title for homepage "POLVIAN STAGE" */

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.site-subtitle {
  font-size: var(--font-size-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .site-title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    letter-spacing: 0.14em;
  }

  .site-subtitle {
    letter-spacing: 0.16em;
  }
}
