/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Color Palette - nocturnal, cinematic, premium */
  --color-bg: #05060a; /* main background: deep near-black */
  --color-bg-elevated: #0b0d14; /* cards, sections */
  --color-bg-soft: #101320; /* subtle contrast */

  --color-text: #f5f5f5;
  --color-text-muted: #a4a7b5;
  --color-border-subtle: #26293a;

  /* Brand / Accent Colors - gold, deep red, emerald, navy */
  --color-primary: #e5b567; /* warm gold for CTAs */
  --color-primary-soft: rgba(229, 181, 103, 0.12);
  --color-primary-strong: #f3cf83;

  --color-accent-red: #b82d3c; /* deep red */
  --color-accent-emerald: #13836a;
  --color-accent-navy: #15213a;

  /* Semantic states */
  --color-success: #33b679;
  --color-warning: #ffb648;
  --color-danger: #ff4f5e;

  /* 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: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Libre Baskerville", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px for slightly more premium body */
  --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.1;
  --line-height-snug: 1.25;
  --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 */

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - soft cinematic glow */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.75);
  --shadow-focus: 0 0 0 2px rgba(229, 181, 103, 0.4), 0 0 0 4px rgba(229, 181, 103, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

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

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

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

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

body {
  margin: 0;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

:focus {
  outline: none;
}

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings – cinematic, elegant, with display serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

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

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

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

h6 {
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

/* Links – minimal underline, golden hover */
a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(229, 181, 103, 0.55);
}

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

/* Lists */
ul, ol {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-4);
}

/* Tables (for menu / wine list layouts) */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 0.5rem;
}

th {
  text-align: left;
  font-weight: 500;
}

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

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

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

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

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.gap-xs { gap: var(--space-1); }
.gap-sm { gap: var(--space-2); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }
.gap-xl { gap: var(--space-8); }

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

@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-left { text-align: left; }

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

/* Spacing utilities (margins / padding, commonly used) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

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

/* Cinematic overlays / gradients (for hero, gallery, etc.) */
.bg-gradient-gold {
  background: radial-gradient(circle at top, rgba(229, 181, 103, 0.25) 0, transparent 55%),
              radial-gradient(circle at bottom, rgba(10, 10, 10, 0.95) 0, #05060a 52%);
}

.bg-panel {
  background: linear-gradient(145deg, rgba(20, 24, 40, 0.96), rgba(9, 10, 18, 0.98));
}

/* Max-width helpers for long Polish text blocks */
/* ==================================================================
   Components
   ================================================================== */

/* Buttons – primary CTA focused on rezerwacja / booking */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #f6e3b4, #e5b567 32%, #c38a3f 90%);
  color: #1a1204;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at 0 0, #fff0c7, #f3cf83 35%, #c38a3f 90%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: transparent;
  border-color: rgba(229, 181, 103, 0.7);
  color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(229, 181, 103, 0.25);
}

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

.btn-ghost {
  background: rgba(10, 12, 20, 0.8);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(25, 28, 45, 0.95);
}

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

.btn:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Form inputs – for reservation, contact, etc. */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(6, 8, 16, 0.86);
  color: var(--color-text);
  font-size: var(--font-size-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: rgba(164, 167, 181, 0.7);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(229, 181, 103, 0.5), 0 15px 40px rgba(0, 0, 0, 0.85);
  background-color: rgba(10, 12, 22, 0.98);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary-strong) 50%),
                    linear-gradient(135deg, var(--color-primary-strong) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px),
                       calc(100% - 11px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

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

.form-error {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card – for dish highlights, testimonials, event boxes, FAQ items */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 21, 38, 0.98), rgba(6, 7, 14, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 181, 103, 0.08);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(229, 181, 103, 0.12), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.card__content {
  position: relative;
}

.card--soft {
  background: rgba(9, 10, 18, 0.96);
}

/* Focus styles – accessibility & cinematic glow */
:focus-visible {
  outline: 2px solid var(--color-primary-strong);
  outline-offset: 3px;
}

/* Badges / labels – for "Szef Kuchni poleca", VIP etc. */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 181, 103, 0.5);
  background: radial-gradient(circle at top, rgba(229, 181, 103, 0.24), rgba(10, 9, 5, 0.96));
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Tagline / eyebrow text – for small pre-headlines like "Luksusowa restauracja" */
.eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

/* Hero overlay for cinematic restaurant / casino imagery */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.1), transparent 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(5, 6, 10, 0.96));
  mix-blend-mode: multiply;
  z-index: -1;
}

/* Gallery item frame – for dark, glossy image frames */
.gallery-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at top, #262332, #05060a 65%);
  box-shadow: var(--shadow-soft);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.gallery-frame:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.08);
}

/* Toast / status banners – for reservation confirmations, etc. */
.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.alert--success {
  background: rgba(25, 68, 52, 0.9);
  border: 1px solid rgba(51, 182, 121, 0.6);
}

.alert--warning {
  background: rgba(80, 56, 12, 0.9);
  border: 1px solid rgba(255, 182, 72, 0.6);
}

.alert--danger {
  background: rgba(82, 23, 31, 0.9);
  border: 1px solid rgba(255, 79, 94, 0.6);
}

/* Small helper for meta info (godziny otwarcia, dress code, etc.) */
.meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}
