:root {
  --burgundy: #9e1f28;
  --burgundy-deep: #7d1720;
  --ink: #1a1214;
  --muted: #6d5c5e;
  --cream: #f6f1ec;
  --paper: #fffdfb;
  --line: rgba(158, 31, 40, 0.16);
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -80px, #c45a60 0%, transparent 55%),
    #efe4dc;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 18, 20, 0.18), rgba(26, 18, 20, 0.28)),
    url("assets/home.jpg?v=4") center 12% / cover no-repeat;
}
body.menu-open::before {
  background:
    linear-gradient(180deg, rgba(255, 250, 248, 0.18), rgba(246, 241, 236, 0.32)),
    url("assets/menu-bg.jpg?v=3") center center / cover no-repeat;
}
button, a { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.stage {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  box-shadow: 0 30px 80px rgba(80, 18, 24, 0.18);
}
body.menu-open .stage {
  background: transparent;
}

.hero {
  position: relative;
  padding: 22px 24px 27px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #4e0e14 0%, #8d1b24 48%, #c2454c 100%);
}
body:not(.menu-open) .hero {
  visibility: hidden;
  pointer-events: none;
}
.plate {
  position: fixed;
  z-index: 6;
  left: 1px;
  bottom: 18px;
  width: 58px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
}
.plate-shape {
  width: 58px;
  height: 58px;
  display: block;
  margin: 0;
  filter: drop-shadow(0 8px 10px rgba(26, 18, 20, 0.28));
}
.plate strong {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--burgundy);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}
.lang {
  position: fixed;
  z-index: 6;
  right: max(1px, calc(50vw - 320px + 1px));
  bottom: 22px;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(80, 18, 24, 0.18);
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-width: 40px;
  height: 40px;
  font-weight: 600;
  font-size: 14px;
}
.lang button[aria-pressed="true"] {
  background: var(--burgundy);
  color: #fff;
}
body.cart-open .plate,
body.cart-open .lang { visibility: hidden; }
.mark, h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.mark {
  margin-top: 22px;
  font-size: clamp(26px, 7.2vw, 40px);
  line-height: 1;
}
h1 {
  margin-top: 8px;
  font-size: clamp(20px, 4.6vw, 28px);
  font-weight: 500;
}
.rule {
  width: 72px;
  height: 1px;
  margin: 14px auto 11px;
  background: rgba(255, 255, 255, 0.7);
}
.phone { display: none; }

.home {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: calc((100vh - 210px) * 0.8);
  padding: 28px 16px 28px;
  background: transparent;
}
.home button {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: start;
  background: rgba(255, 253, 251, 0.42);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 6px 16px 6px 14px;
  box-shadow: 0 16px 36px rgba(26, 18, 20, 0.22);
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home button {
    opacity: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }
  .home.ready button {
    animation: riseIn 0.65s ease both;
  }
  .home.ready button:nth-child(1) { animation-delay: 0s; }
  .home.ready button:nth-child(2) { animation-delay: 0.09s; }
  .home.ready button:nth-child(3) { animation-delay: 0.18s; }
  .home.ready button:nth-child(4) { animation-delay: 0.27s; }
  @media (hover: hover) {
    .home.ready button:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 40px rgba(26, 18, 20, 0.28);
    }
  }
  .home.ready button:active {
    transform: scale(0.98);
  }
}
.home-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(158, 31, 40, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(158, 31, 40, 0.28);
}
.home-icon svg { width: 24px; height: 24px; }
.home-label {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.home-go {
  width: 18px;
  height: 18px;
  flex: none;
  border-right: 1.5px solid var(--burgundy);
  border-top: 1.5px solid var(--burgundy);
  transform: rotate(45deg);
  margin-right: 6px;
}
html[dir="rtl"] .home-go { transform: rotate(-135deg); margin-right: 0; margin-left: 6px; }
html[lang="ar"] .home button { font-family: var(--arabic); }
.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  max-width: 100%;
  background: rgba(246, 241, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 8px;
}
body.menu-open .controls {
  background: rgba(246, 241, 236, 0.78);
}
body.menu-open .colophon {
  background: #f6f1ec;
  border-top-color: rgba(158, 31, 40, 0.18);
}
.back {
  display: inline-flex;
  align-items: center;
  margin: 0 16px 6px;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.back::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
html[dir="rtl"] .back::before {
  margin-right: 0;
  margin-left: 8px;
  transform: rotate(-135deg);
}
[hidden] { display: none !important; }

.slider {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 16px 12px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider button {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  letter-spacing: 0.04em;
  font-size: 14px;
  font-weight: 500;
}
.slider button[aria-selected="true"] {
  background: var(--burgundy);
  color: #fff;
}
.slider-sub { padding-top: 0; }
.slider-sub button {
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.slider-sub button[aria-selected="true"] {
  border-color: var(--burgundy);
}

.dishes { padding: 8px 16px 120px; }
.dish {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  border-radius: 22px;
  padding: 16px 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 30px rgba(90, 24, 30, 0.05);
}
.dish-body { min-width: 0; }
.dish-copy { min-width: 0; }
.dish-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dish h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}
.price {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--burgundy);
  white-space: nowrap;
  text-align: right;
}
.was {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  text-decoration: line-through;
}
html[lang="ar"] .dish h2,
html[lang="ar"] .desc,
html[lang="ar"] .back,
html[lang="ar"] .slider button,
html[lang="ar"] .cart-head h2,
html[lang="ar"] .line h3,
html[lang="ar"] .order,
html[lang="ar"] .empty {
  font-family: var(--arabic);
}
.desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
}
.order {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  background: transparent;
  color: var(--burgundy);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(158, 31, 40, 0.35);
}
.order.added {
  background: var(--burgundy);
  color: #fff;
  box-shadow: none;
}

.colophon {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 12px 18px 34px;
  text-align: center;
  background: #f6f1ec;
  border-top: 1px solid rgba(158, 31, 40, 0.22);
  box-shadow: 0 -12px 28px rgba(26, 18, 20, 0.06);
}
.colophon .about {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.colophon .social {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}
.colophon .social-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(158, 31, 40, 0.55);
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(255, 253, 251, 0.7);
  text-decoration: none;
}
.colophon .social-btn svg {
  width: 18px;
  height: 18px;
}
.colophon .social-btn:hover {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.colophon .contact {
  color: var(--burgundy);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.colophon .contact:hover { text-decoration: underline; }
.colophon .credit {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.colophon .credit a {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 500;
}
.colophon .credit a:hover { text-decoration: underline; }

.shade {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 20, 0.45);
  z-index: 8;
}
.cart {
  position: fixed;
  z-index: 9;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(640px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(26, 18, 20, 0.25);
}
.cart-head, .cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.cart-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.cart-body {
  overflow: auto;
  padding: 0 20px 12px;
}
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.line h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--burgundy);
}
.line-price { font-weight: 600; color: var(--burgundy); }
.empty {
  margin: 12px 0 24px;
  color: var(--muted);
  font-weight: 300;
}
.cart-foot {
  background: var(--burgundy);
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.cart-foot strong {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

@media (min-width: 800px) {
  body { padding: 28px 0; }
  .stage { border-radius: 28px; overflow: hidden; min-height: calc(100vh - 56px); }
  .cart { bottom: 28px; border-radius: 28px; }
}
