/* ========================================================================== 
   Variables
   ========================================================================== */
:root {
  /* Colors - base */
  --color-background: #ffffff;
  --color-background-soft: #faf7f4; /* kremowe sekcje */
  --color-surface: #ffffff;
  --color-surface-soft: #f8f9ff; /* lekko niebieska karta */

  --color-text: #151623;
  --color-text-soft: #555770;
  --color-text-muted: #8a8ca3;

  /* Brand & accents - pastel casino palette */
  --color-primary: #4c6fff; /* jasny, elegancki błękit */
  --color-primary-soft: #e3ebff;
  --color-primary-strong: #2740c5;

  --color-mint: #7bdcb5;
  --color-mint-soft: #e5faf3;

  --color-blush: #f7a8c4; /* pudrowy róż */
  --color-blush-soft: #ffe6f0;

  --color-lavender: #c8b5ff;
  --color-lavender-soft: #f2ecff;

  /* Status */
  --color-success: #2e9f6f;
  --color-success-soft: #e2f6ed;

  --color-warning: #f4b74a;
  --color-warning-soft: #fff4e2;

  --color-danger: #e7555a;
  --color-danger-soft: #ffe7ea;

  /* 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: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  --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.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.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) -> rem based on 16px */
  --space-0: 0;
  --space-4: 0.25rem;   /* 4px */
  --space-8: 0.5rem;    /* 8px */
  --space-12: 0.75rem;  /* 12px */
  --space-16: 1rem;     /* 16px */
  --space-20: 1.25rem;  /* 20px */
  --space-24: 1.5rem;   /* 24px */
  --space-32: 2rem;     /* 32px */
  --space-40: 2.5rem;   /* 40px */
  --space-48: 3rem;     /* 48px */
  --space-64: 4rem;     /* 64px */
  --space-80: 5rem;     /* 80px */
  --space-96: 6rem;     /* 96px */

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows - soft premium */
  --shadow-xs: 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 65px rgba(15, 23, 42, 0.12);

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

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.125rem; /* 34px */
    --font-size-4xl: 2.5rem;   /* 40px */
    --font-size-5xl: 3.25rem;  /* 52px */
    --container-padding-x: 1.5rem;
  }
}

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

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

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

body {
  min-height: 100vh;
}

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

picture {
  display: block;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

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

legend {
  padding: 0;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-background);
  -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);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-16);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-12);
}

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

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

strong {
  font-weight: 600;
}

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

a {
  position: relative;
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

a[role="button"],
button,
[tabindex="0"] {
  -webkit-tap-highlight-color: transparent;
}

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

/* Selection */
::selection {
  background-color: rgba(76, 111, 255, 0.15);
}

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

:focus:not(:focus-visible) {
  outline: 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 {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

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

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.justify-center {
  justify-content: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Spacing utilities (limited set) */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-40 { margin-top: var(--space-40); }

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }
.mb-40 { margin-bottom: var(--space-40); }

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

/* Background helpers to match design language */
.bg-page {
  background: radial-gradient(circle at top left, rgba(247, 168, 196, 0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(123, 220, 181, 0.14), transparent 50%),
              var(--color-background);
}

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

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

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

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

/* Text color helpers */
.text-muted {
  color: var(--color-text-muted);
}

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

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

/* Visually hidden (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 - premium rounded with subtle gradient */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  background-image: linear-gradient(135deg, var(--color-primary) 0%, #7c9aff 50%, var(--color-lavender) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: 
    box-shadow var(--transition-base),
    transform var(--transition-base),
    background-position var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    background-color var(--transition-base);
  background-size: 200% 200%;
  background-position: 0% 50%;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background-position: 100% 50%;
}

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

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

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-primary-strong);
  border-color: rgba(76, 111, 255, 0.25);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: rgba(76, 111, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(248, 249, 255, 0.9);
}

/* Inputs & form controls */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(255, 255, 255, 0.95);
  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-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgba(76, 111, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(76, 111, 255, 0.2), 0 16px 30px rgba(15, 23, 42, 0.04);
  background-color: #ffffff;
}

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

label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-16);
}

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

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

/* Card - soft rounded premium */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: 
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.card--soft {
  background: radial-gradient(circle at top left, rgba(247, 168, 196, 0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(123, 220, 181, 0.14), transparent 50%),
              #ffffff;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 163, 184, 0.5);
}

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

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

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

/* Hero / slider helpers (structure only) */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay-soft {
  background: radial-gradient(circle at top left, rgba(247, 168, 196, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(123, 220, 181, 0.18), transparent 50%),
              linear-gradient(135deg, #f9fafc, #ffffff);
}

.slider {
  position: relative;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease-out;
}

.slider-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Timeline helper (for "Jak Powstaje Twój Event") */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-mint));
  opacity: 0.2;
}

.timeline-step {
  position: relative;
  padding-bottom: var(--space-24);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(76, 111, 255, 0.7);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* FAQ accordion helper (structure only) */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background-color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
}

.faq-panel {
  padding: 0 1rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Counter / stats helper */
.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
}

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

/* Sticky CTA button (e.g. "Poproś o wycenę") */
.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

@media (min-width: 768px) {
  .sticky-cta {
    right: 2rem;
    bottom: 2rem;
  }
}

/* Navigation basics (structure, not full header layout) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: var(--font-size-sm);
}

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  color: var(--color-text-soft);
  transition: color var(--transition-base);
}

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

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text);
}

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

/* Footer basics */
.footer {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
  background-color: var(--color-background-soft);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-heading {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

.footer-link {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.footer-link:hover {
  color: var(--color-primary-strong);
}

.footer-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-24);
}

/* Masonry-like helper (for realizacje gallery; actual masonry via JS/CSS columns) */
.masonry {
  column-count: 1;
  column-gap: var(--space-16);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-16);
}

@media (min-width: 640px) {
  .masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 3;
  }
}

/* Carousel basics (opinie klientów) */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-slide {
  flex: 0 0 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-16);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.6);
  border: none;
}

.carousel-dot.is-active {
  width: 18px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-mint));
}

/* Utility for soft pill labels (e.g. tags like "Event premium") */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(76, 111, 255, 0.08);
  color: var(--color-primary-strong);
}

.badge-soft-mint {
  background-color: rgba(123, 220, 181, 0.12);
  color: #1c7c5a;
}

.badge-soft-blush {
  background-color: rgba(247, 168, 196, 0.14);
  color: #ab4169;
}

/* Chips for categories (Eventy Casino / Wieczory Pokerowe / Eventy Firmowe) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background-color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.chip--active {
  border-color: rgba(76, 111, 255, 0.6);
  background: linear-gradient(120deg, rgba(76, 111, 255, 0.1), rgba(200, 181, 255, 0.16));
  color: var(--color-primary-strong);
}

/* Tag for legal / compliance notes */
.compliance-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(226, 232, 240, 0.9);
  background-color: rgba(248, 249, 255, 0.7);
  padding: 0.75rem 1rem;
}
