:root {
  --red: #c2261c;
  --red-deep: #8f160f;
  --orange: #ee6a1c;
  --amber: #f5a524;
  --cream: #fbf0d4;
  --paper: #fff8e6;
  --slate: #8a88a6;
  --ink: #2a1512;
  --radius: 18px;
  --bar: 60px;
  --chips: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + var(--chips) + 8px); }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; margin: 0; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; z-index: 50; inset-inline-start: 12px; top: -64px;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--red-deep);
  font-weight: 700; text-decoration: none; box-shadow: 0 6px 14px rgb(0 0 0 / .3);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--amber); outline-offset: 2px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / .25);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-family: "Alfa Slab One", serif; font-size: 1.5rem; letter-spacing: .03em; }

.btn, .chips a, .langbar button {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  background: var(--amber); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.05rem; line-height: 1.3; letter-spacing: .01em;
  border: 2px solid var(--red-deep);
  box-shadow: 0 4px 10px rgb(0 0 0 / .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover, .chips a:hover, .langbar button:hover { transform: translateY(-2px); background: #ffb83d; box-shadow: 0 8px 16px rgb(0 0 0 / .28); }
.btn:active, .chips a:active, .langbar button:active { transform: translateY(1px); box-shadow: 0 2px 5px rgb(0 0 0 / .25); }
.btn:focus-visible, .chips a:focus-visible, .langbar button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero .btn:focus-visible { outline-color: #fff; }
.chips a.active, .langbar button.active { background: var(--red); color: #fff; border-color: var(--red-deep); }
.btn-light { background: #fff; }
.btn-light:hover { background: #fff3cf; }
.btn-small { padding: 6px 18px; font-size: .95rem; }

/* Hero */
.hero {
  min-height: min(88vh, 760px);
  display: grid; place-items: center; text-align: center;
  padding: 64px 20px 72px;
  color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
}
/* Image lives on its own compositor layer so mobile browsers don't re-fit/repaint it while scrolling */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(143 22 15 / .3) 0%, rgb(194 38 28 / .55) 55%, rgb(143 22 15 / .92) 100%),
    url("/images/drinks/hero.jpg") center / cover no-repeat;
  transform: translateZ(0);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 8px; background: var(--amber); z-index: -1;
}
.hero h1 {
  font-size: clamp(5.5rem, 24vw, 10rem); line-height: .85; letter-spacing: .01em;
  color: #fff; -webkit-text-stroke: .035em var(--red-deep); paint-order: stroke fill;
  text-shadow: 0 .05em 0 var(--red-deep), 0 .1em 0 var(--red-deep), 0 .1em 0 var(--orange), 0 .2em .25em rgb(0 0 0 / .45);
}
.subbrand {
  display: inline-block; margin: 28px 0 0; padding: 6px 22px; transform: rotate(-2deg);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(1rem, 3.4vw, 1.5rem); color: var(--ink);
  background: var(--amber); border-radius: 6px;
  box-shadow: 0 8px 18px rgb(0 0 0 / .35);
}
.tagline { font-size: clamp(1.15rem, 3.8vw, 1.6rem); font-weight: 500; max-width: 28ch; margin: 22px auto 32px; text-shadow: 0 2px 10px rgb(0 0 0 / .5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Menu */
.menu { padding: 56px 0 24px; background: var(--cream); }
.section-title { font-size: clamp(2.6rem, 10vw, 4.6rem); color: var(--red); text-align: center; margin-bottom: 20px; }
.section-title.light { color: #fff; }

.chips {
  overflow-x: auto; scrollbar-width: none;
  position: sticky; top: var(--bar); z-index: 20;
  display: flex; gap: 10px; justify-content: center;
  padding: 10px 16px; margin: 0 -16px 28px;
  background: rgb(251 240 212 / .98);
  overscroll-behavior-x: contain;
  height: var(--chips);
}
.chips a {
  flex: none; white-space: nowrap;
  padding: 4px 18px; font-size: .95rem;
  background: #fff; color: var(--red); border-color: var(--red); box-shadow: 0 3px 8px rgb(143 22 15 / .15);
}
/* Sticky chip row repaints on every scroll-spy change: keep it flat and cheap (no shadows, no transform/shadow transitions) */
.chips a, .chips a:hover, .chips a:active { box-shadow: none; transform: none; transition: background-color .15s, color .15s, border-color .15s; }
.chips a:hover { background: var(--paper); }
.chips a.active, .chips a.active:hover { background: var(--red); color: #fff; border-color: var(--red-deep); }

.chips::-webkit-scrollbar { display: none; }
.chips a:first-child { margin-inline-start: auto; }
.chips a:last-child { margin-inline-end: auto; }

.menu-section { margin-bottom: 56px; }
.menu-heading {
  font-size: clamp(2.2rem, 8vw, 3.4rem); color: var(--red-deep); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.menu-heading::after { content: ""; flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--orange), transparent); }

/* Drinks */
.groups { display: grid; gap: 22px; grid-template-columns: 1fr; }
.group { background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgb(143 22 15 / .12); }
.group-media { position: relative; height: 170px; background: linear-gradient(135deg, var(--red), var(--orange)); }
.group-media.no-image { height: 110px; }
.group-media img { width: 100%; height: 100%; object-fit: cover; }
.group-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(120 15 10 / .92), rgb(120 15 10 / .5) 45%, transparent 80%); }
.group-media.no-image::after { display: none; }
.group-head { position: absolute; z-index: 1; inset-inline-start: 18px; bottom: 14px; color: #fff; }
.group-head h4 { font-size: 1.7rem; text-shadow: 0 2px 6px rgb(0 0 0 / .4); }
.kicker { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; color: var(--amber); }

.items { list-style: none; margin: 0; padding: 8px 20px 16px; }
.items li { padding: 12px 0; border-bottom: 1px dashed rgb(143 22 15 / .25); }
.items li:last-child { border-bottom: 0; }
.item-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-name { font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; font-family: "DM Sans", sans-serif; }
h4.item-name { font-family: "DM Sans", sans-serif; }
.price { font-weight: 700; color: var(--red); white-space: nowrap; }
.item-desc { margin: 2px 0 0; font-size: .9rem; color: rgb(42 21 18 / .75); }

/* Food */
.food-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.food { background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgb(143 22 15 / .12); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.food:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgb(143 22 15 / .2); }
.food img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--amber); }
.food-body { padding: 14px 18px 18px; }
.food .item-name { font-size: 1.05rem; }

.sizes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; }
.sizes li { flex: 1; text-align: center; padding: 6px 4px; border-radius: 12px; background: var(--cream); border: 1px solid rgb(143 22 15 / .2); }
.size-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--red-deep); }
.size-price { font-weight: 700; color: var(--red); }

/* Featured item */
.food { position: relative; }
.food.featured {
  background: linear-gradient(160deg, #fff3cf, #ffe2b0);
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 4px rgb(245 165 36 / .35), 0 12px 32px rgb(194 38 28 / .28);
}
.food.featured .item-name { color: var(--red); font-size: 1.25rem; }
.food.featured .size-label { color: var(--red); }
.food.featured .sizes li { background: #fff; border-color: var(--orange); }
.badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  padding: 4px 12px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
@media (min-width: 640px) {
  .food.featured.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .food.featured.wide img { height: 100%; aspect-ratio: auto; min-height: 260px; }
  .food.featured.wide .food-body { align-self: center; padding: 24px; }
}

/* Card motion: photos drift slowly on hover, nothing else moves */
.food img, .group-media img { transition: transform .8s var(--ease); }
.food, .group-media { isolation: isolate; }
.food:hover img, .group:hover .group-media img { transform: scale(1.04); }
.food:active, .offer:active { transform: translateY(0) scale(.985); }

/* Special offers */
.offer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.offer {
  padding: 26px 24px 28px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--red-deep) 0%, var(--red) 70%, #d9501a 100%); color: #fff;
  border: 3px solid var(--red-deep);
  box-shadow: 0 14px 32px rgb(143 22 15 / .38);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.offer:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgb(143 22 15 / .45); }
.offer .item-row { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
.offer .price {
  font-family: "Alfa Slab One", Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1;
  color: var(--ink); background: var(--amber); padding: 8px 20px 10px; border-radius: 999px;
  border: 3px solid var(--red-deep); box-shadow: 0 5px 12px rgb(0 0 0 / .3);
}
.offer .item-name { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: clamp(1.6rem, 5.5vw, 2rem); line-height: 1.1; text-transform: none; }
.offer .item-desc { color: rgb(255 255 255 / .94); margin-top: 10px; font-size: 1rem; }
@media (min-width: 640px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }

/* Visit */
.visit { background: var(--red-deep); color: var(--cream); padding: 44px 0 48px; }
.visit .section-title { margin-bottom: 22px; color: var(--cream); font-size: clamp(1.6rem, 5vw, 2.1rem); }
.visit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; text-align: center; }
.visit strong { display: block; margin-bottom: 2px; color: var(--amber); text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; }
.visit li > a, .visit li > span { display: inline-block; padding: 6px 4px; font-size: 1.05rem; line-height: 1.4; text-wrap: balance; direction: ltr; unicode-bidi: isolate; }
.visit a { color: var(--cream); font-weight: 700; text-decoration: none; transition: color .15s; }
.visit a:hover { color: var(--amber); }
.visit a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

footer { background: var(--red-deep); color: #fff; text-align: center; padding: 20px; font-size: .85rem; }
footer p, footer address { margin: 0; }
footer address { font-style: normal; margin-bottom: 6px; }
footer .contact { margin-bottom: 10px; }
footer a { color: #fff; text-underline-offset: 3px; }

.loading { text-align: center; }

@media (min-width: 640px) {
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .group.wide { grid-column: 1 / -1; }
  .group.wide .items { columns: 2; column-gap: 40px; }
  .group.wide .items li { break-inside: avoid; }
  .group-media { height: 200px; }
  .group.wide .group-media { height: 260px; }
}
@media (min-width: 960px) {
  .food-grid { grid-template-columns: repeat(3, 1fr); }
  .chips { margin-inline: 0; }
}
@media (max-width: 480px) {
  .chips { gap: 6px; padding-inline: 10px; }
  .chips a { padding: 4px 13px; font-size: .88rem; }
}
/* Hover lift only where hover exists; on touch it sticks and repaints while scrolling */
@media (hover: none) {
  .btn:hover, .chips a:hover, .food:hover, .offer:hover { transform: none; }
  .food:hover img, .group:hover .group-media img { transform: none; }
  .food:active, .offer:active { transform: none; }
}
/* Load and re-render motion */
@keyframes fade-in { from { opacity: 0; } }
#menu-root.swap { animation: fade-in .3s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn:hover, .chips a:hover, .langbar button:hover, .food:hover, .offer:hover,
  .btn:active, .chips a:active, .langbar button:active, .food:active, .offer:active { transform: none; }
  .food:hover img, .group:hover .group-media img { transform: none; }
}

/* ---- Language bar ---------------------------------------------------- */
.langbar {
  background: #fff3cf;
  border-bottom: 3px solid var(--orange);
  padding: 10px 16px 12px;
  text-align: center;
  direction: ltr; /* keep the same button order in every language */
}
.langbar-label { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--red-deep); }
.langbar-label .dot { opacity: .5; margin: 0 .2em; }
.langbar-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.langbar button {
  min-height: 46px; min-width: 88px; padding: 6px 18px;
  font-family: "DM Sans", system-ui, sans-serif; line-height: 1.2; letter-spacing: .04em;
  cursor: pointer;
}
.langbar button[lang="ar"] { letter-spacing: 0; }
.langbar button[lang="ar"] { font-family: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif; }
.langbar button[lang="am"], .langbar button[lang="ti"] { font-family: "Noto Sans Ethiopic", "DM Sans", system-ui, sans-serif; }
.langbar-buttons { flex-wrap: nowrap; max-width: 520px; margin-inline: auto; }
.langbar button {
  flex: 1 1 0; min-width: 0; padding: 6px 8px; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  background: transparent; color: var(--red-deep); border: 2px solid rgb(143 22 15 / .35); box-shadow: none;
}
.langbar button:hover { transform: none; background: rgb(255 255 255 / .7); border-color: var(--red-deep); box-shadow: none; }
.langbar button:active { transform: none; box-shadow: none; }
.langbar button.active { background: var(--red-deep); border-color: var(--red-deep); color: #fff; font-weight: 700; }
@media (max-width: 359px) {
  .langbar-buttons { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Original English name shown under a translated name; note about auto-translation */
.item-orig { display: block; margin-top: 1px; font-size: .78rem; font-weight: 500; color: rgb(42 21 18 / .7); direction: ltr; text-align: start; }
html[dir="rtl"] .item-orig { text-align: right; }
.offer .item-orig { color: rgb(255 255 255 / .9); }
.autonote { margin: -8px auto 20px; max-width: 46ch; text-align: center; font-size: .85rem; color: rgb(42 21 18 / .7); }

/* ---- Other languages ---------------------------------------------------- */
/* Prices and amounts stay left-to-right so "£6.50" never flips in Arabic */
.price, .size-price { direction: ltr; unicode-bidi: isolate; }

/* Fonts: Alfa Slab / DM Sans have no Arabic or Ethiopic letters */
html[lang="ar"] body, html[lang="ar"] .btn, html[lang="ar"] .chips a { font-family: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif; }
html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .offer .item-name { font-family: "Noto Sans Arabic", system-ui, sans-serif; font-weight: 700; }
html[lang="am"] body, html[lang="ti"] body, html[lang="am"] .btn, html[lang="ti"] .btn, html[lang="am"] .chips a, html[lang="ti"] .chips a { font-family: "Noto Sans Ethiopic", "DM Sans", system-ui, sans-serif; }
html[lang="am"] h2, html[lang="am"] h3, html[lang="am"] h4, html[lang="ti"] h2, html[lang="ti"] h3, html[lang="ti"] h4,
html[lang="am"] .offer .item-name, html[lang="ti"] .offer .item-name { font-family: "Noto Sans Ethiopic", system-ui, sans-serif; font-weight: 700; }
html:not([lang="en"]) body { line-height: 1.65; }

/* Letter-spacing and forced capitals break joined Arabic and look wrong in Ethiopic */
html:not([lang="en"]) .kicker, html:not([lang="en"]) .badge,
html:not([lang="en"]) .size-label, html:not([lang="en"]) .item-name, html:not([lang="en"]) .langbar-label,
html:not([lang="en"]) .visit strong, html:not([lang="en"]) .btn, html:not([lang="en"]) .chips a, html:not([lang="en"]) .subbrand { letter-spacing: 0; text-transform: none; }
html:not([lang="en"]) .item-name { font-size: 1.05rem; }

/* Right-to-left (Arabic) */
html[dir="rtl"] .menu-heading::after { background: linear-gradient(270deg, var(--orange), transparent); }
html[dir="rtl"] .item-desc, html[dir="rtl"] .items { text-align: start; }
