/* components.css — UI patterns (مُعاد تلوينها عبر tokens) */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--space-2);
  height: var(--header-h); padding-inline: var(--space-3);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; }
.brand__mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.brand__name { font-size: 1.15rem; }
.nav { display: none; gap: var(--space-3); margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.site-header .btn--order { margin-inline-start: auto; }
.nav + .btn--order { margin-inline-start: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  transition: transform .12s ease, background .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--order { background: var(--accent); color: var(--primary); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.cart-count { background: var(--primary); color: #fff; border-radius: 999px; min-width: 1.4em; padding: 0 .35em; font-size: .8rem; text-align: center; }
.btn--order .cart-count { background: var(--primary); color: #fff; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background:
  radial-gradient(120% 80% at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }
.hero__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-3); }
.hero__eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.hero__title { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: .4rem 0 1rem; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: var(--space-3) 0 var(--space-2); }
.hero__note { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: var(--space-5) 0; }
.section--alt { background: color-mix(in srgb, var(--primary) 4%, var(--bg)); }
.section__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: var(--space-3); position: relative; }
.section__title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: .6rem; }

/* Menu */
.menu { display: grid; gap: var(--space-4); }
.menu__section-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: var(--space-2); color: var(--ink); }
.menu__grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
.dish {
  display: flex; gap: var(--space-2); align-items: flex-start; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2);
}
.dish__info h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .2rem; }
.dish__desc { color: var(--muted); font-size: .92rem; }
.dish__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; }
.dish__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; white-space: nowrap; }
.dish__price { font-family: var(--font-head); font-weight: 700; }
.dish__add { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.3rem; line-height: 1; border: 0; }
.dish__add:hover { background: var(--accent); color: var(--primary); }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: start; background: none; border: 0; padding: var(--space-2) 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq__q::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq__q[aria-expanded="true"]::after { content: "−"; }
.faq__a { color: var(--muted); padding-bottom: var(--space-2); max-width: 70ch; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.contact-grid h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.hours { display: grid; gap: .25rem; color: var(--muted); }

/* Cart drawer */
.cart {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 60; width: min(420px, 92vw);
  background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  padding: var(--space-3); transform: translateX(0); animation: slideIn .2s ease;
}
[dir="rtl"] .cart { inset-inline-end: 0; }
@keyframes slideIn { from { transform: translateX(-8%); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.cart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.cart__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); }
.cart__list { flex: 1; overflow-y: auto; display: grid; gap: .6rem; }
.cart__row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.cart__qty { display: flex; align-items: center; gap: .5rem; }
.cart__qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); }
.cart__empty { color: var(--muted); padding: var(--space-3) 0; text-align: center; }
.cart__foot { border-top: 1px solid var(--line); padding-top: var(--space-2); display: grid; gap: .7rem; }
.cart__total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.cart__note { color: var(--muted); font-size: .85rem; text-align: center; }
.cart-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.4); }

/* Sticky order bar (mobile) */
.order-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: var(--primary); color: #fff; padding: .7rem var(--space-3); box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer { padding: var(--space-4) var(--space-3); text-align: center; border-top: 1px solid var(--line); color: var(--ink); }
.site-footer .muted { font-size: .85rem; margin-top: .3rem; }

/* Responsive */
@media (min-width: 720px) {
  .nav { display: flex; }
  .menu__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .order-bar { display: none !important; }
}
