@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/cairo-arabic-v31.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("/fonts/cairo-latin-v31.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.language-switch {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.site-header-home .language-switch {
  border-color: rgb(255 255 255 / 42%);
  color: #fff;
}

.site-header:not(.site-header-home) .language-switch {
  border-color: rgb(8 10 15 / 20%);
  color: #252c34;
}

.header-inner {
  column-gap: 16px;
  grid-template-columns: minmax(145px, 1fr) auto auto auto;
}

/* Keep the Arabic logo and navigation together on the right, while the
   language switch and primary action remain grouped on the left. */
@media (min-width: 921px) {
  .arabic-home .header-inner {
    direction: ltr;
    grid-template-columns: auto auto minmax(20px, 1fr) auto auto;
    column-gap: clamp(18px, 1.6vw, 30px);
  }

  .arabic-home .logo-link {
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0;
  }

  .arabic-home .desktop-nav {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    direction: rtl;
    justify-content: flex-end;
    justify-self: end;
  }

  .arabic-home .language-switch {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
  }

  .arabic-home .header-cta {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    direction: rtl;
    justify-self: start;
  }
}

.desktop-nav {
  gap: clamp(14px, 1.45vw, 28px);
}

.growth-nav .language-switch {
  border-color: rgb(16 24 32 / 24%);
  color: #101820;
  min-height: 42px;
}

[dir="rtl"] .growth-nav,
[dir="rtl"] .arabic-site-header {
  direction: rtl;
}

.arabic-home {
  direction: rtl;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  text-align: right;
}

[dir="rtl"] body {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

[dir="rtl"] body :is(h1, h2, h3, h4, p, a, button, span, strong, div, li, summary, label, input, textarea) {
  font-family: inherit;
}

.arabic-article-service-cta {
  background: #10252c;
  border-radius: 18px;
  color: #fff;
  margin: 64px auto;
  max-width: 980px;
  padding: clamp(28px, 5vw, 52px);
  text-align: right;
}

.arabic-article-service-cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  margin: 0 0 14px;
}

.arabic-article-service-cta p {
  color: #c5d7da;
  font-size: 17px;
  line-height: 1.85;
  margin: 0;
}

.arabic-article-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.arabic-article-service-actions a {
  align-items: center;
  background: #0f8f83;
  border: 1px solid #0f8f83;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
}

.arabic-article-service-actions a:last-child {
  background: transparent;
  border-color: rgb(255 255 255 / 42%);
}

.arabic-home :is(h1, h2, h3, .world-title, .section-title, .footer-cta-title) {
  letter-spacing: 0 !important;
  line-height: 1.2;
}

.arabic-home .world-copy h1 {
  font-size: clamp(3.2rem, 5.6vw, 5.4rem);
  line-height: 1.16;
}

/* In RTL, keep the hero subject looking inward toward the copy. */
.arabic-home .generated-world-visual img {
  transform: scale(1.015) scaleX(-1);
}

@media (min-width: 921px) {
  /* The Arabic visual sits to the left of the copy, so its inner/right edge
     must dissolve into the background just like the English inner/left edge. */
  .arabic-home .generated-world-visual {
    -webkit-mask-image: linear-gradient(270deg, transparent 0, rgb(0 0 0 / 78%) 14%, #000 36%);
    mask-image: linear-gradient(270deg, transparent 0, rgb(0 0 0 / 78%) 14%, #000 36%);
  }
}

/* Match the visible progress indicator to the five-second carousel cadence. */
.world-tabs button > i em {
  animation-duration: 5s;
}

/* Keep a five-second progress trace visible while the exported carousel's
   original seven-second clock is intentionally paused. */
.world-showcase[data-autoplay-cadence="5000"] .world-tabs button[aria-selected="true"] > i::before {
  animation: world-progress 5s linear forwards;
  background: var(--world-accent);
  content: "";
  display: block;
  height: 100%;
  transform-origin: left;
  width: 100%;
}

.world-showcase[data-autoplay-paused="true"] .world-tabs button[aria-selected="true"] > i::before {
  animation-play-state: paused;
}

.arabic-home .whatsapp-float {
  left: clamp(18px, 2.2vw, 34px);
  right: auto;
}

.arabic-home :is(.brand-mark, .brand-mark *, [lang="en"], [dir="ltr"]) {
  direction: ltr;
}

.arabic-home :is(.brand-mark, .brand-mark *) {
  font-family: Arial, sans-serif;
}

.arabic-home :is(.world-copy, .section-heading, .service-copy, .project-copy, .process-intro, .process-step, .footer-copy, .growth-card) {
  text-align: right;
}

.arabic-home :is(.world-overline, .capability-label, .project-index, .service-index, .growth-index) {
  unicode-bidi: isolate;
}

.arabic-home .language-switch {
  font-family: Arial, sans-serif;
}

.arabic-home .world-description,
.arabic-home .section-description,
.arabic-home .project-description,
.arabic-home .process-description {
  line-height: 1.85;
}

.arabic-home .whatsapp-widget,
.arabic-home .whatsapp-widget * {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

@media (max-width: 1120px) and (min-width: 921px) {
  .header-inner {
    column-gap: 10px;
  }

  .desktop-nav {
    gap: 13px;
  }

  .desktop-nav a {
    font-size: 0.78rem;
  }

  .header-cta {
    padding-inline: 13px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    column-gap: 8px;
    grid-template-columns: 1fr auto auto;
  }

  .arabic-home .header-inner {
    direction: ltr;
    grid-template-columns: auto 1fr auto;
  }

  .arabic-home .menu-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .arabic-home .language-switch {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .arabic-home .logo-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .language-switch {
    min-height: 36px;
    padding-inline: 12px;
  }

  .growth-nav-links .language-switch {
    display: inline-flex !important;
  }
}
