/* ==================================================================
   Variables
   ================================================================== */

:root {
  /* Colors */
  --color-bg: #050509; /* near-black, cinematic */
  --color-bg-elevated: #101018;
  --color-surface: #161625;
  --color-surface-soft: #1f1f33;
  --color-text: #f5f2ea; /* elegant warm white */
  --color-text-muted: #b7b2a6;
  --color-primary: #d4af37; /* gold accent */
  --color-primary-soft: rgba(212, 175, 55, 0.12);
  --color-primary-strong: #f3c84b;
  --color-accent: #8b1a32; /* burgundy */
  --color-accent-soft: rgba(139, 26, 50, 0.2);
  --color-success: #3bbf7a;
  --color-warning: #ffb347;
  --color-danger: #ff4b5c;

  /* Neutral grays (for subtle dividers, borders, text) */
  --gray-50: #f7f7f8;
  --gray-100: #e4e4ea;
  --gray-200: #c8c8d5;
  --gray-300: #a4a4b8;
  --gray-400: #7b7b96;
  --gray-500: #585870;
  --gray-600: #3f3f54;
  --gray-700: #2c2c3c;
  --gray-800: #1e1e2a;
  --gray-900: #111119;

  /* Overlay / lighting accents */
  --color-amber-glow: rgba(255, 182, 80, 0.18);
  --color-overlay-dark: rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "Playfair Display", "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.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.15;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px, mapped for 4px base grid) */
  --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-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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows (cinematic, layered) */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft-ambient: 0 28px 80px rgba(0, 0, 0, 0.7);
  --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 0 40px rgba(212, 175, 55, 0.22);

  /* Transitions */
  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 120ms var(--ease-standard);
  --transition-med: 220ms var(--ease-standard);
  --transition-slow: 320ms var(--ease-standard);

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.5rem;
}

/* ==================================================================
   Reset / Normalize
   ================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

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

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

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

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

a {
  color: inherit;
}

/* Ensure focus outlines are visible even after mouse interactions */
:focus {
  outline: 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);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-3);
}

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

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

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

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

a {
  text-decoration: none;
  transition: color var(--transition-med);
}

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

strong, b {
  font-weight: 600;
}

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

/* ==================================================================
   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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen-reader only content */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

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

/* Layout containers */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.container-wide {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

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

/* Flex utilities */

.flex {
  display: flex;
}

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

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

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

.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-2 {
  gap: var(--space-2);
}

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

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

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

/* Grid utilities */

.grid {
  display: grid;
}

.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: minmax(0, 1fr);
  }
}

/* Alignment / text helpers */

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

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

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

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

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

/* Spacing utilities (vertical margin) */

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

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Width utilities */

.w-full {
  width: 100%;
}

/* Background & overlay helpers */

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

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

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

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

/* Buttons: primary casino-style CTA, secondary outline, ghost */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  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;
  white-space: nowrap;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(circle at top, #f7d879 0, #d4af37 32%, #8b1a32 100%);
  color: #1a1307;
  box-shadow: var(--shadow-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(243, 200, 75, 0.6), 0 24px 80px rgba(0, 0, 0, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(243, 200, 75, 0.6), 0 14px 40px rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.16);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
}

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

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

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

/* Form controls */

.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(9, 9, 18, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    background-color var(--transition-med);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(245, 242, 234, 0.45);
}

.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, 200, 75, 0.5), 0 0 0 8px rgba(243, 200, 75, 0.14);
  background-color: rgba(11, 11, 24, 0.95);
}

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

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

/* Cards (for VIP, events, menu highlights) */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(255, 215, 128, 0.1) 0, rgba(0, 0, 0, 0.9) 48%, rgba(4, 4, 10, 1) 100%);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

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

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

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero-specific helpers (for cinematic homepage) */

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(5, 5, 9, 0.95) 50%, rgba(5, 5, 9, 1));
  z-index: 0;
}

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

/* 18+ Age verification modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  width: 100%;
  max-width: 480px;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.16) 0, #050509 52%, #050509 100%);
  box-shadow: var(--shadow-soft-ambient);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

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

/* Image treatment for cinematic gallery / food photography */

.img-cinematic {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-ambient);
}

.img-cinematic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-standard), filter 900ms var(--ease-standard);
  filter: saturate(1.05) contrast(1.08);
}

.img-cinematic:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.18);
}

/* Timeline / event layout helper */

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.2rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: radial-gradient(circle at center, #f3c84b 0, #8b1a32 100%);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22);
}

/* VIP tag / pill */

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, rgba(139, 26, 50, 0.85), rgba(212, 175, 55, 0.9));
  color: #1a1307;
}
