/* =========================================================
   Smart Deal — styles.css
   1. Tokens (light / dark)   2. Base   3. Components
   4. Header   5. Hero   6. Sticky CTA   7. Motion
   8. Sections shell + الخدمات/ماذا نشتري/نقل   9. الثقة
   10. الدعوة النهائية   11. الفوتر   12. الصفحات المساندة
   13. تحسينات التحويل   14. الخطوط المحلية
   ========================================================= */

/* ---------- 14. الخطوط المحلية (مقتطعة: عربي + لاتيني أساسي) ---------- */
/* مستضافة محليًا — لا يوجد أي طلب خارجي وقت التشغيل */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ReadexPro-500.woff2") format("woff2");
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ReadexPro-600.woff2") format("woff2");
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ReadexPro-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSansArabic-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSansArabic-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSansArabic-600.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;

  --header-h: 68px;
  /* ارتفاع الشريط الثابت فعليًا = 8px padding + 52px زر + 8px padding + 1px border = 69px
     نضيف هامش أمان 1px حتى لا يغطي آخر سطر في الفوتر */
  --sticky-h: 70px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 22px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  --c-bg: #F4F7F7;
  --c-surface: #FFFFFF;
  --c-surface-2: #E6EFEF;
  --c-ink: #0E2430;
  --c-ink-2: #48606A;
  --c-line: #D3DEDF;
  --c-brand: #0B5D6B;
  --c-brand-strong: #084852;
  --c-brand-soft: #D6EAED;
  --c-call: #F2A516;
  --c-call-strong: #DE9208;
  --c-on-call: #1E1404;
  --c-wa: #167A43;
  --c-wa-strong: #106437;
  --c-on-wa: #FFFFFF;
  --c-focus: #0B5D6B;
  --header-bg: rgba(244, 247, 247, .86);
  --sticky-bg: rgba(255, 255, 255, .92);
  --shadow-header: 0 10px 28px -20px rgba(14, 36, 48, .45);

  /* illustration */
  --ill-panel: #DDEBEC;
  --ill-dot: #BDD2D5;
  --ill-shadow: rgba(14, 36, 48, .12);
  --ill-sofa: #0B5D6B;
  --ill-sofa-back: #084852;
  --ill-sofa-light: #22808F;
  --ill-wood: #C08450;
  --ill-wood-dark: #9A6534;
  --ill-ink: #0E2430;
  --ill-cab: #2C4854;
  --ill-glass: #BFE1E6;
  --ill-surface: #FFFFFF;
  --ill-soft: #D3DEDF;
  --ill-house: #FFFFFF;
  --ill-roof: #0E2430;
  --ill-brand: #0B5D6B;
  --ill-brand-dark: #084852;
  --ill-accent: #F2A516;
  --ill-route: #0B5D6B;
  --ill-air: #7FB9C2;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0A171E;
  --c-surface: #10222B;
  --c-surface-2: #15303B;
  --c-ink: #E6EFF0;
  --c-ink-2: #A2B6BC;
  --c-line: #24414C;
  --c-brand: #4CC0CF;
  --c-brand-strong: #86D6E0;
  --c-brand-soft: #123945;
  --c-call: #F5B233;
  --c-call-strong: #FFC24F;
  --c-focus: #86D6E0;
  --header-bg: rgba(10, 23, 30, .84);
  --sticky-bg: rgba(16, 34, 43, .94);
  --shadow-header: 0 10px 28px -18px rgba(0, 0, 0, .8);

  --ill-panel: #122A34;
  --ill-dot: #1F3E4A;
  --ill-shadow: rgba(0, 0, 0, .35);
  --ill-sofa: #1C8394;
  --ill-sofa-back: #146673;
  --ill-sofa-light: #2FA0B1;
  --ill-wood: #A96F3F;
  --ill-wood-dark: #7F5028;
  --ill-ink: #06121A;
  --ill-cab: #2A4B58;
  --ill-glass: #7FC3CD;
  --ill-surface: #D9E6E8;
  --ill-soft: #A9BEC3;
  --ill-house: #D9E6E8;
  --ill-roof: #2A4B58;
  --ill-brand: #1C8394;
  --ill-brand-dark: #146673;
  --ill-route: #4CC0CF;
  --ill-air: #4CC0CF;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--c-brand); }
img, svg { max-width: 100%; }
button { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: none; display: block; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; letter-spacing: .02em; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: var(--c-bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Anti-flash: hides Arabic source text while English is applied on first paint.
   Fail-safe animation reveals the page even if JS never runs. */
html[data-pending-lang] body { opacity: 0; animation: sd-unhide 0s linear 1.2s forwards; }
@keyframes sd-unhide { to { opacity: 1; } }

/* ---------- 3. Components ---------- */
.btn {
  --pulse: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-call {
  --pulse: var(--c-call);
  background: var(--c-call);
  color: var(--c-on-call);
  box-shadow: 0 8px 20px -10px rgba(222, 146, 8, .75);
}
.btn-call:hover { background: var(--c-call-strong); }

.btn-wa {
  --pulse: var(--c-wa);
  background: var(--c-wa);
  color: var(--c-on-wa);
  box-shadow: 0 8px 20px -12px rgba(22, 122, 67, .8);
}
.btn-wa:hover { background: var(--c-wa-strong); }

.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; gap: 8px; }
.btn-sm .icon { width: 20px; height: 20px; }
.btn-lg { min-height: 62px; padding: 10px 26px; font-size: 1.125rem; }
.btn-lg .icon { width: 24px; height: 24px; }

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.btn-sub { font-family: var(--font-body); font-weight: 500; font-size: .85rem; opacity: .82; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn .icon { width: 20px; height: 20px; grid-area: 1 / 1; }

.lang-btn { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-header); }
.scroll-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--c-ink);
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.bm-tag { fill: var(--c-brand); }
.bm-hole { fill: var(--c-bg); }
.bm-sofa { fill: #FFFFFF; }
:root[data-theme="dark"] .bm-sofa { fill: var(--c-bg); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; white-space: nowrap; }
.brand-sub { font-size: .78rem; line-height: 1.3; color: var(--c-ink-2); white-space: nowrap; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--c-ink-2);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--c-ink); background: var(--c-surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta { display: none; }

.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }

.mobile-menu {
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--shadow-header);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu:not([hidden]) { animation: sd-drop .22s var(--ease-out); }
.mobile-menu-list { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 4px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}
.mobile-menu-ctas { display: grid; gap: 10px; padding-block: 12px 20px; }
.mobile-menu-ctas .btn { min-height: 54px; }

@keyframes sd-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 379px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .icon-btn { min-width: 42px; height: 42px; padding: 0 8px; }
}
@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .brand { margin-inline-end: 0; }
  .primary-nav { display: block; flex: 1; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- 5. Hero ---------- */
.hero { padding-block: clamp(20px, 4vw, 56px) clamp(40px, 6vw, 88px); }

.hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.4;
}
.hero-badge .icon { width: 18px; height: 18px; }

.hero-title {
  margin-block: 16px 14px;
  font-size: clamp(1.8rem, 1.1rem + 2.9vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
}
:lang(en) .hero-title, .hero-title:lang(en) { line-height: 1.12; letter-spacing: -.02em; }

.hero-lead {
  max-width: 34em;
  color: var(--c-ink-2);
  font-size: clamp(1.05rem, .98rem + .35vw, 1.2rem);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.45;
}
.point-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-brand);
}
.point-icon .icon { width: 20px; height: 20px; }

.hero-art {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  aspect-ratio: 560 / 460;
}
.hero-art svg { display: block; width: 100%; height: auto; }

/* illustration paint */
.ill-panel { fill: var(--ill-panel); }
.ill-dot { fill: var(--ill-dot); }
.ill-shadow { fill: var(--ill-shadow); }
.ill-sofa { fill: var(--ill-sofa); }
.ill-sofa-back { fill: var(--ill-sofa-back); }
.ill-sofa-light { fill: var(--ill-sofa-light); }
.ill-wood { fill: var(--ill-wood); }
.ill-wood-dark { fill: var(--ill-wood-dark); }
.ill-ink { fill: var(--ill-ink); }
.ill-cab { fill: var(--ill-cab); }
.ill-glass { fill: var(--ill-glass); }
.ill-surface { fill: var(--ill-surface); }
.ill-soft { fill: var(--ill-soft); }
.ill-house { fill: var(--ill-house); }
.ill-roof { fill: var(--ill-roof); }
.ill-brand { fill: var(--ill-brand); }
.ill-brand-dark { fill: var(--ill-brand-dark); }
.ill-accent { fill: var(--ill-accent); }
.ill-air { fill: none; stroke: var(--ill-air); stroke-width: 3; stroke-linecap: round; }
.ill-check { fill: none; stroke: #1E1404; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ill-route {
  fill: none;
  stroke: var(--ill-route);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1 13;
}

@media (max-width: 479px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (min-width: 600px) {
  .hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-points li { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 959px) {
  .hero-art { max-width: 460px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- 6. Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--sticky-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
  animation: sd-rise .45s var(--ease-out) .5s both;
}
.sticky-cta .btn { min-height: 52px; width: 100%; font-size: 1.05rem; }

@keyframes sd-rise { from { transform: translateY(110%); } to { transform: none; } }

@media (max-width: 759px) {
  body { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--sticky-h) + 16px); }
}
@media (min-width: 760px) {
  .sticky-cta { display: none; }
}

/* ---------- 7. Motion ---------- */
/* Attention pulse: 3 soft rings shortly after load, then stops. */
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: sd-pulse 2.2s var(--ease-out) 1.6s 3;
}
@keyframes sd-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--pulse) 0%, transparent); }
}

.btn-call:hover .i-phone { animation: sd-ring .5s ease-in-out; }
@keyframes sd-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

/* Scroll reveal (JS adds .is-visible). Without JS, content is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero illustration: route dashes travel briefly, tag settles in. */
.hero-art.is-visible .ill-route { animation: sd-route 1.4s linear .4s 3; }
@keyframes sd-route { to { stroke-dashoffset: -56; } }
.hero-art.is-visible .ill-tag-g { animation: sd-tag .7s var(--ease-out) .55s both; transform-origin: 340px 222px; }
@keyframes sd-tag { from { opacity: 0; transform: translateY(-18px) scale(.9); } to { opacity: 1; transform: none; } }

/* Smooth colour hand-off only while the theme is being switched. */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .btn-pulse::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  html[data-pending-lang] body { animation-delay: 1.2s !important; }
}

/* =========================================================
   8. Sections — shared shell
   ========================================================= */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { padding-block-start: 0; }

.section-head { max-width: 46em; margin-block-end: clamp(28px, 4vw, 44px); }
.section-title {
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}
:lang(en) .section-title, .section-title:lang(en) { line-height: 1.15; letter-spacing: -.02em; }
.section-intro {
  margin-block-start: 12px;
  color: var(--c-ink-2);
  font-size: clamp(1rem, .96rem + .25vw, 1.1rem);
}
.section-title--left, .section-intro--left { text-align: start; }

/* Outline button (secondary CTA inside service cards) */
.btn-outline {
  background: transparent;
  color: var(--c-brand-strong);
  box-shadow: inset 0 0 0 2px var(--c-brand);
}
.btn-outline:hover { background: color-mix(in srgb, var(--c-brand) 10%, transparent); }

/* ---------- 8.1 الخدمات (#services) ---------- */
.svc-grid { display: grid; gap: clamp(16px, 2vw, 22px); }

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.svc-card--primary { background: var(--c-brand-soft); border-color: color-mix(in srgb, var(--c-brand) 28%, transparent); }

.svc-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-brand) 12%, var(--c-surface));
  color: var(--c-brand-strong);
}
.svc-icon .icon { width: 26px; height: 26px; }

.svc-title { font-size: clamp(1.2rem, 1.08rem + .45vw, 1.4rem); font-weight: 600; line-height: 1.35; }
.svc-text { color: var(--c-ink-2); }

.svc-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-items li {
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  font-size: .9rem;
  line-height: 1.5;
}
.svc-card--primary .svc-items li { background: var(--c-surface); }

.svc-card .btn { margin-block-start: auto; align-self: flex-start; }

@media (min-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* الخدمة الرئيسية (شراء الأثاث) تأخذ العرض الأكبر على الديسكتوب */
  .svc-card--primary { grid-column: 1 / -1; }
  .svc-card--primary .svc-text { max-width: 52em; }
}

/* ---------- 8.2 ماذا نشتري (#what-we-buy) ---------- */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.buy-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.35;
  text-align: center;
}
.buy-tile > span:last-child { min-width: 0; overflow-wrap: break-word; }
.buy-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}
.buy-icon .icon { width: 21px; height: 21px; }

.buy-note { color: var(--c-ink-2); font-size: 1rem; }
.buy-note + .buy-note { margin-block-start: 8px; }
.buy-note--full {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  font-weight: 600;
}

/* من 3 أعمدة وما فوق تتحول البلاطة إلى صف أفقي (أيقونة + اسم) */
@media (min-width: 700px) {
  .buy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-tile { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 14px; text-align: start; }
}
@media (min-width: 1000px) { .buy-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- 8.3 نقل الأثاث (#moving) ---------- */
.moving-grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.moving-main { min-width: 0; }

.check-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.55; }
.check-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  margin-block-start: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-wa) 14%, var(--c-surface));
  color: var(--c-wa);
}
.check-icon .icon { width: 17px; height: 17px; }

.moving-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

.moving-aside {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.moving-aside::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 5px;
  background: var(--c-brand);
}
.moving-aside-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: 14px;
  border-radius: 14px;
  background: var(--c-surface);
  color: var(--c-brand-strong);
  box-shadow: var(--shadow-header);
}
.moving-aside-icon .icon { width: 24px; height: 24px; }
.moving-aside-title { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 600; line-height: 1.35; }
.moving-aside-text { margin-block-start: 10px; color: var(--c-ink-2); }

@media (max-width: 479px) { .moving-ctas .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .moving-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .moving-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 9.1 لماذا (#why) — عمودان بدون إطارات، فواصل خفيفة فقط ---------- */
.why-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 20px;
  border-block-start: 1px solid var(--c-line);
}
.why-item:last-child { border-block-end: 1px solid var(--c-line); }

.why-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}
.why-icon .icon { width: 22px; height: 22px; }
.why-body { min-width: 0; }
.why-item-title { font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
.why-item-text { margin-block-start: 4px; color: var(--c-ink-2); }

@media (min-width: 860px) {
  /* عمودان: خطوط فاصلة رفيعة بين الصفوف فقط — بلا إطارات كروت */
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); border-block-end: 1px solid var(--c-line); }
  .why-item { border-block-end: 0; }
  .why-item:nth-child(-n + 4) { border-block-end: 1px solid var(--c-line); }
  .why-item:last-child { border-block-end: 0; }
}

/* ---------- 9.2 كيف تعمل الخدمة (#how) — خطوات مرقّمة بخط رابط ---------- */
.how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.how-step { position: relative; display: flex; align-items: flex-start; gap: 16px; padding-block: 0 26px; }
.how-step:last-child { padding-block-end: 0; }

.how-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 1;
}
:root[data-theme="dark"] .how-num { color: var(--c-bg); }
.how-step-body { min-width: 0; padding-block-start: 8px; }
.how-step-title { font-size: 1.12rem; font-weight: 600; line-height: 1.5; }
.how-step-desc { margin-block-start: 4px; color: var(--c-ink-2); font-size: .98rem; line-height: 1.65; }

/* الخط الرابط على الموبايل (رأسي) */
.how-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-block: 44px 0;
  inset-inline-start: 21px;
  width: 2px;
  background: var(--c-line);
}

@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .how-step { flex-direction: column; gap: 14px; padding-block-end: 0; }
  .how-step-body { padding-block-start: 0; }
  /* الخط الرابط على الديسكتوب (أفقي) */
  .how-step::before {
    inset-block: 21px auto;
    inset-inline: 0;
    width: auto;
    height: 2px;
  }
  .how-step:first-child::before { inset-inline-start: 22px; }
  .how-step:last-child::before { inset-inline-end: 22px; }
}

/* ---------- 9.3 المناطق (#areas) — بوصلة 3×3 + قائمة ---------- */
.areas-grid { display: grid; gap: clamp(24px, 3vw, 44px); align-items: center; }
.areas-copy { min-width: 0; }
.areas-art { width: 100%; max-width: 300px; margin-block: 22px 0; }
.areas-svg { display: block; width: 100%; height: auto; }

.ag-cell { fill: var(--c-surface-2); stroke: var(--c-line); stroke-width: 1.5; }
.ag-cell--off { fill: none; stroke-dasharray: 5 6; }
.ag-cell--on { fill: var(--c-brand-soft); stroke: color-mix(in srgb, var(--c-brand) 40%, transparent); }
.ag-cell--core { fill: var(--c-brand); stroke: var(--c-brand); }
.ag-dots circle { fill: var(--c-brand-strong); }
.ag-pin path { fill: var(--c-call); }
.ag-pin circle { fill: var(--c-brand); }

.areas-side { min-width: 0; }
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.areas-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  font-weight: 500;
}
.areas-note {
  margin-block-start: 20px;
  padding: 16px 20px;
  border-inline-start: 4px solid var(--c-brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-surface);
  color: var(--c-ink-2);
}
:root[dir="rtl"] .areas-note { border-radius: var(--r-md) 0 0 var(--r-md); }

@media (min-width: 900px) {
  .areas-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .areas-art { margin-block: 26px 0; }
}

/* ---------- 9.4 الأسئلة الشائعة (#faq) — <details> أصلية بلا JS ---------- */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color .2s, background-color .2s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-line)); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--c-surface-2); }
.faq-q > span { min-width: 0; }

.faq-arrow {
  width: 22px;
  height: 22px;
  flex: none;
  margin-block-start: 2px;
  color: var(--c-brand-strong);
  transition: transform .25s var(--ease-out);
}
.faq-item[open] .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 18px 18px;
  color: var(--c-ink-2);
}
.faq-item[open] .faq-answer { animation: sd-faq-in .25s var(--ease-out); }
@keyframes sd-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.faq-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.faq-link:hover { text-decoration-thickness: 3px; }

/* ---------- 10. الدعوة النهائية (#contact) ---------- */
/* شريط بلون العلامة في الوضع الفاتح، وبتدرّج فاتح في الوضع الداكن — تباين >= 4.5:1 في الوضعين */
.final-band {
  margin-block-start: clamp(48px, 7vw, 88px);
  padding-block: clamp(40px, 5.5vw, 72px);
  background: var(--c-brand);
  color: var(--c-surface);
}
:root[data-theme="dark"] .final-band { color: var(--c-bg); }
.final-inner { display: grid; gap: 26px; align-items: center; }

.final-title {
  color: inherit;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.32;
}
:lang(en) .final-title, .final-title:lang(en) { line-height: 1.15; letter-spacing: -.02em; }
.final-text { margin-block-start: 12px; font-size: clamp(1rem, .96rem + .3vw, 1.12rem); opacity: .95; }
.final-number {
  margin-block-start: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: .01em;
}
.final-number { width: fit-content; direction: ltr; unicode-bidi: isolate; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 859px) { .final-ctas .btn { flex: 1 1 100%; } }

/* زر معكوس: خلفية السطح ونص لون العلامة — تباين عالٍ على الشريط */
.btn-invert {
  background: var(--c-surface);
  color: var(--c-brand-strong);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .55);
}
.btn-invert:hover { background: var(--c-bg); }

@media (min-width: 860px) {
  .final-inner { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); }
  .final-ctas { flex-direction: column; align-items: stretch; min-width: 250px; }
  .final-ctas .btn { width: 100%; }
}

/* ---------- 11. الفوتر ---------- */
.site-footer {
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 40px);
  background: var(--c-surface);
  border-block-start: 1px solid var(--c-line);
}
.footer-grid { display: grid; gap: 30px; }

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}
.footer-desc { margin-block-start: 10px; color: var(--c-ink-2); max-width: 40em; }
.footer-heading { font-size: 1.02rem; font-weight: 600; margin-block-end: 12px; }
.footer-heading--sm { font-size: .95rem; margin-block-end: 10px; }

.footer-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-list a { color: var(--c-ink-2); text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--c-brand-strong); text-decoration: underline; text-underline-offset: 3px; }

.footer-contact-list { gap: 12px; }
.footer-contact-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.footer-contact-link .icon { width: 20px; height: 20px; color: var(--c-brand); }

.footer-social { margin-block-start: 24px; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-ink);
  transition: background-color .2s, border-color .2s, color .2s, transform .18s var(--ease-out);
}
.social-link:hover { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand-strong); transform: translateY(-2px); }
.social-link .icon { width: 22px; height: 22px; }

.footer-copy {
  margin-block-start: clamp(26px, 3vw, 36px);
  padding-block-start: 20px;
  border-block-start: 1px solid var(--c-line);
  color: var(--c-ink-2);
  font-size: .92rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
}

/* ---------- 12. الصفحات المساندة (privacy.html · 404.html) ---------- */
.page-section { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.page-section--center { display: grid; align-items: center; min-height: min(64dvh, 620px); }
.prose { max-width: 62ch; }
.prose--center { max-width: 46ch; margin-inline: auto; text-align: center; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
}
:lang(en) .page-title, .page-title:lang(en) { line-height: 1.15; letter-spacing: -.02em; }

.privacy-list { display: grid; gap: 14px; margin: clamp(22px, 3vw, 32px) 0 0; padding: 0; list-style: none; }
.privacy-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--c-ink-2);
  line-height: 1.7;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
}
.privacy-updated {
  margin-block-start: clamp(26px, 3.5vw, 38px);
  padding-block-start: 18px;
  border-block-start: 1px solid var(--c-line);
  color: var(--c-ink-2);
  font-size: .95rem;
}

.nf-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 2rem + 8vw, 6rem);
  line-height: 1;
  color: var(--c-brand-soft);
}
.nf-text { margin-block-start: 14px; color: var(--c-ink-2); font-size: 1.08rem; }
.nf-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 30px; }
@media (max-width: 479px) { .nf-ctas .btn { flex: 1 1 100%; } }

/* ---------- 13. تحسينات التحويل (ديسكتوب) ---------- */
/* 13.1 زر واتساب عائم — يظهر بعد تجاوز أزرار الـ Hero ويختفي عند ظهور #contact */
.fab-wa {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 55;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-wa);
  color: var(--c-on-wa);
  box-shadow: 0 10px 26px -10px rgba(22, 122, 67, .85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s, background-color .2s;
}
.fab-wa .icon { width: 28px; height: 28px; }
.fab-wa.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.fab-wa:hover { background: var(--c-wa-strong); }

@media (min-width: 760px) {
  .fab-wa { display: grid; }
  .fab-wa:not(.is-on) { transform: translateY(12px) scale(.9); }
}

/* 13.2 Toast نسخ الرقم — يظهر عند الضغط على أي tel: على أجهزة الفأرة */
.copy-toast {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 92px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 48px);
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: 0 14px 34px -18px rgba(14, 36, 48, .6);
  color: var(--c-ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
}
.copy-toast.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.copy-toast-num { font-weight: 600; font-size: 1.05rem; }
.copy-toast-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.copy-toast-btn:hover { background: var(--c-brand-soft); border-color: var(--c-brand); }
.copy-toast-btn .icon { width: 17px; height: 17px; }
.copy-toast-done {
  color: var(--c-wa);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.copy-toast.is-done .copy-toast-btn { display: none; }
@media (max-width: 759px) { .copy-toast { display: none; } }

/* 13.3 Scroll-spy — تمييز رابط القسم الحالي في قائمة الديسكتوب */
@media (min-width: 1100px) {
  .primary-nav a[aria-current="true"] {
    background: var(--c-brand-soft);
    color: var(--c-brand-strong);
    font-weight: 600;
  }
}
