/* =========================================================================
   MZ FOOD — Design system
   Palette: warm ink + ivory paper + amber-gold accent + branded WhatsApp green
   Type: Playfair Display (display) + Manrope (body) for RU/EN,
         El Messiri (display) + Cairo (body) for AR
   ========================================================================= */

:root {
  --ink: #221a15;
  --ink-soft: #3a2f26;
  --text-secondary: #6b5d4f;
  --paper: #fbf7f1;
  --paper-alt: #f3ece0;
  --line: #e4dac9;
  --accent: #c08a2e;
  --accent-ink: #7a5a1e;
  --accent-soft: #f1e2c2;
  --whatsapp: #1fa855;
  --whatsapp-dark: #167a3d;
  --deep: #221a15;
  --deep-soft: #352a20;
  --deep-text: #fbf7f1;
  --deep-text-secondary: #cabfae;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(34, 26, 21, 0.07);
  --shadow-md: 0 16px 40px -20px rgba(34, 26, 21, 0.35);

  --content-width: 1160px;
  --content-width-narrow: 760px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

html[lang="ar"] {
  --font-display: "El Messiri", "Cairo", Tahoma, sans-serif;
  --font-body: "Cairo", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
p { margin: 0 0 var(--space-4); color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--content-width-narrow); }

section { padding-block: var(--space-9); }
section.section--tight { padding-block: var(--space-8); }
@media (max-width: 720px) {
  section { padding-block: var(--space-8); }
  .container { padding-inline: var(--space-4); }
}

.section-alt { background: var(--paper-alt); }
.section-deep { background: var(--deep); color: var(--deep-text); }
.section-deep h1, .section-deep h2, .section-deep h3 { color: var(--deep-text); }
.section-deep p { color: var(--deep-text-secondary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.section-deep .eyebrow { color: var(--deep); background: var(--accent); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: rgba(34,26,21,0.06); }
.section-deep .btn-outline { color: var(--deep-text); border-color: rgba(251,247,241,0.5); }
.section-deep .btn-outline:hover { background: rgba(251,247,241,0.1); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251,247,241,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand img { height: 36px; width: 36px; border-radius: 9px; object-fit: cover; }
.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { display: flex; gap: 2px; background: var(--paper-alt); border-radius: var(--radius-pill); padding: 3px; border: 1px solid var(--line); }
.lang-switch a { font-size: 0.78rem; font-weight: 800; padding: 5px 10px; border-radius: var(--radius-pill); color: var(--text-secondary); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.header-actions .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; overflow-y: auto; }
  .main-nav[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn.header-order-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-9); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero-content h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.hero-content .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-6); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--radius-pill); }
.hero-badge svg { width: 16px; height: 16px; color: var(--accent-ink); }
.hero-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: linear-gradient(160deg, var(--deep) 0%, #45351f 55%, var(--accent-ink) 130%); display: flex; align-items: flex-end; }
.hero-media-tag { position: absolute; top: var(--space-5); inset-inline-start: var(--space-5); background: var(--accent); color: var(--deep); font-weight: 800; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: var(--radius-pill); }
.hero-media-caption { color: #fff; padding: var(--space-6); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; order: -1; }
}

/* ---------- Why / feature grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Dish cards ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 980px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dish-grid { grid-template-columns: 1fr; } }

.dish-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.dish-photo {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, var(--paper-alt) 0 18px, #ecdfc8 18px 36px);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  position: relative;
  overflow: hidden;
}
.dish-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dish-photo span {
  font-size: 0.78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(251,247,241,0.9); padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.dish-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.dish-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.dish-weight { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); }
.dish-price { font-weight: 800; font-size: 1.05rem; font-family: var(--font-display); }
.dish-order-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 9px 16px; border-radius: var(--radius-pill); }
.dish-order-btn:hover { background: var(--whatsapp-dark); }
.dish-order-btn svg { width: 15px; height: 15px; }

.section-cta-row { display: flex; justify-content: center; margin-top: var(--space-7); }

/* ---------- Brand story ---------- */
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: center; }
.story-media { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--paper-alt); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-weight: 700; font-size: 0.85rem; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } .story-media { order: -1; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: start; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.95rem; }

/* ---------- Trust / location ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.trust-list li { display: flex; gap: var(--space-3); align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); }
.trust-list svg { width: 22px; height: 22px; color: var(--accent-ink); flex-shrink: 0; margin-top: 2px; }
.trust-list strong { display: block; margin-bottom: 2px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.final-cta .btn { padding: 18px 40px; font-size: 1.1rem; }
.final-cta-phone { margin-top: var(--space-5); font-size: 1.05rem; color: var(--deep-text-secondary); }
.final-cta-phone a { font-weight: 800; color: var(--deep-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-text-secondary); padding-block: var(--space-8) var(--space-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--deep-text); margin-bottom: var(--space-2); }
.footer-tag { font-size: 0.78rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; margin-bottom: var(--space-3); }
.footer-col h4 { color: var(--deep-text); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--deep-text); }
.footer-bottom { border-top: 1px solid rgba(251,247,241,0.14); margin-top: var(--space-7); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: 0.85rem; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(251,247,241,0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); gap: 10px;
  }
  .mobile-cta .btn { flex: 1; padding: 14px 10px; font-size: 0.95rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header { padding-block: var(--space-8) var(--space-7); }
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Menu page ---------- */
.menu-note { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: var(--space-8); }
.menu-category { margin-bottom: var(--space-8); }
.menu-category h2 { font-size: 1.4rem; padding-bottom: var(--space-3); border-bottom: 2px solid var(--accent); margin-bottom: var(--space-5); display: inline-block; }
.menu-items { display: grid; gap: var(--space-3); }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.menu-item-main { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.menu-item-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.menu-item-name { font-weight: 700; }
.menu-item-weight { font-size: 0.85rem; color: var(--text-secondary); }
.menu-item-price { font-weight: 800; font-family: var(--font-display); white-space: nowrap; }
.menu-offmenu { margin-top: var(--space-6); padding: var(--space-5); border: 1px dashed var(--line); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- About page ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 720px) { .principles-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews empty state ---------- */
.empty-state { text-align: center; max-width: 640px; margin-inline: auto; padding: var(--space-8) var(--space-6); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }

/* ---------- Contacts page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 720px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.contact-card h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); font-family: var(--font-body); margin-bottom: var(--space-2); }
.contact-card .value { font-size: 1.2rem; font-weight: 700; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: var(--space-10); }
.error-page .code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: var(--accent); }

/* ---------- RTL ---------- */
html[dir="rtl"] .steps, html[dir="rtl"] .grid-4, html[dir="rtl"] .grid-3 { text-align: right; }
html[dir="rtl"] .dish-foot, html[dir="rtl"] .menu-item, html[dir="rtl"] .footer-bottom, html[dir="rtl"] .empty-state-actions { direction: rtl; }
