/* Menu Scan — public marketing site.
   Hand-rolled on purpose: the panel already ships hand-written CSS and the
   repo has no Node build step, so a Tailwind pipeline would be a new build
   dependency for six pages. RTL-first; LTR never ships on these pages. */

:root {
  --brand: #E25621;          /* decorative / large text only: 3.76:1 on white */
  --brand-ink: #C24515;      /* brand for normal-size text & fills: 5.05:1 on white */
  --brand-strong: #A83A10;   /* hover / emphasis: 6.41:1 */
  --gold: #8A5A00;           /* star ratings: 5.93:1 on white */
  --brand-soft: #FDEEE7;
  --accent: #F5A063;
  --ink: #1F2733;
  --ink-2: #4A5568;
  --ink-3: #5D6B7E;
  --paper: #FFFFFF;
  --paper-2: #F7F8FA;
  --line: #E4E8EE;
  --ok-bg: #EFFAF3;
  --ok-ink: #1F7A44;
  --ok-line: #BFE8CD;
  --err-bg: #FDF1F0;
  --err-ink: #B3372B;
  --err-line: #F3C8C2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 39, 51, .06), 0 8px 24px rgba(31, 39, 51, .07);
  --shadow-lg: 0 2px 4px rgba(31, 39, 51, .07), 0 16px 44px rgba(31, 39, 51, .12);
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; }
.h-hero { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.h-section { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: .5rem; }
.lead { color: var(--ink-2); font-size: 1.11rem; }
.kicker {
  display: inline-block; color: var(--brand-ink); background: var(--brand-soft);
  font-weight: 700; font-size: .84rem; padding: .25rem .8rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; cursor: pointer; border: 0;
  padding: .8rem 1.7rem; border-radius: 12px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-ink); outline-offset: 2px;
}
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--brand-soft); }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.6rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; }
.brand img { height: 36px; width: 36px; }
.main-nav { display: none; gap: 1.4rem; align-items: center; }
.main-nav a { color: var(--ink-2); font-weight: 500; padding: .3rem 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand-ink); }
.header-cta { display: none; align-items: center; gap: .8rem; margin-inline-start: auto; }
.nav-toggle {
  margin-inline-start: auto; background: none; border: 0; cursor: pointer;
  padding: .45rem; border-radius: 10px; color: var(--ink);
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle svg { display: block; }

/* Kept focusable on purpose: display:none would remove the only way to open
   the mobile menu with a keyboard. */
#nav-open-state { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
#nav-open-state:focus-visible ~ .container .nav-toggle {
  outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff;
  max-height: calc(100vh - 68px); overflow-y: auto; }
#nav-open-state:checked ~ .mobile-nav { display: block; }
.mobile-nav .container { display: grid; gap: .2rem; padding-top: .8rem; padding-bottom: 1.1rem; }
.mobile-nav a { padding: .65rem .4rem; border-radius: 10px; font-weight: 500; color: var(--ink-2); }
.mobile-nav a:hover { background: var(--paper-2); color: var(--brand-ink); }
.mobile-nav .btn { margin-top: .5rem; }

@media (min-width: 900px) {
  .main-nav, .header-cta { display: flex; }
  .nav-toggle, .mobile-nav, #nav-open-state:checked ~ .mobile-nav { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--paper-2); }

/* ---------- hero ---------- */
.hero { padding: 4.6rem 0 4.2rem; background:
  radial-gradient(1200px 500px at 15% -10%, var(--brand-soft), transparent 60%),
  var(--paper); }
.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
.hero-copy .lead { margin: 1rem 0 1.8rem; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin-top: .9rem; color: var(--ink-3); font-size: .92rem; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.6rem;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* phone mock-up drawn in CSS: a QR menu, not a stock photo */
.mock-phone {
  width: min(290px, 100%); margin: 0 auto; background: var(--ink);
  border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lg);
}
.mock-screen { background: #fff; border-radius: 24px; overflow: hidden; }
.mock-topbar { padding: .9rem 1rem .7rem; color: #fff; font-weight: 700;
  background: var(--brand-ink); }
.mock-topbar small { display: block; font-weight: 400; opacity: .95; }
.mock-dish { display: flex; gap: .7rem; align-items: center; padding: .68rem .9rem;
  border-bottom: 1px solid var(--paper-2); }
.mock-dish .thumb { width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent)); }
.mock-dish .t { font-weight: 700; font-size: .9rem; }
.mock-dish .p { margin-inline-start: auto; color: var(--brand-ink); font-weight: 800; font-size: .88rem; }
.mock-dish small { color: var(--ink-3); display: block; font-size: .74rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: .9rem;
  background: var(--brand-ink); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.step h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.step p { color: var(--ink-2); font-size: .97rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- feature groups ---------- */
.feature-groups { display: grid; gap: 1.4rem; }
.feature-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow); }
.feature-group > .icon { width: 46px; height: 46px; border-radius: 13px; display: flex;
  align-items: center; justify-content: center; background: var(--brand-soft);
  color: var(--brand-ink); margin-bottom: 1rem; }
.feature-group h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.feature-group ul { display: grid; gap: .45rem; }
.feature-group li { position: relative; padding-inline-start: 1.4rem; color: var(--ink-2);
  font-size: .97rem; }
.feature-group li::before { content: ''; position: absolute; inset-inline-start: 0; top: .52em;
  width: .55em; height: .55em; border-radius: 3px; background: var(--accent); }
@media (min-width: 900px) { .feature-groups { grid-template-columns: repeat(3, 1fr); } }

/* detailed feature page blocks */
.feature-detail { display: grid; gap: 1.2rem; }
.feature-detail article { background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.feature-detail h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.07rem;
  margin-bottom: .4rem; }
.feature-detail h2 svg { color: var(--brand-ink); flex: none; }
.feature-detail p { color: var(--ink-2); font-size: .97rem; }
.badge-soon { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-3);
  border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .1rem .6rem; }
@media (min-width: 760px) { .feature-detail { grid-template-columns: repeat(2, 1fr); } }

/* ---------- restaurant cards ---------- */
.rest-grid { display: grid; gap: 1.3rem; }
.rest-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; }
.rest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rest-cover { height: 120px; display: flex; align-items: center; justify-content: center; }
.rest-cover img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.rest-cover .ph { width: 84px; height: 84px; border-radius: 50%; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; color: #fff; }
.rest-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.rest-body .row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rest-body h3, .rest-body h2 { font-size: 1.06rem; overflow-wrap: anywhere; }
.rate { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: .25rem;
  font-size: .92rem; }
.rest-links { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.rest-links .menu-link { color: var(--brand-ink); font-weight: 700; }
.rest-links .menu-link:hover { text-decoration: underline; }
.rest-links .rate-link { color: var(--ink-3); font-size: .9rem; }
.rest-links .rate-link:hover { color: var(--ink); }
@media (min-width: 640px) { .rest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rest-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.4rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand-ink); border-width: 2px; position: relative; }
.plan.featured::before { content: 'الأكثر طلباً'; position: absolute; top: -14px;
  inset-inline-start: 1.4rem; background: var(--brand-ink); color: #fff; font-size: .78rem;
  font-weight: 700; border-radius: 999px; padding: .18rem .8rem; }
.plan h2 { font-size: 1.2rem; }
.plan .tagline { color: var(--ink-3); font-size: .92rem; margin: .2rem 0 1rem; }
.plan .price { font-size: 1.5rem; font-weight: 800; color: var(--brand-ink); margin-bottom: 1.1rem; }
.plan .price small { color: var(--ink-3); font-weight: 500; font-size: .85rem; }
.plan ul { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.plan li { position: relative; padding-inline-start: 1.6rem; color: var(--ink-2); font-size: .96rem; }
.plan li.na { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line); }
.plan li svg { position: absolute; inset-inline-start: 0; top: .28em; }
.plan .btn { margin-top: auto; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- testimonials & stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr);
  text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.stat b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--brand-ink); }
.stat span { color: var(--ink-3); font-size: .93rem; }
.quotes { display: grid; gap: 1.2rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.quote p { color: var(--ink-2); }
.quote footer { margin-top: .8rem; display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-3); font-size: .9rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.3rem; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--brand-ink); font-weight: 500;
  transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-top: .7rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-ink), var(--brand-strong)); color: #fff; }
.cta-band .inner { text-align: center; padding: 3.6rem 0; }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: .6rem; }
.cta-band p { opacity: .92; margin-bottom: 1.6rem; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 2rem 1.7rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.field .hint { color: var(--ink-3); font-size: .84rem; margin-top: .3rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 11px; padding: .72rem .95rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-ink); background: #fff;
}
.field input[type="color"] { padding: .25rem; height: 48px; cursor: pointer; }
.field .errorlist, .field .error { color: var(--err-ink); font-size: .86rem; margin-top: .35rem;
  list-style: none; padding: 0; }
.flash { border-radius: 12px; padding: .95rem 1.2rem; margin-bottom: 1.1rem; font-weight: 500; }
.flash-success { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.flash-error { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 0; height: 0; overflow: hidden; }

/* auth pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center;
  padding: 3rem 0; background:
  radial-gradient(900px 420px at 15% -10%, var(--brand-soft), transparent 60%), var(--paper-2); }
.auth-card { width: min(460px, 100%); }
.auth-card .brand { justify-content: center; margin-bottom: 1.4rem; }
.auth-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; color: var(--ink-3); margin-bottom: 1.6rem; font-size: .95rem; }
.auth-alt { text-align: center; margin-top: 1.3rem; color: var(--ink-2); font-size: .95rem; }
.auth-alt a { color: var(--brand-ink); font-weight: 700; }
.color-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* contact page */
.contact-grid { display: grid; gap: 1.6rem; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-info .item { display: flex; gap: .85rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.contact-info .item svg { color: var(--brand-ink); flex: none; margin-top: .2rem; }
.contact-info b { display: block; }
.contact-info span { color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }

/* legal pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: .4rem; }
.prose .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-inline-start: 1.4rem; display: grid; gap: .35rem; }

/* themes / demo */
.theme-grid { display: grid; gap: 1.3rem; }
.theme-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); }
.theme-card h3, .theme-card h2 { margin-bottom: .3rem; }
.theme-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }
.theme-preview { border-radius: 12px; height: 130px; margin-bottom: 1rem; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--paper-2) 55%, var(--brand-soft)); position: relative;
  overflow: hidden; }
.theme-preview::before { content: ''; position: absolute; inset-inline: 18%; top: 14px; height: 10px;
  border-radius: 6px; background: var(--line); }
.theme-preview::after { content: ''; position: absolute; inset-inline: 8%; top: 40px; bottom: 16px;
  border-radius: 10px; background: repeating-linear-gradient(180deg, #fff 0 22px, var(--paper-2) 22px 24px); }
@media (min-width: 860px) { .theme-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CBD5E0; padding: 3.4rem 0 1.6rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.2rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand img { filter: invert(1); }
.site-footer p { font-size: .95rem; color: #A0AEC0; max-width: 30rem; }
.site-footer ul { display: grid; gap: .45rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  color: #A0AEC0; font-size: .9rem; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--brand-ink); color: #fff; font-weight: 700; padding: .6rem 1.2rem;
  border-radius: 0 0 10px 10px; transition: top .15s ease; }
.skip-link:focus { top: 0; }
.steps--plain .step::before { content: none; }
.site-footer .footer-title { color: #fff; margin-bottom: .9rem; font-size: 1rem; font-weight: 800; }
