/* =========================================================
   RTL overrides (Arabic). Only loaded when is_rtl() — English/French
   pages never load this file. Mirrors layout/spacing; the base
   stylesheet's colors, tokens and component structure stay identical.
   ========================================================= */

body{
  font-family:"Cairo","Inter","Segoe UI",Arial,sans-serif;
}
h1,h2,h3,h4,.jo-eyebrow,.jo-logo__text{
  font-family:"Cairo","Space Grotesk","Segoe UI",Arial,sans-serif;
}

/* Header */
.jo-topbar__inner,
.jo-header__inner,
.jo-header__actions,
.jo-footer__bottom-inner{
  flex-direction:row-reverse;
}
.jo-lang-switcher__menu{left:0;right:auto;}
.jo-menu{flex-direction:row-reverse;}
.jo-submenu{left:auto;right:0;text-align:right;}
.jo-submenu-toggle{right:auto;left:0;}

/* Breadcrumb separator flips direction */
.jo-breadcrumb ol{flex-direction:row-reverse;justify-content:flex-end;}
.jo-breadcrumb li:not(:last-child)::after{content:"\\";margin:0 .4rem;}

/* Icon-adjacent buttons/links: keep icon on the trailing side */
.jo-btn,
.jo-project-card__link,
.jo-linkcard__cta,
.jo-doc-card__cta,
.jo-timeline__nav-icon,
.jo-lang-switcher__toggle{
  flex-direction:row-reverse;
}

/* Spec list bullets */
.jo-spec-list li{flex-direction:row-reverse;text-align:right;}

/* Stat band: keep left border convention but reversed */
.jo-stat-list li{border-left:0;border-right:1px solid rgba(255,255,255,.14);}
.jo-stat-list li:first-child{border-right:0;}

/* Vertical timeline: mirror alternating sides */
.jo-vtimeline__item:nth-child(odd){padding-right:0;padding-left:var(--jo-space-4);}
.jo-vtimeline__item:nth-child(even){padding-left:0;padding-right:var(--jo-space-4);}
.jo-vtimeline__item:nth-child(odd) .jo-vtimeline__dot{right:auto;left:-9px;}
.jo-vtimeline__item:nth-child(even) .jo-vtimeline__dot{left:auto;right:-9px;}
.jo-vtimeline__item:nth-child(odd) .jo-vtimeline__card{transform:translate(-24px,18px);}
.jo-vtimeline__item:nth-child(even) .jo-vtimeline__card{transform:translate(24px,18px);}
.jo-vtimeline__item.is-visible .jo-vtimeline__card{transform:translate(0,0);}

/* Data table group indicator border */
.jo-data-table td.jo-data-table__group{border-left:0;border-right:3px solid var(--jo-blue-light);}
.jo-data-table{text-align:right;}
.jo-data-table th,.jo-data-table td{text-align:right;}

/* Footer grid + partner/quick-link lists */
.jo-footer__grid{direction:rtl;}

/* Mobile nav drawer slides from the left instead of the right */
@media (max-width:780px){
  .jo-primary-nav{
    inset:var(--jo-header-h) auto 0 0;
    transform:translateX(-100%);
  }
  .jo-primary-nav.is-open{transform:translateX(0);}
  .jo-submenu-toggle{left:auto;right:0;}
}
