/* ═══════════════════════════════════════════════
   ARABIC (RTL) ADJUSTMENTS
   Loaded only when the site is in Arabic (/ar/...).
   Layout mirrors automatically (grid, flex, logical properties);
   this file fixes typography and the few left/right paddings.
   ═══════════════════════════════════════════════ */

:root {
  --font-head: 'IBM Plex Sans Arabic', 'Geist', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Geist', system-ui, sans-serif;
}

/* Arabic letters connect to each other: never add letter spacing */
body,
body * {
  letter-spacing: 0 !important;
}

body {
  line-height: 1.85;
}

/* Arabic needs more line height and a little more weight to look balanced */
.s1-title {
  font-weight: 500;
  line-height: 1.3;
}

.section-title {
  font-weight: 500;
  line-height: 1.35;
}

.s3-text {
  line-height: 1.65;
}

.s5-word {
  font-weight: 600;
  line-height: 1.3;
  left: auto;
  right: 0;
}

.s5-group--flip .s5-word {
  right: auto;
  left: 0;
}

.s5-info h3,
.s6-name,
.s7-card h3,
.s8-step h3,
.s9-card h3,
.s11-q,
.s12-title {
  font-weight: 500;
}

/* Small labels use the Arabic font instead of the Latin monospace */
.eyebrow,
.s2-stats span,
.s5-new,
.s6-tag,
.s8-n,
.s8-big-label,
.s9-tag,
.s9-status,
.s10-badge,
.footer-col h4,
.mk-cap,
.ab1-meta dt,
.ab2-n,
.ab5-list span,
.so2-top,
.so2-proof span,
.so3-groups i,
.sd1-crumbs,
.sd1-meta dt,
.sd3-n,
.sd4-also span,
.sd4-tags span,
.sd6-label,
.mk-stage,
.mk-chips span,
.mk-axl,
.mk-lead span,
.mk-ad,
.mk-dot em,
.pr1-index-label,
.stage em,
.pd1-meta dt,
.pd2-live,
.ze1-badge,
.ze1-meta dt,
.ct1-direct-label,
.ct3-label,
.bl2-tags span,
.bl2-meta,
.bp1-meta dt,
.bp2-toc-label,
.bp2-summary-label,
.bp4-group {
  font-family: var(--font-body);
  text-transform: none;
}

/* Blog */
.bl1-title,
.bp1-title {
  line-height: 1.35;
}

.bl2-info h2,
.bp2-body h2,
.bp3-item summary,
.bp4-card h3,
.bp2-cta p {
  font-weight: 500;
  line-height: 1.5;
}

.bp2-body > p,
.bp2-body li {
  line-height: 2;
}

.bl2-tags span,
.bp1-meta dt,
.bp2-toc-label,
.bp2-summary-label,
.bp4-group {
  font-size: 0.78rem;
}

.bl2-meta {
  font-size: 0.8rem;
}

/* Contact page */
.ct1-title {
  line-height: 1.3;
}

.ct1-direct-label,
.ct3-label {
  font-size: 0.8rem;
}

.ct2-step h3 {
  font-weight: 500;
}

/* no letter spacing in Arabic makes the big phone number wider, so it shrinks a little on phones */
@media (max-width: 900px) {
  .ct3-number-i { font-size: 10.2vw; }
}

/* ZERP page */
.ze1-title {
  max-width: 16em;
  line-height: 1.3;
}

.ze1-badge,
.ze1-meta dt {
  font-size: 0.8rem;
}

.ze3-info h3,
.ze4-text h3,
.ze1-head-t {
  font-weight: 500;
}

@media (min-width: 901px) {
  .ze1-mod { font-size: 0.84rem; }
}

/* Projects pages */
.pr1-title {
  max-width: 15em;
  line-height: 1.3;
}

.pr1-ind b,
.pd2-text h3,
.stage b {
  font-weight: 500;
}

.pd2-text h3 {
  line-height: 1.4;
}

.pr1-index-label,
.pd1-meta dt {
  font-size: 0.8rem;
}

.stage em,
.pd2-live {
  font-size: 0.76rem;
}

/* Solutions pages */
.so1-title {
  max-width: 18ch;
  line-height: 1.3;
}

.sd1-title {
  line-height: 1.35;
}

.so2-name {
  font-weight: 500;
  line-height: 1.3;
}

/* an outline shows seams where Arabic letters join, so use dim solid text instead */
.sd6-name-i {
  line-height: 1.45;
  color: rgba(157, 187, 255, 0.2);
  -webkit-text-stroke: 0;
}

.sd6-next:hover .sd6-name-i {
  color: var(--text);
}

.so1-node b,
.so2-t b,
.so3-card h3,
.sd3-step h3,
.sd4-info h3,
.sd6-name-i {
  font-weight: 500;
}

.so2-top,
.sd1-crumbs,
.sd3-n,
.sd6-label {
  font-size: 0.82rem;
}

.so2-proof span,
.so3-groups i,
.sd1-meta dt,
.sd4-also span,
.sd4-tags span {
  font-size: 0.78rem;
}

/* About page */
.ab1-title {
  max-width: 18ch;
  line-height: 1.3;
}

.ab1-meta dt,
.ab5-list span {
  font-size: 0.8rem;
}

.ab2-ch h3,
.ab3-row h3 {
  font-weight: 500;
  line-height: 1.4;
}

.ab4-quote p {
  font-weight: 400;
  line-height: 1.8;
}

.eyebrow,
.s8-n {
  font-size: 0.82rem;
}

/* Mirror paddings that are written as left/right */
.btn {
  padding: 10px 20px 10px 10px;
}

.btn--plain {
  padding: 13px 22px;
}

.s12-submit {
  padding: 10px 22px 10px 10px;
}

.s1-badge {
  padding: 5px 14px 5px 5px;
}

.s1-node {
  padding: 6px 6px 6px 14px;
}

/* email / phone are typed left-to-right but stay aligned with the Arabic form */
input[dir="ltr"] {
  text-align: right;
}

input[dir="ltr"]::placeholder {
  text-align: right;
}

/* Arrows and moving lights point the other way */
.s9-card--more svg {
  transform: scaleX(-1);
}

.s1-flow-pulse {
  animation-direction: reverse;
}

.s6-row:hover .s6-name {
  transform: translateX(-14px);
}
