/* ========================================================================== 
   Variables
   ========================================================================== */
:root {
  /* Colors - Mediterranean Coastal Bistro */
  --color-bg: #f6f1e7;            /* soft canvas / oatmeal */
  --color-bg-alt: #ffffff;        /* cards & elevated blocks */
  --color-text: #151822;          /* deep charcoal */
  --color-text-muted: #5c6473;    /* muted slate */
  --color-primary: #c47a24;       /* copper / terracotta */
  --color-primary-soft: #f5e1c8;  /* soft accent wash */
  --color-success: #1f7a4d;       /* green for confirmations */
  --color-warning: #d98c10;       /* warm amber */
  --color-danger: #b43b3b;        /* deep red */

  --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: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", 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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px converted to rem assuming 16px base) */
  --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: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows - bold coastal cards */
  --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.10);
  --shadow-medium: 0 14px 34px rgba(15, 23, 42, 0.18);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.28);

  /* Borders */
  --border-color-soft: rgba(15, 23, 42, 0.08);
  --border-color-strong: rgba(15, 23, 42, 0.24);
  --border-thick-card: 2px;

  /* Transitions */
  --ease-standard: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 120ms var(--ease-standard);
  --transition-medium: 220ms var(--ease-standard);
  --transition-slow: 360ms var(--ease-standard);

  /* Layout widths */
  --content-max-width: 1120px;
  --content-wide-width: 1320px;
}

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

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

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

body {
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6,
figure,
blockquote,
dl, dd,
ul, ol,
pre,
p {
  margin: 0;
}

ul,
ol {
  padding-left: 0;
}

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

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

img {
  height: auto;
}

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

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

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

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

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--font-size-3xl), 3vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

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

h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

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

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

strong {
  font-weight: 600;
}

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

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

/* Focus-visible for accessibility */
:focus {
  outline: none;
}

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

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

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

.container--wide {
  max-width: var(--content-wide-width);
}

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

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

/* 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-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: var(--space-2);
}

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

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

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

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

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

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

/* Alignment */
.text-center {
  text-align: center;
}

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

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

.badge-label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color-soft);
  background-color: #fdf7ed;
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Spacing utilities (margin-top / padding-y examples) */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

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

/* Hero layout helpers (for static hero blocks) */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: stretch;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: var(--border-thick-card) solid var(--border-color-strong);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), transparent 45%, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.hero-media img,
.hero-media picture,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  align-self: center;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: var(--border-thick-card) solid var(--border-color-strong);
  box-shadow: var(--shadow-medium);
  padding: var(--space-6);
}

.hero-tagline {
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-highlight {
  color: var(--color-primary);
}

@media (max-width: 960px) {
  .hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }
}

/* Navigation helpers */
.nav-shell {
  border-bottom: 1px solid var(--border-color-soft);
  background-color: rgba(246, 241, 231, 0.96);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.nav-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 32% 68% 56% 44%;
  background: radial-gradient(circle at 30% 0, #fbeece 0, #fadb8c 26%, #d5872b 60%, #143047 100%);
}

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

.nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.35rem 0.1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-2);
}

.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color-soft);
    background-color: var(--color-bg-alt);
  }
}

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

/* Buttons */
.button,
button,
[type="button"],
[type="submit"],
[type="reset"] {
  --btn-bg: var(--color-primary);
  --btn-color: #ffffff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background-color: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--transition-medium),
    color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-fast),
    border-color var(--transition-medium);
}

.button--secondary {
  --btn-bg: #ffffff;
  --btn-color: var(--color-text);
  --btn-border: var(--border-color-strong);
}

.button--ghost {
  --btn-bg: transparent;
  --btn-color: var(--color-text);
  --btn-border: var(--border-color-soft);
}

.button:hover,
button:hover,
[type="button"]:hover,
[type="submit"]:hover,
[type="reset"]:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button:active,
button:active,
[type="button"]:active,
[type="submit"]:active,
[type="reset"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.button:disabled,
button:disabled,
[type="button"]:disabled,
[type="submit"]:disabled,
[type="reset"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Inputs */
.input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-soft);
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

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

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

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

input[disabled],
textarea[disabled],
select[disabled] {
  cursor: not-allowed;
  background-color: var(--gray-100);
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.field-help {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.field-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards */
.card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: var(--border-thick-card) solid var(--border-color-strong);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.card--surface {
  background: radial-gradient(circle at top left, #fdf7ed 0, #f6f1e7 40%, #f1ebdf 100%);
}

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

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.35rem;
}

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

.card-body {
  font-size: var(--font-size-sm);
}

/* Pill tags for menu / poker badges */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: rgba(244, 229, 199, 0.6);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tag-pill--poker {
  background-color: #141824;
  color: #f5e9cf;
  border-color: rgba(250, 204, 21, 0.4);
}

/* Alerts (for form feedback, etc.) */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
}

.alert--success {
  background-color: #ecfdf3;
  border-color: rgba(34, 197, 94, 0.5);
  color: #166534;
}

.alert--danger {
  background-color: #fef2f2;
  border-color: rgba(248, 113, 113, 0.6);
  color: #b91c1c;
}
@media screen and (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }
  }

/* ========================================================================== 
   Preferences & Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================================================================== 
   Global Injections (per specification)
   ========================================================================== */

ul {
  list-style: none !important;
}

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