/* ==========================================================================
   Lunara | RTL overrides
   Most spacing uses logical properties in style.css, so this file only
   handles what must be mirrored or kept left-to-right (emails, numbers, motion).
   Enabled by setting dir="rtl" on <html>.
   ========================================================================== */

[dir="rtl"] {
  --grad-dir: 270deg;
}

[dir="rtl"] body { text-align: start; }

/* Mirror directional icons */
[dir="rtl"] .btn .fa-arrow-right,
[dir="rtl"] .link-arrow .fa-arrow-right,
[dir="rtl"] .cat-body .fa-arrow-right {
  display: inline-block;
  transform: scaleX(-1);
}

/* Growing underlines and progress bar start from the right */
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
[dir="rtl"] .nav-list > li > a::after { transform-origin: right; }

/* Diagonal lifestyle panel mirrors with the layout */
[dir="rtl"] .lifestyle-media {
  clip-path: polygon(100% 0, 0 0, 18% 100%, 100% 100%);
}
@media (max-width: 900px) {
  [dir="rtl"] .lifestyle-media { clip-path: none; }
}

/* Vertical hero label reads from the other side */
[dir="rtl"] .hero-vertical { transform: translateY(-50%); }

/* Keep emails, numbers and pagers left-to-right */
[dir="rtl"] .field input,
[dir="rtl"] input[type="email"],
[dir="rtl"] .contact-item a,
[dir="rtl"] .hero-pager,
[dir="rtl"] .stats,
[dir="rtl"] .payments,
[dir="rtl"] .marquee-track {
  direction: ltr;
}
[dir="rtl"] .field input { text-align: start; }
[dir="rtl"] .hero-pager,
[dir="rtl"] .stats { text-align: start; }

/* Brand marquee keeps its motion direction */
[dir="rtl"] .marquee-group { direction: ltr; }

/* Footer contact rows align to the start edge */
[dir="rtl"] .contact-item { text-align: start; }

/* Dropdown and mobile menu align to the start edge */
[dir="rtl"] .dropdown { text-align: start; }

/* Back to top stays on the right side, as specified */
[dir="rtl"] .back-to-top { right: 24px; left: auto; }
@media (max-width: 767px) {
  [dir="rtl"] .back-to-top { right: 16px; }
}

/* Motion sections */
[dir="rtl"] .bar-fill { transform-origin: right center; }
[dir="rtl"] .lookbook-progress span { transform-origin: right center; }
[dir="rtl"] .look-panel { direction: rtl; }
[dir="rtl"] .look-copy, [dir="rtl"] .frame-btn, [dir="rtl"] .frame-caption { text-align: start; }
[dir="rtl"] .frame-btn .fa-arrow-right { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .drop-timer { direction: ltr; }

/* Creative sections */
[dir="rtl"] .deck-body,
[dir="rtl"] .index-item { text-align: start; }

/* Social grid panel: the wordmark stays left-to-right */
[dir="rtl"] .gp-word,
[dir="rtl"] .gp-kicker { direction: ltr; }

/* Watch collections: tab progress bars fill from the reading edge */
[dir="rtl"] .wc-tab-bar i { transform-origin: 100% 50%; }
