/* ========================================================================== 
   Variables
   ========================================================================== */
:root {
  /* Colors - light premium casino/event theme */
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f4f6;

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border-subtle: #e5e7eb;
  --color-border-strong: #d1d5db;

  /* Brand / accents: gold + navy + graphite */
  --color-primary: #1f2937; /* graphite */
  --color-primary-soft: #111827; /* deep graphite */
  --color-accent-gold: #d4af37;
  --color-accent-gold-soft: #f6e6b4;
  --color-accent-navy: #0b1c3b;

  /* Semantic */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;

  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", "Cormorant Garamond", "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.6;

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

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

  /* Shadows - subtle premium look */
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);

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

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

  *, *::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;
}

* {
  margin: 0;
}

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

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

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

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


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

main {
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--gray-900);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

strong, b {
  font-weight: 600;
}

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

/* Links - refined underline only on hover */
a {
  color: var(--color-accent-navy);
  cursor: pointer;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-accent-gold);
}

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

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


/* ========================================================================== 
   Accessibility Helpers
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

.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%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 72rem; /* ~1152px */
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

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

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

/* 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-col {
  display: flex;
  flex-direction: column;
}

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

.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-3); }
.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(1, minmax(0, 1fr));
  gap: var(--space-6);
}

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

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

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

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


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

/* Buttons - base style for primary actions (e.g. kontakt, zapytanie ofertowe) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  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.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    border-color var(--transition-normal);
}

.btn-primary {
  background: radial-gradient(circle at 10% 0%, #f6e6b4 0, #d4af37 35%, #b48a15 70%);
  color: #111827;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--gray-300);

}
.hero .btn-outline{
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-navy);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

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

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


/* Form elements - inputs, textareas, selects */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

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

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

.input[disabled],
textarea[disabled],
select[disabled] {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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


/* Card - for realizacje, sekcje usług, opinie klientów */
.card {
  position: relative;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    border-color var(--transition-normal),
    background-color var(--transition-normal);
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

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

.card-body {
  font-size: var(--font-size-sm);
}


/* Tag / pill - np. "eventy firmowe", "wieczory pokerowe" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--gray-700);
}

.tag--gold {
  background-color: rgba(212, 175, 55, 0.14);
  color: var(--color-accent-navy);
}


/* Hero / overlay helpers - for sliders with large event photos */
.hero {
  position: relative;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 28, 59, 0.92), rgba(15, 23, 42, 0.75), rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-gold-soft);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-subtitle {
  max-width: 36rem;
  font-size: var(--font-size-lg);
  color: #e5e7eb;
}


/* Navigation helpers for premium header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(249, 250, 251, 0.98);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
  backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
  transition: color var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6e6b4, #d4af37);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-accent-navy);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-accent-navy);
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark span {
  color: var(--color-accent-gold);
}


/* Badges for disclaimers (np. rozrywka bez hazardu) */
.badge-info {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--gray-700);
  font-size: var(--font-size-xs);
}

.badge-safe {
  background-color: rgba(22, 163, 74, 0.08);
  color: #15803d;
}
