/* ==================================================================
   Base CSS - Bohemian Courtyard Gastropub & Poker Salon
   Theme: Rustic, airy, light-bistro, warm, polished, eco-chic
   ================================================================== */

/* ==================================================================
   1. CSS VARIABLES (Design Tokens)
   ================================================================== */
:root {
  /* Color Palette */
  --color-bg: #f7f3eb;              /* soft light pearl / cream */
  --color-bg-alt: #f1ece2;          /* subtle variation for sections */
  --color-surface: #ffffff;         /* cards, panels */
  --color-surface-muted: #f5f0e7;   /* muted surfaces */

  --color-text: #2f241b;            /* espresso brown / deep charcoal */
  --color-text-muted: #7a6a59;      /* softer body text */
  --color-border-subtle: #e0d5c5;   /* light separators */

  --color-primary: #2f4f3a;         /* warm forest / dark olive green */
  --color-primary-soft: #3e6750;    /* hover / emphasis */

  --color-success: #3c7a4a;         /* confirmations */
  --color-warning: #c98a2b;         /* cautions */
  --color-danger: #b6453a;          /* errors */

  --color-neutral-50: #f9f6f1;
  --color-neutral-100: #f0e7dc;
  --color-neutral-200: #e1d4c4;
  --color-neutral-300: #cbb9a0;
  --color-neutral-400: #b39a79;
  --color-neutral-500: #987c5b;
  --color-neutral-600: #7b6043;
  --color-neutral-700: #5d452f;
  --color-neutral-800: #3e2d20;
  --color-neutral-900: #22170f;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-mono: "SF 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-md: 1.0625rem;/* 17px */
  --font-size-lg: 1.25rem;  /* 20px */
  --font-size-xl: 1.5rem;   /* 24px */
  --font-size-2xl: 1.875rem;/* 30px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: 2.75rem; /* 44px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

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

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;      /* primary container rounding */
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Shadows - soft, airy, not harsh */
  --shadow-soft: 0 8px 20px rgba(28, 20, 10, 0.06);
  --shadow-medium: 0 14px 35px rgba(28, 20, 10, 0.10);
  --shadow-strong: 0 18px 45px rgba(28, 20, 10, 0.14);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --container-gutter: var(--space-16);
}

/* ==================================================================
   2. RESET & NORMALIZE
   ================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
}

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

ul, ol {
  padding-left: 0;
}

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

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

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

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

/* Remove default focus outlines to replace with custom visible states */
:focus {
  outline: none;
}

/* ==================================================================
   3. BASE TYPOGRAPHY & ELEMENT STYLES
   ================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #fbf6ed 0, var(--color-bg) 40%, #f6efe4 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(2.3rem, 3.3vw, var(--font-size-4xl));
  margin-bottom: var(--space-12);
}

h2 {
  font-size: clamp(1.9rem, 2.5vw, var(--font-size-3xl));
  margin-bottom: var(--space-10);
}

h3 {
  font-size: clamp(1.5rem, 2vw, var(--font-size-2xl));
  margin-bottom: var(--space-8);
}

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

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

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

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--color-primary-soft);
}

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

code, pre {
  font-family: var(--font-mono);
}

hr {
  border: none;
  border-bottom: 1px solid var(--color-border-subtle);
  margin: var(--space-20) 0;
}

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

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

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

/* ==================================================================
   5. LAYOUT UTILITIES
   ================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

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

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

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

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

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-16);
}

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

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

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

/* Spacing utilities (margin & padding, a light subset) */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-12 { margin-top: var(--space-12) !important; }
.mt-16 { margin-top: var(--space-16) !important; }
.mt-24 { margin-top: var(--space-24) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }
.mb-24 { margin-bottom: var(--space-24) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-16 { padding-top: var(--space-16) !important; }
.pb-16 { padding-bottom: var(--space-16) !important; }

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

/* ==================================================================
   6. GLOBAL NAVIGATION & HERO SUPPORT
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(247, 243, 235, 0.96), rgba(247, 243, 235, 0.85));
  border-bottom: 1px solid rgba(224, 213, 197, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand-mark__lockup {
  display: flex;
  flex-direction: column;
}

.brand-mark__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.nav-primary a {
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  position: relative;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 79, 58, 0), rgba(47, 79, 58, 0.85), rgba(47, 79, 58, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-primary a:hover::after,
.nav-primary a:focus-visible::after,
.nav-primary a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-primary a[aria-current="page"] {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero layout: image-dominant with text block */
.hero {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-20);
  align-items: stretch;
}

.hero__image-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background-color: var(--color-neutral-200);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.5) 0, transparent 55%),
              linear-gradient(to top right, rgba(34, 23, 15, 0.35), rgba(34, 23, 15, 0));
}

.hero__text-panel {
  align-self: center;
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 236, 225, 0.98));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  padding: var(--space-20);
  border: 1px solid rgba(224, 213, 197, 0.9);
}

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

.hero-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-8);
}

.hero-card__body {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

.hero-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.hero-card__meta-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 79, 58, 0.18);
  background: rgba(247, 243, 235, 0.85);
}

@media (max-width: 960px) {
  .hero__shell {
    grid-template-columns: 1fr;
  }

  .hero__image-panel {
    order: -1;
    max-height: 380px;
  }
}

/* ==================================================================
   7. CORE COMPONENTS
   ================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c6240 50%, var(--color-primary-soft) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 52, 37, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #244431 0%, var(--color-primary) 60%, var(--color-primary-soft) 100%);
  box-shadow: 0 16px 34px rgba(24, 52, 37, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border-color: rgba(142, 115, 83, 0.5);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f6efe4;
  border-color: rgba(142, 115, 83, 0.9);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(243, 236, 225, 0.9);
  color: var(--color-text);
}

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

/* Form inputs */
.input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(177, 154, 121, 0.7);
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(122, 106, 89, 0.7);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(47, 79, 58, 0.18);
  background-color: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

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

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

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

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 213, 197, 0.9);
}

.card--muted {
  background: linear-gradient(145deg, rgba(252, 248, 240, 0.98), rgba(244, 235, 221, 0.98));
}

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

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

.card__meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card__body {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

/* Accent tag for menu & poker labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 79, 58, 0.2);
  background: rgba(247, 243, 235, 0.9);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

/* Menu headings highlight */
.menu-heading {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(47, 79, 58, 0.28);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Poker room accent rule */
.poker-emphasis {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(61, 45, 33, 0.45);
  background: linear-gradient(135deg, rgba(40, 30, 21, 0.04), rgba(40, 30, 21, 0.1));
  padding: var(--space-12);
}

/* Callouts for bookings/events */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(185, 138, 70, 0.4);
  background: linear-gradient(145deg, rgba(255, 246, 229, 0.95), rgba(248, 234, 211, 0.98));
}

.callout__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

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

/* ==================================================================
   8. FOOTER
   ================================================================== */
.site-footer {
  border-top: 1px solid rgba(224, 213, 197, 0.9);
  background: linear-gradient(to top, rgba(34, 23, 15, 0.04), rgba(34, 23, 15, 0));
  padding-top: var(--space-20);
  padding-bottom: var(--space-16);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-footer__legal {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================================================================
   9. MISCELLANEOUS UTILITIES
   ================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(122, 106, 89, 0.4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  background: rgba(246, 239, 228, 0.9);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--color-success);
}

/* ==================================================================
   10. REQUIRED GLOBAL SYNTAX INJECTIONS
   ================================================================== */
ul {
  list-style: none !important;
}

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

/* Mobile overflow guards */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}
