/* Cairo 2.010: the same outlines embedded in the approved company profile.
   Source: google/fonts e86936fd5b72936fe1eed526b69d49343a7d353b (OFL). */
@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-ExtraLight.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Cairo Profile';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/cairo-v2/Cairo-Black.ttf') format('truetype');
}

html[lang] {
  --font: 'Cairo Profile', sans-serif;
  --latin: 'Cairo Profile', sans-serif;
  --type-section: 34px;
  --type-subsection: 26px;
  --type-card: 22px;
  --type-compact: 20px;
  --type-body: 16px;
  --type-summary: 14px;
  --type-meta: 12px;
  --type-heading-leading: 1.5;
  --type-body-leading: 1.9;
}

html[lang='en'] {
  --type-heading-leading: 1.35;
  --type-body-leading: 1.75;
}

html[lang] body {
  font-family: var(--font);
}

html[lang] :is(button, input, textarea, select) {
  font-family: inherit;
}

html[lang] h1 {
  font-weight: 700;
}

html[lang] :is(h2, h3) {
  font-weight: 600;
}

html[lang] :is(.brand strong, .contact-button, .button, nav a) {
  font-weight: 600;
}

html[lang='ar'] :is(h1, h2, h3, .brand strong) {
  letter-spacing: normal;
}

html[lang='ar'] :is(.hero-carousel h1, .inner-hero h1) {
  line-height: 1.5;
}

html[lang='ar'] .brand strong {
  font-weight: 700;
}

/* Shared section, subsection and card levels; display headings keep their scale. */
html[lang] main :is(
  .signature-copy > h2,
  .expertise-section > h2,
  .heading-row h2,
  .story-copy > h2,
  .company-team-intro h2,
  .company-difference-heading h2,
  .regional h2,
  .clients-intro h2,
  .partner-story > h2,
  .home-clients-heading h2,
  .home-news-heading h2,
  .credentials-heading h2,
  .process > h2,
  .project-detail-copy > div > h2,
  .contact-info .contact-direct-title
) {
  font-size: var(--type-section);
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

html[lang] main :is(
  .company-group-heading h2,
  .credentials-about-copy h2,
  .pm-heading-row h2,
  .portfolio-context h2,
  .portfolio-empty h2,
  .empty-state h2,
  .contact-form h2,
  .related .heading-row h2,
  .rich-text h2
) {
  font-size: var(--type-subsection);
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

html[lang] main :is(
  .project-caption h3,
  .article-card h2,
  .company-person h3,
  .credentials-card-name,
  .office-location-heading h2,
  .values h3,
  .rich-text h3
) {
  font-size: var(--type-card);
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

html[lang] main :is(
  .service-card h3,
  .company-future-pillars h3,
  .company-difference-grid h3,
  .regional-cities h3,
  .process article h3,
  .client-cell.client-logo-card h3,
  .home-news-item h3,
  .rich-text h4
) {
  font-size: var(--type-compact);
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

html[lang] main .company-person.company-person-leader h3,
html[lang] main .home-news-lead .home-news-copy h3 {
  font-size: var(--type-subsection);
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

/* The service accordion keeps the approved 22 / 20 / 19 scale. */
html[lang] .services-list .service-detail > summary > h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

html[lang] .service-visual .sv-caption h2 {
  font-weight: 600;
  line-height: var(--type-heading-leading);
}

/* Long-form text and introductions share readable sizes in both languages. */
html[lang] main :is(
  .signature-copy > p,
  .story-copy > p,
  .values p,
  .company-team-intro > div > p,
  .company-future-intro > p,
  .company-difference-heading > p,
  .clients-intro p,
  .contact-direct-info .contact-invitation,
  .service-detail-body > p,
  .project-detail-copy .project-summary,
  .story-copy .rich-text,
  .service-detail-body .rich-text,
  .project-detail-copy .rich-text,
  .partner-story .rich-text,
  .article-body .rich-text,
  .custom-page-body
) {
  font-size: var(--type-body);
  line-height: var(--type-body-leading);
}

html[lang] main .rich-text :is(p, ul, ol, li):not(.content-lead) {
  font-size: inherit;
  line-height: inherit;
}

html[lang] main :is(
  .service-card p,
  .article-card > p,
  .home-news-copy p,
  .home-clients-heading p,
  .home-news-heading p,
  .credentials-heading > p,
  .credentials-about-copy p,
  .company-person-focus,
  .company-future-pillars p,
  .company-difference-grid p,
  .office-location-heading p,
  .service-detail-body > ul > li,
  .project-detail-copy dd,
  .portfolio-empty p
) {
  font-size: var(--type-summary);
  line-height: var(--type-body-leading);
}

html[lang] main :is(
  .project-caption p,
  .project-category,
  .article-meta,
  .home-news-category,
  .home-news-read,
  .home-news-all,
  .home-clients-all,
  .company-group-heading > p,
  .company-person-role,
  .company-person-field,
  .company-person-qualification,
  .company-discipline-tags li,
  .client-logo-card small,
  .client-website-cue,
  .credentials-card-kind,
  .credentials-card-meta small,
  .credentials-card-meta b,
  .credentials-card-bottom,
  .project-detail-copy dt,
  .source-note,
  .editorial-figure figcaption,
  .pm-feature figcaption,
  .contact-direct-copy small,
  .office-map-external
) {
  font-size: var(--type-meta);
  line-height: 1.75;
}

@media (max-width: 1000px) {
  html[lang] {
    --type-section: 30px;
    --type-subsection: 24px;
    --type-card: 21px;
    --type-compact: 19px;
  }

  html[lang] .services-list .service-detail > summary > h2 {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  html[lang] {
    --type-section: 28px;
    --type-subsection: 23px;
    --type-card: 20px;
    --type-compact: 18px;
    --type-body: 15px;
    --type-summary: 13px;
    --type-meta: 11px;
  }

  html[lang] .services-list .service-detail > summary > h2 {
    font-size: 19px;
  }

  html[lang] main .home-news-lead .home-news-copy h3 {
    font-size: 22px;
  }
}

/* Keep the hero copy, calls to action and slide controls in separate flow rows. */
html[lang] .hero.hero-carousel {
  --hero-control-size: 40px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: clamp(720px, 100svh, 800px);
  max-height: none;
  gap: clamp(40px, 5svh, 56px);
  padding-bottom: 42px;
}

html[lang] .hero.hero-carousel .hero-content {
  flex: 0 0 auto;
  min-width: 0;
  padding-top: clamp(164px, 20vh, 216px);
}

html[lang] .hero.hero-carousel h1 {
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

html[lang='en'] .hero.hero-carousel h1 {
  line-height: 1.2;
}

html[lang] .hero.hero-carousel .hero-buttons {
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 14px;
}

html[lang] .hero.hero-carousel .hero-bottom {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: auto;
  column-gap: 32px;
  row-gap: 26px;
}

html[lang] .hero.hero-carousel .hero-feature {
  min-width: 0;
  max-width: min(460px, 100%);
}

html[lang] .hero.hero-carousel .hero-feature > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[lang] .hero.hero-carousel .hero-feature .circle-arrow {
  flex-shrink: 0;
}

html[lang] .hero.hero-carousel .slider-control-group {
  min-width: 0;
  max-width: 100%;
}

html[lang] .hero.hero-carousel .slider-controls {
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  direction: ltr;
}

html[lang] .hero.hero-carousel .slide-dots {
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 10px;
}

html[lang] .hero.hero-carousel .slider-controls .slide-dot {
  flex: 0 0 42px;
  width: 42px;
  min-height: var(--hero-control-size);
  padding: 8px 0;
}

html[lang] .hero.hero-carousel .slider-controls :is(.slide-arrow, .slide-pause) {
  display: grid;
  place-items: center;
  flex: 0 0 var(--hero-control-size);
  width: var(--hero-control-size);
  height: var(--hero-control-size);
  padding: 0;
  margin: 0;
  line-height: 1;
}

html[lang] .hero.hero-carousel .slider-controls :is(.slide-arrow, .slide-pause) > svg {
  display: block;
  width: 18px;
  height: 18px;
  transform: none;
}

html[lang] .hero.hero-carousel .slider-controls .slide-arrow[data-slide-step='1'] > svg {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  html[lang] .hero.hero-carousel .slider-controls {
    gap: 8px;
  }

  html[lang] .hero.hero-carousel .slider-controls .slide-dot {
    flex-basis: 30px;
    width: 30px;
  }
}

@media (max-width: 640px) {
  html[lang] .hero.hero-carousel {
    --hero-control-size: 36px;
    min-height: min(760px, 100svh);
    gap: 40px;
    padding-bottom: 30px;
  }

  html[lang] .hero.hero-carousel .hero-content {
    padding-top: 128px;
  }

  html[lang] .hero.hero-carousel .hero-content .eyebrow {
    margin-bottom: 20px;
  }

  html[lang] .hero.hero-carousel h1 {
    font-size: 34px;
  }

  html[lang] .hero.hero-carousel .hero-buttons {
    column-gap: 20px;
    row-gap: 12px;
  }

  html[lang] .hero.hero-carousel .hero-feature {
    max-width: 100%;
  }

  html[lang] .hero.hero-carousel .slider-controls {
    gap: 6px;
  }

  html[lang] .hero.hero-carousel .slide-dots {
    gap: 8px;
  }

  html[lang] .hero.hero-carousel .slider-controls .slide-dot {
    flex-basis: 28px;
    width: 28px;
  }
}

@media (max-width: 360px) {
  html[lang] .hero.hero-carousel h1 {
    font-size: 32px;
  }
}

@media (max-height: 700px) and (min-width: 641px) {
  html[lang] .hero.hero-carousel {
    min-height: 680px;
    padding-bottom: 32px;
  }

  html[lang] .hero.hero-carousel .hero-content {
    padding-top: 144px;
  }
}
