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

:root {
  /* Colors - Brand Palette */
  --color-bg: #171311; /* warm espresso */
  --color-bg-secondary: #2A211D; /* soft walnut brown */
  --color-surface: #322925; /* dark mocha for cards */

  --color-text: #F8F4EC; /* warm cream */
  --color-text-muted: rgba(248, 244, 236, 0.72);

  --color-heading: #D2B36A; /* soft antique gold */

  --color-primary: #C06A42; /* rich terracotta */
  --color-primary-hover: #87492E; /* dark chestnut */

  --color-success: #6FA27C; /* soft tailored green */
  --color-warning: #D7A448; /* golden amber */
  --color-danger: #C5564C; /* smoked ember red */

  --color-accent: #44553D; /* deep olive green */
  --color-highlight: #B9975B; /* brushed brass */

  --color-border-subtle: rgba(248, 244, 236, 0.08);
  --color-border-strong: rgba(248, 244, 236, 0.22);

  /* Neutral Grays (warm, low-saturation for subtle UI) */
  --gray-50: #f6f4f2;
  --gray-100: #e5e0db;
  --gray-200: #cbc2b9;
  --gray-300: #b0a397;
  --gray-400: #96887e;
  --gray-500: #7b6f66;
  --gray-600: #625850;
  --gray-700: #4b433d;
  --gray-800: #342f2a;
  --gray-900: #201c19;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-display: "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.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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (subtle luxe) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --nav-height: 80px;
}

@media (min-width: 1024px) {
  :root {
    --font-size-4xl: 2.75rem;
    --font-size-5xl: 3.5rem;
    --container-max-width: 1240px;
  }
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

picture {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

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

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* ==================================================================
   Base Styles
   ================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

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

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

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

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

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

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

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

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

strong {
  font-weight: 600;
}

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

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

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

/* ==================================================================
   Accessibility & Motion
   ================================================================== */

:focus-visible {
  outline: 2px solid var(--color-highlight);
  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;
  }
}

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

/* Layout: container */

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

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

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

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

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

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

/* Grid helpers */

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

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

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

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

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Spacing utilities (margin-bottom only for vertical rhythm) */

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !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-section {
  padding-top: var(--space-16);
}

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

@media (min-width: 1024px) {
  .pt-section {
    padding-top: var(--space-20);
  }

  .pb-section {
    padding-bottom: var(--space-20);
  }
}

/* Text alignment */

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

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

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

/* Screen reader only */

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

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

/* Buttons - primary CTA styled for reservations */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  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-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

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

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

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

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

/* Inputs & form controls */

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(23, 19, 17, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.form-control::placeholder {
  color: rgba(248, 244, 236, 0.45);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 1px var(--color-highlight);
  background-color: rgba(23, 19, 17, 0.98);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-200);
}

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

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

/* Card - for menu items, testimonials, poker night highlights */

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
}

.card--subtle {
  box-shadow: none;
  border-color: var(--color-border-subtle);
}

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

.card-title {
  margin-bottom: var(--space-2);
}

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

/* Hero overlay utility for immersive photography */

.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.82), rgba(23, 19, 17, 0.7));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* Tag / pill for elements like "Reservation-only" */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(185, 151, 91, 0.65);
  color: var(--gray-50);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: radial-gradient(circle at top left, rgba(185, 151, 91, 0.2), transparent 55%),
              rgba(23, 19, 17, 0.85);
}

/* Badges for availability, status etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-success {
  background-color: rgba(111, 162, 124, 0.18);
  color: #cde5d4;
}

.badge-warning {
  background-color: rgba(215, 164, 72, 0.18);
  color: #ffe6b8;
}

.badge-danger {
  background-color: rgba(197, 86, 76, 0.18);
  color: #ffd2ca;
}

/* Subtle section divider to separate dining, poker, testimonials, etc. */

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(185, 151, 91, 0.6),
    transparent
  );
  margin: var(--space-10) 0;
}

/* Floating nav background for scroll states (used by JS) */

.nav-blur {
  backdrop-filter: blur(18px);
  background-color: rgba(17, 13, 11, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Toast / notice (e.g., for reservation confirmation, poker disclaimer) */

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  max-width: 320px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(23, 19, 17, 0.96);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
  z-index: 1000;
}

.toast-title {
  font-weight: 500;
  margin-bottom: var(--space-2);
}

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

/* End of base.css */
