/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #050507; /* deep cinematic black */
  --color-bg-elevated: #0e0e12;
  --color-bg-soft: #15151e;
  --color-text: #f7f2e9; /* warm ivory */
  --color-text-muted: #c0b7aa;
  --color-primary: #d6a34a; /* warm gold */
  --color-primary-soft: rgba(214, 163, 74, 0.15);
  --color-primary-strong: #f3c768;
  --color-success: #1f9f6b; /* emerald */
  --color-warning: #e1b252;
  --color-danger: #b02a3a; /* burgundy red */

  --color-gray-50: #f6f5f2;
  --color-gray-100: #e3dfd6;
  --color-gray-200: #cfc8bb;
  --color-gray-300: #b3aa9a;
  --color-gray-400: #8f8470;
  --color-gray-500: #6c6456;
  --color-gray-600: #4f493f;
  --color-gray-700: #38332c;
  --color-gray-800: #25211c;
  --color-gray-900: #15110c;

  /* Overlays & borders */
  --color-overlay-strong: rgba(0, 0, 0, 0.8);
  --color-overlay-soft: rgba(5, 5, 7, 0.6);
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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.1;
  --line-height-snug: 1.25;
  --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-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows (cinematic, soft) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 18px 60px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.5);

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

  /* Layout */
  --container-width: 1120px;
  --container-gutter: 20px;
}

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

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

body {
  margin: 0;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

/* Remove default link underlines and outlines while preserving accessibility */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* =========================================================
   Base
   ========================================================= */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

/* Headings – cinematic hierarchy for Polish content */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2.5rem, 4vw, var(--font-size-5xl));
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 3vw, var(--font-size-4xl));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

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

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

p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

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

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

/* Links – subtle luxury accent */
a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-fast);
}

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

a:active {
  opacity: 0.85;
}

/* Lists */
ul, ol {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-3);
}

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

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

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

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

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

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

/* 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-column {
  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);
}

/* Simple grid helpers (for galleries, packages, etc.) */
.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: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-3) !important; }
.mt-md { margin-top: var(--space-6) !important; }
.mt-lg { margin-top: var(--space-10) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-2) !important; }
.mb-sm { margin-bottom: var(--space-3) !important; }
.mb-md { margin-bottom: var(--space-6) !important; }
.mb-lg { margin-bottom: var(--space-10) !important; }

/* Background helpers for different pages / moods */
.bg-black {
  background: radial-gradient(circle at top, #181824 0, #050507 55%, #000000 100%);
}

.bg-emerald {
  background: radial-gradient(circle at 20% 0, rgba(31, 159, 107, 0.4), transparent 60%), #050507;
}

.bg-burgundy {
  background: radial-gradient(circle at 80% 0, rgba(176, 42, 58, 0.35), transparent 60%), #050507;
}

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

/* =========================================================
   Components – Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-image: linear-gradient(135deg, #f3c768, #d6a34a);
  color: #120f08 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.btn--primary:hover {
  background-image: linear-gradient(135deg, #ffe9a0, #f3c768);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

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

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--danger {
  background-color: var(--color-danger);
  color: #fff;
}

.btn--danger:hover {
  background-color: #cf3345;
}

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

/* =========================================================
   Components – Form Controls
   ========================================================= */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(12, 12, 16, 0.85);
  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-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(243, 199, 104, 0.7);
  background-color: rgba(12, 12, 16, 0.95);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

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

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

/* =========================================================
   Components – Card (for packages, testimonials, FAQ blocks)
   ========================================================= */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(243, 199, 104, 0.09), transparent 55%),
              radial-gradient(circle at bottom right, rgba(31, 159, 107, 0.12), transparent 55%),
              rgba(10, 10, 14, 0.94);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.card--soft {
  background: rgba(11, 11, 16, 0.92);
  box-shadow: var(--shadow-subtle);
}

.card--bordered {
  border-style: solid;
  border-width: 1px;
  border-image: linear-gradient(135deg, rgba(243, 199, 104, 0.8), rgba(176, 42, 58, 0.7)) 1;
}

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

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

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

/* =========================================================
   Components – Age Gate / Modal Shell
   (for 21+ verification without casino-style gambling cues)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 999;
}

.modal {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(243, 199, 104, 0.2), transparent 55%),
              rgba(10, 10, 14, 0.98);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

.modal-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* =========================================================
   Components – Hero Overlay / Cinematic Sections
   ========================================================= */
.hero {
  position: relative;
  color: var(--color-text);
  min-height: min(80vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 7, 0.95), transparent 45%),
    linear-gradient(to right, rgba(5, 5, 7, 0.85), transparent 65%);
  z-index: 0;
}

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

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: rgba(5, 5, 7, 0.8);
  border: 1px solid rgba(243, 199, 104, 0.6);
  margin-bottom: var(--space-3);
}

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

/* =========================================================
   Utilities – Badges, Pills, Subtle Labels
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge--outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-text-muted);
}

.badge--success {
  background-color: rgba(31, 159, 107, 0.2);
  color: #a8e5c7;
}

.badge--danger {
  background-color: rgba(176, 42, 58, 0.25);
  color: #f3bec6;
}

/* =========================================================
   Footer Disclaimer Styling (for mandatory notice in PL)
   ========================================================= */
.footer-disclaimer {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-200);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-3);
  margin-top: var(--space-6);
}

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

/* Ensure no casino/gambling-style highlighting for external brands */
.no-gambling-link {
  text-decoration: none;
  color: var(--color-text-muted);
}

.no-gambling-link:hover {
  color: var(--color-text-muted);
  cursor: default;
}
