.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.1);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.language-toggle:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.2);
}

.language-toggle:active {
  transform: scale(0.97);
}

@media (max-width: 760px) {
  .nav-actions {
    gap: 6px;
  }
  .language-toggle {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 5px;
  }
  .language-toggle {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
  }
}

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .brand,
html[lang="ar"] .logo {
  letter-spacing: 0;
}

/*
 * Arabic uses connected letterforms, so Latin letter-spacing rules — both
 * negative display tracking (headings, titles) and positive uppercase
 * tracking (eyebrows, tags) — must not apply: they crowd or break the joins.
 * `!important` is required because this file loads BEFORE the page's inline
 * <style>, so equal-specificity rules would otherwise win the cascade.
 */
html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after {
  letter-spacing: 0 !important;
}

/*
 * Arabic titles/excerpts carry more characters than the English strings,
 * so the English line clamps cut them mid-word. Allow extra lines in Arabic.
 */
html[lang="ar"] .article-card-title {
  -webkit-line-clamp: 3;
}

html[lang="ar"] .article-card-excerpt {
  -webkit-line-clamp: 4;
}

html[lang="ar"] .hero-inner {
  direction: rtl;
}

html[lang="ar"] .hero-col-left,
html[lang="ar"] .hero-col-right {
  text-align: right;
  align-items: flex-start;
}

html[lang="ar"] .hero-desc {
  font-size: clamp(16px, 1.2vw, 17.5px);
  line-height: 1.72;
}

@media (min-width: 761px) and (max-width: 1366px) {
  html[lang="ar"] .hero-desc {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.68;
  }
  html[lang="ar"] .hero-title {
    font-size: clamp(32px, 3.6vw, 42px);
  }
}

html[lang="ar"] .hero-arrow {
  transform: scaleX(-1);
}

html[lang="ar"] .hero-cta:hover .hero-arrow {
  transform: scaleX(-1) translateX(4px);
}

html[lang="ar"] .all-works-arrow {
  transform: scaleX(-1);
}

html[lang="ar"] .all-works-btn:hover .all-works-arrow {
  transform: scaleX(-1) translateX(4px);
}

html[lang="ar"] .section-tag {
  direction: rtl;
  letter-spacing: 0;
}

html[lang="ar"] .featured-header {
  direction: rtl;
}

html[lang="ar"] .featured-header-info {
  align-items: flex-start;
  text-align: right;
}

html[lang="ar"] .service-top {
  direction: rtl;
}

html[lang="ar"] .service-badge-pill {
  direction: rtl;
}

html[lang="ar"] .service-body {
  text-align: right;
}

html[lang="ar"] .service-meta {
  direction: rtl;
}

html[lang="ar"] .work div {
  left: auto;
  right: 20px;
  align-items: flex-start;
  text-align: right;
}

@media (max-width: 760px) {
  html[lang="ar"] .hero-col-left,
  html[lang="ar"] .hero-col-right {
    text-align: right;
  }
}

/* Inner Pages RTL Rules */
html[lang="ar"] .works-grid-detailed,
html[lang="ar"] .about-hero-grid,
html[lang="ar"] .experience-grid,
html[lang="ar"] .contact-grid-luxury {
  direction: rtl;
}

html[lang="ar"] .about-bio-card,
html[lang="ar"] .exp-card,
html[lang="ar"] .contact-vip-card,
html[lang="ar"] .contact-meta-card,
html[lang="ar"] .inner-header {
  text-align: right;
}

/* Mobile Nav Drawer RTL */
html[lang="ar"] .mobile-nav-inner {
  direction: rtl;
}

html[lang="ar"] .mobile-nav-link {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .mobile-nav-link .m-arrow {
  transform: scaleX(-1);
}

/* Mobile Hero RTL text alignment */
@media (max-width: 760px) {
  html[lang="ar"] .hero-col-left,
  html[lang="ar"] .hero-col-right {
    text-align: right;
  }
}

/*
 * Arabic line-height for headings and titles.
 *
 * Arabic diacritics (harakat: tanwin on عاماً, shadda on توفّر, etc.) render
 * above the letterforms and extend each line's ink box well past the Latin
 * ascent. At the English leading (1.2 - 1.28) those marks collide with the
 * line above — measured at -9.9px on .page-headline, -13px on .article-title
 * and -4.5px on .hero-title in Arabic, versus a clean +1.1px in English.
 * Raising the Arabic leading to 1.6 restores a clear gap (~+4px) at every
 * heading size tested. English is untouched: Latin has no such marks.
 * `!important` is required because this file loads BEFORE the inline <style>.
 */
html[lang="ar"] .page-headline,
html[lang="ar"] .section-heading,
html[lang="ar"] .hero-title,
html[lang="ar"] .article-title,
html[lang="ar"] .article-card-title {
  line-height: 1.6 !important;
}


