/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors - Dark Luxury Palette */
  --color-bg: #0B0C10; /* primary background */
  --color-bg-secondary: #1C1F26; /* secondary sections */
  --color-bg-card: #23252B; /* content cards */

  --color-text: #F5F1E8; /* primary text - warm ivory */
  --color-heading: #C8A96A; /* antique gold */

  --color-primary: #B45E3C; /* buttons / CTAs - deep copper */
  --color-primary-hover: #7A3E2A; /* dark bronze hover */

  --color-success: #1F4D4D; /* muted emerald green */
  --color-warning: #D6C3A5; /* champagne beige (decorative highlight) */
  --color-danger: #F05B5B; /* refined danger tone for errors */

  --color-border-subtle: #2F333C;
  --color-border-strong: #4B525E;
  --color-overlay: rgba(0, 0, 0, 0.72); /* for modals / age gate */
  --color-overlay-soft: rgba(11, 12, 16, 0.78);

  /* Neutral grays (for typography subtleties) */
  --gray-050: #F5F1E8;
  --gray-100: #E0D7C9;
  --gray-200: #B4AA9B;
  --gray-300: #8B8276;
  --gray-400: #696059;
  --gray-500: #4D4641;
  --gray-600: #37322E;
  --gray-700: #262320;
  --gray-800: #181616;
  --gray-900: #0B0C10;

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

  /* Base font sizing (desktop-first, adjust with media queries) */
  --font-size-root: 16px;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem;     /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.375rem; /* 22px */
  --font-size-2xl: 1.75rem; /* 28px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (subtle, cinematic) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-soft-inner: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  --shadow-elevated: 0 28px 80px rgba(0, 0, 0, 0.6);
  --shadow-focus: 0 0 0 2px rgba(197, 169, 106, 0.75);

  /* Transitions */
  --duration-quick: 120ms;
  --duration-fast: 180ms;
  --duration-normal: 240ms;
  --duration-slow: 360ms;

  --ease-standard: cubic-bezier(0.19, 1, 0.22, 1); /* cinematic */
  --ease-soft: cubic-bezier(0.39, 0.575, 0.565, 1);

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

@media (max-width: 768px) {
  :root {
    --font-size-root: 15px;
  }
}

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

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

html {
  font-size: var(--font-size-root);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

picture {
  display: block;
}

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

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

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

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

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

legend {
  padding: 0;
}

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

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

/* Headings - editorial, refined */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-heading);
}

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

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-20);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-16);
}

h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: var(--line-height-snug);
  color: var(--gray-200);
  margin-bottom: var(--space-12);
}

p {
  margin-bottom: var(--space-16);
  color: var(--gray-050);
}

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

strong {
  font-weight: 600;
}

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

hr {
  border: 0;
  border-top: 1px solid rgba(214, 195, 165, 0.18);
  margin: var(--space-32) 0;
}

/* Links - understated luxury */
a {
  position: relative;
  transition: color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft);
}

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

/* ==================================================================
   Accessibility & Motion
   ================================================================== */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

:focus {
  outline: none;
}

@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
   ================================================================== */
/* Container */
.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);
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (common) */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-8) !important; }
.mt-sm { margin-top: var(--space-16) !important; }
.mt-md { margin-top: var(--space-24) !important; }
.mt-lg { margin-top: var(--space-40) !important; }
.mt-xl { margin-top: var(--space-64) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-8) !important; }
.mb-sm { margin-bottom: var(--space-16) !important; }
.mb-md { margin-bottom: var(--space-24) !important; }
.mb-lg { margin-bottom: var(--space-40) !important; }
.mb-xl { margin-bottom: var(--space-64) !important; }

.pt-section { padding-top: var(--space-64); }
.pb-section { padding-bottom: var(--space-64); }

@media (max-width: 768px) {
  .pt-section { padding-top: var(--space-48); }
  .pb-section { padding-bottom: var(--space-48); }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-300); }

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

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

/* ==================================================================
   Components
   ================================================================== */
/* Buttons - primary CTAs, reservations, etc. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fffaf3;
  border-color: rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-soft);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(214, 195, 165, 0.55);
}

.btn-outline:hover {
  background: rgba(214, 195, 165, 0.12);
}

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

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

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

/* Inputs - forms, reservations, contact */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(12, 14, 20, 0.94);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--duration-fast) var(--ease-soft),
    background-color var(--duration-fast) var(--ease-soft),
    box-shadow var(--duration-fast) var(--ease-soft);
}

.input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-heading);
  box-shadow: 0 0 0 1px rgba(200, 169, 106, 0.7);
  outline: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

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

.form-field {
  margin-bottom: var(--space-20);
}

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

/* Card - menu sections, rooms, experiences */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(200, 169, 106, 0.12), transparent 55%),
    var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: 1px solid rgba(214, 195, 165, 0.18);
  box-shadow: var(--shadow-soft-inner);
  backdrop-filter: blur(14px);
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  color: var(--color-heading);
  margin-bottom: var(--space-8);
}

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

/* Age verification modal (21+) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-age {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: var(--space-24);
  padding: var(--space-32) var(--space-32) var(--space-24);
  background: #f8f3e8;
  color: #1d1512;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
}

.modal-age::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(180, 94, 60, 0.36);
  border-radius: calc(var(--radius-xl) - 6px);
  pointer-events: none;
}

.modal-age-header {
  margin-bottom: var(--space-20);
}

.modal-age-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a3e2a;
  margin-bottom: var(--space-8);
}

.modal-age-subtitle {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c7260;
}

.modal-age-body {
  font-size: var(--font-size-sm);
  color: #2a211d !important;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-24);
}
.modal-age-body p {
  color: #000;
}
.modal-age-actions {
  display: flex;
  gap: var(--space-12);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-age-btn-primary {
  composes: btn btn-primary; /* for build tools; safe to ignore in plain CSS */
}

.modal-age-btn-secondary {
  composes: btn btn-outline; /* for build tools; safe to ignore in plain CSS */
}

/* Since `composes` is not standard CSS, provide explicit button styles for safety */
.modal-age-btn-primary,
.modal-age-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.modal-age-btn-primary {
  background-color: #b45e3c;
  color: #fffaf3;
  border-color: rgba(0, 0, 0, 0.35);
}

.modal-age-btn-primary:hover {
  background-color: #7a3e2a;
}

.modal-age-btn-secondary {
  background: transparent;
  color: #4a3328;
  border-color: rgba(122, 62, 42, 0.55);
}

.modal-age-btn-secondary:hover {
  background: rgba(122, 62, 42, 0.08);
}

/* Hero imagery - cinematic feel */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11, 12, 16, 0.9) 0%,
    rgba(11, 12, 16, 0.65) 40%,
    rgba(11, 12, 16, 0.9) 100%
  );
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
}

/* Section header - for pages like menu, experiences, gallery */
.section-label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--space-8);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-heading);
  margin-bottom: var(--space-12);
}

.section-intro {
  max-width: 640px;
  color: var(--gray-100);
}

/* Tag / pill - for seasonal, chef's picks, etc. */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(214, 195, 165, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-100);
}

.tag-emerald {
  border-color: rgba(31, 77, 77, 0.8);
  color: #cde6e0;
}

/* Image frame - gallery and dish photography */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(214, 195, 165, 0.16);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--duration-slow) var(--ease-standard),
    filter var(--duration-slow) var(--ease-standard);
}

.image-frame:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.06);
}

/* Toast / notice - e.g., reservation confirmation */
.notice {
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-md);
  border: 1px solid rgba(214, 195, 165, 0.26);
  background: linear-gradient(
    135deg,
    rgba(214, 195, 165, 0.08),
    rgba(11, 12, 16, 0.9)
  );
  font-size: var(--font-size-sm);
}

.notice-success {
  border-color: rgba(31, 77, 77, 0.8);
}

.notice-danger {
  border-color: rgba(240, 91, 91, 0.8);
}

/* End of base.css */
