/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color System: Dark Luxury Palette */
  --color-bg-primary: #0E0F12;         /* Deep black */
  --color-bg-secondary: #1B1C22;       /* Graphite gray sections */
  --color-bg-card: #23252B;            /* Dark charcoal for cards */
  --color-bg-overlay: rgba(5, 6, 8, 0.82); /* Cinematic overlay for modals */

  --color-text-primary: #F5EFE6;       /* Warm ivory for body text */
  --color-text-muted: #B3A899;         /* Muted ivory/stone for secondary text */
  --color-heading: #C8A45A;            /* Antique gold for headings */

  --color-primary: #B45E3C;            /* Deep copper for CTAs */
  --color-primary-hover: #7A3E2A;      /* Dark bronze hover */
  --color-accent-emerald: #1F4D4D;     /* Muted emerald accents */
  --color-accent-champagne: #CBB08A;   /* Champagne beige highlights */

  --color-success: #3BAE74;
  --color-warning: #E0A94F;
  --color-danger: #D9534F;

  --gray-50: #F7F7F8;
  --gray-100: #E1E2E6;
  --gray-200: #C5C7D0;
  --gray-300: #A3A6B3;
  --gray-400: #7C8091;
  --gray-500: #5A5E70;
  --gray-600: #3F4252;
  --gray-700: #2D3040;
  --gray-800: #1F2130;
  --gray-900: #141622;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font Sizes (clamped for responsive editorial rhythm) */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-md: 1.0625rem; /* 17px, body upgrade for luxury feel */
  --fs-lg: 1.125rem;  /* 18px */
  --fs-xl: 1.25rem;   /* 20px */
  --fs-2xl: 1.5rem;   /* 24px */
  --fs-3xl: clamp(1.75rem, 2vw + 1rem, 2.25rem);  /* Section titles */
  --fs-4xl: clamp(2rem, 3vw + 1rem, 3rem);        /* Page titles */
  --fs-5xl: clamp(2.5rem, 4vw + 1rem, 3.5rem);    /* Hero headline */

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-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-7: 1.75rem;   /* 28px */
  --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-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows: soft cinematic layer, not harsh */
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 1px 0 rgba(255, 255, 255, 0.03);

  /* Transitions & Motion */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 360ms ease;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.001ms;
    --transition-base: 0.001ms;
    --transition-slow: 0.001ms;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


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

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

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-left: 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;
}

:where(a) {
  color: inherit;
}

:where(a, button) {
  cursor: pointer;
}

:where(a[disabled], button[disabled], [aria-disabled='true']) {
  cursor: not-allowed;
}

/* Remove default focus outlines; handled via :focus-visible */
:where(:focus) {
  outline: none;
}


/* =========================================================
   Base Styles
   ========================================================= */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  line-height: var(--lh-tight);
  letter-spacing: 0.03em;
  text-transform: none;
}

h1 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
}

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

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

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

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

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

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

strong {
  font-weight: 600;
}

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

code, pre {
  font-family: var(--font-mono);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

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

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}

::selection {
  background: rgba(196, 149, 76, 0.35);
  color: var(--color-text-primary);
}


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

/* Layout: Container for editorial width */
.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: var(--space-16);
}

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

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

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

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

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

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

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

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

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

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

/* Grid helpers for editorial layouts */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.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: 1fr;
  }
}

/* Spacing utilities (margin & padding, selected sizes) */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-2) !important; }
.mt-sm { margin-top: var(--space-3) !important; }
.mt-md { margin-top: var(--space-4) !important; }
.mt-lg { margin-top: var(--space-6) !important; }
.mt-xl { margin-top: var(--space-8) !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-4) !important; }
.mb-lg { margin-bottom: var(--space-6) !important; }
.mb-xl { margin-bottom: var(--space-8) !important; }

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

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

/* Screen reader only utility */
.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;
}

/* Full-screen immersive hero */
.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-text-primary);
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(200, 164, 90, 0.18), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(14, 15, 18, 0.95));
  pointer-events: none;
}

.hero-full > * {
  position: relative;
  z-index: 1;
}


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

/* Button base (suitable for <button> or .btn on <a>) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background-color: var(--color-primary);
  color: var(--color-text-primary) !important;
  box-shadow: var(--shadow-soft);
  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:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

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

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-accent-champagne);
  color: var(--color-accent-champagne);
}

.btn--secondary:hover {
  background-color: rgba(203, 176, 138, 0.08);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

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

/* Form Inputs */
.input,
select,
textarea,
.input-base {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(13, 14, 18, 0.9);
  color: var(--color-text-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.input-base:focus-visible {
  outline: none;
  border-color: var(--color-accent-champagne);
  box-shadow: 0 0 0 1px rgba(203, 176, 138, 0.5);
}

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

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Card component */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.card--overlay {
  background: linear-gradient(135deg, rgba(35, 37, 43, 0.96), rgba(14, 15, 18, 0.96));
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--color-heading);
}

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

/* Focus-visible across interactive elements */
:where(button, [type='button'], [type='submit'], [role='button'], a, input, textarea, select):focus-visible {
  outline: 2px solid var(--color-accent-emerald);
  outline-offset: 3px;
}


/* =========================================================
   21+ Age Verification Modal (Casino Venue Context)
   ========================================================= */

.age-gate-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-4);
}

.age-gate-modal {
  max-width: 480px;
  width: 100%;
  background: #F5EFE6;
  color: #1A1B1F;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.age-gate-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(180, 94, 60, 0.34);
  pointer-events: none;
}

.age-gate-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  color: #C1883E;
  margin-bottom: var(--space-3);
}

.age-gate-body {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
  color: #3C362E;
}

.age-gate-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
}

.age-gate-btn {
  flex: 1;
}

.age-gate-btn--confirm {
  background-color: #B45E3C;
  color: #F5EFE6;
}

.age-gate-btn--confirm:hover {
  background-color: #7A3E2A;
}

.age-gate-btn--deny {
  background-color: transparent;
  border: 1px solid rgba(26, 27, 31, 0.24);
  color: #3C362E;
}

.age-gate-btn--deny:hover {
  background-color: rgba(26, 27, 31, 0.04);
}

.age-gate-note {
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: #6E6256;
}

@media (max-width: 480px) {
  .age-gate-modal {
    padding: var(--space-5);
  }

  .age-gate-actions {
    flex-direction: column;
  }
}


/* =========================================================
   Additional Luxury Editorial Helpers
   ========================================================= */

/* Subtle top border for sections (like wine list, chef's menu) */
.section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-8);
}

/* Label-like overline for section intros (e.g., "Sezonní menu") */
.overline {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-text-muted);
}

/* Cinematic image frame */
.frame-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

/* Wine list / menu items layout */
.menu-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
}

.menu-item-meta {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.menu-item-price {
  font-size: var(--fs-sm);
  color: var(--color-accent-champagne);
  white-space: nowrap;
}

/* VIP / Private dining highlight band */
.band-highlight {
  background: linear-gradient(90deg, rgba(200, 164, 90, 0.1), rgba(31, 77, 77, 0.08));
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(200, 164, 90, 0.28);
}

/* Events teaser badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background-color: rgba(31, 77, 77, 0.32);
  color: var(--color-accent-champagne);
}
