/* Arabic-specific overrides. Layout mirroring is handled by logical
   properties in style.css; this file tunes typography and a few details. */
body {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.85;
}
h1, h2, h3, h4 { letter-spacing: 0 !important; }
.hero h1 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }

/*电话号码、邮箱、网址与参数保持 LTR（由 <bdi dir="ltr"> 包裹）*/
bdi[dir="ltr"] {
  display: inline-block;
  font-family: "Segoe UI", Arial, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

/* 数字步骤徽标使用西文数字 */
.step-icon, .part-row .num, .step-num, .stat strong {
  font-family: "Segoe UI", Arial, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}

/* 语言切换箭头与卡片箭头镜像 */
.caret { transform: scaleX(-1); display: inline-block; }
.step-icon { direction: ltr; }

/* 表格技术参数左对齐更易读 */
.spec-table td { text-align: start; }

/* 避免阿拉伯语段落中出现过大的行距 */
.usp-item p, .card-body p, .step p { line-height: 1.7; }

/* 悬浮按钮文字在阿拉伯语下保持紧凑 */
.wa-float { font-family: "Segoe UI", Arial, sans-serif; }

/* =========================================================
   Urdu (RTL) — Noto Nastaliq Urdu, bundled locally (no CDN).
   Nastaliq has steep descenders and a slanted baseline: needs a
   taller line-height and must avoid synthetic bold/italic.
   ========================================================= */
@font-face {
  font-family: "Local Nastaliq";
  src: url("../fonts/NotoNastaliq.ttc") format("truetype-collection");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
[lang="ur"] {
  font-family: "Local Nastaliq", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq",
               "DecoType Nastaleeq Urdu", serif;
  line-height: 2.15;
  font-synthesis: none;              /* no faux-bold / faux-italic */
}
[lang="ur"] p, [lang="ur"] li, [lang="ur"] td, [lang="ur"] th,
[lang="ur"] .card-body p, [lang="ur"] .step p { line-height: 2.15; margin-block-end: 1.1rem; }
[lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3, [lang="ur"] h4 {
  font-weight: 400; line-height: 1.9; letter-spacing: 0;
}
[lang="ur"] .btn, [lang="ur"] .chip, [lang="ur"] summary, [lang="ur"] strong { font-weight: 400; }
/* Latin fragments stay on a stable Western face inside Urdu pages */
[lang="ur"] bdi[dir="ltr"], [lang="ur"] .lang-switch summary,
[lang="ur"] .step-icon, [lang="ur"] .part-row .num,
[lang="ur"] .step-num, [lang="ur"] .stat strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: auto;
  line-height: 1.5;
}
/* RTL page: grouped language panel keeps LTR codes readable */
[lang="ur"] .lang-menu a span[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
