/* ==========================================================================
   Arabic (right to left) fixes: home hero and the customer-logo bar under it.
   Load after css/teradix-rtl.css. Scope: .hero, .hero__*, .badge, .film,
   .proof, .hlogos. Every selector starts with [dir="rtl"].

   Already done by the base (section 9 of teradix-rtl.css), not repeated here:
   copy column side and veil on wide screens, badge and film paddings, film
   hover offset block, primary button block and arrow, stat divider side,
   figure order in .proof b and .hlogos__stat b, the marquee kept left to right.
   The sliding hairlines on the logo bar are symmetric and are left alone.
   ========================================================================== */

/* ---- 1. Copy column ------------------------------------------------------ */
/* The button label is one phrase: it never breaks onto two lines. */
[dir="rtl"] .hero__actions .btn{white-space:nowrap}
/* The film caption mixes Arabic with a Latin brand name: one line, read from the right. */
[dir="rtl"] .film__tx{align-items:flex-start;white-space:nowrap}
/* The tint over the film preview deepens toward the caption, which is now on the left. */
[dir="rtl"] .film__poster::after{background:linear-gradient(270deg,rgba(11,20,134,.15),rgba(11,20,134,.45))}
/* The play triangle is a media control and keeps pointing right (no rule on purpose). */

/* ---- 2. Narrow screens ---------------------------------------------------
   The English column is half the screen wide with the scene beside it. Arabic
   lines are longer and taller, so half a phone screen breaks the headline into
   four lines and pushes the buttons under the logo bar. Below 981px the Arabic
   copy takes the full width with both gutters, the scene drops back behind an
   even wash, and the hero grows with its content instead of clipping it. */
@media(max-width:980px){
  /* the hero height on small screens is set by css/mobile/hero.css; a second rule here made the hero cover the sections below it */
  [dir="rtl"] .hero__copy{width:auto;max-width:none;justify-self:stretch;
    padding-right:var(--pad);padding-left:var(--pad)}
  [dir="rtl"] .hero__copy h1{max-width:none}
  [dir="rtl"] .hero__copy .lead{max-width:46ch}
  [dir="rtl"] .hero__veil{background:linear-gradient(180deg,rgba(8,14,94,.9) 0%,rgba(8,14,94,.8) 100%)}
}
@media(max-width:560px){
  /* stacked actions: both controls span the column and start at the right edge */
  [dir="rtl"] .hero__actions .film{justify-content:flex-start}
}

/* ---- 3. Logo bar ---------------------------------------------------------
   The stat now sits on the right and the logos run to its left.
   The two hairlines on the bar (.hlogos::before and ::after) are a repeating
   strip, twice the bar's width, that slides by transform. They are symmetric
   and positioned with physical left/top, so they need no Arabic rule. Do not
   set their background or left here: that stops the strip covering the bar. */
/* a longer Arabic label: two balanced lines, never three */
[dir="rtl"] .hlogos__stat span{max-width:24ch;text-wrap:balance}
