/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - Luxury Casino Theme */
  --color-bg: #050608;
  --color-bg-elevated: #111218;
  --color-bg-soft: #191b23;
  --color-text: #f7f7fa;
  --color-text-muted: #a9adb8;

  --color-primary: #d4af37; /* złote akcenty CTA, linki */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-primary-strong: #f0c94b;

  --color-accent-green: #0f5c3a; /* poker stół */
  --color-accent-green-soft: rgba(15, 92, 58, 0.28);
  --color-accent-burgundy: #7b1434;

  --color-success: #3abf7b;
  --color-warning: #f5a623;
  --color-danger: #e63946;

  /* Neutral Grays (for borders, subtle text, UI) */
  --gray-50: #f8fafc;
  --gray-100: #eef2f7;
  --gray-200: #dde3ec;
  --gray-300: #c0c6d2;
  --gray-400: #9aa1b1;
  --gray-500: #6e7483;
  --gray-600: #4b4f5c;
  --gray-700: #343845;
  --gray-800: #222530;
  --gray-900: #12141c;

  --border-color-subtle: rgba(255, 255, 255, 0.08);
  --border-color-strong: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Sizes (mobile-first) */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-md: 1rem;      /* 16px */
  --fs-lg: 1.125rem;  /* 18px */
  --fs-xl: 1.25rem;   /* 20px */
  --fs-2xl: 1.5rem;   /* 24px */
  --fs-3xl: 1.875rem; /* 30px */
  --fs-4xl: 2.25rem;  /* 36px */
  --fs-5xl: 3rem;     /* 48px */

  /* Line Heights */
  --lh-tight: 1.15;
  --lh-normal: 1.5;
  --lh-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 */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (subtle glow for luxury feel) */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.85);
  --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.16), 0 0 32px rgba(212, 175, 55, 0.26);

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

  /* Layout */
  --container-width: 1120px;
  --container-padding-x: var(--space-16);
  --header-height: 4rem;
}

@media (min-width: 768px) {
  :root {
    --fs-3xl: 2.25rem; /* 36px */
    --fs-4xl: 3rem;    /* 48px */
    --fs-5xl: 3.5rem;  /* 56px */
    --container-padding-x: var(--space-20);
  }
}

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

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

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

body {
  min-height: 100vh;
}

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

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

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

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

/* Remove default focus outlines; we will re-add via :focus-visible */
:focus {
  outline: none;
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-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: 600;
  color: var(--color-text);
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: 0.03em;
}

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

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

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

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

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

a {
  cursor: pointer;
  transition: color var(--transition-normal), opacity var(--transition-fast), text-shadow var(--transition-fast);
}

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

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

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

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

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

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

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

/* =========================================================
   Layout Utilities
   ========================================================= */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

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

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

.justify-end {
  justify-content: flex-end;
}

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

.gap-sm {
  gap: var(--space-6);
}

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

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

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

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

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

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

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

/* Width helpers */
.w-full {
  width: 100%;
}

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

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

/* Margin utilities (commonly used ones) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-4); }
.mt-sm { margin-top: var(--space-6); }
.mt-md { margin-top: var(--space-8); }
.mt-lg { margin-top: var(--space-12); }
.mt-xl { margin-top: var(--space-16); }

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

/* Padding utilities */
.py-section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .py-section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

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

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

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

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

/* Typography utilities aligned with Polish keywords/sections */
.text-muted {
  color: var(--color-text-muted);
}

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

.text-uppercase {
  text-transform: uppercase;
}

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

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

/* Buttons - primary CTAs for konwersje (np. "Zorganizuj wieczór kasynowy") */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 30% 0, #fff6d0 0, #d4af37 38%, #9c7b1d 70%, #4d3a10 100%);
  color: #120f08;
  box-shadow: var(--shadow-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-primary-strong);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22);
}

.btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.06);
}

.btn-ghost {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.35);
}

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

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

/* Inputs & form elements - for Kontakt / Zapytanie ofertowe */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-strong);
  background-color: rgba(7, 8, 12, 0.96);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--gray-500);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 0 24px rgba(212, 175, 55, 0.3);
}

.textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
}

.field-error {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-danger);
}

/* Cards - for Pakiety eventowe, Dlaczego my, FAQ blok */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1) 0, rgba(13, 16, 24, 0.95) 42%, rgba(9, 10, 18, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card-soft {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  border: 1px solid var(--border-color-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.card-hover {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Tag / pill - np. "Eventy Warszawa", "Wieczór kasynowy" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gray-100);
  background: linear-gradient(135deg, rgba(15, 92, 58, 0.8), rgba(123, 20, 52, 0.85));
}

/* Badge for trust / certyfikaty / bezpieczeństwo rozrywki */
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: rgba(15, 92, 58, 0.3);
  border: 1px solid rgba(58, 191, 123, 0.5);
  color: #e5fff3;
}

/* Hero-specific utilities (for strong first impression) */
.hero-gradient {
  background: radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(15, 92, 58, 0.4), transparent 60%),
              radial-gradient(circle at 50% 120%, rgba(123, 20, 52, 0.45), transparent 65%),
              #050608;
}

.hero-heading {
  font-size: var(--fs-4xl);
  line-height: 1.05;
}

@media (min-width: 992px) {
  .hero-heading {
    font-size: var(--fs-5xl);
  }
}

.hero-subtitle {
  max-width: 32rem;
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

/* Testimonial snippet */
.quote {
  position: relative;
  font-style: italic;
  color: var(--color-text-muted);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: -0.5rem;
  top: -0.75rem;
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.6);
}

/* FAQ item base */
.faq-item {
  border-radius: var(--radius-md);
  background-color: rgba(9, 10, 18, 0.9);
  border: 1px solid var(--border-color-subtle);
  padding: var(--space-10) var(--space-12);
}

/* CTA bar for sekcje typu "Zarezerwuj termin" */
.cta-bar {
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.16), rgba(15, 92, 58, 0.5));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Media & Imagery
   ========================================================= */
.img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-border-gold {
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.6);
}

.img-soft-shadow {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
}

/* Overlay for gallery / casino mood shots */
.overlay-gradient {
  position: relative;
}

.overlay-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
}

/* =========================================================
   Helper for subtle section dividers
   ========================================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: radial-gradient(circle at 0 50%, rgba(212, 175, 55, 0.2), transparent 60%),
              radial-gradient(circle at 100% 50%, rgba(212, 175, 55, 0.2), transparent 60%);
  opacity: 0.7;
}
