/**
 * Arabic / RTL overrides for SOUAE.
 * Loaded when is_rtl() (Polylang Arabic).
 *
 * Do NOT use flex-direction: row-reverse on chrome — with dir="rtl",
 * flex row already flows right-to-left; reversing it makes the header look LTR.
 */

html[dir="rtl"] body {
  direction: rtl;
  font-family: "Noto Sans Arabic", Ubuntu, sans-serif;
}

html[dir="rtl"] .souae-mono,
html[dir="rtl"] .souae-eyebrow,
html[dir="rtl"] .souae-utility {
  font-family: "Noto Sans Arabic", "Ubuntu Mono", monospace;
}

/* --------------------------------------------------------------------------
   Header + utility
   -------------------------------------------------------------------------- */

html[dir="rtl"] .souae-header,
html[dir="rtl"] .souae-utility,
html[dir="rtl"] .souae-footer {
  direction: rtl;
}

html[dir="rtl"] .souae-utility__inner,
html[dir="rtl"] .souae-header__bar,
html[dir="rtl"] .souae-utility__left,
html[dir="rtl"] .souae-utility__right,
html[dir="rtl"] .souae-nav {
  flex-direction: row; /* keep row; dir=rtl flips main-start */
}

html[dir="rtl"] .souae-burger {
  margin-inline-start: 12px;
  margin-inline-end: 0;
}

/* Mobile open menu: text aligns to start (right) */
@media (max-width: 1100px) {
  html[dir="rtl"] .souae-header.souae-menu-open .souae-nav {
    text-align: right;
  }

  html[dir="rtl"] .souae-header.souae-menu-open .souae-nav > a {
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

html[dir="rtl"] .souae-footer__top,
html[dir="rtl"] .souae-footer__bottom,
html[dir="rtl"] .souae-footer__newsletter-inner,
html[dir="rtl"] .souae-footer__nav,
html[dir="rtl"] .souae-footer__social,
html[dir="rtl"] .souae-footer__legal {
  flex-direction: row;
}

html[dir="rtl"] .souae-footer__meta,
html[dir="rtl"] .souae-footer__newsletter-copy {
  text-align: right;
}

html[dir="rtl"] .souae-footer__newsletter .wpcf7 input[type="email"],
html[dir="rtl"] .souae-footer__newsletter .wpcf7 input[type="submit"] {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Page chrome
   -------------------------------------------------------------------------- */

html[dir="rtl"] .souae-page-hero__inner,
html[dir="rtl"] .souae-band__inner,
html[dir="rtl"] .souae-hero__copy,
html[dir="rtl"] .souae-news-article__header,
html[dir="rtl"] .souae-news-article__body {
  text-align: right;
}

html[dir="rtl"] .souae-form-block input,
html[dir="rtl"] .souae-form-block select,
html[dir="rtl"] .souae-form-block textarea,
html[dir="rtl"] .wpcf7 input,
html[dir="rtl"] .wpcf7 select,
html[dir="rtl"] .wpcf7 textarea {
  text-align: right;
}

html[dir="rtl"] .souae-careers-dialog__head {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .souae-split__inner {
  direction: rtl;
}
