:root {
  --header-bg: #e4ece0;
  --band-bg: #3d4f32;
  --menu-bg: #f3f6f0;
  --footer-bg: #e4ece0;
  --chrome-fg: #1c2418;
  --chrome-muted: #4a5840;
  --band-fg: #f0f4ec;
  --chip-bg: #ffffff;
  --chip-fg: #2c3a24;
  --chip-border: rgba(255, 255, 255, 0.35);
  --olive: #2c3a24;
  --olive-mid: #3d4f32;
  --olive-soft: #5c6b4a;
  --cream: #f3f6f0;
  --cream-2: #d0dcc8;
  --paper: #f3f6f0;
  --charcoal: #1c1a16;
  --ink: #2a261f;
  --muted: #5c564c;
  --gold: #8a6b2e;
  --chip: #e8dcc8;
  --tag-nou: #2c3a24;
  --tag-picant: #8b3a2a;
  --tag-veg: #2d4a2a;
  --card-bg: #ffffff;
  --surface: #ffffff;
  --heading: #1c1a16;
  --on-accent: #f3f6f0;
  --border-subtle: rgba(44, 58, 36, 0.16);
  --tag-picant-bg: #f3e0da;
  --tag-veg-bg: #e4efe0;
  --shadow: 0 10px 30px rgba(28, 26, 22, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background: var(--menu-bg);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100vh;
}

#app {
  background: var(--menu-bg);
  min-height: 100vh;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-topbar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
}

.menu-topbar .topbar-inner {
  padding: 10px 16px 12px;
  gap: 10px;
}

.menu-topbar .menu-brand {
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.menu-topbar .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(44, 58, 36, 0.18);
  border: 2px solid rgba(246, 239, 228, 0.35);
}

.menu-topbar .logo-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.menu-topbar .brand-text strong {
  display: block;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--chrome-fg);
}

.menu-topbar .brand-text .city {
  display: block;
  margin-top: 3px;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome-muted);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menu-topbar .search {
  margin-left: 0;
  max-width: 280px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--olive);
  color: var(--on-accent);
  display: grid; place-items: center;
  font-size: 13px; letter-spacing: 0.04em;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text .city { font-size: 12px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 0;
  flex: 1;
  max-width: 320px;
  color: var(--muted);
}

.search input {
  border: 0; outline: 0; width: 100%;
  background: transparent;
  font: 14px/1.3 ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
}

.menu-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--header-bg);
}

.menu-sticky .topbar {
  position: relative;
  z-index: 2;
}

.chips-band {
  position: relative;
  z-index: 1;
  background: var(--band-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 22px rgba(28, 26, 22, 0.14);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.chips-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 36px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 8px;
  cursor: grab;
  touch-action: pan-x;
  -webkit-user-select: none;
  user-select: none;
}

.chips-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.chips-track .chip {
  -webkit-user-select: none;
  user-select: none;
}

.chips-track::-webkit-scrollbar { display: none; }

.chips-track::after {
  content: "";
  flex: 0 0 4px;
}

.chips-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--band-fg);
  background: var(--band-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.chips-edge--left {
  left: 0;
  background: linear-gradient(90deg, var(--band-bg) 55%, transparent);
}

.chips-edge--right {
  right: 0;
  background: linear-gradient(270deg, var(--band-bg) 55%, transparent);
}

.chips-edge svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.chips-band.is-scrollable:not(.is-at-start) .chips-edge--left {
  opacity: 1;
  pointer-events: auto;
}

.chips-band.is-scrollable:not(.is-at-end) .chips-edge--right {
  opacity: 1;
  pointer-events: auto;
}

.chips-band.is-scrollable:not(.is-at-end) .chips-edge--right svg {
  animation: chips-nudge 1.6s ease-in-out infinite;
}

@keyframes chips-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(3px); opacity: 1; }
}

.chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-fg);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 44px;
  min-width: 4.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  text-align: center;
  font: 700 14px/1.12 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  letter-spacing: 0.02em;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.34s ease,
    color 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.34s ease;
}

.chip-line {
  display: block;
  text-align: center;
  white-space: nowrap;
  max-width: 11ch;
}

.section {
  scroll-margin-top: 148px;
}

@media (hover: hover) and (pointer: fine) {
  .chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  }
  .chip:hover:not(.is-active) {
    background: color-mix(in srgb, var(--chip-bg) 82%, var(--olive));
  }
}

.chip.is-active {
  background: var(--olive);
  color: var(--on-accent);
  border-color: var(--olive);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.chip.is-entering {
  animation: chip-activate 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.chip.is-exiting {
  animation: chip-deactivate 0.32s ease;
}

@keyframes chip-activate {
  0% { transform: scale(0.96); filter: brightness(0.95); }
  55% { transform: scale(1.07); filter: brightness(1.05); }
  100% { transform: scale(1.05); filter: none; }
}

@keyframes chip-deactivate {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero {
  max-width: 1120px;
  margin: 8px auto 28px;
  padding: 0 16px;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  box-shadow: var(--shadow);
  background: var(--olive);
}

.hero-card img {
  width: 100%; height: 320px; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 26, 22, 0.42) 0%, rgba(28, 26, 22, 0.28) 38%, rgba(28, 26, 22, 0.82) 100%),
    linear-gradient(90deg, rgba(28, 26, 22, 0.55) 0%, transparent 55%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-copy {
  position: relative;
  max-width: 560px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(22, 20, 17, 0.62);
  border: 1px solid rgba(246, 239, 228, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-kicker {
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 650;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin-top: 8px;
  max-width: 42ch;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.section {
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 0 16px;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 14px;
  padding-top: 8px;
  color: var(--heading);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 112px 1fr;
  height: 152px;
  align-items: stretch;
}

.card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  background: var(--cream-2);
}

.card img.is-placeholder {
  object-fit: cover;
  background: #dfe8da;
}

.card-body {
  padding: 12px 14px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 152px;
}

.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

.card h3 {
  font-size: 17px;
  font-weight: 600;
}

.price {
  font: 700 15px/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--olive);
  white-space: nowrap;
}

.desc {
  margin-top: 4px;
  font: 13.5px/1.35 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.meta-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: auto;
  min-height: 18px;
  align-items: center;
}

.tag {
  font: 650 9px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 6px;
  white-space: nowrap;
}

.tag.nou { background: var(--olive); color: var(--on-accent); }
.tag.picant { background: var(--tag-picant-bg); color: var(--tag-picant); }
.tag.vegetarian { background: var(--tag-veg-bg); color: var(--tag-veg); }

.allergen-btn {
  font: 650 9px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
  border: 1px solid rgba(139, 58, 42, 0.28);
  background: #f6e6e0;
  color: #8b3a2a;
  cursor: pointer;
}

.allergen-btn:hover, .allergen-btn:focus-visible {
  background: #efd5cc;
  outline: none;
}

.allergen-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.allergen-modal.hidden { display: none; }
.allergen-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 26, 22, 0.45);
  cursor: pointer;
}
.allergen-modal-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: var(--card-bg, #fff);
  color: var(--ink);
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 12px;
}
.allergen-modal-card h3 {
  font-size: 18px;
  font-weight: 650;
}
.allergen-modal-card p {
  font: 15px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
}
.allergen-modal-ok {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--olive);
  color: var(--on-accent);
  font: 650 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.footer {
  background: var(--footer-bg);
  color: var(--chrome-fg);
  margin-top: 20px;
  padding: 36px 16px 28px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.footer h3 { font-size: 22px; color: var(--chrome-fg); }
.footer a { color: var(--chrome-fg); text-decoration: underline; text-underline-offset: 2px; }
.footer p, .footer li {
  font: 14px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--chrome-muted);
}

.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 320px; color: var(--chrome-muted); }

.branding {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  color: var(--chrome-muted);
}

.empty, .error {
  text-align: center;
  padding: 32px 16px;
  font: 15px ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
}

.error { color: #8b3a2a; }
.hidden { display: none; }

@media (min-width: 760px) {
  .chip { padding: 7px 14px; min-height: 40px; font-size: 13px; }
  .section { scroll-margin-top: 120px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 152px 1fr; height: 152px; }
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
  .hero-card img { height: 380px; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .topbar-inner { padding: 14px 16px; }
}

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

.lang-flags {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  height: 44px;
  padding: 6px 10px;
  border: 2px solid rgba(44, 58, 36, 0.2);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}

.menu-topbar .lang-toggle {
  min-width: auto;
  height: 34px;
  padding: 4px 9px 4px 7px;
  gap: 5px;
  border-width: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.lang-toggle img, .lang-option img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.menu-topbar .lang-toggle img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

.lang-toggle span, .lang-option span {
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--olive);
}

.menu-topbar .lang-toggle span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(44, 58, 36, 0.14);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.lang-option:hover, .lang-option.is-active {
  background: var(--cream);
}


.translate-status {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 8px;
  font: 600 12px/1.3 ui-sans-serif, system-ui, sans-serif;
  color: var(--olive-soft);
}

@media (max-width: 759px) {
  .menu-topbar .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "search search";
    align-items: center;
    gap: 8px 10px;
    padding: 10px 16px 12px;
  }

  .menu-topbar .menu-brand {
    grid-area: brand;
    flex: none;
    min-width: 0;
    gap: 0;
  }

  .menu-topbar .logo-mark {
    display: none;
  }

  .menu-topbar .topbar-tools {
    display: contents;
  }

  .menu-topbar .lang-flags {
    grid-area: lang;
    justify-self: end;
    align-self: start;
  }

  .menu-topbar .search {
    grid-area: search;
    width: 100%;
    max-width: none;
    flex: none;
    margin: 0;
    order: unset;
  }

  .chips-track { padding: 10px 34px 12px; }
  .section { scroll-margin-top: 196px; }
}

.lang-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.lang-bar .lang-flags {
  justify-content: flex-start;
  min-width: 0;
  flex: none;
  width: 100%;
}
