/* ═══════════════════════════════════════════════════════════
   LYRA MENU — iOS-inspired, cohesive palette
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #f4f3f1;
  --bg-nav: rgba(244, 243, 241, 0.88);
  --surface: #ffffff;
  --text: #1c1917;
  --text-mid: #6e6863;
  --text-light: #a39e99;
  --accent: #3d2e30;
  --accent-soft: rgba(61, 46, 48, 0.07);
  --sep: #eceae8;
  --card-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ───────────────────────────────────────────────── */
header {
  text-align: center;
  padding: 40px 24px 28px;
  background: var(--bg);
  position: relative;
}

.logo-img {
  display: block;
  margin: 0 auto;
  width: 150px;
  max-width: 42vw;
  border-radius: var(--card-radius);
}

/* ── LANGUAGE TOGGLE ──────────────────────────────────────── */
.lang-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 6px 13px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 100px;
}

.lang-btn:hover { color: var(--text-mid); }
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sep);
  padding-top: env(safe-area-inset-top);
}

.nav-cats {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  justify-content: center;
  padding: 10px 20px;
  gap: 24px;
}

.nav-cat {
  padding: 4px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

.nav-cat:hover { color: var(--text-mid); }
.nav-cat.active {
  color: var(--text);
  font-weight: 600;
}

/* Sub-navigation pills */
.nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding: 10px 20px;
  scrollbar-width: none;
  max-width: 720px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}

.nav-scroll::-webkit-scrollbar { display: none; }

.nav-scroll a {
  flex-shrink: 0;
  color: var(--text-light);
  padding: 6px 14px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: none;
}

.nav-scroll a:hover { color: var(--text-mid); }
.nav-scroll a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

/* ── ALLERGEN LEGEND ──────────────────────────────────────── */
.allergen-legend {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-light);
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.menu-section {
  padding: 28px 0 0;
  scroll-margin-top: 110px;
}

.menu-section h2 {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0 0 8px;
  padding: 0 4px;
}

.section-line { display: none; }

.section-note {
  color: var(--text-light);
  font-size: 12px;
  margin: 0 0 8px;
  padding: 0 4px;
  font-style: italic;
}

/* ── CARD ─────────────────────────────────────────────────── */
.section-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 8px;
}

/* ── MENU ITEMS ───────────────────────────────────────────── */
.item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 16px;
  gap: 16px;
  position: relative;
}

.item + .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: var(--sep);
}

.item-info { flex: 1; min-width: 0; }

.item-name {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.item-weight {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 5px;
  font-weight: 400;
}

.item-desc {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.4;
}

.item-price {
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  font-size: 15px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── ALLERGEN BADGES ──────────────────────────────────────── */
.allergens {
  display: inline-flex;
  gap: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  cursor: default;
  position: relative;
}

.a-badge[data-tip]:hover::after,
.a-badge[data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  font-weight: 400;
}

.a-G { background: #f0e0c0; color: #7a5520; }
.a-D { background: #d5e4f2; color: #385f85; }
.a-E { background: #f5dcc8; color: #8a4e28; }
.a-N { background: #e0d5e5; color: #5e3d6e; }
.a-F { background: #c5e2de; color: #256560; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 48px 20px 40px;
  max-width: 720px;
  margin: 24px auto 0;
}

.footer-logo {
  width: 68px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-sub a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-sub a:hover { color: var(--accent); }

/* ── BACK TO TOP ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

#back-to-top.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
  header { padding: 32px 16px 22px; }
  .logo-img { width: 130px; }
  main { padding: 0 12px; }
  .item { padding: 12px 14px; }
  .item + .item::before { left: 14px; }
  .item-name { font-size: 14px; }
  .item-price { font-size: 14px; }
  .lang-toggle { top: 12px; right: 12px; }
}

@media (min-width: 768px) {
  .item { padding: 14px 20px; }
  .item + .item::before { left: 20px; }
}
