/* ===============================================================
   AZHA / BILINGUAL EXPERIENCE — CORE LTR
   English only, scoped to html.azha-ltr. Arabic is untouched.
   AZHA / WoodMart / GTranslate 5.0.2 — 2026-11
   =============================================================== */

html.azha-ltr {
  direction:ltr !important;
  text-align:start;
  scroll-padding-top:clamp(75px,9vw,110px);
}
html.azha-ltr body {
  direction:ltr !important;
  text-align:start;
}
html.azha-ltr body :is(.main-page-wrapper,.main-content,.site-content,.entry-content) {
  direction:ltr !important;
}
/* Text layout: avoid global transform, scale, order and float rewrites.
   Most WoodMart / Gutenberg rows already support direction:auto. */
html.azha-ltr body :is(
  .azha-main-slider,.azha-stats-strip,.azha-about-section,
  .azha-services-section,.azha-sectors-section,.azha-projects-section,
  .azha-why-section,.azha-vision-section,.azha-goals-section,
  .azha-gm-section,.azha-partners-section,.azha-service-cta-section,
  .azha-media-section,.azha-rfq-section,.azha-contact-section,
  .azha-utility-section,.azha9-contact,.azha-v10-page,
  .azha-s11-page,.azha-c12-page
) {
  direction:ltr !important;
  text-align:start;
}
html.azha-ltr body :is(
  .azha-hero-copy,.azha-about-copy,.azha-services-row,
  .azha9-contact .wp-block-wd-column,.azha-v10-page .wp-block-wd-column,
  .azha-s11-page .wp-block-wd-column,.azha-c12-page .wp-block-wd-column
) {
  direction:ltr !important;
  text-align:start;
  min-width:0;
}
html.azha-ltr body :is(
  .azha-section-kicker,.azha-section-title,.azha-section-title-light,
  .azha-hero-heading,.azha-hero-copy h1,.azha-hero-copy h2,
  .azha-hero-copy p,.azha-about-copy,.azha-service-box,
  .azha-sector-card,.azha-why-box,.azha-stat-cell,
  .azha-vision-box,.azha-media-card,.azha-contact-card,
  .azha-v10-page h1,.azha-v10-page h2,.azha-v10-page h3,
  .azha-v10-page p,.azha-s11-page h1,.azha-s11-page h2,
  .azha-s11-page h3,.azha-s11-page p,
  .azha-c12-page h1,.azha-c12-page h2,.azha-c12-page h3,
  .azha-c12-page p,.azha9-contact :is(h2,h3,p)
) {
  text-align:start !important;
  overflow-wrap:break-word;
}

/* ---------------- ENGLISH TYPE / no extra network font load ---------- */
html.azha-english-font body,
html.azha-english-font body :is(
  .main-page-wrapper,.whb-header,.whb-main-header,.wd-footer,
  .mobile-nav,.azha-v10-page,.azha-s11-page,.azha-c12-page,
  .azha9-contact
) {
  font-family:Manrope,Inter,"Segoe UI",Arial,Helvetica,sans-serif !important;
}
html.azha-english-font body :is(
  .whb-header a,.mobile-nav a,.wd-footer a,
  .azha-main-slider :is(h1,h2,h3,p,a),
  .azha-v10-page :is(h1,h2,h3,p,a,span),
  .azha-s11-page :is(h1,h2,h3,p,a,span),
  .azha-c12-page :is(h1,h2,h3,p,a,label,input,textarea,select,button),
  .azha9-contact :is(h2,h3,p,a)
) {
  font-family:inherit !important;
}
html.azha-english-font body :is(
  .azha-v10-display,.azha-v10-heading,.azha-v10-service-title,
  .azha-s11-display,.azha-s11-heading,.azha-s11-sector-title,
  .azha-c12-display,.azha-c12-heading,
  .azha-section-title,.azha-section-title-light
) {
  letter-spacing:-.025em !important;
  line-height:1.23 !important;
  word-break:normal;
  hyphens:auto;
}
html.azha-english-font body :is(
  .azha-v10-lead,.azha-v10-summary,.azha-v10-service-body,
  .azha-s11-intro,.azha-s11-sector-detail,.azha-s11-chapter-summary,
  .azha-c12-hero-lead,.azha-c12-subtitle,.azha-c12-step-text,
  .azha-c12-form-intro
) {
  line-height:1.75 !important;
  letter-spacing:0;
}

/* ---------------- HEADER / DESKTOP ------------------------------------ */
html.azha-ltr body :is(.whb-header,.whb-main-header,.whb-general-header,.whb-sticked),
html.azha-ltr body :is(.wd-header-nav,.wd-nav-header,.wd-nav-main) {
  direction:ltr !important;
}
html.azha-ltr body .whb-general-header :is(.wd-nav-header,.wd-nav-main) {
  text-align:left !important;
}
html.azha-ltr body .whb-general-header :is(.wd-nav-header,.wd-nav-main) > li > a {
  text-align:left !important;
}
html.azha-ltr body .whb-general-header .menu-simple-dropdown .wd-sub-menu > li > a {
  /* Existing AZHA RTL rule has fixed physical left/right padding. */
  padding-left:38px !important;
  padding-right:16px !important;
  text-align:left !important;
}
html.azha-ltr body .whb-general-header .menu-simple-dropdown .wd-sub-menu > li.menu-item-has-children > a {
  padding-right:52px !important;
}
html.azha-ltr body .whb-general-header .menu-simple-dropdown .wd-sub-menu > li:is(:hover,:focus-within,.current-menu-item) > a {
  transform:translateX(3px);
  box-shadow:inset 3px 0 0 var(--azha-gold,#c89b45),0 8px 22px rgba(0,0,0,.2) !important;
}
html.azha-ltr body .whb-general-header .menu-simple-dropdown .wd-sub-menu > li.menu-item-has-children > a::after {
  content:"→" !important;
}
html.azha-ltr body .whb-general-header .menu-simple-dropdown .sub-sub-menu > li > a:hover {
  transform:translateX(3px);
}
html.azha-ltr body .whb-header .wd-nav > li > .wd-dropdown-menu,
html.azha-ltr body .whb-general-header .menu-simple-dropdown > .wd-dropdown-menu {
  direction:ltr !important;
  text-align:left !important;
}
html.azha-ltr body :is(.wd-header-text,.wd-header-links,.wd-header-my-account) {
  direction:ltr !important;
}

/* ---------------- MOBILE DRAWER --------------------------------------- */
html.azha-ltr body .mobile-nav,
html.azha-ltr body .mobile-nav :is(.wd-nav-mobile,.wd-nav-mob-tab,.wd-sub-menu,.wd-search-form) {
  direction:ltr !important;
  text-align:left !important;
}
html.azha-ltr body .mobile-nav .wd-nav-mobile > li > a,
html.azha-ltr body .mobile-nav .wd-nav-mobile .wd-sub-menu > li > a {
  direction:ltr !important;
  text-align:left !important;
}
html.azha-ltr body .mobile-nav .wd-nav-mobile > li:is(:hover,.current-menu-item) > a {
  transform:translateX(4px);
}
html.azha-ltr body .mobile-nav :is(input.s,input[type=search]) {
  text-align:left !important;
  direction:ltr !important;
}
html.azha-ltr body .mobile-nav .wd-nav-mobile .wd-nav-opener {
  left:auto !important;
  right:12px !important;
}
html.azha-ltr body .mobile-nav.wd-side-hidden {
  border-inline-start:0;
  border-inline-end:2px solid var(--azha-gold,#c89b45);
}
/* Keep the existing logo, flag and language name in their native aspect ratios. */
html.azha-ltr body :is(.site-logo,.gtol-switch,.gtranslate_wrapper,.wd-header-text) img {
  transform:none;
  object-fit:contain;
}
html.azha-ltr body .gtol-switch {
  direction:ltr;
  white-space:nowrap;
}
html.azha-ltr body .gtol-switch :is(a,span) {
  vertical-align:middle;
}
html.azha-ltr body .gtol-switch a[data-gt-lang] {
  display:inline-flex;
  align-items:center;
  gap:.45em;
}

/* ---------------- HOME ----------------------------------------------- */
html.azha-ltr body.home :is(.azha-main-slider,.azha-hero-slide,.azha-hero-copy),
html.azha-ltr body.home :is(.azha-about-section,.azha-services-section,.azha-sectors-section,.azha-projects-section),
html.azha-ltr body.home :is(.azha-media-section,.azha-contact-section,.azha-rfq-section) {
  direction:ltr !important;
}
html.azha-ltr body.home :is(.azha-wide-container,.azha-about-row,.azha-stats-row,.azha-hero-row,.azha-services-row) {
  direction:ltr !important;
}
html.azha-ltr body.home :is(.azha-hero-copy,.azha-about-copy,.azha-service-box,.azha-sector-card,.azha-why-box) {
  text-align:left !important;
}
html.azha-ltr body.home :is(.azha-section-kicker,.azha-gm-kicker) {
  justify-content:flex-start;
}
html.azha-ltr body.home :is(.azha-hero-copy,.azha-about-copy) > :is(h1,h2,h3,p) {
  text-align:left !important;
}
/* Keep WoodMart Swiper/Carousel translations and transforms intact. */
html.azha-ltr body.home :is(.swiper,.swiper-wrapper,.swiper-slide,.wd-carousel-container) {
  max-width:100%;
}

/* ---------------- PORTFOLIO, BLOG, MEDIA, CAREERS --------------------- */
html.azha-ltr body :is(
  .woodmart-archive-portfolio,.single-portfolio,
  .single-post,.blog,.archive,.search,.page-title,
  .wd-projects,.wd-portfolio-element,.wd-single-project,
  .portfolio-entry,.portfolio-info,.wd-nav-portfolio,
  .wd-post,.wd-blog-holder,.wd-posts,
  .wpcf7,.wpcf7-form
) {
  direction:ltr !important;
  text-align:start;
}
html.azha-ltr body :is(.portfolio-entry,.portfolio-info,.wd-project,.wd-post) :is(h1,h2,h3,h4,p,.entry-title,.portfolio-title) {
  text-align:start !important;
}
html.azha-ltr body :is(.wd-nav-portfolio,.wd-page-nav,.wd-pagination) {
  direction:ltr !important;
}
html.azha-ltr body :is(.page-title,.single-portfolio,.single-post) :is(.container,.breadcrumbs,.wd-breadcrumbs) {
  direction:ltr !important;
}
html.azha-ltr body :is(.wpcf7,.wpcf7-form) :is(label,input,textarea,select) {
  text-align:left;
  direction:ltr;
}
html.azha-ltr body :is(.wpcf7,.wpcf7-form) :is(input[type=tel],input[type=email],input[type=url]) {
  direction:ltr !important;
  text-align:left !important;
  unicode-bidi:plaintext;
}
html.azha-ltr body :is(.wd-post,.wd-project,.wp-block-wd-column) {
  min-width:0;
}

/* ---------------- FOOTER -------------------------------------------- */
html.azha-ltr body :is(.wd-footer,.footer-container,.main-footer,.copyrights-wrapper) {
  direction:ltr !important;
  text-align:left !important;
}
html.azha-ltr body .wd-footer :is(.wd-menu,.wd-nav,.wd-nav-horizontal,.wp-block-wd-paragraph) {
  direction:ltr !important;
  text-align:left !important;
}
html.azha-ltr body .wd-footer :is(h2,h3,h4,p,li,a,span) {
  text-align:start;
}

/* ---------------- NUMBER, PHONE, EMAIL — isolate bidi safely -------- */
html.azha-ltr body :is(
  a[href^="tel:"],a[href^="mailto:"],
  input[type=tel],input[type=email],input[type=url]
) {
  direction:ltr !important;
  unicode-bidi:isolate;
  text-align:left;
}
html.azha-ltr body img,
html.azha-ltr body :is(.wp-block-wd-image,.azha-projects-section,.wd-project,.azha-sector-card) img {
  max-width:100%;
}
html.azha-ltr body :is(.azha-c12-page,.azha-v10-page,.azha-s11-page) :is(.wp-block-wd-column,.wp-block-wd-row) {
  min-width:0;
}

/* ---------------- ACCESSIBILITY & RESPONSIVE ----------------------- */
html.azha-ltr body :is(.whb-header,.mobile-nav,.wd-footer,.azha-c12-page) :is(a,button,input,select,textarea):focus-visible {
  outline:2px solid var(--azha-gold,#C89B45);
  outline-offset:3px;
}
@media(max-width:1024px) {
  html.azha-ltr body .mobile-nav .wd-nav-mobile .wd-nav-opener {right:12px !important;left:auto !important;}
  html.azha-ltr body :is(.azha-v10-page,.azha-s11-page,.azha-c12-page) :is(h1,h2,h3,p) {overflow-wrap:break-word;}
  html.azha-ltr body .wd-footer .wd-nav-horizontal {justify-content:center;}
}
@media(max-width:767px) {
  html.azha-ltr body :is(.azha-v10-page,.azha-s11-page,.azha-c12-page) :is(.wp-block-wd-column,.azha-v10-inner,.azha-s11-inner,.azha-c12-inner) {max-width:100%;}
  html.azha-ltr body .mobile-nav {max-width:min(92vw,390px);}
  html.azha-ltr body .gtol-switch a[data-gt-lang] {gap:.32em;}
  html.azha-ltr body :is(.azha-hero-copy,.azha-about-copy,.azha-v10-hero-copy,.azha-s11-hero-copy) {min-width:0;}
}
@media(prefers-reduced-motion:reduce) {
  html.azha-ltr body :is(.mobile-nav,.whb-header) * {scroll-behavior:auto;}
}
