/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  /* Colors */
  --color-bg: #121212; /* deep charcoal */
  --color-surface: #1b1b1b;
  --color-surface-soft: #181413;
  --color-text: #f5f2ea; /* ivory */
  --color-text-muted: #b7b1a4;
  --color-primary: #d4af6a; /* champagne gold */
  --color-primary-soft: rgba(212, 175, 106, 0.12);
  --color-accent: #7a2232; /* burgundy */
  --color-accent-soft: rgba(122, 34, 50, 0.22);
  --color-button: #8b6a3e; /* dark bronze */
  --color-success: #3fb98c;
  --color-warning: #e5b567;
  --color-danger: #e15c5c;

  --gray-50: #f7f5f0;
  --gray-100: #e1dacf;
  --gray-200: #c9c0b1;
  --gray-300: #a79d8c;
  --gray-400: #8a8171;
  --gray-500: #6a6356;
  --gray-600: #4f493f;
  --gray-700: #37322b;
  --gray-800: #24201b;
  --gray-900: #15120f;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "Menlo", "SF Mono", ui-monospace, 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 */
  --font-size-6xl: 3.75rem; /* 60px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-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-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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 26px 80px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --layout-max-width: 1200px;
  --layout-gutter: var(--space-6);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
  }

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

/* =========================================================
   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 {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Remove default focus outlines; we will re-add via :focus-visible */
:focus {
  outline: none;
}

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

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

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

h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

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

h6 {
  font-size: 0.875rem;
  margin-bottom: var(--space-1);
}

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

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

hr {
  border: 0;
  border-top: 1px solid rgba(245, 242, 234, 0.04);
  margin: var(--space-8) 0;
}

::selection {
  background-color: rgba(212, 175, 106, 0.35);
  color: var(--color-text);
}

/* Links - subtle editorial underline on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(212, 175, 106, 0.65);
}

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

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

/* =========================================================
   UTILITIES
   ========================================================= */

/* Layout container */
.container {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

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

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

.section__title {
  margin-bottom: var(--space-6);
}

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

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

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

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

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

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

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

/* Grid helpers */
.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 utilities */
.text-center {
  text-align: center;
}

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

.text-uppercase {
  text-transform: uppercase;
}

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

/* Spacing utilities (margin-bottom only for editorial rhythm) */
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--space-3) !important; }
.mb-md { margin-bottom: var(--space-6) !important; }
.mb-lg { margin-bottom: var(--space-10) !important; }

/***********************************************************
  Cinematic overlay helpers (for full-screen hero / popups)
***********************************************************/
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(212, 175, 106, 0.15), transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.95));
  pointer-events: none;
}

.overlay-dark > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   COMPONENTS
   ========================================================= */

/* Buttons - luxury, bronze base with gold hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 242, 234, 0.08);
  background: radial-gradient(circle at top left, rgba(212, 175, 106, 0.4), transparent 45%),
              linear-gradient(135deg, #8b6a3e, #5c4228);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition:
    background var(--transition-slow),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at top left, rgba(212, 175, 106, 0.55), transparent 50%),
              linear-gradient(135deg, #d4af6a, #8b6a3e);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(212, 175, 106, 0.9);
}

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

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

.btn--ghost {
  background: rgba(12, 12, 12, 0.7);
  border-color: rgba(212, 175, 106, 0.5);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: var(--shadow-soft);
}

.btn--light {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: rgba(245, 242, 234, 0.9);
}

.btn--light:hover {
  background: #ffffff;
}

/* Input fields - used for reservations, age gate, etc. */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 242, 234, 0.16);
  background-color: rgba(10, 10, 10, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(183, 177, 164, 0.7);
}

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

.input--error {
  border-color: var(--color-danger);
}

.input--success {
  border-color: var(--color-success);
}

/* Card - editorial surface for sections like dishes, wine, VIP rooms */
.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(36, 32, 27, 0.98), rgba(20, 16, 13, 0.98));
  border: 1px solid rgba(245, 242, 234, 0.05);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(212, 175, 106, 0.14), transparent 55%);
  opacity: 0.65;
}

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

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

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Age verification modal shell (structure only; behavior via JS) */
.age-gate-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(122, 34, 50, 0.5), transparent 55%),
              rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-gate-dialog {
  width: min(480px, 100% - 2 * var(--space-6));
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #181413, #0c0a09);
  border: 1px solid rgba(212, 175, 106, 0.6);
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

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

.age-gate-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .age-gate-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Hero / full-screen sections */
.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-text);
}

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

.hero-fullscreen__headline {
  max-width: 18ch;
}

.hero-fullscreen__subcopy {
  max-width: 40ch;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

/* Image treatments for editorial feel */
.img-rounded-soft {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-border-gold {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 106, 0.55);
}

.img-toned {
  filter: saturate(1.05) contrast(1.05);
}

/* Subtle divider used between text blocks for storytelling */
.divider-gold {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.9), transparent);
  margin: var(--space-4) 0;
}

/* Tag-like labels: e.g., seasonal menu, chef's choice */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 106, 0.6);
  background: rgba(0, 0, 0, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.tag--wine {
  border-color: rgba(122, 34, 50, 0.8);
  color: var(--color-accent);
}

/* Toast / status message (reservations, form feedback) */
.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 242, 234, 0.16);
  background: rgba(10, 10, 10, 0.96);
  font-size: var(--font-size-sm);
}

.toast--success {
  border-color: rgba(63, 185, 140, 0.7);
}

.toast--error {
  border-color: rgba(225, 92, 92, 0.7);
}

.toast--warning {
  border-color: rgba(229, 181, 103, 0.7);
}

/* Footer base */
.site-footer {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  border-top: 1px solid rgba(245, 242, 234, 0.08);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
