/* ========================================================================
   Horyzona Base Styles
   Modern, elegant, premium, bright, minimal, event-focused
   ======================================================================== */

/* ========================================================================
   1. CSS Variables (Design Tokens)
   ======================================================================== */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7fb;
  --color-bg-alt: #0b1020; /* deep navy for dark sections */

  --color-text: #111320;
  --color-text-soft: #4a4f63;
  --color-text-on-dark: #f9fafc;

  --color-primary: #c79b3b; /* warm gold */
  --color-primary-soft: #f4e4bf;
  --color-primary-dark: #a37924;

  --color-success: #2f9e62;
  --color-warning: #d8961a;
  --color-danger: #d54444;

  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2933;
  --color-neutral-900: #111827;

  /* Typography */
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px converted to rem assuming 16px base) */
  --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-28: 1.75rem;  /* 28px */
  --space-32: 2rem;     /* 32px */
  --space-40: 2.5rem;   /* 40px */
  --space-48: 3rem;     /* 48px */
  --space-56: 3.5rem;   /* 56px */
  --space-64: 4rem;     /* 64px */
  --space-80: 5rem;     /* 80px */
  --space-96: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-pill: 999px;
  --radius-card: 1.25rem; /* premium rounded cards */

  /* Shadows (soft premium) */
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 25px 70px rgba(15, 23, 42, 0.18);

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

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

/* ========================================================================
   2. 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,
figure, blockquote,
ul, ol, dl,
p {
  margin: 0;
}

ul, ol {
  padding-left: var(--space-24);
}

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

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

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

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

textarea {
  resize: vertical;
}

/* Remove default focus outlines (re-added with :focus-visible) */
:focus {
  outline: none;
}

/* ========================================================================
   3. Base Typography & Layout
   ======================================================================== */

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);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings: elegant, event-agency feel */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

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

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);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

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

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

strong {
  font-weight: 600;
}

/* Links: subtle underline on hover only */

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

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

a.inline-link {
  color: var(--color-primary-dark);
}

a.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

a.inline-link:hover::after {
  transform: scaleX(1);
}

/* Lists */

ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-16);
  color: var(--color-text-soft);
}

/* Sections spacing (can be overridden per-page) */

.section {
  padding-block: var(--space-64);
}

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

.section--dark {
  background-color: var(--color-bg-alt);
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: rgba(249, 250, 252, 0.86);
}

/* ========================================================================
   4. Utilities
   ======================================================================== */

/* Layout container */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1120px;
}

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

/* Flex helpers */

.flex {
  display: 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-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: 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: 1fr;
  gap: var(--space-24);
}

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

/* Spacing utilities (margin / padding) */

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.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); }

.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-40 { margin-top: var(--space-40); }

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

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

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

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

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

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

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

/* ========================================================================
   5. Components
   ======================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #f2d79f);
  color: #1a1a1f;
  box-shadow: var(--shadow-soft);
}

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

.btn-outline {
  background-color: transparent;
  border-color: rgba(199, 155, 59, 0.6);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background-color: rgba(199, 155, 59, 0.07);
}

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

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

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

/* Inputs & form controls */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
  background-color: #ffffff;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

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

/* Cards: used for attractions, FAQ, testimonials, etc. */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-card);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
}

.card--soft {
  background: radial-gradient(circle at top left, #fff7e5 0, #ffffff 40%, #f7f7fb 100%);
}

.card--dark {
  background: linear-gradient(145deg, #0b1020, #171c33);
  color: var(--color-text-on-dark);
}

.card--dark p {
  color: rgba(249, 250, 252, 0.8);
}

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

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

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

/* Hero / slider helpers */

.hero {
  position: relative;
  color: var(--color-text-on-dark);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,16,32,0.9), rgba(11,16,32,0.55));
  pointer-events: none;
}

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

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary-soft);
  margin-bottom: var(--space-12);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-16);
  color: #d3df46;
}

.hero-subtitle {
  max-width: 34rem;
  color: rgba(210, 217, 85, 0.9);
  margin-bottom: var(--space-24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

/* Footer disclaimer styling (shown on every page) */

.footer-disclaimer {
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-neutral-500);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  font-size: var(--font-size-sm);
}

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

.footer-links a:hover {
  color: var(--color-primary-dark);
}

/* ========================================================================
   6. Accessibility & Motion
   ======================================================================== */

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

button:focus-visible,
[role="button"]:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible,
.btn:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(199, 155, 59, 0.9);
  border-color: var(--color-primary);
}

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

/* ========================================================================
   7. Helper styles for key sections (non-structural)
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background-color: rgba(199, 155, 59, 0.12);
  color: var(--color-primary-dark);
}

.tagline {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-500);
}

.highlight {
  background: linear-gradient(120deg, rgba(199,155,59,0.2), transparent 70%);
  border-radius: 999px;
  padding-inline: 0.25em;
}

/* FAQ accordion base (structure and JS to be defined elsewhere) */

.faq-item {
  border-bottom: 1px solid var(--color-neutral-200);
  padding-block: var(--space-16);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.faq-answer {
  margin-top: var(--space-8);
  color: var(--color-text-soft);
}

/* Responsible entertainment notice blocks */

.notice-responsible {
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid rgba(213, 68, 68, 0.18);
  background: rgba(213, 68, 68, 0.03);
}

.notice-responsible h3 {
  color: var(--color-danger);
}

.notice-support {
  display: grid;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
}

.notice-support a {
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* Navigation helpers (structure in layout CSS) */

.nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

/* Chips / tags used to repeat "bez prawdziwego hazardu" message */

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 23, 42, 0.04);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-700);
}

.info-chip--danger {
  background-color: rgba(213, 68, 68, 0.06);
  color: var(--color-danger);
}

/* Gallery helper */

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(11,16,32,0.25), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}
