/* الصفحات النصية (تصميم المواقع، المتاجر، الثلاثي، الإدارة) — 2026-09-25.
   نفس حمض الرئيسة بلا مشهد: حبر وورق وأحمر، Alan Sans للعناوين وZain للمتن، وحواف مشطوفة.
   الأزرق مرفوض (قرار 2026-09-25) والأخضر قبله. مشتركة بين الصفحات، ومولّدة صفحاتها من tools/pages.py */
@font-face{font-family:"Alan Sans";font-style:normal;font-weight:300 900;font-display:swap;src:url(/assets/fonts/alan-sans-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Alan Sans";font-style:normal;font-weight:300 900;font-display:swap;src:url(/assets/fonts/alan-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Zain";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/zain-400-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Zain";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/zain-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --ink: #0b0d12; --ink-2: #12151c; --paper: #f2f3f5; --mute: rgba(242,243,245,.74); --dim: rgba(242,243,245,.52);
  --red: #ff2e3f; --red-dim: rgba(255,46,63,.5); --line: rgba(242,243,245,.13);
  --display: "Alan Sans", system-ui, sans-serif; --body: "Zain", system-ui, sans-serif; --cut: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 18px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 6vw; }
.chamfer { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
bdi { font-family: var(--display); }

/* الهيدر: اللوقو والخدمات وزر الطلب */
.top { display: flex; align-items: center; gap: 28px; padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 18px; }
.top .logo { display: inline-flex; align-items: center; min-height: 44px; }
.top .logo img { height: 32px; width: auto; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; font-family: var(--display); font-size: 14px; font-weight: 700; }
.top nav a { color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--paper); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--paper);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: background .25s, color .25s; }
.btn:hover { background: var(--red); color: #fff; }
.btn.alt { color: var(--paper); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.alt:hover { color: var(--red); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* مسار الصفحة: يطابق BreadcrumbList في البيانات المنظمة */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 5vh; font-family: var(--display); font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); margin-inline-end: 10px; vertical-align: middle; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5vw; align-items: center; padding: 4vh 0 11vh; }
.kicker { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--red); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.22; margin-top: 12px; }
h1 span, h2 span { font-weight: 300; }
.lead { font-size: clamp(18px, 1.55vw, 21px); color: var(--mute); margin-top: 18px; max-width: 44ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero figure { position: relative; }
.hero figure img { width: 100%; }
.hero figure figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }

.block { padding: 10vh 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.3; max-width: 24ch; }
.intro { color: var(--mute); margin-top: 14px; max-width: 62ch; }
.intro + .intro { margin-top: 10px; }
.intro a, .qa a, .note a { color: var(--paper); text-decoration-color: var(--red-dim); text-underline-offset: 4px; }
.intro a:hover, .qa a:hover, .note a:hover { color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 36px; }
.card { background: var(--ink-2); border: 1px solid var(--line); padding: 22px 22px 24px; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.45; }
.card p { color: var(--mute); font-size: 16.5px; margin-top: 8px; }
.ticks { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.ticks li { color: var(--mute); font-size: 16.5px; line-height: 1.6; padding-inline-start: 16px; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.block > .wrap > .ticks { max-width: 62ch; margin-top: 24px; }

/* الباقات: المدة ظاهرة، وكل باقة زرها يفتح واتساب باسمها */
.pack { display: flex; flex-direction: column; }
.pack .tag { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--red); margin-top: 2px; }
.pack .when { font-size: 15px; color: var(--dim); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pack .go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--paper); }
.go::after { content: "←"; display: inline-block; margin-inline-start: 8px; color: var(--red); transition: transform .25s; }   /* السهم زخرفة لا نص */
.go:hover::after, .work:hover .go::after { transform: translateX(-5px); }
.note { color: var(--mute); margin-top: 22px; }

/* الأعمال: لقطة الموقع ثم اسمه ونوعه */
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* أربعة عملاء: صف واحد، مو ثلاثة ويتيم */
.work { text-decoration: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #07090d; }
.work .wb { padding: 16px 20px 20px; }
.work .wb p { font-size: 15px; margin-top: 4px; }
.work .wb .go { display: inline-block; margin-top: 10px; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--red); }
.work:hover h3 { color: var(--red); }

/* الخطوات: الرقم كبير والكلام تحته */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.steps li { background: var(--ink-2); border: 1px solid var(--line); padding: 20px 22px 22px; }
.steps b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); }
.steps p { color: var(--mute); font-size: 16.5px; margin-top: 10px; }

/* الأسئلة: ظاهرة كلها (مو أكورديون)، عشان محركات البحث والإجابة تقراها كما هي */
.faq { margin-top: 30px; max-width: 760px; }
.qa { padding: 24px 0; border-top: 1px solid var(--line); }
.qa h3 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.5; }
.qa p { color: var(--mute); margin-top: 8px; }

.ask { margin: 10vh 0 0; padding: 36px 36px 38px; background: var(--ink-2); border: 1px solid var(--red-dim); }
.ask p { color: var(--mute); margin-top: 12px; max-width: 54ch; }
.ask .small { font-size: 15px; color: var(--dim); margin-top: 16px; }

.foot { margin-top: 12vh; border-top: 1px solid var(--line); padding: 7vh 0 calc(9vh + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; font-size: 16px; color: var(--mute); }
.foot img { height: 30px; width: auto; }
.foot .fh { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--paper); margin-bottom: 8px; }
.foot ul { list-style: none; display: grid; gap: 2px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; color: var(--mute); }
.foot a:hover { color: var(--red); }
.foot p + p { margin-top: 6px; }
.foot .base { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* زر لاصق على الجوال: يطلع لما يغيب الهيرو، ويختفي عند صندوق الطلب */
.bar { display: none; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 8vh; }
  .steps, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .steps, .cards.four { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 8vh 0; }
  .ask { padding: 26px 20px 28px; }
  .ask .btn, .hero .btn { flex: 1 1 100%; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .bar { display: flex; position: fixed; right: 0; left: 0; bottom: 0; z-index: 20; padding: 10px 5vw calc(10px + env(safe-area-inset-bottom));
    background: rgba(11,13,18,.94); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s; }
  .bar.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .bar .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .bar, .bar.on, .btn, .go::after { transition: none; } }
