/* Reviewed Arabic parity; loaded only by the site release/language guard. */
/* English source content keeps English typography and reading direction within
   the Arabic navigation shell until an actual translation is approved. */
html[lang^="ar"] body.archer-ar-english-mirror .pageWarp,
html[lang^="ar"] body.archer-ar-english-mirror .pageWarp :is(h1,h2,h3,h4,h5,h6) {
  font-family: "Poppins", "Noto Sans Arabic", sans-serif;
}
html[lang^="ar"] body.archer-ar-english-mirror .pageWarp {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] body.archer-ar-english-mirror .sectionHead.sectionHeadLeft {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
html[dir="rtl"] body.archer-ar-english-mirror .sectionHead.sectionHeadLeft .sp {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] body.archer-ar-english-mirror .blogArticleIntro .sectionHead h1 {
  /* Preserve the published English treatment inside the Arabic shell. */
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
html[lang^="ar"] body.archer-ar-english-mirror .blogArticleHero > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 767px) {
  html[lang^="ar"] body.archer-ar-english-mirror .blogArticleHero {
    grid-template-columns: minmax(0, 1fr);
  }
}
html[lang^="ar"] .archiveContent :is(h3,p),
html[lang^="ar"] .caseStudyCard :is(h3,p) {
  unicode-bidi: plaintext;
}

html[lang^="ar"] body.home .heroSection,
html[lang^="ar"] body.page-template-template-contact .heroSection {
  background:
    radial-gradient(circle at top left, rgba(245, 128, 38, 0.12), transparent 32%),
    linear-gradient(180deg, #f9f7fc 0%, #f3f0f8 100%);
}

html[lang^="ar"] body.home .heroSection .visualFrame img {
  max-width: 490px;
  height: auto;
  margin-inline: auto;
}

html[lang^="ar"] body.page-template-template-discuss-project .heroSection .visualFrame img {
  max-width: 450px;
  height: auto;
  margin-inline: auto;
}

html[lang^="ar"] body.page-template-template-contact .heroSection .coreImagePanel img {
  max-width: 480px;
  height: auto;
  margin-inline: auto;
}

@media (max-width: 767px) {
  html[lang^="ar"] body.page-template-template-discuss-project .heroSection .visualFrame img {
    max-width: 260px;
  }
}

@media (max-width: 340px) {
  html[lang^="ar"] body.page-template-template-discuss-project .heroSection .visualFrame img {
    max-width: 220px;
  }
}

/* One Arabic page-hero treatment across the different English templates.
   Page bodies, individual articles/cases and stored translations stay intact. */
html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 {
  color: var(--core-blue);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-wrap: balance;
}

html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

html[lang^="ar"] body:is(.page, .blog) .heroSection .eyebrow,
html[lang^="ar"] body:is(.page, .blog) .storyIntroSection .eyebrow,
html[lang^="ar"] body:is(.page, .blog) .legalIntroSection .legalEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--core-orange);
  background: rgba(245, 128, 38, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  padding: 6px 14px;
  margin: 0 0 16px;
  border-radius: 999px;
}

html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 + .sp {
  width: 84px;
  height: 4px;
  margin: 0 0 24px;
  background: var(--core-ink);
  border-radius: 2px;
}

html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 + .sp + br,
html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 + .sp + br + br {
  display: none;
}

@media (max-width: 767px) {
  html[lang^="ar"] body:is(.page, .blog) .pageWarp h1 {
    font-size: 32px;
  }

  html[lang^="ar"] body:is(.page, .blog) .heroSection .heroCopy {
    padding: 0;
  }

  html[lang^="ar"] body:is(.page, .blog) .industryHeroCopy,
  html[lang^="ar"] body:is(.page, .blog) .odooHeroCopy {
    padding-inline: 15px;
  }
}
