html[lang="ar"] body { font-family: 'Cairo', sans-serif; }
html[lang="ar"] :is(h1,h2,h3,p,a,button,label,span,strong) { letter-spacing: normal; }
html[lang="ar"] :is(h1,h2) { line-height: 1.35; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] .home-hero h1 { font-size: clamp(28px, 2.5vw, 48px); }
html[lang="ar"] .home-hero .hero-text { font-size: clamp(16px, 1.15vw, 22px); font-weight: 600; line-height: 1.9; }
html[lang="ar"] .home-hero .home-hero-art { margin-left: 0; margin-right: -2%; }
html[lang="ar"] .dropdown-menu { left: auto; right: 0; text-align: right; }
html[lang="ar"] .check-list { padding-right: 0; }
html[lang="ar"] .check-list li { padding-left: 0; padding-right: 28px; }
html[lang="ar"] .check-list li:before { left: auto; right: 0; }
html[lang="ar"] .service-card > span, html[lang="ar"] .service-card > b { right: auto; left: 25px; }
html[lang="ar"] .service-card h3 { max-width: none; }
html[lang="ar"] .industry-item i { right: auto; left: 20px; }
html[lang="ar"] .office-contact-info { border-left: 0; border-right: 4px solid var(--navy); }
html[lang="ar"] :is(a[href^="tel:"], a[href^="mailto:"]):not(.floating-contact-link) { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[lang="ar"] .contact-direct a[href^="tel:"], html[lang="ar"] .contact-direct a[href^="mailto:"] { direction: rtl; display: grid; }
html[lang="ar"] .contact-direct strong { direction: ltr; unicode-bidi: isolate; text-align: right; }
html[lang="ar"] .office-split { direction: ltr; }
html[lang="ar"] .office-contact-info, html[lang="ar"] .office-map-card { direction: rtl; }
.article-language-note { padding: 12px 16px; border-right: 3px solid var(--turquoise); background: #edf5f5; color: var(--navy); font-size: 14px; }
html[lang="ar"] :is(input, select, textarea, button) { font-family: inherit; }
html[lang="ar"] .article-toc nav { border-left: 0; border-right: 2px solid var(--border); padding-left: 0; padding-right: 18px; }
html[lang="ar"] .article-body blockquote { border-left: 0; border-right: 4px solid var(--turquoise); border-radius: 12px 0 0 12px; }
html[lang="ar"] .article-body { line-height: 2; }
html[lang="ar"] .approach-lead { white-space: normal; }
@media (max-width: 640px) {
  html[lang="ar"] body .process-card :is(h3, p) { text-align: right !important; }
  html[lang="ar"] .about-flow-step { text-align: right; }
  html[lang="ar"] .about-flow-line { left: auto; right: 35px; }
}


@media (max-width: 900px) { html[lang="ar"] .home-hero .home-hero-art { margin-inline: auto; } }

/* Spacious navigation, with a compact flag switch in both languages. */
.site-header .header-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 86px;
  height: auto;
  gap: 32px;
}
.site-header .brand { flex-shrink: 0; }
.site-header .main-nav {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(20px, 2vw, 32px);
  font-size: 1rem;
  font-weight: 600;
}
html[lang="ar"] .site-header .main-nav { font-size: 1.0625rem; }
.site-header .main-nav > a,
.site-header .nav-dropdown > a { white-space: nowrap; }
.site-header .dropdown-menu { top: 100%; width: 270px; }
.site-header .dropdown-menu a { font-size: .9375rem; line-height: 1.7; }
@media (min-width: 1101px) and (max-width: 1250px) {
  .site-header .header-cta { display: none; }
}
@media (max-width: 1100px) {
  .site-header .header-inner { width: calc(100% - 40px); min-height: 76px; gap: 20px; }
  .site-header .menu-toggle { display: block; }
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 16px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: var(--shadow);
    font-size: 1.0625rem;
  }
  .site-header .main-nav.is-open { display: flex; }
  .site-header .main-nav > a,
  .site-header .nav-dropdown > a { padding: 12px; }
  .site-header .nav-dropdown { display: grid; grid-template-columns: 1fr auto; padding: 0; }
  .site-header .dropdown-menu {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    margin: 0 12px;
    background: var(--deep);
    color: var(--white);
    box-shadow: none;
  }
  .site-header .main-nav > .header-cta { display: flex; justify-content: center; white-space: normal; }
}

/* Current-language code with a native keyboard-accessible disclosure. */
.language-picker { position: relative; flex: none; align-self: center; }
.language-picker summary {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 48px; min-height: 36px; padding: 0; cursor: pointer;
  border: 0; border-radius: 4px; list-style: none; color: inherit;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { background: rgba(255,255,255,.08); }
.language-picker summary:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.language-code { font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; direction: ltr; }
.language-chevron { font-size: 10px; opacity: .7; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-options {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30;
  min-width: 72px; padding: 6px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; background: var(--navy); box-shadow: 0 8px 24px #0003;
}
.site-header .language-options a {
  display: flex; align-items: center; gap: 10px; min-height: 40px;
  padding: 6px 10px; border-radius: 4px; color: #fff; font-size: 14px;
  font-family: 'Cairo', sans-serif; text-decoration: none; white-space: nowrap;
}
.language-options a:hover, .language-options a[aria-current="true"] { background: rgba(255,255,255,.1); }
@media (max-width: 1100px) {
  .language-picker { align-self: flex-start; margin-inline: 8px; }
  .language-options { position: static; margin-block: 6px; }
}

/* The Services label is the trigger; no separate arrow button. */
.site-header .nav-dropdown { padding-block: 20px; }
@media (max-width: 1100px) {
  .site-header .nav-dropdown { grid-template-columns: 1fr; padding-block: 0; }
}

/* Connect each stage to the next from the icon center, including RTL layouts. */
html body .approach-system { --stage-gap: 24px; gap: var(--stage-gap); }
html body .approach-system .approach-path { display: none; }
html body .approach-system .approach-step { min-width: 0; padding: 0; }
html body .approach-system .approach-step > b { display: none; }
html body .approach-system .approach-node { position: relative; z-index: 1; }
html body .approach-system .approach-step:not(:last-child)::before {
  content: ''; position: absolute; pointer-events: none;
  inset-inline-start: 50%; top: 31.5px;
  width: calc(100% + var(--stage-gap)); height: 1px;
  background: var(--turquoise); opacity: .5;
}
@media (max-width: 1000px) {
  html body .approach-system { grid-template-columns: minmax(0, 1fr); --stage-gap: 32px; }
  html body .approach-system .approach-step {
    display: grid; grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 24px; text-align: start;
  }
  html body .approach-system .approach-node { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  html body .approach-system .approach-step :is(h3, p, small) { grid-column: 2; }
  html body .approach-system .approach-step p { min-height: 0; margin-block: 0; }
  html body .approach-system .approach-step:not(:last-child)::before {
    inset-inline-start: 31.5px; top: 32px;
    width: 1px; height: calc(100% + var(--stage-gap));
  }
}
@media (max-width: 380px) {
  html body .approach-system .approach-step { column-gap: 18px; }
}
/* Allow long labels and fields to shrink within narrow grid columns. */
:is(.contact-panel, .enquiry-fields, .detail-grid, .footer-grid, .service-grid, .value-grid) > * { min-width: 0; }
html body .approach-lead { white-space: normal; }
@media (max-width: 640px) {
  .site-header .header-inner { width: calc(100% - 32px); }
  .office-map-brand { flex-wrap: wrap; }
  .footer-grid a { overflow-wrap: anywhere; }
}

/* Arabic reading comfort: text accents are separate from button colors. */
html[lang="ar"] { --reading-accent: #087f83; }
html[lang="ar"] :is(.section-dark, .internal-hero, .about-hero, .final-cta) {
  --reading-accent: #79ccc9;
}
html[lang="ar"] body :is(.about-copy h2 span, .section-heading h2 span,
  .internal-hero h1 span, .about-hero h1 span, .blog-heading h1 span,
  .final-cta h2 span, .eyebrow, .text-link) {
  color: var(--reading-accent);
}
html[lang="ar"] body :is(.about-copy > p:not(.eyebrow),
  .why-copy > p:not(.eyebrow), .section-heading > p:not(.eyebrow),
  .internal-hero p:not(.eyebrow), .about-hero-copy > p:not(.eyebrow),
  .blog-heading > p:not(.eyebrow), .content-intro, .home-hero .hero-text,
  .final-cta p:not(.eyebrow)) {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.9;
  font-weight: 500;
}
html[lang="ar"] body .about-copy > p:not(.eyebrow) {
  color: #45566b;
  max-width: 600px;
}
html[lang="ar"] body .about-copy .check-list {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.9;
}

/* Persistent contact shortcuts, shared by both languages. */
.floating-contact {
  position: fixed; right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; flex-direction: column; gap: 14px;
}
a.floating-contact-link {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; box-sizing: border-box; border-radius: 50%;
  color: #fff; border: 2px solid #fff;
  box-shadow: 0 6px 18px #061a4426, inset 0 1px 0 #ffffff40;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.floating-whatsapp { background: #25d366; }
.floating-phone { background: linear-gradient(150deg, #34c759, #249b43); }
.floating-contact-link svg { display: block; width: 28px; height: 28px; flex: none; }
.floating-whatsapp svg { width: 30px; height: 30px; }
@media (hover: hover) {
  .floating-contact-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #061a4433, inset 0 1px 0 #ffffff40; }
}
.floating-contact-link:active { transform: scale(.96); }
.floating-contact-link:focus-visible { outline: 3px solid #061a44; outline-offset: 4px; }
@media (max-width: 640px) {
  .floating-contact { right: max(14px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); gap: 12px; }
  a.floating-contact-link { width: 52px; height: 52px; }
  .floating-contact-link svg { width: 26px; height: 26px; }
  .floating-whatsapp svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  a.floating-contact-link { transition: none; }
  .floating-contact-link:hover, .floating-contact-link:active { transform: none; }
}

/* Shared home/about Instagram profile section. */
.instagram-section { padding-block: clamp(48px, 6vw, 96px); background: #f4f7fa; }
.instagram-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center; gap: clamp(28px, 4vw, 64px); padding: clamp(24px, 4vw, 56px);
  box-sizing: border-box; border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse at 0 100%, #124657 0, transparent 55%), #091e42;
  box-shadow: 0 24px 60px #061a4414; color: #fff;
}
.instagram-copy { min-width: 0; }
.instagram-kicker { display: flex; align-items: center; gap: 10px; }
.instagram-kicker svg { width: 22px; height: 22px; flex: none; }
html body .instagram-copy .instagram-kicker { color: #94d7d2; font-size: 14px; letter-spacing: .04em; margin-bottom: 28px; }
.instagram-copy h2 { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 48px); color: #fff; line-height: 1.25; }
.instagram-copy h2 span { color: #94d7d2; }
.instagram-copy > p:not(.eyebrow) { color: #c5d2e3; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.9; max-width: 520px; margin-bottom: 24px; }
.instagram-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.instagram-topics span { padding: 7px 13px; border: 1px solid #ffffff29; border-radius: 30px; color: #d8e6ee; font-size: 13px; background: #ffffff06; }
.instagram-copy .button { min-height: 50px; white-space: normal; }
.instagram-feed { min-width: 0; padding: 18px; border-radius: 20px; background: #fff; color: #061a44; box-shadow: 0 12px 36px #0002; }
.instagram-profile { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; color: #061a44; text-decoration: none; }
.instagram-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #091e42; border: 3px solid #c4e8e3; flex: none; }
.instagram-avatar img { width: 42px; height: auto; }
.instagram-profile-name { display: grid; gap: 3px; min-width: 0; }
.instagram-profile-name strong { font-size: 16px; }
.instagram-profile-name > span { color: #5c6a7c; font-size: 13px; text-align: start; }
.instagram-profile-arrow { margin-inline-start: auto; font-size: 24px; color: #087f83; }
.instagram-embed-frame { border: 1px solid #e2e9ee; border-radius: 12px; overflow: hidden; background: #f6f8fa; }
.instagram-feed .instagram-media { box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 540px !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.instagram-feed blockquote { padding: 32px 20px; font-size: 16px; line-height: 1.8; }
.instagram-feed blockquote a { color: #087f83; }
.instagram-section a:focus-visible { outline: 3px solid #79ccc9; outline-offset: 4px; }
@media (max-width: 900px) {
  .instagram-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .instagram-feed { width: 100%; max-width: 480px; box-sizing: border-box; justify-self: center; }
}
@media (max-width: 480px) {
  .instagram-layout { padding: 24px 16px; border-radius: 20px; }
  .instagram-feed { padding: 12px; border-radius: 16px; }
  .instagram-copy .button { width: 100%; box-sizing: border-box; }
}
