/* =====================================================================
   Prago Scene Base Styles
   ===================================================================== */

/* =====================================================================
   1) CSS Custom Properties (Variables)
   ===================================================================== */
:root {
  /* Color Palette – Prague-inspired premium nightlife */
  --color-bg: #f9f5ef;              /* warm light beige background */
  --color-bg-alt: #ffffff;          /* pure white panels */
  --color-bg-elevated: #101628;     /* deep navy for hero/sections */

  --color-text: #1b1f2a;            /* primary text (dark, soft) */
  --color-text-muted: #6d7485;      /* muted text */
  --color-text-on-dark: #fdf7ec;    /* text for dark blocks */

  --color-primary: #c9a15c;         /* soft gold – brand accent */
  --color-primary-soft: rgba(201, 161, 92, 0.18);

  --color-success: #2e8b57;         /* elegant green */
  --color-warning: #d78b2d;         /* warm amber */
  --color-danger: #c0392b;          /* deep red */

  /* Neutral Grays */
  --gray-50: #f8fafc;
  --gray-100: #edf1f7;
  --gray-200: #dde2ec;
  --gray-300: #c6cedc;
  --gray-400: #a0a9ba;
  --gray-500: #7b8394;
  --gray-600: #5a6272;
  --gray-700: #3b4353;
  --gray-800: #252b39;
  --gray-900: #161925;

  /* 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-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.25rem;   /* 20px */
  --font-size-xl: 1.5rem;    /* 24px */
  --font-size-2xl: 2rem;     /* 32px */
  --font-size-3xl: 2.5rem;   /* 40px */
  --font-size-4xl: 3.25rem;  /* 52px – hero headlines */

  --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-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows – soft and premium */
  --shadow-sm: 0 6px 16px rgba(10, 16, 34, 0.06);
  --shadow-md: 0 18px 40px rgba(10, 16, 34, 0.12);
  --shadow-lg: 0 30px 80px rgba(3, 6, 17, 0.26);

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

  /* Layout */
  --layout-max-width: 1160px;
  --layout-gutter: 20px;

  /* Z-index helpers */
  --z-header: 40;
  --z-overlay: 50;
  --z-modal: 60;
  --z-toast: 70;
}

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

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

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

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

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

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

[hidden] {
  display: none !important;
}

/* Remove default focus outline; we reintroduce via :focus-visible */
:focus {
  outline: none;
}

/* =====================================================================
   3) Base Typography & Layout
   ===================================================================== */
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 {
  display: block;
}

/* Headings – premium hierarchy using display serif */
h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, var(--font-size-3xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, var(--font-size-2xl));
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

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

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

h6 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-2);
}

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

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

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

strong {
  font-weight: 600;
}

/* Links – subtle underline on hover for premium feel */
a {

  transition: color var(--transition-fast),
    opacity var(--transition-fast),
    text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 1px rgba(201, 161, 92, 0.32);
}

/* =====================================================================
   4) Accessibility & Focus Styles
   ===================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  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 helper */
.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) Layout Utilities
   ===================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--layout-max-width) + var(--layout-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

.section {
  padding-top: clamp(var(--space-12), 7vh, var(--space-20));
  padding-bottom: clamp(var(--space-12), 7vh, var(--space-20));
}

.section--dark {
  background: radial-gradient(circle at top left, #202a45 0, #070b16 60%);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6,
.section--dark p {
  color: var(--color-text-on-dark);
}

/* Flex utilities */
.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-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

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

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

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

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

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-6);
}

.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-8);
}

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

/* Text alignment */
.text-center {
  text-align: center;
}

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

/* Width helpers */
.w-full {
  width: 100%;
}

/* Spacing utilities (margin & padding) */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* =====================================================================
   6) Core Components – Buttons, Inputs, Cards
   ===================================================================== */

/* Buttons – primary, secondary, subtle for CTAs "Rezervovat Stůl" etc. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-fast),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #d9b56b, #b78b4c);
  color: #120f07;
  box-shadow: 0 16px 40px rgba(183, 139, 76, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(183, 139, 76, 0.6);
}

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

.btn-secondary {
  background-color: transparent;
  border-color: rgba(249, 245, 239, 0.36);
  color: inherit;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(249, 245, 239, 0.08);
  border-color: rgba(249, 245, 239, 0.6);
}

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

.btn-ghost:hover {
  background-color: rgba(201, 161, 92, 0.08);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Inputs & Textareas */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 25, 44, 0.14);
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color 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: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(201, 161, 92, 0.3);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
}

.field-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}

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

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

/* Card – for experiences, events, highlights */
.card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--dark {
  background: linear-gradient(145deg, #171b2b, #090b13);
  color: var(--color-text-on-dark);
}

.card--dark p {
  color: var(--color-text-on-dark);
}

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

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

/* Tag / Pill – for event types, labels */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 161, 92, 0.4);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-800);
  background-color: rgba(201, 161, 92, 0.06);
}

/* =====================================================================
   7) Header / Navigation Layout Helpers
   ===================================================================== */

/* Centered logo with nav split equally; actual page CSS can extend this */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(18px);
  background-color: rgba(9, 12, 24, 0.86);
  color: var(--color-text-on-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: 0.85rem var(--layout-gutter);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  justify-content: flex-start;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.header-nav--right {
  justify-content: flex-end;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-link {
  position: relative;
  color: rgba(249, 245, 239, 0.82);
  transition: color var(--transition-fast);
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #d9b56b, #8f6a38);
  transition: width var(--transition-normal);
}

.header-link:hover {
  color: #ffffff;
}

.header-link:hover::after,
.header-link[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }

  .header-nav {
    display: none; /* actual mobile menu handled in page CSS */
  }
}

/* =====================================================================
   8) Hero / Slider Helpers
   ===================================================================== */

.hero {
  position: relative;
  min-height: min(90vh, 880px);
  color: var(--color-text-on-dark);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 7, 15, 0.88) 0%, rgba(7, 7, 15, 0.55) 40%, rgba(7, 7, 15, 0.2) 100%),
    radial-gradient(circle at top left, rgba(226, 192, 123, 0.35), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 100px auto 0;
}

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 241, 223, 0.8);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: rgba(251, 245, 235, 0.86);
  margin-bottom: var(--space-6);
}

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

@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: var(--space-12);
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 2.7rem);
  }
}

/* Slider controls (generic; actual markup defines placement) */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: var(--z-overlay);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(250, 242, 226, 0.6);
  background-color: transparent;
  opacity: 0.6;
  transition: opacity var(--transition-fast),
    background-color var(--transition-fast),
    width var(--transition-fast);
}

.hero-dot.is-active {
  width: 18px;
  background-color: #f6e5c3;
  opacity: 1;
}

/* =====================================================================
   9) Footer Helpers
   ===================================================================== */

.footer {
  background-color: #070a13;
  color: rgba(242, 236, 222, 0.82);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
}

.footer a {
  color: inherit;
}

.footer a:hover {
  color: #ffffff;
}

.footer-meta {
  font-size: var(--font-size-xs);
  color: rgba(242, 236, 222, 0.65);
}

/* =====================================================================
   10) Misc Helpers
   ===================================================================== */

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0 0, #e76f51, #9d0208);
  color: #fffdf7;
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #ffebd4;
  box-shadow: 0 0 0 4px rgba(255, 235, 212, 0.36);
}

.separator-soft {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(5, 8, 20, 0), rgba(5, 8, 20, 0.4), rgba(5, 8, 20, 0));
  margin: var(--space-4) 0;
}

.separator-gold {
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0c38a, #c2964d);
  margin: var(--space-4) 0;
}
