/* A compact heading scale with readable Arabic details, over the original UI.
   Keep the root rem size and all original section/animation geometry intact. */
:root {
  --boost-type-hero: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  --boost-type-section: clamp(1.625rem, 1.2rem + 1vw, 2.25rem);
  --boost-type-card: clamp(1.5rem, 1.1rem + .9vw, 2rem);
  --boost-type-subheading: clamp(1.25rem, 1.05rem + .5vw, 1.625rem);
  --boost-type-body: clamp(1.0625rem, 1rem + .14vw, 1.125rem);
  --boost-type-small: 1rem;
}
html[lang="ar"] body {
  font-family: var(--boost-font);
  font-size: var(--boost-type-body);
  font-weight: 400;
  line-height: 1.9;
}
html[lang="ar"] :is(h1,h2,h3,h4,h5,h6),
html[lang="ar"] [class*="heading-style-"] {
  font-family: var(--boost-font);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}
html[lang="ar"] :is(h1,.heading-style-h1,.contact_h1) { font-size: var(--boost-type-hero); }
html[lang="ar"] :is(h2,.heading-style-h2) { font-size: var(--boost-type-section); }
html[lang="ar"] :is(h3,.heading-style-h3) { font-size: var(--boost-type-subheading); }
html[lang="ar"] :is(h4,.heading-style-h4) { font-size: clamp(1.1875rem, 1.05rem + .3vw, 1.375rem); }
html[lang="ar"] :is(h5,.heading-style-h5) { font-size: 1.125rem; }
html[lang="ar"] :is(h6,.heading-style-h6) { font-size: var(--boost-type-body); }
html[lang="ar"] .is-service-card { font-size: var(--boost-type-card); }
html[lang="ar"] :is(.splash_text,.splash_text.gradient_text-l-bg) {
  font-family: var(--boost-font);
  font-size: var(--boost-type-hero);
  font-weight: 700;
  line-height: 1.7;
}
html[lang="ar"] :is(p,.text-size-regular,.text-rich-text li,.w-richtext li) {
  font-size: var(--boost-type-body);
  font-weight: 400;
  line-height: 1.9;
}
html[lang="ar"] :is(.text-size-large,.text-size-medium,.text-size-medium-2) {
  font-size: clamp(1.125rem, 1.05rem + .2vw, 1.25rem);
  line-height: 1.85;
}
html[lang="ar"] :is(.text-size-small,.text-size-small.text-style-allcaps,.footer_link) {
  font-size: var(--boost-type-small);
  line-height: 1.85;
}
html[lang="ar"] .service_grid-item p.text-size-small {
  font-size: var(--boost-type-body);
  line-height: 1.9;
}
html[lang="ar"] :is(.text-size-tiny,.boost-form-note) { font-size: .9375rem; line-height: 1.85; }
html[lang="ar"] :is(.text-weight-light,.text-size-regular) { font-weight: 400; }
html[lang="ar"] :is(b,strong,.text-weight-bold) { font-weight: 700; }
html[lang="ar"] :is(.button .text-size-regular,.service_btn_text,.nav_link-inner) {
  font-size: 1rem;
  line-height: 1.65;
}
html[lang="ar"] .heading-style-h3.is-contact { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); }
html[lang="ar"] .legacy-inquiry .form-control { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.9; }
html[lang="ar"] :is(.service-option,.legacy-service-request,.application-panel .form-control) { font-size: var(--boost-type-body); line-height: 1.85; }
html[lang="ar"] :is(.consent-field,.field-error,.errorlist,.application-panel .required-note,.application-panel .form-field > label,.application-panel .field-help,.optional-label,.upload-action,.upload-filename) {
  font-size: .9375rem;
  line-height: 1.85;
}
html[lang="ar"] .legacy-service-group .service_grid-title h3 { font-size: 1.1875rem; }
html[lang="ar"] .application-panel h2 { font-size: var(--boost-type-subheading); }
html[lang="ar"] .form-error-summary h3 { font-size: 1.125rem; }
@media (max-width: 767px) {
  :root { --boost-type-small: .9375rem; }
  html[lang="ar"] .nav_link-inner { font-size: 1.0625rem; }
}

/* Preserve the approved visual size when secondary headings use semantic h2. */
html[lang="ar"] h2.heading-style-h1 { font-size: var(--boost-type-hero); }
