/* Kamel El Menofy — digital menu
   Palette and type match the approved website (app/globals.css):
   cream #f2e4cc, ivory #f4ead7, ink #231913, red #941b20, gold #d3aa4d */

:root {
  --cream: #f2e4cc;
  --ivory: #f4ead7;
  --ink: #231913;
  --red: #941b20;
  --gold: #d3aa4d;
  --line: #23191326;
  --line-strong: #23191345;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.9 Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { line-height: 2; }

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: 1000;
  background: var(--ivory);
  padding: 12px 16px;
  border-radius: 4px;
}
.skip:focus { top: 8px; }

h1, h2, h3 {
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', Georgia, serif;
  letter-spacing: 0;
}

/* ---------- Header ---------- */
.menu-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 2px 10px #00000030;
}
.menu-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.menu-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.menu-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.menu-title-ar {
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', Georgia, serif;
  font-size: 19px;
}
.menu-title-en {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
[dir="ltr"] .menu-title-ar { display: none; }
[dir="rtl"] .menu-title-en { display: none; }
[dir="ltr"] .menu-title { align-items: flex-start; }
[dir="ltr"] .menu-title-en { font-size: 17px; text-transform: none; letter-spacing: 0.02em; color: var(--ivory); }

.lang-toggle {
  flex: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: Georgia, serif;
}
.lang-toggle:active { background: var(--gold); color: var(--ink); }

.cat-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px 10px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ivory);
  background: #ffffff14;
  white-space: nowrap;
}
.cat-tab.active {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 9px 16px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
[dir="rtl"] .draft-banner { font-family: 'Geeza Pro', 'Noto Naskh Arabic', Georgia, serif; font-size: 13.5px; }

/* ---------- Category sections ---------- */
#menuSections { max-width: 720px; margin: 0 auto; padding: 8px 16px 8px; }

.cat-section {
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
}
.cat-section:first-child { border-top: 0; padding-top: 22px; }

.cat-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.cat-heading .cat-ar {
  font-size: 26px;
}
.cat-heading .cat-en {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-family: Arial, sans-serif;
}
[dir="ltr"] .cat-heading .cat-ar { display: none; }
[dir="rtl"] .cat-heading .cat-en { display: none; }
[dir="ltr"] .cat-heading .cat-en { font-size: 26px; letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-family: Georgia, serif; }

.cat-rule {
  height: 1px;
  background: var(--line-strong);
  margin: 10px 0 14px;
}

/* weight-column header for grills */
.weight-head {
  display: grid;
  grid-template-columns: 1fr repeat(3, 56px);
  gap: 6px;
  padding: 0 0 8px;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.04em;
  border-bottom: 1px dashed var(--line-strong);
  margin-bottom: 4px;
}
.weight-head span { text-align: center; }
.weight-head span:first-child { text-align: start; visibility: hidden; }

.item-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item-row:last-child { border-bottom: 0; }

.item-row.grid3 {
  display: grid;
  grid-template-columns: 1fr repeat(3, 56px);
  gap: 6px;
  align-items: center;
}
.item-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.item-name .n-ar {
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', Georgia, serif;
  font-size: 16.5px;
}
.item-name .n-en {
  font-size: 12px;
  color: #231913a0;
  margin-top: 2px;
}
[dir="ltr"] .item-name .n-ar { display: none; }
[dir="rtl"] .item-name .n-en { display: none; }
[dir="ltr"] .item-name .n-en { font-size: 16px; color: var(--ink); margin-top: 0; font-family: Arial, sans-serif; }

.price-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  white-space: nowrap;
}
.price-cell.dash { color: #23191355; }

.item-row.plain {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.item-row.plain .price-simple {
  font-variant-numeric: tabular-nums;
  color: var(--red);
  white-space: nowrap;
  font-size: 14.5px;
}
.egp {
  font-size: 11px;
  color: #23191380;
  margin-inline-start: 3px;
}

.flag {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 11px;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Notes ---------- */
.notes-section {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 26px 16px 40px;
  border-top: 1px solid var(--line-strong);
}
.notes-section h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.notes-list li {
  font-size: 13.5px;
  padding: 5px 0;
  color: #231913cc;
}
.notes-list li::before {
  content: "— ";
  color: var(--gold);
}
.notes-list li.notes-heading {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red) !important;
  padding-top: 4px;
}
.notes-list li.notes-heading::before { content: none; }
.notes-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: #23191399;
  font-style: italic;
}
[dir="rtl"] .notes-disclaimer { font-style: normal; }

/* ---------- Footer ---------- */
.menu-footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 30px 16px 40px;
}
.footer-logo { margin: 0 auto 10px; border-radius: 50%; }
.menu-footer p {
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', Georgia, serif;
  font-size: 16px;
  color: var(--gold);
}
[dir="ltr"] .menu-footer p { font-family: Georgia, serif; }
.footer-status {
  font-family: Arial, sans-serif !important;
  font-size: 11.5px !important;
  color: #f4ead799 !important;
  margin-top: 10px !important;
}

/* ---------- Back to top ---------- */
.top-btn {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--ivory);
  font-size: 18px;
  box-shadow: 0 4px 14px #00000040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 30;
}
.top-btn.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .menu-header-inner { padding: 14px 24px; }
  .menu-logo { width: 46px; height: 46px; }
  .cat-nav { padding: 0 24px 12px; }
  #menuSections { padding-inline: 24px; }
  .weight-head, .item-row.grid3 { grid-template-columns: 1fr repeat(3, 64px); }
}

@media (min-width: 860px) {
  .cat-heading .cat-ar { font-size: 30px; }
  .item-name .n-ar { font-size: 18px; }
}

@media print {
  .menu-header, .top-btn, .draft-banner { position: static; }
  .cat-nav { display: none; }
}
