/* ============================================================
   AL JEDDAH FORKLIFT — ARABIC (RTL) OVERRIDES
   Scoped fixes for right-to-left layout on top of style.css,
   effects.css and mobile-nav.css. Only touches the components
   used on the Arabic homepage: topbar, header/nav, hero banner,
   quote widget and footer.
   ============================================================ */

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] select,
html[dir="rtl"] button{
  font-family:"Tajawal","Cairo","Inter",sans-serif;
}

html[dir="rtl"] body{direction:rtl;text-align:right}

/* topbar */
html[dir="rtl"] .topbar-right{margin-left:0;margin-right:auto}

/* nav drawer link icons / numbering already logical via flex, no change needed */
html[dir="rtl"] nav.main-nav ul li a:after{left:auto;right:0}

/* hero quote-widget floating chips (mirror corners) */
html[dir="rtl"] .qw-chip-top{left:auto;right:-20px}
html[dir="rtl"] .qw-chip-bottom{right:auto;left:-20px}

/* scroll cue stays centered — no change needed */

/* floating action buttons: mirror WhatsApp/Call sides */
html[dir="rtl"] .wa-float{right:auto;left:26px}
html[dir="rtl"] .call-float{left:auto;right:26px}
@media (max-width:480px){
  html[dir="rtl"] .wa-float{left:18px;right:auto}
  html[dir="rtl"] .call-float{right:18px;left:auto}
}

/* BUG FIX: select dropdown arrow was pinned to the physical right edge,
   which is also where RTL text starts — the arrow sat on top of the
   option text. Mirror the arrow to the left edge and swap the padding
   so the text has room to breathe on the right, arrow room on the left. */
html[dir="rtl"] select{
  background-position:left 14px center;
  padding-right:14px;
  padding-left:40px;
}
html[dir="rtl"] .qw-field select{
  background-position:18px center,13px center;
  padding-right:14px;
  padding-left:40px;
}

/* BUG FIX: on mobile, the hero trust row (rating + "240+ companies")
   sits at the very bottom of the hero on first load in Arabic — the
   shorter Arabic copy doesn't push it down/wrap the way the longer
   English copy does — landing it directly behind the fixed WhatsApp/
   Call buttons, which hides the text. Tighten the spacing above it
   so the row clears the floating buttons on common phone heights. */
@media (max-width:480px){
  html[dir="rtl"] .hero-badge{margin-bottom:10px}
  html[dir="rtl"] .hero-trust{margin-top:6px;gap:10px}
  html[dir="rtl"] .trust-avatars .ta-ic{width:32px;height:32px;font-size:.85rem}
}

/* footer bottom row on mobile */
html[dir="rtl"] .footer-bottom .container{text-align:right}

/* footer column divider line: mirror to the correct side in RTL */
html[dir="rtl"] .footer-col:before{left:auto;right:-20px}

/* footer link hover underline: grow toward the reading direction (right) in RTL */
html[dir="rtl"] .footer-grid ul li a:hover{padding-left:0;padding-right:2px}
html[dir="rtl"] .footer-grid ul li a:before{margin-right:0;margin-left:0}
html[dir="rtl"] .footer-grid ul li a:hover:before{margin-right:0;margin-left:6px}

/* footer heading accent underline: mirror to the right in RTL */
html[dir="rtl"] .footer-grid h4:after{left:auto;right:0}

/* stat numbers / phone numbers stay LTR so digits read correctly */
html[dir="rtl"] .num,
html[dir="rtl"] .plate-num,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"]{
  direction:ltr;unicode-bidi:isolate;
}
html[dir="rtl"] .trust-stars{direction:ltr;unicode-bidi:isolate}

/* keep the brand name (Latin) left-to-right within an RTL flex row */
html[dir="rtl"] .brand .name,
html[dir="rtl"] .drawer-brand .dt b{
  direction:ltr;unicode-bidi:isolate;
}

/* ============================================================
   ABOUT PAGE OVERRIDES — Experience timeline, What-We-Do numbering,
   Mission/Vision panel numbers, Why-Choose-Us connector line,
   Who-We-Are image chip, Our-Commitment pledges, FAQ questions.
   These components hard-code left/right + text-align:left in
   style.css, which does not auto-mirror in RTL like flex/grid does.
   ============================================================ */

/* Experience timeline cards: body copy was hard-left, now reads right */
html[dir="rtl"] .exp-item{text-align:right}
html[dir="rtl"] .exp-card:after{left:auto;right:-60%}
html[dir="rtl"] .exp-item:hover .exp-card:after{left:auto;right:130%}

/* What-We-Do card numbering (01/02/03/04) — mirror to top-left */
html[dir="rtl"] .wwd-num{right:auto;left:20px}

/* Who-We-Are image: floating "10+ Years" chip sits on the image's
   inner edge facing the copy — the grid mirrors in RTL so the image
   moves to the left, meaning the chip needs to move to its right */
html[dir="rtl"] .split-media .tag-chip{left:auto;right:-22px}

/* Mission & Vision: large background panel number, mirror to top-left */
html[dir="rtl"] .mv-panel-num{right:auto;left:36px}

/* Why Choose Us: connecting line under the numbered rows was pinned
   to a fixed left offset; the numbers themselves visually shift to
   the right in RTL (flex direction mirrors), so mirror the line too */
html[dir="rtl"] .wcx-list:before{left:auto;right:98px}

/* Our Commitment: pledge card copy was hard-left, now reads right;
   corner "PROMISE" ribbon mirrored to the top-left with the rotation
   flipped so it still points the same visual way */
html[dir="rtl"] .ocm-pledge{text-align:right}
html[dir="rtl"] .ocm-pledge-ribbon{right:auto;left:-30px;transform:rotate(-40deg)}
html[dir="rtl"] .ocm-sign-badge{margin-left:0;margin-right:auto}

/* FAQ: question button copy now reads right (matters when a question
   wraps to two lines) */
html[dir="rtl"] .faq-q{text-align:right}
html[dir="rtl"] .faq-a p{padding-right:0;padding-left:14px}

/* Stat strip: in RTL the first DOM cell renders as the rightmost
   (visual "start"), so the divider that used to sit on each cell's
   physical right edge now needs to sit on its left edge instead */
html[dir="rtl"] .stat-cell:not(:last-child):before{right:auto;left:0}

/* ============================================================
   EQUIPMENT PAGE OVERRIDES — Category tabs, Forklifts/Lifting/
   Heavy/Material-Handling showcase sections, Why-Choose-Equipment.
   Same rationale as above: only the hard-coded left/right values
   that don't auto-mirror with the grid/flex direction switch.
   ============================================================ */

/* Category tabs: title/subtitle copy was hard-left, now reads right */
html[dir="rtl"] .ec-tab{text-align:right}

/* Forklifts / Lifting / Heavy / Material-Handling showcase:
   the floating unit-count badge sits on the photo's outer top
   corner (away from the copy). The visual/content grid mirrors
   in RTL — the photo moves to the right — so the badge needs to
   move to the photo's new outer corner (top-right) instead */
html[dir="rtl"] .fkz-badge-float,
html[dir="rtl"] .lft-badge-float,
html[dir="rtl"] .hvq-badge-float,
html[dir="rtl"] .mhe-badge-float{left:auto;right:-22px}
@media (max-width:640px){
  html[dir="rtl"] .fkz-badge-float,
  html[dir="rtl"] .lft-badge-float,
  html[dir="rtl"] .hvq-badge-float,
  html[dir="rtl"] .mhe-badge-float{left:auto;right:14px}
}

/* Why Choose Equipment: sidebar stat cards had a left accent
   border marking the reading-start edge — mirror to the right */
html[dir="rtl"] .wce-side-stat{border-left:none;border-right:3px solid var(--amber-500)}

/* ============================================================
   404 PAGE OVERRIDES — decorative elements that use hard-coded
   left/right/animation values which don't auto-mirror in RTL.
   Content itself (badge, heading, lede, CTA buttons, quick
   links) is centered so it already reads correctly; only the
   background scenery and the driving forklift need mirroring.
   ============================================================ */

/* scattered crates: mirror left/right offsets */
html[dir="rtl"] .notfound-crate-1{left:auto;right:6%}
html[dir="rtl"] .notfound-crate-2{left:auto;right:11%}
html[dir="rtl"] .notfound-crate-3{right:auto;left:7%}
html[dir="rtl"] .notfound-crate-4{right:auto;left:12%}

/* gears: mirror left/right offsets */
html[dir="rtl"] .notfound-gear-1{left:auto;right:3%}
html[dir="rtl"] .notfound-gear-2{right:auto;left:4%}

/* warning cone: mirror offset */
html[dir="rtl"] .notfound-cone{left:auto;right:24%}

/* sparking bolts: mirror offsets */
html[dir="rtl"] .notfound-bolt-1{left:auto;right:32%}
html[dir="rtl"] .notfound-bolt-2{right:auto;left:26%}

/* dust puffs along the ground: mirror offsets so they still trail
   behind the forklift's new right-to-left path */
html[dir="rtl"] .notfound-dust span:nth-child(1){left:auto;right:4%}
html[dir="rtl"] .notfound-dust span:nth-child(2){left:auto;right:22%}
html[dir="rtl"] .notfound-dust span:nth-child(3){left:auto;right:45%}
html[dir="rtl"] .notfound-dust span:nth-child(4){left:auto;right:66%}
html[dir="rtl"] .notfound-dust span:nth-child(5){left:auto;right:85%}

/* driving forklift: in RTL the natural "forward" reading direction
   is right-to-left, so the truck starts at the right edge facing
   left, drives to the left edge, flips, and drives back — mirror
   of the LTR keyframes rather than a straight left/right swap */
html[dir="rtl"] .notfound-forklift-drive{
  left:auto;right:-8%;
}
