/* ========================================================================
   Variables
   ======================================================================== */

:root {
  /* Colors */
  --color-bg: #050608;               /* near-black background */
  --color-bg-elevated: #101117;      /* elevated surfaces */
  --color-surface: #161822;
  --color-text: #f5f0e6;             /* warm ivory text */
  --color-text-muted: #b7b0a4;
  --color-primary: #d9b15a;          /* elegant gold */
  --color-primary-soft: rgba(217, 177, 90, 0.12);
  --color-accent-burgundy: #7b1230;  /* rich burgundy */
  --color-accent-emerald: #0c5f4a;   /* dark emerald */
  --color-success: #2bbf7b;
  --color-warning: #f1c15c;
  --color-danger: #f05b5b;

  --color-border-subtle: rgba(245, 240, 230, 0.08);
  --color-border-strong: rgba(245, 240, 230, 0.22);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --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.25rem;  /* 20px */
  --font-size-xl: 1.5rem;   /* 24px */
  --font-size-2xl: 1.875rem;/* 30px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 56px;
  --space-13: 64px;
  --space-14: 72px;
  --space-15: 84px;
  --space-16: 96px;

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows (subtle but luxurious) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.75);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-max-width-wide: 1440px;
}

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


/* ========================================================================
   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,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

audio {
  width: 100%;
}

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

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

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

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

/* Remove default link underlines (re-added contextually later) */
a {
  text-decoration: none;
  color: inherit;
}

/* Make sure tables behave */
table {
  border-collapse: collapse;
  border-spacing: 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-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

/* Headings: luxurious, with display font */
h1,
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.2vw + 1.6rem, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-5);
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.3vw + 1.2rem, var(--font-size-3xl));
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.4vw + 1rem, var(--font-size-2xl));
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

h4,
.h4 {
  font-weight: 600;
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

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

h6,
.h6 {
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}

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

strong,
b {
  font-weight: 600;
}

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

/* Links */
a {
  color: var(--color-primary);
  transition: color var(--transition-base),
              opacity var(--transition-fast),
              text-shadow var(--transition-base);
}

a:hover {
  color: #ffe9a8;
  text-shadow: 0 0 12px rgba(217, 177, 90, 0.4);
}

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

/* Horizontal rule for subtle separators */
hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}


/* ========================================================================
   Accessibility & Focus
   ======================================================================== */

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

/* Respect prefers-reduced-motion globally */
@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: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container--wide {
  max-width: var(--container-max-width-wide);
}

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

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

.section--hero {
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  padding-top: var(--space-13);
  padding-bottom: var(--space-13);
}

/* Flex helpers */
.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-around {
  justify-content: space-around;
}

.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 for galleries / cards */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
}

.grid-auto-fit {
  display: grid;
  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));
  }
}

/* Alignment & text utilities (Polish copy friendly) */
.text-center {
  text-align: center;
}

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

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

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

/* Spacing utilities (vertical margin helpers) */
.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 - primary, ghost, subtle variants */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #d9b15a, #f3e0a0);
  color: #201406 !important;
  box-shadow: 0 14px 35px rgba(217, 177, 90, 0.45);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-base),
              opacity var(--transition-fast);
}

.button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(217, 177, 90, 0.6);
}

.button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

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

.button--ghost,
.btn--ghost {
  background: transparent;
  color: var(--color-text) !important;
  border-color: rgba(245, 240, 230, 0.4);
  box-shadow: none;
}

.button--ghost:hover,
.btn--ghost:hover {
  background: rgba(245, 240, 230, 0.06);
  box-shadow: var(--shadow-soft);
}

.button--subtle,
.btn--subtle {
  background: rgba(15, 17, 26, 0.8);
  border-color: var(--color-border-subtle);
  color: var(--color-text) !important;
  box-shadow: var(--shadow-soft);
}

.button--full,
.btn--full {
  width: 100%;
}


/* Form Inputs */

.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 11, 17, 0.9);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(183, 176, 164, 0.7);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(217, 177, 90, 0.6), var(--shadow-soft);
  background-color: rgba(14, 16, 24, 0.98);
}

.input--error {
  border-color: var(--color-danger);
}

.input--error:focus {
  box-shadow: 0 0 0 1px rgba(240, 91, 91, 0.6), var(--shadow-soft);
}

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

.form-group {
  margin-bottom: var(--space-5);
}

.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 event formats, venues, testimonials */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(217, 177, 90, 0.09), transparent 50%),
              radial-gradient(circle at bottom right, rgba(123, 18, 48, 0.2), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(217, 177, 90, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

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

.card__title {
  margin-bottom: var(--space-2);
}

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

.card__body {
  font-size: var(--font-size-md);
}

.card__actions {
  margin-top: var(--space-5);
  display: flex;
  justify-content: flex-start;
  gap: var(--space-3);
}


/* Hero-specific helpers (for immersive homepage) */

.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(217, 177, 90, 0.25), transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(12, 95, 74, 0.35), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9));
  mix-blend-mode: soft-light;
  opacity: 0.9;
  z-index: -1;
}

.hero-kicker {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: var(--font-size-lg);
  max-width: 34rem;
  color: var(--color-text-muted);
}


/* Gallery & media helpers */

.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(245, 240, 230, 0.18);
  box-shadow: var(--shadow-medium);
}

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

.media-frame--soft {
  border-radius: var(--radius-lg);
}


/* Tag / pill for event categories */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 240, 230, 0.4);
  background: rgba(10, 11, 17, 0.9);
  color: var(--color-text-muted);
}

.tag--primary {
  background: rgba(217, 177, 90, 0.12);
  border-color: rgba(217, 177, 90, 0.6);
  color: var(--color-primary);
}

.tag--burgundy {
  background: rgba(123, 18, 48, 0.4);
  border-color: rgba(123, 18, 48, 0.9);
}

.tag--emerald {
  background: rgba(12, 95, 74, 0.4);
  border-color: rgba(12, 95, 74, 0.9);
}


/* Timeline (for event schedule / journey) */

.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(217, 177, 90, 0.9), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 177, 90, 0.35);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item__time {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}


/* Badge for schedule status (e.g., "Nowe", "Wyprzedane") */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(245, 240, 230, 0.35);
}

.badge--success {
  border-color: rgba(43, 191, 123, 0.7);
  color: var(--color-success);
}

.badge--danger {
  border-color: rgba(240, 91, 91, 0.7);
  color: var(--color-danger);
}


/* Testimonial block (for opinions in Polish) */

.testimonial {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 60%),
              rgba(10, 11, 17, 0.95);
  border: 1px solid var(--color-border-subtle);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: var(--space-5);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(217, 177, 90, 0.18);
  transform: translateY(-50%);
}

.testimonial__text {
  font-size: var(--font-size-md);
  color: var(--color-text);
}

.testimonial__author {
  margin-top: var(--space-4);
  font-weight: 600;
}

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


/* Responsive tweaks */

@media (max-width: 767px) {
  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .card {
    padding: var(--space-5);
  }
}
