/* ═══════════════════════════════════════════════════════════════
   بيتزا لمياء — موقع تعريفي · CSS خالص (بلا أطر عمل)
   الهوية: برتقالي #F0693F · داكن #363433 · أخضر #189D1D
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand: #F0693F;
  --brand-dark: #C05432;
  --brand-soft: #FDE4DA;
  --ink: #363433;
  --green: #189D1D;
  --green-soft: #E3F5E4;
  --red: #C62828;
  --red-soft: #FDE2E2;

  --bg: #FFF9F4;
  --bg-alt: #FDF1E8;
  --card: #FFFFFF;
  --fg: #2A2725;
  --muted: #6F6761;
  --line: #EFE2D8;
  --shadow: 0 6px 24px rgba(54, 52, 51, .08);
  --shadow-lg: 0 14px 40px rgba(54, 52, 51, .14);
  --skeleton-a: #F1E8E1;
  --skeleton-b: #FAF3EE;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --header-h: 64px;
  --font: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #4A2A1E;
    --green-soft: #1C3A1E;
    --red-soft: #4A1F1F;
    --bg: #1A1817;
    --bg-alt: #221F1D;
    --card: #2A2725;
    --fg: #F3EEEA;
    --muted: #B3A9A1;
    --line: #3A3532;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
    --skeleton-a: #322E2B;
    --skeleton-b: #3B3633;
  }
}
:root[data-theme="dark"] {
  --brand-soft: #4A2A1E;
  --green-soft: #1C3A1E;
  --red-soft: #4A1F1F;
  --bg: #1A1817;
  --bg-alt: #221F1D;
  --card: #2A2725;
  --fg: #F3EEEA;
  --muted: #B3A9A1;
  --line: #3A3532;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .5);
  --skeleton-a: #322E2B;
  --skeleton-b: #3B3633;
}

/* ── الأساس ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── الأزرار ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(240, 105, 63, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(24, 157, 29, .3); }
.btn-green:hover { filter: brightness(1.08); }
.btn-soft { background: var(--card); color: var(--fg); border-color: var(--line); }
.btn-soft:hover { border-color: var(--brand); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-block { width: 100%; }

/* ── الترويسة ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand-circle { background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); display: inline-flex; }
.brand b { font-size: 1.15rem; font-weight: 800; color: var(--brand); white-space: nowrap; }
.nav { display: none; gap: 4px; margin-inline-start: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.header-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.header-cta .btn { min-height: 42px; padding: 6px 18px; font-size: .95rem; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 8px 0 12px; border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; font-weight: 700; }
.mobile-nav a:hover { background: var(--brand-soft); color: var(--brand); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ── الأقسام ──────────────────────────────────────────────────── */
section { padding: 56px 0; scroll-margin-top: calc(var(--header-h) + 8px); }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow {
  display: inline-block; color: var(--brand); font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  background: var(--brand-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; margin-inline: auto; }

/* ── البطل (Hero) ─────────────────────────────────────────────── */
.hero { padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: var(--brand); inset-inline-start: -120px; top: -100px; }
.hero::after { width: 260px; height: 260px; background: var(--green); inset-inline-end: -100px; bottom: -120px; opacity: .25; }
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; }
.hero-logo {
  width: min(78vw, 360px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
  background: #fff; display: grid; place-items: center; padding: 9%;
  box-shadow: var(--shadow-lg), 0 0 0 12px color-mix(in srgb, var(--brand) 18%, transparent);
  animation: float 6s ease-in-out infinite;
}
.hero-logo img { width: 72%; height: auto; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-text { text-align: center; }
.hero-text h1 { font-size: clamp(2rem, 7vw, 3.4rem); color: var(--brand); }
.hero-text h1 > span { color: var(--fg); display: block; font-size: .5em; font-weight: 700; margin-top: 4px; }
.hero-text h1 > span span { color: var(--brand); }
.hero-text .lead { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 600;
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-text { text-align: start; }
  .hero-actions, .hero-badges { justify-content: flex-start; }
}

/* ── شارة مفتوح/مغلق ─────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px;
  font-weight: 800; font-size: .92rem; border: 1px solid transparent;
}
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.open { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.status.open::before { animation: pulse 1.8s infinite; }
.status.closed { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.status.pending { background: var(--bg-alt); color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* ── تحميل التطبيق ────────────────────────────────────────────── */
.dl-grid { display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.dl-card { display: flex; flex-direction: column; gap: 10px; }
.dl-card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.dl-card .ic svg { width: 28px; height: 28px; }
.dl-card h3 { font-size: 1.15rem; }
.dl-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.dl-card ol { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: .95rem; flex: 1; }
.dl-card .btn { margin-top: 6px; }
.qr-card { text-align: center; align-items: center; }
.qr-card img { width: 200px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: var(--shadow); }
.note { font-size: .85rem; color: var(--muted); }
@media (min-width: 700px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── القائمة ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; color: var(--muted); transition: all .15s;
}
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(240, 105, 63, .3); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }
.item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
  transition: transform .2s, box-shadow .2s; animation: rise .35s ease both;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.item-img { aspect-ratio: 1; background: var(--bg-alt); position: relative; overflow: hidden; }
.item-img img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.item-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); }
.item-img .ph svg { width: 44%; height: 44%; opacity: .7; }
.item.off .item-img img { filter: grayscale(.9) brightness(.85); }
.badge {
  position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 800; color: #fff; background: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.badge.off { background: var(--ink); inset-inline-start: auto; inset-inline-end: 8px; }
.item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-body h3 { font-size: 1rem; }
.item-body .desc {
  color: var(--muted); font-size: .82rem; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { color: var(--brand); font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.price small { font-size: .78em; font-weight: 700; margin-inline-start: 3px; }

/* هياكل التحميل */
.sk { background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 50%, var(--skeleton-a) 75%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-item { aspect-ratio: .78; border-radius: var(--radius); }
.sk-card { height: 180px; border-radius: var(--radius); }

.state { text-align: center; color: var(--muted); padding: 28px 12px; }
.state .btn { margin-top: 12px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; font-weight: 600; }

/* ── العروض ───────────────────────────────────────────────────── */
.offers-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offers-grid { grid-template-columns: repeat(3, 1fr); } }
.offer {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 210px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg);
  isolation: isolate; animation: rise .4s ease both; transition: transform .2s;
}
.offer:hover { transform: translateY(-3px); }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.offer.half img { width: 50%; inset-inline-start: auto; inset-inline-end: 0; }
.offer.half.contain img { object-fit: contain; padding: 8px; }
.offer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 65%); }
.offer.half::after { background: none; }
.offer-body { padding: 18px; position: relative; }
.offer.half .offer-body { width: 50%; margin-inline-end: auto; }
.offer h3 { font-size: 1.3rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.offer.lg h3 { font-size: 1.6rem; }
.offer p { font-size: .95rem; white-space: pre-line; opacity: .95; text-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.offer .tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--green); color: #fff; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.offer .bundle-price { display: inline-block; margin-top: 8px; background: #fff; color: var(--brand-dark); padding: 2px 14px; border-radius: 999px; font-weight: 800; }

/* ── الفروع ───────────────────────────────────────────────────── */
.branches { display: grid; gap: 20px; }
@media (min-width: 900px) { .branches { grid-template-columns: repeat(2, 1fr); } }
.branch { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.branch-map { aspect-ratio: 16 / 9; background: var(--bg-alt); position: relative; }
.branch-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.branch-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.branch-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.branch h3 { font-size: 1.2rem; }
.branch .addr { color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.branch .addr svg, .branch .hrs svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 4px; }
.branch .hrs { display: flex; gap: 8px; align-items: flex-start; }
.branch .hrs b { font-weight: 800; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.branch-actions .btn { min-height: 42px; padding: 6px 16px; font-size: .92rem; flex: 1; }
details.week { border-top: 1px solid var(--line); padding-top: 8px; }
details.week summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; display: flex; align-items: center; gap: 6px; }
details.week summary::-webkit-details-marker { display: none; }
details.week summary::after { content: '▾'; transition: transform .2s; }
details.week[open] summary::after { transform: rotate(180deg); }
.week-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.week-table td { padding: 5px 4px; border-bottom: 1px dashed var(--line); }
.week-table td:last-child { text-align: left; font-variant-numeric: tabular-nums; }
.week-table tr.today td { color: var(--brand); font-weight: 800; }
.week-table td.closed { color: var(--red); }

/* ── من نحن ───────────────────────────────────────────────────── */
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }
.about-text h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.about-text h2 span { color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center; }
.fact b { display: block; color: var(--brand); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.fact span { font-size: .85rem; color: var(--muted); }
.about-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 0; }
.about-art .tile { aspect-ratio: 1; border-radius: var(--radius); background: var(--bg-alt); overflow: hidden; box-shadow: var(--shadow); }
.about-art .tile img { width: 100%; height: 100%; object-fit: cover; }
.about-art .tile:nth-child(2) { transform: translateY(18px); }
.about-art .tile:nth-child(3) { transform: translateY(-18px); }
.about-art .tile.brand { background: var(--brand); display: grid; place-items: center; padding: 18%; }
.about-art .tile.brand img { object-fit: contain; }
.about-art .tile.quote { display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 800; color: var(--brand); font-size: 1.1rem; background: var(--card); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ── تواصل ────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-card .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.contact-card .ic.green { background: var(--green-soft); color: var(--green); }
.contact-card .ic svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card .num { direction: ltr; font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }
.contact-card p { color: var(--muted); font-size: .92rem; }

/* ── التذييل ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #E9E4DF; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 24px; }
.footer-brand .circle { background: #fff; border-radius: 999px; padding: 10px; display: inline-flex; }
.footer-brand .circle img { width: 64px; height: 64px; }
.footer-brand p { color: #B9B1AB; margin-top: 10px; font-size: .95rem; max-width: 420px; }
.site-footer h4 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #CFC7C1; }
.footer-links a:hover { color: var(--brand); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #A59C95; text-align: center; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ── زرّ طلب عائم على الهاتف ─────────────────────────────────── */
.fab {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; z-index: 40;
  box-shadow: 0 10px 28px rgba(240, 105, 63, .45); opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .fab { display: none; } }
