/* ===================================================================
   Variables
   =================================================================== */
:root {
  /* Color Palette - Upscale, cinematic casino theme */
  --color-background: #050608;           /* deep charcoal / near black */
  --color-background-elevated: #0b0e13;  /* for cards / panels */
  --color-surface-soft: #11141c;

  --color-text: #f4f3f0;                 /* pearl white */
  --color-text-muted: #a8acb7;

  --color-primary: #c68a3b;              /* copper gold */
  --color-primary-soft: rgba(198, 138, 59, 0.16);

  --color-accent-navy: #0d1b2a;          /* deep navy */
  --color-accent-red: #7c1b2a;           /* velvet red */

  --color-success: #3cbf7d;
  --color-warning: #e6b450;
  --color-danger: #e5484d;

  /* Neutral grays for borders and UI */
  --gray-50:  #f7f7f8;
  --gray-100: #e7e7ea;
  --gray-200: #c9cbd2;
  --gray-300: #a0a3b0;
  --gray-400: #777b8a;
  --gray-500: #56596b;
  --gray-600: #3b3f52;
  --gray-700: #292c3a;
  --gray-800: #1c1f2b;
  --gray-900: #11131a;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "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.125rem;  /* 2px */
  --space-2: 0.25rem;   /* 4px */
  --space-3: 0.375rem;  /* 6px */
  --space-4: 0.5rem;    /* 8px */
  --space-5: 0.625rem;  /* 10px */
  --space-6: 0.75rem;   /* 12px */
  --space-8: 1rem;      /* 16px */
  --space-10: 1.25rem;  /* 20px */
  --space-12: 1.5rem;   /* 24px */
  --space-16: 2rem;     /* 32px */
  --space-20: 2.5rem;   /* 40px */
  --space-24: 3rem;     /* 48px */
  --space-32: 4rem;     /* 64px */
  --space-40: 5rem;     /* 80px */
  --space-48: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 999px;

  /* Shadows - subtle cinematic depth */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 80px rgba(0, 0, 0, 0.6);

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

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

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

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

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

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

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

button {
  cursor: pointer;
}

button:disabled,
[disabled] {
  cursor: not-allowed;
}

/* Remove default link underline and focus outline (redefined later) */
a {
  color: inherit;
  text-decoration: none;
}

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

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

main {
  display: block;
}

/* Headings - cinematic, with display font for key levels */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-12);
}

h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-10);
}

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

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

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

h6 {
  font-size: var(--font-size-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

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

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

strong {
  font-weight: 600;
}

/* Links - elegant underline on hover */
a {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-red));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
}

/* Lists */
ul,
ol {
  margin: 0 0 var(--space-6) var(--space-20);
  padding: 0;
}

/* ===================================================================
   Accessibility & Focus
   =================================================================== */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  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);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   Utilities
   =================================================================== */
/* Layout container for wide cinematic layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1240px;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-10);
    padding-right: 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-sm {
  gap: var(--space-4);
}

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

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

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

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

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

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

/* Section spacing */
.section {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

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

/* Cinematic full-bleed wrapper for image sections */
.full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Text alignment helpers */
.text-center {
  text-align: center;
}

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

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

/* ===================================================================
   Components
   =================================================================== */
/* Buttons - primary, subtle-glow, Polish labels expected */
.button,
button.button,
input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
              linear-gradient(135deg, var(--color-primary), var(--color-accent-red));
  color: #07070b;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              filter var(--transition-fast),
              background var(--transition-slow),
              border-color var(--transition-base);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
}

.button--ghost {
  background: transparent;
  color: var(--color-text) !important;
  border-color: rgba(198, 138, 59, 0.4);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(198, 138, 59, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.button--subtle {
  background: rgba(17, 20, 28, 0.9);
  color: var(--color-text);
  border-color: rgba(198, 138, 59, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.button--subtle:hover,
.button--subtle:focus-visible {
  background: rgba(17, 20, 28, 1);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  box-shadow: none;
  pointer-events: none;
}

/* Inputs - forms for event inquiries and bookings */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-700);
  background-color: rgba(7, 8, 12, 0.96);
  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: var(--color-text-muted);
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(198, 138, 59, 0.6);
  outline: none;
}

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

/* Cards - event formats, venues, stories */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(198, 138, 59, 0.14), transparent 60%),
              linear-gradient(145deg, rgba(11, 14, 19, 0.96), rgba(7, 8, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: var(--space-16);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.card--soft {
  background: linear-gradient(145deg, rgba(11, 14, 19, 0.95), rgba(5, 6, 8, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124, 27, 42, 0.16), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

.card__header {
  margin-bottom: var(--space-8);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

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

/* Helper: image overlay card for cinematic photography */
.card--image {
  padding: 0;
}

.card--image img {
  border-radius: inherit;
}

.card--image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-16);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 55%);
}

/* Hero split layout (base structure, detailed styling per page CSS) */
.hero-split {
  display: grid;
  min-height: 75vh;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
}

/* FAQ basic layout */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-8) 0;
}

.faq-item__question {
  cursor: pointer;
  font-weight: 500;
}

.faq-item__answer {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

/* Timeline base for event journeys */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(198, 138, 59, 0.7), rgba(124, 27, 42, 0.4));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.05rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff, var(--color-primary));
  box-shadow: 0 0 0 4px rgba(198, 138, 59, 0.25);
}

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

.timeline__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

/* Badges for event categories / city tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(198, 138, 59, 0.45);
  background: rgba(7, 8, 12, 0.9);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.badge--accent {
  border-color: rgba(124, 27, 42, 0.7);
  color: var(--color-text);
}

/* Chips row (for filters like miasto, format, budżet) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.chip {
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-700);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.chip--active {
  border-color: var(--color-primary);
  background: rgba(198, 138, 59, 0.1);
  color: var(--color-text);
}

/* Simple tag for statuses like "Nowy", "Limitowane miejsca" */
.tag {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}
