/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - Cinematic Luxury */
  --color-bg: #050608; /* deep cinematic black */
  --color-bg-elevated: #0c0f14;
  --color-bg-soft: #141822;

  --color-text: #f5f5f7;
  --color-text-muted: #b0b4c0;
  --color-text-soft: #8a8fa0;

  --color-primary: #d4af37; /* classic gold */
  --color-primary-soft: rgba(212, 175, 55, 0.16);
  --color-primary-hover: #f1cb53;

  --color-accent-red: #b51a34; /* deep red */
  --color-accent-emerald: #10866a; /* emerald accent */
  --color-accent-navy: #111827; /* navy depth */

  --color-success: #35c98a;
  --color-warning: #f3aa2f;
  --color-danger: #f05454;

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

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

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 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.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing Scale (px values, used via rem where possible) */
  --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: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - subtle and cinematic */
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 22px 65px rgba(0, 0, 0, 0.6);
  --shadow-gold-glow: 0 0 30px rgba(212, 175, 55, 0.2);

  /* Transitions & Motion */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 380ms ease;

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

/* Reduced motion – soften animations if user prefers */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.001ms linear;
    --transition-base: 0.001ms linear;
    --transition-slow: 0.001ms linear;
  }
}

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
li,
fieldset,
legend,
pre {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

ul,
ol {
  list-style: none;
}

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

img {
  height: auto;
}

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

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

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

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

/* Remove animations/transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #171b26 0, #050608 55%);
  color: var(--color-text);
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: #ffffff;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

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

strong,
b {
  font-weight: 600;
}

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

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

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

/* Accent underline for selected links (opt-in via .link-underline) */
.link-underline {
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), rgba(212, 175, 55, 0));
  transition: width var(--transition-base);
}

.link-underline:hover::after {
  width: 100%;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  margin: var(--space-8) 0;
}

/* =========================================================
   Accessibility & Focus
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

::-moz-selection {
  background: var(--color-primary-soft);
  color: #ffffff;
}

::selection {
  background: var(--color-primary-soft);
  color: #ffffff;
}

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

/* =========================================================
   Layout Utilities
   ========================================================= */
.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);
}

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

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

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

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

.section__subtitle {
  max-width: 38rem;
  color: var(--color-text-muted);
}

/* Flex 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 {
  display: flex;
  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 */
.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: minmax(0, 1fr);
  }
}

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

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

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

/* =========================================================
   Components – Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  background: transparent;
  color: var(--color-text);
  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--primary {
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0))
              border-box,
              linear-gradient(120deg, #b88a1a, #e4c87c, #c5941f) border-box;
  border-color: rgba(255, 255, 255, 0.08);
  color: #060608;
  box-shadow: var(--shadow-gold-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), var(--shadow-gold-glow);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}

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

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

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn--danger {
  background: var(--color-danger);
  color: #ffffff;
}

.btn--full {
  width: 100%;
}

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

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

/* =========================================================
   Components – Form Inputs
   ========================================================= */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 8, 12, 0.9);
  color: #ffffff;
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), transform var(--transition-fast);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

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

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

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

.form-helper {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* =========================================================
   Components – Card / Surfaces
   ========================================================= */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.04), transparent 60%),
    radial-gradient(circle at bottom right, rgba(181, 26, 52, 0.05), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  background-color: rgba(5, 6, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card--soft {
  padding: var(--space-4);
  background: rgba(8, 10, 18, 0.85);
  border-radius: var(--radius-md);
}

.card--outline {
  background: transparent;
  box-shadow: none;
}

.card__header {
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

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

.card--hoverable {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card--hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Cinematic image frame for dishes / interior */
.frame-cinema {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
}

.frame-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 40%, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

/* =========================================================
   Components – Tag / Badge
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--color-primary);
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.25), transparent 55%);
}

.badge--muted {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================
   Hero / Overlay Helpers (for sections like Home, Menu, etc.)
   ========================================================= */
.hero-dark {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  color: #ffffff;
}

.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 60%),
    radial-gradient(circle at bottom right, rgba(181, 26, 52, 0.26), transparent 65%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.hero-dark > .container {
  position: relative;
  z-index: 1;
}

/* For casino-inspired ambient glow */
.glow-ambient {
  position: relative;
}

.glow-ambient::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(16, 134, 106, 0.2), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(181, 26, 52, 0.25), transparent 60%);
  opacity: 0.7;
  filter: blur(40px);
  z-index: -1;
}

/* =========================================================
   Misc Helpers
   ========================================================= */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
  background: rgba(10, 12, 20, 0.85);
}

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

.price-highlight {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  color: var(--color-primary);
}

/* Utility for subtle dividers inside lists (e.g. menu, FAQ) */
.divider-y > * + * {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Utility for testimonials / quotes */
.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.3);
}

/* =========================================================
   Responsive Tweaks
   ========================================================= */
@media (max-width: 640px) {
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .card {
    padding: var(--space-4);
  }

  h1 {
    letter-spacing: 0.06em;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
