/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #050607; /* deep, near-black background */
  --color-bg-elevated: #101316; /* elevated surfaces */
  --color-bg-soft: #181d20; /* soft panels */
  --color-text: #f5f1e8; /* warm light text */
  --color-text-muted: #b3aa99;
  --color-primary: #0f3b33; /* deep bottle green */
  --color-primary-soft: #17473f;
  --color-accent-gold: #d2a661; /* subtle gold accent */
  --color-accent-amber: #f6b361; /* warm amber light */
  --color-success: #3aa76d;
  --color-warning: #e7a93b;
  --color-danger: #e15b5b;
  --color-border-subtle: #2a3034;
  --color-border-strong: #3b444a;

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

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --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.2;
  --line-height-snug: 1.35;
  --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-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-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* Shadows (soft, atmospheric) */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.75);

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

/* =========================================================
   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,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-3);
}

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

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

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

p + p {
  margin-top: -0.25rem;
}

strong,
b {
  font-weight: 600;
}

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

/* Links: subtle default, elevated on hover */
a {
  color: var(--color-accent-amber);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

/* Selection */
::selection {
  background: rgba(242, 201, 120, 0.3);
  color: var(--color-text);
}

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

button:focus {
  outline: none;
}

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

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

/* =========================================================
   Utilities
   ========================================================= */
/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

.section-pad-y {
  padding-block: var(--space-12);
}

.section-pad-y-lg {
  padding-block: var(--space-16);
}

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

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

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

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

.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-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: 1fr;
  }
}

/* Alignment & text */
.text-center {
  text-align: center;
}

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

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Spacing utilities (limited set) */
.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

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

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

.pt-4 {
  padding-top: var(--space-4);
}

.pb-4 {
  padding-bottom: var(--space-4);
}

.py-4 {
  padding-block: var(--space-4);
}

.px-4 {
  padding-inline: var(--space-4);
}

/* Atmosphere helpers */
.bg-surface {
  background-color: var(--color-bg-elevated);
}

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

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

.text-accent-gold {
  color: var(--color-accent-gold);
}

.text-accent-amber {
  color: var(--color-accent-amber);
}

/* =========================================================
   Components
   ========================================================= */
/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #0f3b33, #132824);
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: background var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base);
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #17473f, #0f3b33);
  box-shadow: var(--shadow-medium);
  border-color: rgba(210, 166, 97, 0.65);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.button--ghost {
  background: transparent;
  color: var(--color-accent-amber);
  border-color: rgba(210, 166, 97, 0.45);
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(18, 31, 29, 0.9);
  border-color: rgba(210, 166, 97, 0.8);
}

.button--light {
  background: var(--color-accent-amber);
  color: #1b1309!important;
  box-shadow: 0 12px 30px rgba(246, 179, 97, 0.45);
}

.button--light:hover {
  background: var(--color-accent-gold);
}

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

/* Inputs & form controls */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(9, 11, 13, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(179, 170, 153, 0.7);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent-amber);
  box-shadow: 0 0 0 1px rgba(246, 179, 97, 0.4);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

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

/* Card component: menu items, events, etc. */
.card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(246, 179, 97, 0.05), transparent 55%),
              radial-gradient(circle at bottom right, rgba(15, 59, 51, 0.22), transparent 60%),
              var(--color-bg-elevated);
  border: 1px solid rgba(58, 64, 69, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.card--soft {
  background: var(--color-bg-soft);
  border-color: var(--color-border-subtle);
  box-shadow: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
}

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

/* Tag / pill (e.g., "Wieczór pokerowy", "Rezerwacja") */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(210, 166, 97, 0.8);
  color: var(--color-accent-amber);
  background: rgba(10, 16, 15, 0.9);
}

.tag--soft {
  border-color: rgba(179, 170, 153, 0.5);
  color: var(--color-text-muted);
}

/* Hero overlay for imagery-heavy sections */
.hero-overlay {
  position: relative;
  isolation: isolate;
  color: var(--color-text);
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.4), transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(5, 6, 7, 0.95));
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero-overlay > * {
  position: relative;
  z-index: 1;
}

/* Navigation indicator (e.g., current step of customer journey) */
.step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
}

.step-indicator__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
}

.step-indicator__item--active {
  color: var(--color-accent-amber);
}

.step-indicator__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(179, 170, 153, 0.6);
}

.step-indicator__item--active .step-indicator__dot {
  background: var(--color-accent-amber);
}

/* Toast / info badge (e.g., legal note about poker being towarzyski) */
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 59, 51, 0.24);
  border: 1px solid rgba(61, 130, 112, 0.8);
  color: var(--color-text);
  font-size: var(--font-size-xs);
}

.toast--subtle {
  background: rgba(24, 29, 32, 0.9);
  border-color: rgba(42, 48, 52, 0.9);
  color: var(--color-text-muted);
}

/* Media object (avatar + text, for social / community feel) */
.media {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.media__image {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

.media__body {
  min-width: 0;
}

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

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

/* Footer subtle border */
.site-footer {
  border-top: 1px solid rgba(42, 48, 52, 0.9);
  padding-block: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
