/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors */
  --color-background: #050608; /* deep cinematic black */
  --color-surface: #101118; /* subtle elevated surface */
  --color-surface-soft: #181924;
  --color-text: #f5f0e6; /* soft cream */
  --color-text-muted: #b3a99b;
  --color-primary: #c41b2b; /* royal red */
  --color-primary-soft: rgba(196, 27, 43, 0.15);
  --color-accent-gold: #f4c76a; /* gold accents */
  --color-accent-gold-soft: rgba(244, 199, 106, 0.16);
  --color-accent-emerald: #0c7d5a; /* dark emerald */
  --color-success: #18a558;
  --color-warning: #ffb648;
  --color-danger: #ff4b5c;

  --color-border-subtle: #272733;
  --color-border-strong: #3a3a4b;

  --color-neutral-50: #f7f7f8;
  --color-neutral-100: #e2e2e7;
  --color-neutral-200: #c5c6d0;
  --color-neutral-300: #a0a1b2;
  --color-neutral-400: #7c7d91;
  --color-neutral-500: #5a5b72;
  --color-neutral-600: #434458;
  --color-neutral-700: #303143;
  --color-neutral-800: #212231;
  --color-neutral-900: #151622;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, 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: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --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 (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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows (cinematic, soft) */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;
}

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

/* ========================================================================
   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[class], ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

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

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

img {
  height: auto;
}

textarea {
  resize: vertical;
}

:focus {
  outline: none;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

body[data-scroll-lock="true"] {
  overflow: hidden;
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #161729 0, #050608 55%, #020308 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

h1, h2, h3 {
  margin-bottom: var(--space-4);
}

h4, h5, h6 {
  margin-bottom: var(--space-3);
}

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

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

strong, b {
  font-weight: 600;
}

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

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color var(--transition-base),
    text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 14px rgba(244, 199, 106, 0.55);
}

a:active {
  color: var(--color-accent-emerald);
}

::selection {
  background: rgba(196, 27, 43, 0.7);
  color: #fff;
}

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

/* ========================================================================
   Utilities
   ======================================================================== */

/* Layout */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-block: clamp(var(--space-10), 7vh, var(--space-20));
}

.section--dark {
  background: radial-gradient(circle at top left, #181929 0, #050608 60%);
}

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

/* Flex utilities */
.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-2 {
  gap: var(--space-2);
}

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

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

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

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

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

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

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

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

/* Alignment & text */
.text-center {
  text-align: center;
}

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

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

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

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

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

/* Spacing utilities (subset) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }

/* Screen readers */
.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;
}

/* Cinematic overlays & gradients */
.overlay-gradient-bottom {
  position: relative;
}

.overlay-gradient-bottom::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to bottom, transparent, #050608);
  pointer-events: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  color: #fff !important;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, #e3293c, #8b0f1b);
  border-color: rgba(244, 199, 106, 0.4);
  box-shadow: 0 12px 30px rgba(227, 41, 60, 0.5);
}

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

.btn--gold {
  background: linear-gradient(135deg, #f8d57f, #f0ad40);
  color: #1a120b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(248, 213, 127, 0.45);
}

.btn--outline {
  background: rgba(8, 8, 12, 0.75);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 199, 106, 0.4);
  color: var(--color-accent-gold);
}

.btn:hover::before {
  opacity: 1;
  transform: translate3d(4px, 6px, 0);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

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

.btn--sm {
  padding: 0.5rem 1.15rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: var(--font-size-md);
}

/* Form elements */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 8, 12, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

.form-control::placeholder {
  color: rgba(179, 169, 155, 0.7);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow:
    0 0 0 1px rgba(244, 199, 106, 0.3),
    0 18px 35px rgba(0, 0, 0, 0.7);
  background-color: rgba(11, 11, 18, 0.95);
  transform: translateY(-1px);
}

.form-control[aria-invalid="true"],
.form-control--error {
  border-color: var(--color-danger);
}

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-help {
  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);
}

/* Cards – for packages, testimonials, galleries */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(244, 199, 106, 0.04) 0, #101118 50%);
  border: 1px solid rgba(244, 199, 106, 0.14);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(196, 27, 43, 0.25), transparent 58%),
    radial-gradient(circle at bottom right, rgba(12, 125, 90, 0.25), transparent 58%);
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

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

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

.card__body {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card--accent {
  border-color: rgba(244, 199, 106, 0.8);
  box-shadow: var(--shadow-elevated);
}

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

/* Badges – for package labels like "Premium", "Najczęściej wybierany" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 199, 106, 0.6);
  background: radial-gradient(circle at top, rgba(244, 199, 106, 0.3), transparent 70%);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
}

.badge--soft {
  border-color: rgba(179, 169, 155, 0.5);
  background: rgba(21, 22, 34, 0.9);
  color: var(--color-text-muted);
}

/* Tagline / overline text (e.g., section labels in Polish) */
.overline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 199, 106, 0.9);
  margin-bottom: var(--space-2);
}

/* Media frame – for galleries and cinematic photos */
.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(244, 199, 106, 0.4);
  box-shadow: var(--shadow-elevated);
  background-color: #000;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), transparent 55%),
    linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* Focus-visible enhancement for interactive components */
.btn:focus-visible,
.form-control:focus-visible,
.card:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Prefer reduced motion – minimize UI movement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
