/* ===== مطعم وديان الشامي — Stylesheet ===== */
:root {
  --bg: #150f10;
  --bg-soft: #1f1517;
  --card: #251a1c;
  --line: #3c2a2d;
  --text: #f7f3ef;
  --muted: #bda6a4;
  --flame-1: #8f0605;   /* lifted from logo #6f0201 */
  --flame-2: #e07069;   /* rose accent from logo */
  --flame: linear-gradient(135deg, var(--flame-1), #c23a32);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -100px, rgba(164,22,20,.08), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
[dir="ltr"] body { letter-spacing: .01em; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.hidden { display: none !important; }

h1, h2, h3, .brand-name { font-family: "Cairo", "Tajawal", sans-serif; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn.flame {
  background: var(--flame); color: #fff7f2;
  box-shadow: 0 6px 20px rgba(164,22,20,.35);
}
.btn.flame:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(164,22,20,.45); }
.btn.outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--flame-2);
}
.btn.outline:hover { background: rgba(224,112,105,.12); transform: translateY(-2px); }
.btn.ghost { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.add-btn { padding: 9px 16px; font-size: .95rem; }
.icon-btn {
  background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
}
.icon-btn:hover { background: var(--bg-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(21,15,16,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px var(--line); }
.brand-name { font-weight: 900; font-size: 1.25rem; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: all .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(224,112,105,.08); }
.nav-link.active { color: #fff7f2; background: rgba(164,22,20,.25); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-header-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; }
[dir="ltr"] .cart-header-btn span[data-i18n] { order: -1; }
.cart-count {
  position: absolute; top: -7px; inset-inline-end: -7px;
  background: var(--flame-1); color: #fff7f2; font-weight: 800; font-size: .72rem;
  min-width: 19px; height: 19px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,15,16,.55) 0%, rgba(21,15,16,.82) 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(164,22,20,.15); border: 1px solid rgba(224,112,105,.4);
  color: var(--flame-2); font-weight: 700; margin-bottom: 18px;
}
.flame-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--flame-2);
  box-shadow: 0 0 10px var(--flame-2);
  animation: flamePulse 1.6s ease-in-out infinite;
}
@keyframes flamePulse { 50% { transform: scale(1.5); opacity: .6; } }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.25; }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.3rem); color: var(--muted); margin-top: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--text); font-weight: 600; }
.hero-meta small { color: var(--muted); font-weight: 400; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--flame-2); flex-shrink: 0; }
.rating { color: var(--flame-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ===== Sections ===== */
.sec-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900;
  margin: 54px 0 26px; position: relative; display: inline-block;
}
.sec-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -8px;
  width: 56px; height: 4px; border-radius: 4px; background: var(--flame);
}

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(224,112,105,.45); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(164,22,20,.18); border: 1px solid rgba(224,112,105,.35);
}
.service-icon svg { width: 26px; height: 26px; color: var(--flame-2); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--flame-2); }
.service-card p { color: var(--muted); font-size: .98rem; }

/* ===== Page banner (menu page) ===== */
.page-banner {
  background:
    radial-gradient(700px 260px at 85% -60px, rgba(164,22,20,.22), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-block: 34px;
}
.page-banner h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900; }
.page-banner p { color: var(--muted); margin-top: 4px; }
.page-banner #searchInput {
  width: min(360px, 100%); flex-shrink: 0;
}
#searchInput {
  padding: 13px 20px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 1rem;
  outline: none; transition: border-color .2s ease;
}
#searchInput:focus { border-color: var(--flame-1); }
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 4px;
  background: rgba(21,15,16,.92); backdrop-filter: blur(10px);
  scrollbar-width: none; margin-inline: -4px;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 9px 20px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
  font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: all .2s ease;
}
.cat-chip.active, .cat-chip:hover { background: var(--flame); color: #fff7f2; border-color: transparent; }

/* ===== Menu items ===== */
.cat-block { padding-top: 24px; scroll-margin-top: calc(var(--header-h) + 74px); }
.cat-heading { font-size: 1.45rem; font-weight: 900; margin: 18px 0 20px; color: var(--flame-2); }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.item-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.item-card:hover { transform: translateY(-4px); border-color: rgba(224,112,105,.4); box-shadow: var(--shadow); }
.item-photo { aspect-ratio: 16/11; width: 100%; object-fit: cover; display: block; background: var(--bg-soft); }
.no-photo {
  aspect-ratio: 16/11; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(200px 130px at 30% 20%, rgba(164,22,20,.18), transparent),
    repeating-linear-gradient(45deg, #2a1c1e 0 14px, #231719 14px 28px);
  color: rgba(247,243,239,.35);
}
.no-photo.mini { aspect-ratio: 1/1; width: 64px; border-radius: 10px; flex-shrink: 0; }
.no-photo.mini svg { width: 26px; height: 26px; }
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.item-title { font-size: 1.06rem; font-weight: 800; font-family: "Cairo", sans-serif; }
.item-desc { color: var(--muted); font-size: .88rem; min-height: 2.4em; }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.size-pill {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted); font-family: inherit;
  font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.size-pill.active { background: var(--flame); color: #fff7f2; border-color: transparent; }
.size-label { font-size: .78rem; color: var(--muted); }

/* QR menu — display-only cards */
.item-card.readonly { cursor: default; }
.item-card.readonly:hover { transform: none; border-color: var(--line); box-shadow: none; }
.size-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.size-list span {
  color: var(--muted); font-size: .85rem;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.size-list b { color: var(--text); font-weight: 700; }
.item-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.price { font-size: 1.18rem; font-weight: 900; color: var(--flame-2); white-space: nowrap; }
.price small { font-size: .75rem; font-weight: 600; }
.no-results { text-align: center; color: var(--muted); padding: 60px 0; font-size: 1.1rem; }

/* ===== Catering form ===== */
.catering { margin-top: 60px; }
.catering-intro { color: var(--muted); max-width: 640px; margin: -12px 0 24px; }
.catering-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .92rem; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 1rem;
  outline: none; transition: border-color .2s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--flame-1); }
.field input.invalid, .field select.invalid { border-color: #e05252; }
.field ::placeholder { color: #8a7570; opacity: 1; }
.field select option { background: var(--bg-soft); color: var(--text); }
input[type="date"] { color-scheme: dark; }
.catering-form .btn { margin-top: 20px; }

/* ===== About strip ===== */
.about-strip { margin-top: 60px; background: var(--bg-soft); border-block: 1px solid var(--line); padding: 26px 0; }
.about-strip em { color: var(--muted); font-style: normal; font-size: .85rem; }
.about-strip strong { color: var(--flame-2); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: stretch; }
.contact-card, .map-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.contact-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-card h3 { color: var(--flame-2); margin-bottom: 4px; }
.contact-line {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-size: 1.02rem;
}
.contact-line svg { color: var(--flame-2); flex-shrink: 0; }
a.contact-line:hover span:last-child { color: var(--flame-2); }
.contact-line em { font-style: normal; color: var(--muted); font-size: .82rem; }
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ===== Footer ===== */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 34px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.brand-col { gap: 14px; }
.footer-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px var(--line); }
.footer-about { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer-col h4 {
  font-family: "Cairo", sans-serif; color: var(--flame-2);
  font-size: 1rem; margin-bottom: 6px;
}
.footer-col a, .footer-col span { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--flame-2); }
.copyright {
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: .88rem; padding-block: 18px;
}
.site-footer.slim { margin-top: 60px; padding: 0; }
.site-footer.slim .copyright { border-top: none; }

/* ===== Cart drawer ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90;
  opacity: 1; transition: opacity .25s ease;
}
.drawer {
  position: fixed; z-index: 100; top: 0; bottom: 0; right: 0;
  width: min(420px, 94vw); background: var(--bg-soft);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.22,.9,.36,1);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px;
}
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ci-info { flex: 1; }
.ci-name { font-weight: 700; font-size: .95rem; }
.ci-size { color: var(--muted); font-size: .8rem; }
.ci-price { color: var(--flame-2); font-weight: 800; font-size: .9rem; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--flame-1); color: var(--flame-2); }
.qty-num { min-width: 22px; text-align: center; font-weight: 800; }
.ci-remove {
  align-self: start; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1rem;
}
.ci-remove:hover { color: #ff6b6b; }
.drawer-empty { text-align: center; color: var(--muted); padding: 46px 20px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 14px; }
.total-row strong { color: var(--flame-2); }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 700; font-size: .9rem; color: var(--muted); }
.field input, .field textarea, .field select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-family: inherit; font-size: .95rem; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #ff6b6b; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 10px; top: 10px; width: auto; height: auto; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== WhatsApp bubble ===== */
.wa-bubble {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.wa-bubble:hover { transform: scale(1.1); }
.wa-bubble svg { display: block; }
.wa-bubble::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,.5); animation: waPulse 2s ease-out infinite; z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ===== Floating order button (menu page) ===== */
.order-fab {
  position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 24px 10px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--flame); color: #fff7f2; font-family: inherit; text-align: start;
  box-shadow: 0 12px 34px rgba(164,22,20,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
[dir="ltr"] .order-fab { transform: translateX(-50%); }
.order-fab:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 16px 40px rgba(164,22,20,.65); }
.of-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
}
.of-text { display: flex; flex-direction: column; line-height: 1.3; }
.of-text strong { font-size: .98rem; font-weight: 800; }
.of-text small { font-size: .8rem; opacity: .85; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #2b1d20; color: var(--text); border: 1px solid var(--line);
  padding: 11px 22px; border-radius: 999px; z-index: 120; opacity: 0;
  transition: all .3s ease; pointer-events: none; font-weight: 700; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(21,15,16,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }
  [dir="ltr"] .main-nav { left: 0; right: 0; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 14px; border-radius: 10px; font-size: 1rem; }
}

@media (max-width: 720px) {
  .hero { min-height: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
  .item-body { padding: 12px; }
  .item-desc { display: none; }
  .btn { font-size: .95rem; }
  .page-banner-inner { flex-direction: column; align-items: stretch; }
  .order-fab { bottom: 18px; }
}
