/* ========================================================================
   Base Stylesheet for polskagastronights.com
   Polska Gastro Nights – Modern, Elegant, Poker-Inspired Restaurant Lounge
   ======================================================================== */

/* ========================================================================
   1. CSS Variables (Design Tokens)
   ======================================================================== */

:root {
  /* Color Palette - Dark, burgundy, poker-inspired */
  --color-background: #070708;        /* Deep near-black */
  --color-background-alt: #101015;    /* Charcoal for sections */
  --color-surface: #15151d;           /* Card backgrounds */
  --color-surface-soft: #1c1c27;      /* Softer elevated surfaces */

  --color-text: #f3e9d8;              /* Warm cream */
  --color-text-muted: #c0b6a8;        /* Muted cream */
  --color-border-subtle: #2b2934;     /* Subtle borders / dividers */

  --color-primary: #7b1229;           /* Rich burgundy */
  --color-primary-soft: #5b0d1e;      /* Darker burgundy for hovers */
  --color-primary-strong: #b3213f;    /* Brighter accent */

  --color-success: #2f8c5c;           /* Deep green (poker table echo) */
  --color-warning: #c49a3a;           /* Warm gold warning */
  --color-danger: #c63737;            /* Refined red */

  --color-gold: #d7b66d;              /* Elegant gold accents */
  --color-gold-soft: rgba(215, 182, 109, 0.4);

  --gray-50:  #faf9f7;
  --gray-100: #f0ede7;
  --gray-200: #d6d0c6;
  --gray-300: #b8b0a3;
  --gray-400: #999182;
  --gray-500: #7a7366;
  --gray-600: #5c564c;
  --gray-700: #413c34;
  --gray-800: #292521;
  --gray-900: #171411;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, 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-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 1.875rem; /* 30px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-14: 28px;
  --space-16: 32px;
  --space-20: 40px;
  --space-24: 48px;
  --space-28: 56px;
  --space-32: 64px;
  --space-40: 80px;
  --space-48: 96px;

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

  /* Shadows - subtle, premium */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-soft-lg: 0 18px 45px rgba(0, 0, 0, 0.48);
  --shadow-gold-glow: 0 0 0 1px rgba(215, 182, 109, 0.35), 0 0 24px rgba(215, 182, 109, 0.18);

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

  /* Layout */
  --max-width-container: 1120px;
  --nav-height: 72px;
}

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


/* ========================================================================
   2. Reset / Normalize
   ======================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}


/* ========================================================================
   3. Base Styles – Typography, Layout, Elements
   ======================================================================== */

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

main {
  min-height: calc(100vh - var(--nav-height));
}

/* Headings – elegant, slightly serifed */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--gray-50);
  letter-spacing: 0.02em;
}

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

h2 {
  font-size: clamp(1.8rem, 2.4vw, var(--font-size-3xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-10);
}

h3 {
  font-size: clamp(1.4rem, 1.9vw, var(--font-size-2xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

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

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

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

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}

/* Links */

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

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(179, 33, 63, 0.5);
}

a:active {
  opacity: 0.85;
}


/* ========================================================================
   4. Accessibility – Focus, Reduced Motion
   ======================================================================== */

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

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


/* ========================================================================
   5. Layout Utilities
   ======================================================================== */

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

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

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

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

/* Flex helpers */

.flex {
  display: 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;
}

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

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

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

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

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

/* Alignment & text utilities */

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

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

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

/* Spacing utilities (limited set for base) */

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: var(--space-8); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: var(--space-8); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }

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


/* ========================================================================
   6. Screen Reader 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;
}


/* ========================================================================
   7. Core Components – Buttons, Inputs, Cards
   ======================================================================== */

/* Buttons – primary, ghost, subtle */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 45%, #000 100%);
  color: var(--gray-50);
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast),
              border-color var(--transition-base),
              color var(--transition-base),
              opacity var(--transition-fast);
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-primary-strong) 0%, var(--color-primary) 50%, #000 100%);
  box-shadow: var(--shadow-soft-lg);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

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

.btn--ghost {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(215, 182, 109, 0.45);
  color: var(--color-gold);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(215, 182, 109, 0.08);
  box-shadow: var(--shadow-soft);
}

.btn--subtle {
  background: var(--color-surface);
  border-color: var(--color-border-subtle);
  color: var(--color-text);
  box-shadow: none;
}

.btn--subtle:hover {
  background: var(--color-surface-soft);
}

.btn--sm {
  padding: 0.45rem 1.1rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.9rem 1.9rem;
  font-size: var(--font-size-md);
}


/* Form elements – inputs, textareas, selects */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.field label {
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 10, 14, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(192, 182, 168, 0.6);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(215, 182, 109, 0.5), 0 0 0 3px rgba(215, 182, 109, 0.15);
}

.input[aria-invalid="true"],
.input.is-invalid {
  border-color: var(--color-danger);
}

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

.field__error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}


/* Cards – for menu, poker info, testimonials */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(123, 18, 41, 0.21), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(215, 182, 109, 0.05);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base),
              background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(215, 182, 109, 0.35), rgba(123, 18, 41, 0.0));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(215, 182, 109, 0.35);
}

.card:hover::before {
  opacity: 0.7;
}

.card--accent {
  border-color: rgba(215, 182, 109, 0.45);
  box-shadow: var(--shadow-gold-glow);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
}

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

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


/* ========================================================================
   8. Navigation & Interactive Accents (Global)
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.94), rgba(7, 7, 8, 0.8));
  border-bottom: 1px solid rgba(215, 182, 109, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-50);
}

.nav__brand span {
  color: var(--color-gold);
}

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

.nav__link {
  position: relative;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  transition: color var(--transition-base),
              opacity var(--transition-base);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-primary-strong));
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--gray-50);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

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


/* ========================================================================
   9. Hero & Thematic Accents (Optional Global Patterns)
   ======================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--space-32) + var(--nav-height));
  padding-bottom: var(--space-40);
  background: radial-gradient(circle at top right, rgba(123, 18, 41, 0.55), transparent 55%),
              radial-gradient(circle at bottom left, rgba(5, 34, 20, 0.55), transparent 60%),
              var(--color-background);
}

.hero::before {
  /* subtle poker table / felt texture overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.04) 0, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.02) 0, transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 182, 109, 0.55);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(7, 7, 8, 0.7);
}


/* ========================================================================
   10. Tables (for schedule, poker limits, opening hours)
   ======================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
}

th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

tr:nth-child(even) td {
  background-color: rgba(21, 21, 29, 0.6);
}


/* ========================================================================
   11. Media Queries – Global Adjustments
   ======================================================================== */

@media (max-width: 960px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .hero {
    padding-top: calc(var(--space-24) + var(--nav-height));
    padding-bottom: var(--space-32);
  }

  .nav__list {
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }

  .nav__list {
    display: none; /* can be replaced by JS-driven mobile menu */
  }

  .hero {
    padding-top: calc(var(--space-20) + var(--nav-height));
  }
}
