/* =====================================================================
   موقع العرّاب — التنسيق (ألوان الشعار: أحمر، أصفر، تركواز)
   ===================================================================== */

:root {
  --red: #e52329;
  --red-dark: #b3161c;
  --red-soft: #fdecec;
  --yellow: #f4e423;
  --teal: #1e8fa0;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e7e7ea;
  --soft: #f6f6f8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- الشريط اللي فوق ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--red-soft); color: var(--red); }
.lang-btn {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer;
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; border: 0;
  cursor: pointer; font: inherit; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(229, 35, 41, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #111;
  color: #fff; padding: 10px 18px; border-radius: 14px; transition: transform .15s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; }
.store-badge b { display: block; font-size: 16px; line-height: 1.2; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- الواجهة ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244, 228, 35, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(229, 35, 41, .18), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  padding: 64px 0 72px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; margin: 0 0 14px; font-weight: 800; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo {
  justify-self: center; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); box-shadow: 0 30px 80px rgba(229, 35, 41, .18);
  display: grid; place-items: center; animation: float 6s ease-in-out infinite;
}
.hero-logo img { width: 86%; border-radius: 50%; }
@keyframes float { 50% { transform: translateY(-14px); } }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px;
}

/* ---------- الأقسام ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .eyebrow { color: var(--red); font-weight: 800; letter-spacing: .5px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 6px 0 8px; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.alt { background: var(--soft); }

/* المميزات */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); font-size: 26px; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* العروض */
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 85%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; justify-content: center; }
.offers img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius);
  scroll-snap-align: start; box-shadow: var(--shadow); }

/* المنيو */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px;
  justify-content: center; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--white); padding: 8px 18px;
  border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.tab.active, .tab:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img .tag {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff;
  padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; }
.card .desc { color: var(--muted); font-size: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--red); font-weight: 800; font-size: 17px; }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-inline-start: 6px; }
.placeholder { display: grid; place-items: center; height: 100%; font-size: 40px; color: #c4c4cc; }

/* الفروع */
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.branch {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.branch .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.branch h3 { margin: 0; font-size: 19px; }
.status { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.open { background: #e9f8ef; color: #16803c; }
.status.closed { background: var(--soft); color: var(--muted); }
.branch .row { display: flex; gap: 8px; color: var(--muted); font-size: 15px; }
.branch .links { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.branch .links a { font-size: 14px; padding: 8px 14px; }

/* التحميل */
.download {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff;
  border-radius: 28px; padding: 46px; display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center; position: relative; overflow: hidden;
}
.download::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(244, 228, 35, .18); inset-inline-end: -120px; top: -160px;
}
.download h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
.download p { margin: 0; opacity: .9; }
.download .stores { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* التواصل */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact a {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.contact a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact .ic { font-size: 30px; }
.contact b { display: block; margin-top: 6px; }
.contact span { color: var(--muted); font-size: 14px; direction: ltr; unicode-bidi: plaintext; }

/* ---------- الفوتر ---------- */
.footer { background: #14161a; color: #c9ccd1; padding: 44px 0 26px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a { display: block; padding: 3px 0; color: #c9ccd1; }
.footer a:hover { color: var(--yellow); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid #2a2d33; padding-top: 18px;
  font-size: 14px; text-align: center; }

/* زرار واتساب العايم */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- الصفحات النصية (الخصوصية، الشروط، حذف الحساب) ---------- */
.page { padding: 50px 0 80px; }
.page .paper {
  max-width: 820px; margin-inline: auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.page h1 { margin-top: 0; }
.page h2 { font-size: 20px; margin: 26px 0 6px; color: var(--red); }
.page p, .page li { color: #374151; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { font-weight: 700; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--soft); font: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); background: #fff; }
.alert { padding: 12px 16px; border-radius: 12px; display: none; }
.alert.ok { background: #e9f8ef; color: #16803c; display: block; }
.alert.err { background: #fff1f1; color: #b91c1c; display: block; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.show { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, #f0f0f2 25%, #e6e6ea 37%, #f0f0f2 63%);
  background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- الموبايل ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .actions, .badges { justify-content: center; }
  .hero-logo { order: -1; width: 220px; }
  .features, .contact { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; }
  .download .stores { justify-content: center; }
  .footer .container { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: #fff;
    flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; margin-inline-start: auto; }
  section { padding: 50px 0; }
  .page .paper { padding: 22px; }
}
@media (max-width: 380px) {
  .features, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature { padding: 16px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 13.5px; }
}

/* رابط "الرئيسية" في الصفحات النصية */
.back-link {
  margin-inline-start: auto; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; color: var(--muted);
}
.back-link:hover { background: var(--red-soft); color: var(--red); }

/* المنيو على الموبايل: صنفين جنب بعض */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .card .desc { font-size: 12.5px; }
  .price { font-size: 15px; }
  .price s { display: block; margin: 0; font-size: 12px; }
  .card .img .tag { font-size: 11px; padding: 1px 8px; }
}
