@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("fonts/cinzel-ember.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  unicode-range: U+42, U+45, U+4D, U+52;
}
* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  color: #2c1913;
  background: #fbf4e8;
  --red: #842e20;
  --deep-red: #531d16;
  --line: #e4d3be;
  --paper: #fbf4e8;
  --surface: #fffaf1;
  --menu-width: 52rem;
}
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ad5a2c; outline-offset: 3px; }
[hidden] { display: none !important; }
.hero {
  padding: clamp(.55rem, 2vw, 1rem);
  background: radial-gradient(ellipse at 50% 0, #702b1f, #481813 78%);
  color: #fff2d8;
}
.hero-inner {
  text-align: center;
  padding: clamp(1.4rem, 4vw, 3.15rem) .65rem;
  border: 1px solid #f7d9a24a;
  animation: arrive .45s ease-out both;
}
.hero h1 { margin: 0; font: 800 clamp(2.75rem, 10vw, 7.5rem)/1 Cinzel, Georgia, serif; letter-spacing: -.035em; }
.hero p { font-size: clamp(1.15rem, 3vw, 1.65rem); margin: .55rem 0 1.1rem; }
.hero-link { display: inline-grid; place-items: center; min-height: 44px; padding: .4rem 1.05rem; background: #fff2d8; color: var(--deep-red); font-weight: 600; text-decoration: none; border-radius: 2rem; }
.hero-link:focus-visible { outline-color: #fff2d8; }
nav {
  display: flex;
  gap: .3rem;
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: .45rem max(1rem, calc((100% - var(--menu-width) + 2rem) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
nav a { display: grid; place-items: center; min-height: 44px; white-space: nowrap; padding: .45rem .75rem; color: var(--deep-red); text-decoration: none; border-radius: 2rem; }
nav a:hover, nav a:focus-visible { background: #f2e3cf; }
main, footer { max-width: var(--menu-width); margin: auto; padding: 0 1rem; }
main { scroll-margin-top: 4.5rem; }
.menu-title { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; margin: 1.9rem 0 0; }
section { scroll-margin-top: 4.75rem; margin: 1.45rem 0 2.6rem; }
section h3 { display: flex; align-items: center; gap: .7rem; color: var(--red); font-size: clamp(1.3rem, 4vw, 1.55rem); margin: 0 0 .2rem; }
section h3::after { content: ""; flex: 1; border-top: 1px solid #bc8f75; }
.menu-row { min-height: 4.3rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.menu-row h4 { margin: 0; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.35; overflow-wrap: anywhere; }
.options { display: flex; gap: .35rem; }
.add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  min-width: 5.25rem;
  min-height: 46px;
  padding: .3rem .45rem;
  background: var(--surface);
  color: var(--deep-red);
  border: 1px solid var(--line);
  border-radius: .55rem;
  transition: background .15s, border-color .15s, transform .15s;
}
.add:hover { background: #f5e6d4; border-color: #bc8f75; }
.add:active { transform: scale(.96); }
.add-label { text-align: start; }
.add small { display: block; font-size: .82rem; line-height: 1.2; }
.add strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.add-icon { display: grid; place-items: center; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #f1dfcc; color: var(--red); font-family: Arial, sans-serif; font-weight: 700; }
details { margin-top: .25rem; font-size: .875rem; line-height: 1.8; }
summary { cursor: pointer; }
details p { margin: .2rem 0; }
footer { padding-block: 0 7rem; color: var(--red); }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
.order-bar { position: fixed; z-index: 2; inset: auto 0 0; padding: .65rem max(.75rem, env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); pointer-events: none; }
.order-bar button { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .65rem; width: min(100%, 34rem); margin: auto; min-height: 52px; padding: .55rem .85rem; background: var(--deep-red); color: white; border: 1px solid #7d3e31; border-radius: .8rem; box-shadow: 0 .3rem 1.15rem #451d1940; pointer-events: auto; }
#order-count { padding: .14rem .5rem; background: #fff2d824; border-radius: 2rem; }
dialog { width: min(calc(100% - 1.5rem), 34rem); max-height: 85dvh; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); color: inherit; }
dialog[open] { animation: arrive .18s ease-out both; }
dialog::backdrop { background: #21130dc0; }
.cart-heading, .cart-total, .cart-line { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.cart-heading h2 { margin: 0; }
.close, .quantity button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: .4rem; background: transparent; color: inherit; }
.close { font-size: 1.5rem; }
.cart-line { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.cart-line small { display: block; margin-top: .35rem; }
.quantity { display: flex; align-items: center; gap: .4rem; }
.cart-total { margin: 1rem 0; }
.whatsapp { display: block; padding: .85rem; background: #176044; color: white; text-align: center; text-decoration: none; border-radius: .45rem; }
.hint { text-align: center; font-size: .9rem; margin-bottom: .2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 440px) {
  .hero-link { font-size: .875rem; }
  .options { gap: .25rem; }
  .add { min-width: 3.75rem; padding-inline: .3rem; gap: .2rem; }
  .add-icon { width: 1rem; height: 1rem; font-size: .85rem; }
}
@media (max-width: 350px) {
  .menu-row { gap: .4rem; }
  .cart-line { flex-wrap: wrap; }
}
@media (orientation: landscape) {
  main, footer {
    margin-left: max(env(safe-area-inset-left), calc((100% - var(--menu-width)) / 2));
    margin-right: max(env(safe-area-inset-right), calc((100% - var(--menu-width)) / 2));
  }
  nav {
    padding-left: max(calc((100% - var(--menu-width) + 2rem) / 2), 1rem, env(safe-area-inset-left));
    padding-right: max(calc((100% - var(--menu-width) + 2rem) / 2), 1rem, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
