/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color palette - warm, vibrant, food-inspired */
  --color-bg: #0e0b0a; /* deep, cozy backdrop */
  --color-surface: #171210;
  --color-surface-soft: #201815;
  --color-text: #fdf7f3;
  --color-text-muted: #e4d7ce;

  --color-primary: #e33a23; /* tomato red */
  --color-primary-soft: rgba(227, 58, 35, 0.12);
  --color-primary-strong: #b52615;

  --color-accent: #1b8b3c; /* basil green */
  --color-accent-soft: rgba(27, 139, 60, 0.12);

  --color-cheese: #ffc857; /* golden cheese */
  --color-cheese-soft: rgba(255, 200, 87, 0.18);

  /* Status colors */
  --color-success: #2fa86f;
  --color-success-soft: rgba(47, 168, 111, 0.12);

  --color-warning: #ffb020;
  --color-warning-soft: rgba(255, 176, 32, 0.16);

  --color-danger: #e1384f;
  --color-danger-soft: rgba(225, 56, 79, 0.16);

  /* Neutral grays (for subtle UI elements) */
  --gray-50: #f9f5f2;
  --gray-100: #f1e4dd;
  --gray-200: #dbcac0;
  --gray-300: #c1aea3;
  --gray-400: #a78f82;
  --gray-500: #8b7265;
  --gray-600: #6e594d;
  --gray-700: #514038;
  --gray-800: #352923;
  --gray-900: #1b1411;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Base font sizing uses clamp for responsiveness */
  --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.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.25;
  --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-7: 1.75rem;  /* 28px */
  --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: 16px;
  --radius-pill: 999px;
  --radius-card: 18px;

  /* Shadows - warm, soft depth */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 14px 35px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-med: 180ms ease-out;
  --transition-slow: 240ms ease-out;

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

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-med: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::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 {
  font-size: var(--font-size-root);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

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

textarea {
  resize: vertical;
}

/* Remove default link underlines; handled in Base */
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);
  background: radial-gradient(circle at top left, #231712 0, #0e0b0a 55%, #050304 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2.1rem, 2.5vw + 1.2rem, 2.8rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2rem);
  margin-bottom: var(--space-2);
}

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

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

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

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

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

strong {
  font-weight: 600;
}

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

/* Links: warm, expressive */
a {
  color: var(--color-cheese);
  text-decoration: none;
  transition: color var(--transition-fast),
    text-shadow var(--transition-fast),
    transform var(--transition-fast);
}

a:hover {
  color: #ffe29a;
  text-shadow: 0 0 10px rgba(255, 200, 87, 0.55);
}

a:active {
  transform: translateY(1px);
}

/* ========================================================================
   Accessibility & Focus
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-cheese);
  outline-offset: 3px;
}

/* Ensure focus-visible works consistently */
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen-reader only utility */
.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-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

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

/* Spacing utilities (margin/padding bottom & top 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; }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

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

.py-8 {
  padding-top: var(--space-8) !important;
  padding-bottom: var(--space-8) !important;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--hot {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge--new {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* ========================================================================
   Components
   ======================================================================== */
/* Buttons - bold, inviting CTA */
.button,
button,
input[type='button'],
input[type='submit'],
input[type='reset'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  transform: translateY(0);
  transition:
    background var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-med),
    opacity var(--transition-fast);
}

.button:hover,
button:hover,
input[type='button']:hover,
input[type='submit']:hover,
input[type='reset']:hover {
  background: linear-gradient(135deg, #ff5131, var(--color-primary));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65);
  transform: translateY(-1px) scale(1.01);
}

.button:active,
button:active,
input[type='button']:active,
input[type='submit']:active,
input[type='reset']:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55);
}

.button--secondary {
  background: radial-gradient(circle at top left, rgba(255, 200, 87, 0.2), transparent 55%),
    #201815;
  color: var(--color-cheese);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  background: radial-gradient(circle at top left, rgba(255, 200, 87, 0.32), transparent 55%),
    #281c16;
}

.button--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

/* Inputs & form fields */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='search'],
input[type='number'],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 6, 5, 0.85);
  color: var(--color-text);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 225, 213, 0.55);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-cheese);
  box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.5), 0 10px 25px rgba(0, 0, 0, 0.55);
  background: rgba(16, 11, 9, 0.95);
}

input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Cards - for menu items, promos, etc. */
.card {
  background: radial-gradient(circle at top left, rgba(255, 200, 87, 0.1), transparent 55%),
    var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.card--highlight {
  background: radial-gradient(circle at top left, rgba(255, 200, 87, 0.24), transparent 60%),
    linear-gradient(135deg, #231712, #140f0d);
  border-color: rgba(255, 200, 87, 0.35);
  box-shadow: var(--shadow-md);
}

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

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

.card__subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cheese);
}

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

.card__footer {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Media wrappers for food photography */
.media-hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.media-pill {
  border-radius: var(--radius-pill);
  overflow: hidden;
}

/* Simple tag list for ingredients / categories */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-100);
  font-size: var(--font-size-xs);
}

/* Toast / notice (for promotions, delivery messages) */
.notice {
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--font-size-sm);
}

.notice--success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.notice--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.notice--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

/* Basic responsive section spacing */
.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

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