/** WAHAJ AGENCY / ONE CLICK 10-ISSUE VISUAL REPAIR - SERVICES SAFE LAYOUT v3 / 2026-11-02
 * Scoped to verified headings, services and WAHAJ portfolio section.
 * No animation libraries, menus, cards or CMS data are replaced.
 */

/* Arabic word order: undo row/flex/text-transform tricks only on reviewed headings. */
html body .wahaj-fixed-heading {
  direction:rtl!important;
  unicode-bidi:isolate!important;
  writing-mode:horizontal-tb!important;
  display:block!important;
  flex-direction:row!important;
  text-align:start!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.27!important;
}
html body .wahaj-fixed-heading > span,
html body .wahaj-fixed-heading > em,
html body .wahaj-fixed-heading > strong,
html body .wahaj-fixed-heading > i,
html body .wahaj-fixed-heading > b,
html body .wahaj-fixed-heading > a {
  display:inline-block!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  order:0!important;
  flex:0 0 auto!important;
  float:none!important;
  vertical-align:baseline!important;
  max-width:100%!important;
}
/* Smaller screens should wrap text naturally rather than overflow neighboring cards. */
@media(max-width:767px){
  html body .wahaj-fixed-heading{font-size:clamp(26px,8vw,44px)!important;line-height:1.38!important;max-width:100%!important}
  html body .wahaj-fixed-heading > span,
  html body .wahaj-fixed-heading > em,
  html body .wahaj-fixed-heading > strong{white-space:normal!important}
}
/* Fix mixed RTL button word-order without altering icons or onclick behavior. */
html body .wahaj-fixed-cta{direction:rtl!important;unicode-bidi:isolate!important;flex-direction:row!important}
html body .wahaj-fixed-cta > span:not([class*="icon"]),
html body .wahaj-fixed-cta > strong{direction:rtl!important;unicode-bidi:isolate!important;order:0!important}

/* 03 — SERVICES SECTION v3. Previous broad layout overrides were removed.
 * Preserve original theme positioning of description, CTA, cards and ratings;
 * only decrease text size enough to fit within its existing track. */
html body .wahaj-services-heading-safe {
  direction:rtl!important;
  unicode-bidi:isolate!important;
  font-size:clamp(34px,2.85vw,50px)!important;
  line-height:1.15!important;
  letter-spacing:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin-bottom:clamp(12px,1.4vw,22px)!important;
  text-align:inherit!important;
}
/* Keep original word styling and animation span layout (no forced inline children). */
html body .wahaj-services-section .wahaj-service-list-label,
html body .wahaj-services-section .wahaj-service-list-label > a,
html body .wahaj-services-section .wahaj-service-list-label > span,
html body .wahaj-services-section .wahaj-service-list-label > strong {
  font-size:clamp(23px,2.03vw,36px)!important;
  line-height:1.25!important;
  max-width:100%!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(max-width:1100px){
  html body .wahaj-services-heading-safe {font-size:clamp(30px,3.75vw,45px)!important;line-height:1.2!important}
  html body .wahaj-services-section .wahaj-service-list-label,
  html body .wahaj-services-section .wahaj-service-list-label > a,
  html body .wahaj-services-section .wahaj-service-list-label > span {font-size:clamp(21px,2.7vw,31px)!important}
}
@media(max-width:767px){
  html body .wahaj-services-heading-safe {font-size:clamp(30px,7.3vw,43px)!important;max-width:100%!important;line-height:1.25!important}
  html body .wahaj-services-section .wahaj-service-list-label,
  html body .wahaj-services-section .wahaj-service-list-label > a,
  html body .wahaj-services-section .wahaj-service-list-label > span {font-size:clamp(22px,5vw,30px)!important;line-height:1.3!important}
}

/* 10: Works is an existing WAHAJ widget (#wa-works-home), not a generic theme. */
html body #wa-works-home{
  background:#fff!important;
  color:#151416!important;
  margin-top:clamp(34px,4vw,66px)!important;
  margin-bottom:clamp(32px,4vw,66px)!important;
  padding-top:clamp(65px,6vw,94px)!important;
  padding-bottom:clamp(65px,6vw,98px)!important;
  border-radius:clamp(15px,2vw,26px)!important;
  overflow:hidden!important;
}
html body #wa-works-home:before{background:none!important;content:none!important}
html body #wa-works-home .wa-works-head h2{color:#171519!important;direction:rtl!important;text-align:right!important}
html body #wa-works-home .wa-works-head h2 span{color:#dc274a!important}
html body #wa-works-home .wa-works-head p{color:#49434b!important;direction:rtl!important;line-height:1.9!important}
html body #wa-works-home .wa-works-eyebrow{color:#bf1c3e!important}
html body #wa-works-home .wa-works-demo{border-top-color:#ddd5d9!important}
html body #wa-works-home .wa-works-demo-copy strong{color:#211b20!important}
html body #wa-works-home .wa-works-demo-copy span{color:#645c63!important}
html body #wa-works-home .wa-works-demo-actions .wa-demo-disabled{
  color:#5f555b!important;background:#f3eff0!important;border-color:#dad2d7!important
}
html body #wa-works-home .wa-works-card{background:#211c20!important}
html body #wa-works-home .wa-works-card-body strong,
html body #wa-works-home .wa-works-card-body small,
html body #wa-works-home .wa-works-top{color:#fff!important}
html body #wa-works-home .wa-works-top{background:#1c191a70!important}
@media(max-width:750px){
  html body #wa-works-home{margin-top:28px!important;margin-bottom:28px!important;padding:55px 18px!important;border-radius:16px!important}
  html body #wa-works-home .wa-works-head h2{text-align:right!important}
}

/* 01: Only the off-canvas content identified as Nextnox is changed. */
.wahaj-offcanvas-official-logo{display:block!important;object-fit:contain!important;max-width:145px!important;width:auto!important;height:auto!important;max-height:66px!important}
.wahaj-offcanvas-brand-fallback{display:inline-block;color:#181418;direction:ltr;font-size:19px;font-weight:900}
.wahaj-offcanvas-works{margin-block:22px 34px;direction:rtl;text-align:right}
.wahaj-offcanvas-works h3{font-size:19px;line-height:1.5;font-weight:800;color:#171717;margin:0 0 8px}
.wahaj-offcanvas-works p{font-size:14px;line-height:1.9;color:#555;margin:0 0 18px}
.wahaj-offcanvas-works a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;background:#d62345;color:#fff!important;border-radius:8px;padding:10px 19px;min-height:43px;font-size:14px;font-weight:700;direction:rtl}
.wahaj-offcanvas-works a:hover,.wahaj-offcanvas-works a:focus-visible{background:#b71a36;color:#fff!important}
.wahaj-offcanvas-contact{color:#d62345!important;text-decoration:underline;font-weight:700;display:inline-block;margin:10px 0 0;direction:rtl}
