/* Forn & Zaytoun — فرن وزيتون · demo styles
   Palette: olive, warm cream, terracotta, charcoal. Mobile-first, logical properties (RTL/LTR). */

@font-face { font-family: 'Alexandria'; font-weight: 100 900; font-display: swap;
  src: url('../fonts/Alexandria-Arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Alexandria'; font-weight: 100 900; font-display: swap;
  src: url('../fonts/Alexandria-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap;
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Naskh Display'; font-weight: 700; font-display: swap;
  src: url('../fonts/NotoNaskhArabic-Bold.ttf') format('truetype'); }

:root {
  --olive: #56642a;
  --olive-d: #363f1b;
  --olive-l: #e4e6c9;
  --cream: #f5ecd8;
  --cream-2: #ece0c3;
  --paper: #fbf6ea;
  --terra: #b2502b;
  --terra-d: #9a3f20;
  --char: #25221e;
  --soft: #5b5348;
  --line: rgba(37, 34, 30, .14);
  --radius: 20px;
  --pad: clamp(16px, 4.5vw, 32px);
  --max: 1080px;
  --f-body: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-display-ar: 'Naskh Display', 'Alexandria', serif;
  --f-display-en: 'Fraunces', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--char);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(rgba(86,100,42,.06) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
[lang="ar"] .display, :lang(ar).display { font-family: var(--f-display-ar); font-weight: 700; letter-spacing: 0; }
[lang="en"] .display { font-family: var(--f-display-en); font-weight: 600; letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- header / brand ---------- */
.top { padding-block: 12px 10px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wm-ar { font-family: var(--f-display-ar); font-weight: 700; font-size: 25px; color: var(--olive-d); line-height: 1.15; }
.wm-en { font-family: var(--f-display-en); font-weight: 600; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--char); margin-top: 2px; direction: ltr; text-align: start; white-space: nowrap; }
.wm-en i { font-style: normal; color: var(--terra); letter-spacing: 0; padding-inline: .15em; }
[dir="rtl"] .wm-en { text-align: right; }
.disclosure {
  margin: 8px 0 0; display: inline-block; font-size: 11.5px; line-height: 1.5; color: var(--olive-d);
  background: var(--olive-l); border: 1px solid rgba(86,100,42,.28); border-radius: 10px; padding: 3px 10px;
}
.disclosure bdi { unicode-bidi: isolate; }

/* language switch: العربية | English */
.lang { display: inline-flex; align-items: stretch; background: var(--paper); border: 1.5px solid var(--olive); border-radius: 999px; overflow: hidden; flex: none; direction: ltr; }
.lang button { border: 0; background: transparent; min-height: 40px; min-width: 52px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--olive-d); }
.lang button + button { border-inline-start: 1.5px solid var(--olive); }
.lang button[aria-pressed="true"] { background: var(--olive); color: #fff; }
.lang button:focus-visible { outline-offset: -3px; }

/* ---------- hero (compact) ---------- */
.hero { position: relative; border-radius: 24px; overflow: hidden; background: var(--char); isolation: isolate; height: clamp(270px, 44svh, 350px); margin-top: 8px; box-shadow: 0 18px 40px -22px rgba(37,34,30,.65); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(28,24,18,.92) 0%, rgba(28,24,18,.62) 38%, rgba(28,24,18,.05) 72%); }
.hero-body { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 20px 22px; color: #fff8e8; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #f0c9a8; margin: 0; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 13px; }
.hero h1 { margin: 0; font-size: clamp(26px, 6.6vw, 40px); line-height: 1.2; max-width: 16ch; }
.hero p.sub { margin: 0; font-size: 14.5px; max-width: 38ch; color: #f3e8d2; display: none; }
.hero .ill { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); transition: transform .15s, background .15s; }
.btn:hover { background: var(--terra-d); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }

.pill { display: inline-block; font-size: 10.5px; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: rgba(28,24,18,.66); color: #fff3dc; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pill bdi { unicode-bidi: isolate; }

/* ---------- section scaffolding ---------- */
section.block { padding-block: 34px 6px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { margin: 0; font-size: 28px; line-height: 1.25; color: var(--olive-d); }
.block-head .note { margin: 0; color: var(--soft); font-size: 13.5px; }
.link-more { font-weight: 700; color: var(--terra-d); text-decoration: none; font-size: 15px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* featured */
.featured { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.f-card { background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.f-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(37,34,30,.6); }
.f-img { position: relative; aspect-ratio: 4 / 3; background: var(--char); }
.f-img img { width: 100%; height: 100%; object-fit: cover; }
.f-img .pill { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; font-size: 9.5px; padding: 2px 7px; max-width: calc(100% - 12px); }
.f-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.f-name { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.f-sub { font-size: 12px; color: var(--soft); text-align: start; }
.f-price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--terra-d); font-variant-numeric: tabular-nums; font-size: 15px; }
.f-price small { font-weight: 500; color: var(--soft); font-size: 12px; }

/* info strip */
.info { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
[lang="ar"] .card h3 { letter-spacing: 0; font-size: 15px; }
.rating { display: flex; align-items: center; gap: 12px; }
.rating .num { font-size: 40px; line-height: 1; color: var(--olive-d); font-variant-numeric: tabular-nums; }
.rating .num small { font-size: 17px; color: var(--soft); font-family: var(--f-body); font-weight: 500; }
.stars { display: flex; gap: 2px; direction: ltr; }
.stars svg { width: 18px; height: 18px; }
.tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; background: var(--cream-2); color: var(--olive-d); padding: 3px 10px; border-radius: 999px; }
.tag bdi { unicode-bidi: isolate; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 15px; }
.hours li.today { background: var(--olive-l); font-weight: 700; }
.hours .t { font-variant-numeric: tabular-nums; color: var(--soft); text-align: end; }
.hours li.today .t { color: var(--olive-d); }
.today-badge { font-size: 11px; font-weight: 700; background: var(--olive); color: #fff; border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }

/* contacts */
.contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contacts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.c-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--olive); color: var(--olive-d); font-weight: 600; font-size: 15.5px; transition: background .15s, color .15s; }
.c-btn:hover, .c-btn[aria-expanded="true"] { background: var(--olive); color: #fff; }
.c-btn svg { width: 22px; height: 22px; flex: none; }

/* location */
.loc { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.loc-art { min-height: 170px; position: relative; background: var(--olive); }
.loc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-art .pill { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; font-size: 11.5px; padding: 4px 10px; }
.loc-text { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.loc-text .place { font-size: 28px; line-height: 1.2; color: var(--olive-d); margin: 0; }
.loc-text p { margin: 0; color: var(--soft); font-size: 14.5px; }

/* ---------- footer ---------- */
.foot { margin-top: 44px; background: var(--char); color: #e9dec6; padding: 28px 0 36px; }
.foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.foot .brandline { display: flex; align-items: center; gap: 10px; }
.foot .wm-ar { color: #f5ecd8; font-size: 22px; }
.foot .wm-en { color: #e9dec6; }
.foot img { width: 38px; height: 38px; }
.foot p { margin: 0; font-size: 13px; color: #cfc3aa; max-width: 70ch; }
.foot .disclosure { align-self: flex-start; background: rgba(228,230,201,.12); color: #e4e6c9; border-color: rgba(228,230,201,.3); }

/* ---------- toast (demo controls) ---------- */
.toast { position: fixed; inset-inline: 12px; bottom: 14px; z-index: 50; margin-inline: auto; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-inline-start: 6px solid var(--terra); border-radius: 16px; padding: 14px 14px 14px 16px; box-shadow: 0 22px 44px -16px rgba(0,0,0,.5); display: none; gap: 12px; align-items: flex-start; }
.toast.show { display: flex; animation: rise .22s ease-out; }
.toast .msgs { flex: 1; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.toast .msgs p { margin: 0; }
.toast .msgs p[lang="ar"] { font-weight: 600; }
.toast .msgs p[lang="en"] { color: var(--soft); }
.toast button { border: 0; background: var(--cream-2); border-radius: 999px; width: 34px; height: 34px; font-size: 18px; line-height: 1; flex: none; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- MENU PAGE ---------- */
.menu-bar { position: sticky; top: 0; z-index: 20; background: rgba(245,236,216,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 10px 0; }
.search { position: relative; display: block; }
.search input { width: 100%; height: 48px; border-radius: 14px; border: 1.5px solid rgba(37,34,30,.28); background: #fffdf7; font: inherit; font-size: 16px; padding-inline: 44px 44px; color: var(--char); }
.search input::placeholder { color: #7d7466; }
.search input:focus { outline: 3px solid var(--terra); outline-offset: 1px; border-color: transparent; }
.search .ico { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--soft); pointer-events: none; }
.search .clear { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--soft); font-size: 22px; line-height: 1; display: none; }
.search.has-q .clear { display: block; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(86,100,42,.55); background: transparent; font-weight: 600; font-size: 15px; color: var(--olive-d); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.chips.dim .chip[aria-pressed="true"] { background: transparent; color: var(--olive-d); border-color: rgba(86,100,42,.55); }
.status { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 28px; margin: 14px 0 4px; font-size: 13.5px; color: var(--soft); }
.status .note-search { color: var(--terra-d); font-weight: 600; }

#results { scroll-margin-top: 140px; }
.cat { margin-top: 22px; }
.cat-banner { position: relative; border-radius: 20px; overflow: hidden; height: 120px; background: var(--char); isolation: isolate; }
.cat-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(28,24,18,.78), rgba(28,24,18,.05) 70%); }
.cat-banner h2 { position: absolute; inset-inline-start: 16px; inset-block-end: 10px; margin: 0; color: #fff8e8; font-size: 30px; line-height: 1.2; }
.cat-banner .pill { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.cat-plain h2 { margin: 0 0 4px; font-size: 26px; color: var(--olive-d); }
.items { list-style: none; margin: 6px 0 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 2px; border-bottom: 1px dashed rgba(37,34,30,.22); align-items: start; }
.item:last-child { border-bottom: 0; }
.i-name { font-weight: 700; font-size: 17px; line-height: 1.35; margin: 0; }
.i-alt { display: block; font-weight: 500; font-size: 12.5px; color: var(--soft); margin-top: 1px; text-align: start; }
.i-desc { grid-column: 1; margin: 2px 0 0; font-size: 14px; color: var(--soft); line-height: 1.55; max-width: 52ch; }
.prices { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; align-items: stretch; }
.price { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 6px 9px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; line-height: 1.15; }
.price .sz { font-size: 11.5px; font-weight: 600; color: var(--soft); margin-bottom: 2px; }
.price .n { font-weight: 800; font-size: 17px; color: var(--terra-d); }
.price .c { font-size: 10.5px; color: var(--soft); font-weight: 500; }
.price.single { background: transparent; border-color: transparent; padding-inline: 0; }
.price.single .n { font-size: 18px; }

.empty { text-align: center; padding: 44px 18px 30px; }
.empty .glyph { width: 84px; height: 84px; margin: 0 auto 10px; color: var(--olive); }
.empty h2 { margin: 0 0 6px; font-size: 26px; color: var(--olive-d); }
.empty p { margin: 0 auto 18px; max-width: 38ch; color: var(--soft); }
.empty .btn { min-height: 46px; font-size: 16px; }
.price-note { margin: 28px 0 0; font-size: 13px; color: var(--soft); }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .featured { grid-template-columns: repeat(4, 1fr); }
  .info { grid-template-columns: 1fr 1.4fr; }
  .contacts { grid-template-columns: repeat(5, 1fr); }
  .contacts li:last-child:nth-child(odd) { grid-column: auto; }
  .c-btn { flex-direction: column; gap: 6px; padding: 12px 6px; min-height: 84px; font-size: 14.5px; }
  .hero p.sub { display: block; }
  .hero-body { padding: 32px; gap: 14px; }
  .hero { height: clamp(380px, 52vh, 480px); }
  .cat-banner { height: 168px; }
  .cat-banner h2 { font-size: 38px; inset-inline-start: 24px; inset-block-end: 16px; }
  .loc { grid-template-columns: 1fr 1fr; }
  .menu-list-cols .items { column-count: 1; }
}
@media (min-width: 900px) {
  .wm-ar { font-size: 30px; } .wm-en { font-size: 12.5px; } .brand img { width: 52px; height: 52px; }
  .items.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .items.cols .item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .hero { margin-top: 14px; }
  .hero h1 { max-width: 20ch; }
  #results { scroll-margin-top: 160px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print { .menu-bar, .toast, .lang { display: none; } }

/* bilingual label helper */
.bi { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: .4em; }
.bi > span { white-space: nowrap; }
.disclosure .bi { justify-content: flex-start; }
.pill .bi { flex-direction: column; align-items: center; row-gap: 0; line-height: 1.35; }
.pill .bi-sep { display: none; }
.tag .bi, .pill.wide .bi { flex-direction: row; }
.pill.wide .bi-sep { display: inline; }
.hours li { flex-wrap: wrap; }
.hours .t { white-space: nowrap; }
.rating .num { direction: ltr; }
.f-price { display: flex; flex-direction: column; gap: 0; }
.fp { white-space: nowrap; display: block; }
.f-price small, .fp small { font-weight: 500; color: var(--soft); font-size: 12px; }

.disclosure .bi { flex-direction: column; align-items: flex-start; }
.disclosure .bi-sep { display: none; }
