/* RTL overrides – load when dir="rtl" (Arabic) */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] body {
  text-align: right;
  font-family: 'Noto Sans Arabic', sans-serif;
}

/* Keep explicitly centered content centered */
[dir="rtl"] .text-center,
[dir="rtl"] .mv-header {
  text-align: center !important;
}

/* Header RTL: logo and menu grouped on the right, hamburger on the left */
[dir="rtl"] header,
[dir="rtl"] header nav {
  direction: rtl;
}

[dir="rtl"] header nav {
  flex-direction: row;
}

[dir="rtl"] header nav ul {
  flex-direction: row;
  flex: 1;
  justify-content: center;
  margin-inline-start: 0.75rem;
  margin-inline-end: 0.75rem;
}

/* Mobile menu RTL */
[dir="rtl"] #mobile-menu {
  text-align: right;
}

[dir="rtl"] #mobile-menu ul {
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}

[dir="rtl"] #mobile-menu a {
  text-align: right;
}

/* Language dropdown – left side in RTL (between nav links and hamburger) */
[dir="rtl"] .lang-dropdown summary::-webkit-details-marker,
[dir="rtl"] .lang-dropdown-trigger::-webkit-details-marker {
  display: none;
}

[dir="rtl"] .lang-dropdown-menu {
  display: none;
  inset-inline-end: 0;
  text-align: right;
}

[dir="rtl"] .lang-dropdown[open] .lang-dropdown-menu {
  display: block;
}

/* Footer: brand on right, columns flow RTL */
[dir="rtl"] .site-footer-top {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .site-footer-brand {
  text-align: right;
}

[dir="rtl"] .site-footer-column {
  text-align: right;
}

[dir="rtl"] .site-footer-bottom {
  flex-direction: row-reverse;
}

@media (min-width: 640px) {
  [dir="rtl"] .site-footer-bottom {
    text-align: right;
  }
  [dir="rtl"] .site-footer-legal {
    justify-content: flex-end;
  }
}

[dir="rtl"] .site-footer-legal {
  flex-direction: row-reverse;
}

/* Contact section RTL */
[dir="rtl"] .contact-welcome {
  direction: rtl;
  text-align: right;
}

@media (min-width: 1024px) {
  [dir="rtl"] .contact-welcome {
    text-align: right;
   
  }
}

[dir="rtl"] .contact-form-wrap,
[dir="rtl"] .contact-form-card-inner,
[dir="rtl"] .contact-form {
  text-align: right;
}

[dir="rtl"] .contact-field label,
[dir="rtl"] .contact-field input,
[dir="rtl"] .contact-field textarea {
  text-align: right;
}

[dir="rtl"] .contact-field input::placeholder,
[dir="rtl"] .contact-field textarea::placeholder {
  text-align: right;
}

[dir="rtl"] .contact-cta-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-cta-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .contact-cta-link:hover .contact-cta-arrow {
  transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

/* Contact form card glow – move to left in RTL */
[dir="rtl"] .contact-form-card-glow {
  right: auto;
  left: -20%;
}

/* MV cards – number and glow position */
[dir="rtl"] .mv-card-inner,
[dir="rtl"] .about-card .relative {
  text-align: right;
}

/* About page (ar) – Vision/Mission card blur orbs in RTL */
[dir="rtl"] .about-card .absolute.top-0.right-0 {
  right: auto;
  left: 0;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .about-card .absolute.bottom-0.left-0 {
  left: auto;
  right: 0;
  transform: translate(50%, 50%);
}

/* About page – values cards text alignment (section after .about-mv) */
[dir="rtl"] .about-mv + section [class*="rounded-2xl"] {
  text-align: right;
}

[dir="rtl"] .about-cta-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .mv-card-number {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .mv-card-glow {
  right: auto;
  left: -20%;
}

/* Agile line – animate from right in RTL */
[dir="rtl"] .agile-line {
  transform-origin: right;
}

[dir="rtl"] .agile-line.animated {
  transform: translateY(-50%) scaleX(1);
}

/* Service card – blur orb on left in RTL */
[dir="rtl"] .service-card > .absolute.top-0.right-0 {
  right: auto;
  left: 0;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .service-card:hover > .absolute.top-0.right-0 {
  transform: translate(-50%, -50%);
}

/* Post content */
[dir="rtl"] .post-content {
  text-align: right;
}

[dir="rtl"] .post-content ul,
[dir="rtl"] .post-content ol {
  padding-left: 0;
  padding-right: 1.5rem;
}

/* Blog card content */
[dir="rtl"] .blog-card-content {
  text-align: right;
}

/* Section reveal – ensure transform works in RTL (no horizontal shift) */
[dir="rtl"] .section-reveal.revealed {
  transform: translateY(0);
}

[dir="rtl"] .section-reveal {
  transform: translateY(28px);
}

/* Ensure flex wrap and justify don't break in RTL */
[dir="rtl"] .flex.flex-wrap.gap-4.justify-center {
  flex-direction: row;
}

[dir="rtl"] .flex.flex-wrap.gap-2,
[dir="rtl"] .flex.flex-wrap.gap-3 {
  direction: rtl;
}

.mv-label {
  display: inline-block;
  font-size: unset;
  font-weight: 700;
  letter-spacing: unset;
  text-transform: uppercase;
  color: rgb(19, 114, 246);
  margin-bottom: 1rem;
  font-family: Noto Sans Arabic;
}