@charset "UTF-8";
/* ==========================================================================
   English / left-to-right layout (html[dir="ltr"], set by js/i18n.js)

   The site was designed right-to-left. Flex and grid rows flip on their own when the
   direction changes; this file only fixes what was pinned to the right in the Arabic
   design (text alignment, absolute positions, slide-in directions, arrow icons) and
   makes room for the longer English texts. Arabic (dir="rtl") is not affected.
   ========================================================================== */

/* ---------- Shared ---------- */
html[dir="ltr"] .section-title {
  letter-spacing: 0;
}

/* ---------- Header ---------- */
/* English menu labels are longer than the Arabic ones */
html[dir="ltr"] .header__brand {
  gap: 24px;
}
html[dir="ltr"] .header__nav ul {
  gap: 14px;
}
html[dir="ltr"] .header__nav a {
  font-size: 15px;
}
@media (max-width: 1360px) {
  html[dir="ltr"] .header__nav ul {
    gap: 11px;
  }
  html[dir="ltr"] .header__nav a {
    font-size: 14px;
  }
}
@media (max-width: 1240px) {
  html[dir="ltr"] .header__brand {
    gap: 16px;
  }
  html[dir="ltr"] .header__nav ul {
    gap: 9px;
  }
  html[dir="ltr"] .header__nav a {
    font-size: 13px;
  }
  html[dir="ltr"] .has-sub {
    gap: 4px;
  }
}
@media (max-width: 1100px) {
  html[dir="ltr"] .header__nav ul {
    gap: 7px;
  }
  html[dir="ltr"] .header__nav a {
    font-size: 12px;
  }
}
@media (max-width: 1040px) {
  html[dir="ltr"] .header__brand {
    gap: 12px;
  }
  html[dir="ltr"] .header__nav ul {
    gap: 6px;
  }
  html[dir="ltr"] .header__nav a {
    font-size: 11px;
  }
}
@media (max-width: 992px) {
  html[dir="ltr"] .header__nav ul {
    gap: 0;
  }
  html[dir="ltr"] .header__nav a {
    font-size: 16px;
  }
  html[dir="ltr"] .header__nav .sub {
    padding: 0 0 0 16px !important;
  }
}

/* ---------- Hero ---------- */
html[dir="ltr"] .hero__content {
  right: auto;
  left: 24px;
  width: 640px;
}
html[dir="ltr"] .hero__title span {
  width: auto;
  max-width: 640px;
  text-align: left;
  white-space: nowrap;
}
html[dir="ltr"] .hero__lead {
  width: 540px;
  text-align: justify; /* both edges lined up, as in Arabic */
  text-align-last: left;
  font-size: 18px;
}
html[dir="ltr"] .hero__cta {
  width: auto;
  min-width: 250px;
  justify-content: center;
}
html[dir="ltr"] .hero__cta svg {
  transform: scaleX(-1);
}
html[dir="ltr"] .hero__squares {
  left: auto;
  right: 289px;
  transform: scaleX(-1);
  animation-name: squares-float-ltr;
}
@keyframes squares-float-ltr {
  0%, 100% {
    transform: scaleX(-1) translate(0, 0);
  }
  50% {
    transform: scaleX(-1) translate(5px, -8px);
  }
}
html[dir="ltr"] .hero__photos {
  left: auto;
  right: 24px;
}
html[dir="ltr"] .hero__photo-set {
  direction: rtl; /* keep the photo hugging the outer (right) edge */
}
@media (max-width: 1280px) {
  html[dir="ltr"] .hero__photos {
    transform-origin: right bottom;
  }
  html[dir="ltr"] .hero__squares {
    left: auto;
    right: 249px;
  }
}
@media (max-width: 1100px) {
  html[dir="ltr"] .hero__content {
    width: 100%;
  }
  html[dir="ltr"] .hero__lead,
  html[dir="ltr"] .hero__title span {
    width: auto;
    max-width: 560px;
    white-space: normal;
  }
  html[dir="ltr"] .hero__photos {
    right: auto;
  }
  html[dir="ltr"] .hero__photo-set {
    direction: ltr;
  }
}

/* ---------- About (vision / mission / values cards) ---------- */
html[dir="ltr"] .about__head {
  width: 560px;
}
html[dir="ltr"] .card__corner {
  right: auto;
  left: -1px;
  transform: scaleX(-1);
}
/* English: the three cards use the same padding, title and text size (the Arabic sizes
   differ per card because of the kashida layout); text justified as in Arabic */
html[dir="ltr"] .card__back,
html[dir="ltr"] .card--mission .card__back {
  padding: 28px 24px 16px;
  text-align: left;
}
html[dir="ltr"] .card__back-title,
html[dir="ltr"] .card--mission .card__back-title {
  padding-inline-start: 0;
  margin-bottom: 12px;
}
html[dir="ltr"] .card__back-body,
html[dir="ltr"] .card--mission .card__back-body,
html[dir="ltr"] .card--values .card__back-body {
  margin-top: 0;
  font-size: var(--card-en-size, 14px);
  line-height: var(--card-en-lh, 1.35);
  text-align: justify; /* both edges lined up, as in Arabic */
  text-align-last: left;
  white-space: normal;
}
/* Values: centred on two lines (3 on top, 2 below), as in Arabic */
html[dir="ltr"] .card--values .card__back-body {
  margin-top: 24px;
  text-align: center;
  text-align-last: center;
  white-space: nowrap;
}
html[dir="ltr"] .card--vision .card__title,
html[dir="ltr"] .card--mission .card__title,
html[dir="ltr"] .card--values .card__title {
  width: auto;
}

/* ---------- Services ---------- */
html[dir="ltr"] .services__text {
  direction: ltr;
  padding-inline-start: 72px; /* clear the orange corner, which sits at the column's left edge */
}
@media (max-width: 1300px) {
  html[dir="ltr"] .services__text {
    padding-inline-start: 64px;
  }
}
@media (max-width: 992px) {
  html[dir="ltr"] .services__text {
    padding-inline-start: 0;
    padding-top: 48px;
  }
}
html[dir="ltr"] .services__track-link {
  text-align: left;
}
html[dir="ltr"] .services__title {
  font-size: 30px;
}
html[dir="ltr"] .d-name {
  font-size: 21px;
  letter-spacing: 0;
}
html[dir="ltr"] .d-label {
  font-size: 15px;
}
html[dir="ltr"] .d-center {
  font-size: 26px;
}

/* ---------- Stats ---------- */
html[dir="ltr"] .stats__list {
  gap: 32px;
}
html[dir="ltr"] .stat {
  width: 200px !important;
}
html[dir="ltr"] .stat__label {
  white-space: normal;
}
@media (max-width: 1240px) {
  html[dir="ltr"] .stat {
    width: calc(33.333% - 40px) !important;
  }
}
@media (max-width: 576px) {
  html[dir="ltr"] .stat {
    width: calc(50% - 12px) !important;
  }
}

/* ---------- Methodology ---------- */
/* The arrow overlaps the previous frame, which is now on its left */
html[dir="ltr"] .arrow img {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}
html[dir="ltr"] .step__desc {
  width: 184px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- Partners ---------- */
html[dir="ltr"] .tab--global {
  width: auto; /* fits "International Partnerships & Cooperation" */
}
html[dir="ltr"] .tab--clients {
  width: 160px;
}

/* ---------- Contact ---------- */
@media (min-width: 861px) {
  /* Slide-in: the info column now comes from the left, the form from the right */
  html[dir="ltr"] .contact__info {
    transform: translateX(-499px);
  }
  html[dir="ltr"] .contact__form-wrap {
    transform: translateX(646px);
  }
  html[dir="ltr"] .contact.is-visible .contact__info,
  html[dir="ltr"] .contact.is-visible .contact__form-wrap {
    transform: none;
  }
}
html[dir="ltr"] .field input[dir=ltr],
html[dir="ltr"] .field input[dir=ltr]::placeholder {
  text-align: left;
}
html[dir="ltr"] .select select {
  padding-left: 0;
  padding-right: 28px;
}
html[dir="ltr"] .select img {
  left: auto;
  right: 0;
}

/* ---------- Footer ---------- */
html[dir="ltr"] .footer__about {
  text-align: justify; /* both edges lined up, as in Arabic */
  text-align-last: left;
}
html[dir="ltr"] .newsletter__msg {
  right: auto;
  left: 0;
}

/* ---------- Breadcrumb (inner pages) ---------- */
html[dir="ltr"] .breadcrumb li + li::before {
  transform: scaleX(-1);
}

/* ---------- CEO message ---------- */
html[dir="ltr"] .ceo__message {
  text-align: justify; /* both edges lined up, as in Arabic */
  text-align-last: left;
}

/* ---------- Fields of work ---------- */
html[dir="ltr"] .fields__intro {
  width: 520px;
}
html[dir="ltr"] .fields__item {
  direction: ltr;
  font-size: 18px;
}

/* ---------- Leaders ---------- */
/* English names and job titles are longer: let the caption grow upwards */
html[dir="ltr"] .leader__caption {
  height: auto;
  min-height: 62px;
  padding: 7px 8px 8px;
  gap: 5px;
}
html[dir="ltr"] .leader__name {
  font-size: 14px;
}
html[dir="ltr"] .leader__role {
  font-size: 11.5px;
  line-height: 1.25;
}
@media (max-width: 1240px) {
  html[dir="ltr"] .card__back,
  html[dir="ltr"] .card--mission .card__back {
    padding-top: 20px;
  }
  html[dir="ltr"] .about__cards {
    --card-en-size: 13px;
    --card-en-lh: 1.3;
  }
}

/* English justified paragraphs (js/kashida.js): one block per line; every line but the
   last is stretched to the full width, its spare room shared between letters and spaces */
html[dir="ltr"] .jl-line {
  display: block;
  text-align: left;
  text-align-last: left;
}

/* ---------- Wider horizons (آفاق أوسع) ---------- */
/* English: the six words are laid out as the mirror image of the Arabic design, so each
   word starts on the left with the orange corner (also mirrored) above its start */
@media (min-width: 768px) {
  html[dir="ltr"] .horizons__item {
    left: calc((709 - var(--x) - var(--cx) - 61 + var(--en-shift, 0)) * var(--px));
  }
  /* The English words are on one line and longer than the Arabic ones,
     so the two columns move 65px apart each to keep a clear gap between them */
  html[dir="ltr"] .horizons__item--2,
  html[dir="ltr"] .horizons__item--4,
  html[dir="ltr"] .horizons__item--6 {
    --en-shift: -65;
  }
  html[dir="ltr"] .horizons__item--1,
  html[dir="ltr"] .horizons__item--3,
  html[dir="ltr"] .horizons__item--5 {
    --en-shift: 65;
  }
  html[dir="ltr"] .horizons__corner {
    left: 0;
    transform: scaleX(-1);
  }
  html[dir="ltr"] .horizons__label {
    left: calc(91 * var(--px)); /* 30px right of the corner, as in the Arabic layout */
    right: auto;
    width: auto;
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
  }
  /* The English title is longer: smaller type, with room on both sides inside the diamond */
  html[dir="ltr"] .horizons__head {
    right: calc(52 * var(--px));
    width: calc(380 * var(--px));
    gap: calc(16 * var(--px));
  }
  html[dir="ltr"] .horizons__kicker {
    font-size: calc(24 * var(--px));
  }
  html[dir="ltr"] .horizons__title {
    font-size: calc(42 * var(--px));
  }
}
@media (max-width: 767px) {
  html[dir="ltr"] .horizons {
    direction: ltr;
  }
  html[dir="ltr"] .horizons__item {
    justify-self: start;
    width: auto;
    padding: 48px 0 0 0; /* the corner sits above the start of the word */
  }
  html[dir="ltr"] .horizons__corner {
    left: 0;
    right: auto;
    transform: scaleX(-1);
  }
  html[dir="ltr"] .horizons__label {
    direction: ltr;
    text-align: left;
    font-size: 22px;
  }
  html[dir="ltr"] .horizons__kicker {
    font-size: 22px;
  }
  html[dir="ltr"] .horizons__title {
    font-size: 36px;
  }
}

/* Past projects cards (components/projects): the corner accent and the tags follow the
   English reading direction; a smaller tag gap keeps the three English tags on one line */
html[dir="ltr"] .project-card__corner {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}
html[dir="ltr"] .project-card__tags {
  gap: 6px 8px;
}
html[dir="ltr"] .projects__arrow {
  transform: scaleX(-1);
}
html[dir="ltr"] a.projects__row:hover .projects__arrow,
html[dir="ltr"] a.projects__row:focus-visible .projects__arrow {
  transform: scaleX(-1) translateX(-4px);
}

/* Hero fitted to short laptop screens (components/hero/hero.css): mirrored for English */
@media (min-width: 1101px) {
  html[dir="ltr"] .hero__content {
    transform-origin: 0 0;
  }
  html[dir="ltr"] .hero__photos {
    transform-origin: 100% 0;
  }
  html[dir="ltr"] .hero__squares {
    left: auto;
    right: calc(24px + 265px * var(--hero-scale, 1));
  }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  html[dir="ltr"] .hero__photos {
    transform-origin: 100% 0;
  }
  html[dir="ltr"] .hero__squares {
    right: calc(24px + 225px * var(--hero-scale, 1));
  }
}

/* Menu items marked arOnly in components/header/header.js («المشاريع السابقة») are not shown in English */
html[dir="ltr"] .nav-ar-only {
  display: none;
}

/* ---------- History (لمحة تاريخية): mirrored for English — the whole stage is flipped
   (2012 on the left, the arrow and the diamond on the right) and the texts and logos are
   flipped back so they read normally ---------- */
@media (min-width: 993px) {
  html[dir="ltr"] .history__stage {
    transform: scaleX(-1);
  }
  html[dir="ltr"] .history__body,
  html[dir="ltr"] .history__logo,
  html[dir="ltr"] .history__tag,
  html[dir="ltr"] .history__slogan {
    transform: scaleX(-1);
  }
  html[dir="ltr"] .history__slogan {
    direction: ltr;
    text-align: left;
    font-size: 18px;
    top: 425px;
  }
  html[dir="ltr"] .history__title {
    font-size: 16px;
    white-space: normal;
  }
  html[dir="ltr"] .history__text {
    font-size: 13px;
  }
  html[dir="ltr"] .history__tag {
    direction: ltr;
    text-align: left;
    font-size: 12px;
  }
}
