:root {
  --paper: #f7ecdc;
  --paper-2: #fdf7ee;
  --ink: #1a1a18;
  --ink-soft: #5c4b3b;
  --line: #e6d4bb;
  --orange: #ec7323;
  --orange-ink: #b9500f;
  --wa: #15803d;
  --wa-ink: #116932;
  --radius: 22px;
  --gutter: 16px;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-head: "Reem Kufi", "Tajawal", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 144px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; }

/* bilingual: every string is rendered twice, the inactive one hidden */
html[lang="ar"] .t-en, html[lang="en"] .t-ar { display: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.top-logo img { height: 40px; width: auto; }
.top-nav { display: flex; gap: 20px; margin-inline-start: auto; font-weight: 500; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--orange-ink); }
.lang {
  font: 500 14px/1 var(--font-body);
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 32px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: min(460px, 100%); }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); margin: 20px 0 28px; max-width: 32ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--orange-ink); border-color: var(--orange-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.hero-art img {
  position: absolute; border-radius: var(--radius); object-fit: cover;
  box-shadow: 0 18px 40px -18px rgba(60, 35, 15, .45);
  border: 6px solid var(--paper-2);
}
.hero-art .a1 { width: 58%; aspect-ratio: 1; inset-inline-start: 0; top: 4%; transform: rotate(-4deg); }
.hero-art .a2 { width: 46%; aspect-ratio: 4 / 5; inset-inline-end: 0; top: 0; transform: rotate(5deg); }
.hero-art .a3 { width: 52%; aspect-ratio: 4 / 3; inset-inline-start: 26%; bottom: 2%; transform: rotate(-2deg); }

/* ---------- menu ---------- */
.menu { padding: 24px 0 56px; }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.menu-head h2, .contact h2 { font-size: clamp(32px, 5vw, 46px); }
.note { margin: 0; color: var(--ink-soft); }

.chips {
  position: sticky; top: 64px; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  margin-bottom: 20px;
}
.chips-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-in::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper-2); border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--c);
}
.chips a:hover { background: var(--c); color: #fff; }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 24px; align-items: start; }
/* long hot list on one side; cold, milkshake and slush stack beside it */
#hot { grid-row: span 3; }
.cat {
  background: var(--paper-2);
  border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-grid { grid-column: 1 / -1; }
.cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--c); color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  padding: 12px 22px;
}
.badge {
  font: 700 18px/1 var(--font-body);
  background: var(--paper-2); color: var(--c);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.badge small, .card .price small { font-weight: 500; font-size: .75em; }

.cat-body { display: flex; gap: 8px; padding: 14px 22px 18px; }
.rows { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.rows li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 17px; }
.rows .name { font-weight: 500; }
.rows .dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 25%, transparent); transform: translateY(-4px); min-width: 16px; }
.rows .price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); direction: ltr; }
.cat-art { flex: 0 0 34%; display: flex; align-items: center; }
.cat-art img { border-radius: 16px; width: 100%; max-height: 420px; object-fit: contain; }
.cat#hot .cat-art { align-items: flex-start; }

.cards {
  list-style: none; margin: 0; padding: 18px;
  display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px;
}
.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.wide .card img { aspect-ratio: 4 / 3; }
/* few-item grids (e.g. 2 sandwiches) keep normal card size instead of stretching */
.cat-grid[style*="--n:2"] .cards, .cat-grid[style*="--n:3"] .cards { max-width: calc(var(--n) * 300px); }
.new-tag {
  display: inline-block; vertical-align: middle; margin-inline-start: 10px;
  font: 700 13px/1 var(--font-body); letter-spacing: .02em;
  background: var(--orange); color: #fff; padding: 6px 10px; border-radius: 999px;
}
.chips a.is-new::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; border-radius: 50%; background: var(--orange); vertical-align: middle; }
.card .name { font-weight: 700; line-height: 1.3; }
.card .price { color: var(--c); font-weight: 700; direction: ltr; }

/* ---------- contact ---------- */
.contact { padding: 56px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--orange-ink); }
.contact-link { display: block; font-size: 22px; font-weight: 700; text-decoration: none; padding: 4px 0; }
[dir="rtl"] .contact-link { text-align: right; }
.contact-link:hover { color: var(--orange-ink); }
.muted { color: var(--ink-soft); margin: 8px 0 0; }

/* ---------- social / whatsapp ---------- */
.btn svg { width: 22px; height: 22px; margin-inline-end: 8px; flex: none; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-ink); border-color: var(--wa-ink); }
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .15s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
a.icon-btn:hover, .social-link:hover .icon-btn { transform: translateY(-2px); }
.icon-btn.wa { background: var(--wa); }
.icon-btn.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.icon-btn.fb { background: #1877f2; }
.icon-btn.map { background: #fff; color: #ea4335; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-map { background: var(--ink); border-color: var(--ink); margin-top: 6px; }
.btn-map:hover { background: #000; border-color: #000; }
.btn-map svg { color: #ff6b5b; }
.socials { display: flex; gap: 10px; }
.hero-socials { margin-top: 20px; }
.foot-socials { justify-content: center; margin-bottom: 14px; }
.phone-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.phone-row .contact-link { margin-inline-end: auto; }
.social-link { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 20px; font-weight: 700; text-decoration: none; }
.social-link:hover { color: var(--orange-ink); }
.wa-fab {
  position: fixed; z-index: 30; bottom: 18px; inset-inline-end: 18px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { background: var(--wa-ink); }

/* ---------- footer ---------- */
.foot { padding: 32px 0 40px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.foot-logo { height: 56px; width: auto; margin: 0 auto 12px; opacity: .9; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cats { grid-template-columns: minmax(0, 1fr); }
  #hot { grid-row: auto; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .hero { padding: 28px 0 8px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { text-align: center; }
  .hero-logo { margin: 0 auto; width: min(340px, 90%); }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-art { max-width: 320px; }
  .top-nav { gap: 14px; font-size: 15px; }
  .cat-body { padding: 10px 16px 14px; }
  .cat-head { padding: 10px 16px; }
  .cat-list.has-img .cat-art { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 14px; }
}

@media (max-width: 420px) {
  .top-nav a[href="#contact"] { display: none; }
  .top-in { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .icon-btn { transition: none; }
}
