/* ===========================================================
   Variables
   =========================================================== */
:root {
  /* Color Palette - Cinematic, Poker-Inspired */
  --color-background: #050608; /* near-black, cinematic backdrop */
  --color-surface: #0c0f13; /* elevated panels, cards, sections */
  --color-surface-alt: #131822; /* subtle contrast for blocks */

  --color-text: #f5f1e6; /* soft ivory for high contrast */
  --color-text-muted: #b8b2a3; /* muted ivory/gray */
  --color-border-subtle: #262a32;

  --color-primary: #0f6b4b; /* deep emerald green */
  --color-primary-soft: rgba(15, 107, 75, 0.14);
  --color-primary-strong: #12a06b;

  --color-accent-gold: #d8b770; /* warm gold accent */
  --color-accent-gold-soft: rgba(216, 183, 112, 0.18);

  --color-success: #18b980;
  --color-warning: #e7b15a;
  --color-danger: #e65a5a;

  --color-gray-50: #f7f7f9;
  --color-gray-100: #e2e3e7;
  --color-gray-200: #c7c9cf;
  --color-gray-300: #a4a7b1;
  --color-gray-400: #868a95;
  --color-gray-500: #5f6471;
  --color-gray-600: #444955;
  --color-gray-700: #303540;
  --color-gray-800: #1f232c;
  --color-gray-900: #151821;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Roboto", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", "Georgia", 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 comfortable 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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --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-9: 2.5rem;   /* 40px */
  --space-10: 3rem;    /* 48px */
  --space-12: 3.5rem;  /* 56px */
  --space-14: 4rem;    /* 64px */
  --space-16: 4.5rem;  /* 72px */
  --space-18: 5rem;    /* 80px */
  --space-20: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows - subtle, cinematic */
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 26px 60px rgba(0, 0, 0, 0.6);
  --shadow-outline: 0 0 0 1px rgba(216, 183, 112, 0.3), 0 0 0 4px rgba(15, 107, 75, 0.55);

  /* Transitions & Motion */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

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

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

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

body {
  min-height: 100vh;
}

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

img,
video {
  height: auto;
}

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

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

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

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

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

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

textarea {
  resize: vertical;
}

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

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--line-height-snug);
  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: clamp(var(--font-size-xl), 2.5vw, var(--font-size-3xl));
  margin-bottom: var(--space-3);
}

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

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

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

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

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

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

strong {
  font-weight: 600;
}

a {
  position: relative;
  color: var(--color-accent-gold);
  transition: color var(--transition-base);
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
  border-radius: var(--radius-sm);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ===========================================================
   Accessibility & Motion
   =========================================================== */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

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

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

/* ===========================================================
   Layout Utilities
   =========================================================== */
.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: 1200px) {
  .container-wide {
    max-width: 1400px;
  }
}

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

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

/* Flex utilities */
.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-3);
}

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

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

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

.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-center {
  text-align: center;
}

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

.m-auto {
  margin: auto;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-5); }
.mt-lg { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-5); }
.mb-lg { margin-bottom: var(--space-8); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

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

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

/* Buttons - primary CTA for booking / planning */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  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);
}

.button--primary {
  background: radial-gradient(circle at top left, var(--color-accent-gold-soft) 0, var(--color-primary) 40%, #021a12 100%);
  color: var(--color-text) !important;
  border-color: rgba(216, 183, 112, 0.7);
  box-shadow: var(--shadow-soft);
}

.button--primary:hover {
  background: radial-gradient(circle at top left, var(--color-accent-gold) 0, var(--color-primary-strong) 45%, #021a12 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.button--secondary {
  background: rgba(12, 15, 19, 0.9);
  border-color: rgba(216, 183, 112, 0.5);
  color: var(--color-text);
}

.button--secondary:hover {
  background: rgba(19, 24, 34, 0.95);
}

.button--ghost {
  background: transparent;
  border-color: rgba(216, 183, 112, 0.4);
  color: var(--color-accent-gold) !important;
}

.button--ghost:hover {
  background: rgba(216, 183, 112, 0.12);
}

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

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

/* Inputs & Form Fields - booking / planning forms */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 199, 210, 0.12);
  background-color: rgba(12, 15, 19, 0.95);
  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: var(--color-text-muted);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: var(--shadow-outline);
  background-color: #11151d;
}

.input--invalid,
.textarea--invalid,
.select--invalid {
  border-color: var(--color-danger);
}

.label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.field-description {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Card - for event types, packages, testimonials */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(216, 183, 112, 0.08) 0, rgba(15, 107, 75, 0.12) 40%, var(--color-surface) 90%);
  border: 1px solid rgba(216, 183, 112, 0.18);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0.6;
}

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

.card--minimal {
  background: var(--color-surface);
  border-color: rgba(38, 42, 50, 0.9);
  box-shadow: none;
}

/* Media frame for immersive imagery (gallery / hero) */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(216, 183, 112, 0.1), #020308 80%);
  border: 1px solid rgba(216, 183, 112, 0.2);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(0, 0, 0, 0.65), transparent 55%);
  mix-blend-mode: multiply;
}

/* Tag / Pill - e.g. "Wieczór pokerowy", "Event firmowy" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(216, 183, 112, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  background: rgba(10, 15, 20, 0.92);
}

/* Testimonial block */
.testimonial {
  position: relative;
  padding-left: var(--space-6);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent-gold-soft);
}

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

.testimonial__author {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Hero overlay helper for cinematic sections */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.85));
  mix-blend-mode: multiply;
  z-index: -1;
}

/* Badge for status (np. "Nowość", "Premium") */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--color-accent-gold);
  color: #111;
}

.badge--outline {
  background: transparent;
  color: var(--color-accent-gold);
  border: 1px solid rgba(216, 183, 112, 0.8);
}

/* Toast / notice (for booking confirmations, errors) */
.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
}

.notice--success {
  background: rgba(24, 185, 128, 0.14);
  border-color: rgba(24, 185, 128, 0.7);
}

.notice--warning {
  background: rgba(231, 177, 90, 0.14);
  border-color: rgba(231, 177, 90, 0.7);
}

.notice--danger {
  background: rgba(230, 90, 90, 0.14);
  border-color: rgba(230, 90, 90, 0.7);
}

/* ===========================================================
   Helper Classes for Thematic Styling
   =========================================================== */
.bg-surface {
  background-color: var(--color-surface);
}

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

.bg-gradient-poker {
  background: radial-gradient(circle at 0% 0%, rgba(216, 183, 112, 0.16), transparent 40%),
              radial-gradient(circle at 100% 0%, rgba(19, 71, 54, 0.75), transparent 55%),
              linear-gradient(145deg, #050608 0%, #05070d 50%, #04050b 100%);
}

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

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

.text-primary {
  color: var(--color-primary-strong);
}

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

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

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

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-60 {
  opacity: 0.6;
}

/* End of base.css */
