/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color palette – luxusní, tmavé, filmové prostředí */
  --color-bg: #05070b; /* hluboká tmavá základní */
  --color-bg-elevated: #0b0f17; /* zvýrazněné panely / sekce */
  --color-bg-soft: #121824; /* jemné přechody, footer, hero overlay */

  --color-text: #f5f5f7; /* hlavní text na tmavém pozadí */
  --color-text-muted: #a1a5b2; /* sekundární text, meta informace */
  --color-heading: #ffffff; /* titulky, silná typografie */

  --color-primary: #d7b56d; /* antique gold – hlavní akcent */
  --color-primary-soft: rgba(215, 181, 109, 0.14);
  --color-primary-hover: #e2c782;

  --color-success: #3cbf7c;
  --color-warning: #f1b75a;
  --color-danger: #ff5c73;

  --color-navy-deep: #050b18; /* hluboká námořnická */
  --color-navy: #0d1a33;
  --color-burgundy: #4a1220;
  --color-bronze: #b07a43;

  --gray-50: #f8f8fb;
  --gray-100: #e2e4ec;
  --gray-200: #c7cad7;
  --gray-300: #a1a5b2;
  --gray-400: #7a7f8d;
  --gray-500: #555a68;
  --gray-600: #3b4050;
  --gray-700: #292e3a;
  --gray-800: #181b24;
  --gray-900: #0e1118;

  /* Overlay & glassmorphism */
  --glass-bg: rgba(7, 10, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-highlight: rgba(255, 255, 255, 0.18);

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

  /* Base font sizes (mobile-first, fine-tune in components) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px – čitelnější na desktopu */
  --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.375rem; /* 38px – hero / velké nadpisy */
  --font-size-5xl: 3rem;     /* 48px – hlavní hero */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-16: 32px;
  --space-20: 40px;
  --space-24: 48px;
  --space-32: 64px;
  --space-40: 80px;
  --space-48: 96px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows – jemné, filmové, bez agresivních odlesků */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft-up: 0 -16px 40px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 22px 70px rgba(0, 0, 0, 0.65);
  --shadow-outline-gold: 0 0 0 1px rgba(215, 181, 109, 0.6),
    0 0 0 4px rgba(215, 181, 109, 0.22);

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

  /* Layout */
  --container-width: 1200px;
  --container-gutter: 20px;

  /* Z-index scale */
  --z-header: 50;
  --z-overlay: 40;
  --z-dropdown: 45;
  --z-modal: 60;
}

/* Slightly larger base text on wider screens */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1.0625rem;
    --font-size-md: 1.125rem;
  }
}

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

html,
body,
div,
span,
applet,
object,
iframe,
 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p,
 blockquote,
 pre,
 a,
 abbr,
 acronym,
 address,
 big,
 cite,
 code,
 del,
 dfn,
 em,
 img,
 ins,
 kbd,
 q,
 s,
 samp,
 small,
 strike,
 strong,
 sub,
 sup,
 tt,
 var,
 b,
 u,
 i,
 center,
 dl,
 dt,
 dd,
 ol,
 ul,
 li,
 fieldset,
 form,
 label,
 legend,
 table,
 caption,
 tbody,
 tfoot,
 thead,
 tr,
 th,
 td,
 article,
 aside,
 canvas,
 details,
 embed,
 figure,
 figcaption,
 footer,
 header,
 hgroup,
 menu,
 nav,
 output,
 ruby,
 section,
 summary,
 time,
 mark,
 audio,
 video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
footer,
header,
nav,
section,
main {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

 table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

img {
  height: auto;
}

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

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

textarea {
  resize: vertical;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

/* =========================================================
   Base styles
   ========================================================= */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 1;
}

/* Typografie – nadpisy a odstavce */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--line-height-tight);
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

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

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: 2.125rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

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

p + p {
  margin-top: var(--space-2);
}

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

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

/* Odkazy – jemné zvýraznění v luxusní zlaté */
a {
  position: relative;
  transition: color var(--transition-normal),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

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

a[data-underline="soft"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: center;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

a[data-underline="soft"]:hover::after,
a[data-underline="soft"]:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Výchozí mezery mezi sekcemi */
section {
  padding-block: var(--space-32);
}

@media (min-width: 1024px) {
  section {
    padding-block: var(--space-40);
  }
}

/* =========================================================
   Accessibility & prefers-reduced-motion
   ========================================================= */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline-gold);
  border-radius: var(--radius-sm);
}

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

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

/* Kontejner pro obsah – max. šířka a odsazení */
.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* Flex pomocné třídy */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

.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-end {
  justify-content: flex-end;
}

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

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

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

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

/* Grid pomocné třídy */
.grid {
  display: grid;
}

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

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

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

/* Centrování obsahu celé sekce */
.section-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skrytí pouze pro screen-readery */
.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;
}

/* Margin helpers (základní) */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

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

/* Jemné přechody pro prvky s mikroanimacemi */
.smooth-transition {
  transition: transform var(--transition-normal),
    opacity var(--transition-normal),
    background-color var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

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

/* Tlačítka – CTA v luxusním stylu */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.32), transparent 55%),
    linear-gradient(120deg, #352412, #7e5a25, #d7b56d);
  color: #0b0b0f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background-position var(--transition-fast),
    opacity var(--transition-fast);
  background-size: 160% 160%;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  background-position: 100% 0;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

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

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

.btn--ghost {
  background: rgba(6, 8, 15, 0.7);
  border: 1px solid rgba(215, 181, 109, 0.55);
  color: var(--color-primary-hover);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  background: rgba(12, 16, 27, 0.9);
}

.btn--soft {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  border-color: rgba(215, 181, 109, 0.45);
  box-shadow: none;
}

.btn--soft:hover {
  background: rgba(215, 181, 109, 0.24);
}

/* Inputs – formuláře pro poptávky a konzultace */
.input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(10, 12, 20, 0.9);
  color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 16px 30px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal),
    transform var(--transition-fast);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(215, 181, 109, 0.8);
  box-shadow: var(--shadow-outline-gold);
  transform: translateY(-1px);
}

.input[aria-invalid="true"],
.input--error {
  border-color: rgba(255, 92, 115, 0.8);
}

.input--error-message {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card – univerzální panel pro služby, reference, články */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  background:
    radial-gradient(circle at top, rgba(215, 181, 109, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(8, 10, 18, 0.98), rgba(6, 8, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background-position var(--transition-normal);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(215, 181, 109, 0.2), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(215, 181, 109, 0.35);
}

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

.card--subtle {
  background: linear-gradient(145deg, #060810, #0b0f18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
}

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

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

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

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

/* Glassmorphism panel – pro header, oznámení, VIP prvky */
.glass-panel {
  background: var(--glass-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Badge – štítky pro typ eventu apod. */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(215, 181, 109, 0.4);
  color: var(--color-primary-hover);
  background: rgba(215, 181, 109, 0.08);
}

/* Tag pro seo / kategorie v blogu */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Divider – luxusní oddělovač inspirovaný kasinem */
.divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 181, 109, 0.6), transparent);
  margin-block: var(--space-16);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(215, 181, 109, 0.7);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), rgba(215, 181, 109, 0.85));
  transform: translateY(-50%);
}

.divider::before {
  left: 12%;
}

.divider::after {
  right: 12%;
}

/* Hero overlay – filmová vrstva pro hlavní fotografie */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.65), transparent 55%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.96));
  pointer-events: none;
}

/* Utility pro tmavé sekce s jemným gradientem */
.section-dark {
  background: radial-gradient(circle at top, rgba(20, 28, 52, 0.8), transparent 60%),
    #05070b;
}

.section-deep {
  background: radial-gradient(circle at bottom, rgba(74, 18, 32, 0.8), transparent 60%),
    #05070b;
}

/* Footer base – luxusní tmavý závěr */
.footer-base {
  background: linear-gradient(180deg, #05070b, #020308);
  color: var(--color-text-muted);
  padding-block: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

/* Announcement / VIP bar – pro promo balíčky a sezónní témata */
.announcement-bar {
  background: linear-gradient(120deg, rgba(74, 18, 32, 0.95), rgba(13, 26, 51, 0.98));
  color: var(--color-text);
  padding-block: var(--space-4);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-bar__highlight {
  color: var(--color-primary-hover);
}

/* Helper pro parallax ready sekce – skutečný parallax řeší JS */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* End of base.css */
