:root {
  --bg: #f4f1ec;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --text: #15110d;
  --muted: #74695f;
  --line: #e4d8ca;
  --accent: #b66f62;
  --accent-dark: #8c4f45;
  --accent-soft: #f4dfdc;
  --success: #597b57;
  --shadow: 0 22px 60px rgba(48, 32, 22, 0.14);
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #120f0d;
  --surface: #1d1713;
  --surface-strong: #251d18;
  --text: #fff8ee;
  --muted: #c1aa98;
  --line: #3b2c24;
  --accent: #d69b77;
  --accent-dark: #f0bb8d;
  --accent-soft: #3a261f;
  --success: #9ebb89;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 260px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.hero-meta,
.category-strip,
.language-pills,
.drawer-info,
.tag-list {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--text);
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}

.top-actions {
  gap: 10px;
}

.icon-button,
.small-button,
.link-button,
.category-strip button,
.wide-button,
.drawer-close {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.icon-button {
  position: relative;
  width: 54px;
  height: 34px;
  padding: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.icon-button span {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 220ms ease;
}

[data-theme="dark"] .icon-button span {
  transform: translateX(18px);
}

.small-button {
  min-height: 34px;
  padding: 8px 13px;
  color: #fff;
  background: var(--success);
  border-radius: 999px;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: min(76vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.05), rgba(10, 8, 6, 0.76)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(96px, 16vw, 180px) clamp(18px, 6vw, 72px) clamp(32px, 8vw, 76px);
  color: #fff;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 9vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content > p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.tag-list span {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.menu-tools {
  position: sticky;
  top: 69px;
  z-index: 15;
  display: grid;
  gap: 14px;
  padding: 16px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px);
}

.search-field {
  position: relative;
  display: block;
}

.search-field span {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-size: 0;
  transform: translateY(-50%);
}

.search-field span::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-field span::after {
  position: absolute;
  right: -4px;
  bottom: 1px;
  width: 7px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 99px;
  transform: rotate(45deg);
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px 12px 44px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  box-shadow: 0 10px 28px rgba(64, 43, 30, 0.05);
}

.search-field input:focus {
  border-color: var(--accent);
}

.category-strip {
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(64, 43, 30, 0.04);
  white-space: nowrap;
}

.category-strip button.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 5vw, 64px) 0;
}

.status-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.link-button {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 14px;
}

.menu-grid {
  display: grid;
  gap: 34px;
  padding: 20px clamp(16px, 5vw, 64px) 64px;
}

.menu-section {
  scroll-margin-top: 188px;
}

.menu-section h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.section-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.dish-card {
  position: relative;
  display: grid;
  min-height: 168px;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(64, 43, 30, 0.06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.dish-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dish-card:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: var(--shadow);
}

.dish-card.is-unavailable {
  opacity: 0.72;
}

.dish-card.is-unavailable img {
  filter: grayscale(0.7);
}

.dish-card img {
  width: 132px;
  height: 144px;
  object-fit: cover;
  border-radius: 12px;
}

.dish-body {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.dish-card h3 {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.dish-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.dish-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 950;
}

.badge {
  padding: 6px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.success {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, transparent);
}

.skeleton {
  min-height: 168px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent),
    color-mix(in srgb, var(--surface) 78%, var(--line));
  background-size: 240px 100%, 100% 100%;
  border-radius: 18px;
  animation: shimmer 1.15s linear infinite;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-modal,
.dish-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.service-modal {
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 9, 7, 0.74);
  backdrop-filter: blur(12px);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.service-modal[aria-hidden="true"],
.dish-drawer[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.service-card {
  width: min(420px, 100%);
  padding: 24px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(0) scale(1);
  animation: popIn 260ms ease both;
}

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

.service-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.service-card p {
  color: var(--muted);
  text-align: center;
}

.service-card strong {
  color: var(--accent-dark);
}

.language-pills {
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.language-pills button {
  min-width: 48px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.language-pills .is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.wide-button {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.dish-drawer {
  display: grid;
  justify-items: end;
  background: rgba(12, 9, 7, 0.58);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.drawer-panel {
  position: relative;
  width: min(440px, 100%);
  min-height: 100%;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transform: translateX(0);
  transition: transform 260ms ease;
}

.dish-drawer[aria-hidden="true"] .drawer-panel {
  transform: translateX(32px);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.drawer-panel img {
  width: 100%;
  height: min(45vh, 360px);
  object-fit: cover;
}

.drawer-body {
  padding: 24px;
}

.drawer-body h2 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.05;
}

.drawer-body p {
  color: var(--muted);
}

.drawer-info {
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

.drawer-info strong {
  color: var(--accent-dark);
  font-size: 26px;
}

.drawer-info span {
  color: var(--muted);
  font-weight: 800;
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: transparent;
}

@keyframes shimmer {
  from {
    background-position: -240px 0, 0 0;
  }

  to {
    background-position: calc(100% + 240px) 0, 0 0;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 68vh;
  }

  .menu-tools {
    top: 69px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-section {
    scroll-margin-top: 180px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 12px;
  }

  .small-button {
    display: none;
  }

  .hero-content {
    padding-inline: 18px;
  }

  .menu-tools,
  .status-row,
  .menu-grid {
    padding-inline: 12px;
  }

  .dish-card {
    min-height: 138px;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .dish-card img {
    width: 108px;
    height: 114px;
  }

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

  .dish-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .drawer-panel {
    width: 100%;
  }
}
