/* November 2026 responsive / bilingual corrective layer.
   Loaded after the Figma fidelity stylesheet so intentionally full-bleed artwork
   remains full-bleed, while content sections stay inside their containers. */

/* One site-wide Arabic family. Many display components explicitly selected a
   Latin-only font, which otherwise falls back to the browser's default Arabic. */
html[lang="ar"] body :is(h1,h2,h3,h4,h5,h6,p,span,a,button,label,small,strong,em,li,dt,dd,summary,figcaption,blockquote,input,textarea,select) {
  font-family: "Cairo", Tahoma, sans-serif !important;
  letter-spacing: 0 !important;
}
html[lang="ar"] body :is(h1,h2,h3,h4,h5,h6) {
  line-height: 1.35;
  text-transform: none;
}
html[lang="ar"] .fx-principle h3,
html[lang="ar"] .fx-leaders article h3,
html[lang="ar"] .fx-mission-rows h3,
html[lang="ar"] .fx-road-stage h3,
html[lang="ar"] .fx-standards h3,
html[lang="ar"] .fx-panel-bottom h3,
html[lang="ar"] .fx-capacity-row strong {
  line-height: 1.5;
}
html[lang="ar"] :is(.f-nav-links,.f-footer-col,.f-service-text,.fx-mission-copy,.fx-principle,.f-process-copy) {
  text-align: start;
}
/* Numerals can retain the compact numeric display treatment, but NOT Arabic
   headings and descriptive text. */
html[lang="ar"] body :is(.f-stat-number,.fx-about-number > strong,.fx-safety-metrics article > strong,.fx-operations-stat > strong,.fx-fleet-highlight > strong,.fx-milestone > strong,.fx-road-stage > strong,.fx-fleet-image > strong) {
  font-family: "Barlow Condensed", "Cairo", sans-serif !important;
}

/* Header CTA must size to the whole label plus the arrow, never shrink text
   into the arrow's circular hit area. */
.f-nav-right { flex-shrink: 0; }
.f-nav-right > .f-nav-cta {
  box-sizing: border-box;
  min-width: 240px;
  width: max-content;
  max-width: none;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 5px 5px 5px 22px;
  white-space: nowrap;
  line-height: 1.3;
}
.f-nav-right > .f-nav-cta b {
  width: 39px;
  height: 39px;
  min-width: 39px;
  flex: 0 0 39px;
  margin: 0;
  padding: 0;
}
html[lang="ar"] .f-nav-right > .f-nav-cta { padding-inline: 20px 5px; }

/* Expertise: prevent the legacy fidelity override from expanding each content
   block from edge to edge. Only genuine decorative backgrounds are full width. */
#services.f-services { padding: 0; }
#services.f-services > .f-container {
  width: min(1296px, calc(100% - 10%));
  max-width: 1296px;
  margin-inline: auto;
  padding-block: 85px;
}
#services.f-services .f-service-block {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 68px);
  min-height: 0;
  align-items: center;
  padding: 40px clamp(20px, 3vw, 46px);
  border-bottom: 1px solid #383838;
  margin: 0;
  overflow: hidden;
}
#services.f-services .f-service-photo {
  min-height: 0;
  height: clamp(350px, 38vw, 560px);
  width: 100%;
}
#services.f-services .f-service-text {
  min-width: 0;
  padding: 35px 0;
  align-items: flex-start;
}
#services.f-services .f-service-text h3 { font-size: clamp(42px, 4.2vw, 72px); }
html[lang="ar"] #services.f-services .f-service-text {
  direction: rtl !important;
  text-align: start;
}
@media (max-width: 900px) {
  #services.f-services > .f-container { width: calc(100% - 8%); padding-block: 58px; }
  #services.f-services .f-service-block { padding: 28px; gap: 24px; }
  #services.f-services .f-service-photo { height: 360px; }
  #services.f-services .f-service-text h3 { font-size: clamp(37px, 4.5vw, 57px); }
}
@media (max-width: 640px) {
  #services.f-services > .f-container { width: calc(100% - 40px); padding-block: 35px; }
  #services.f-services .f-service-block,
  #services.f-services .f-service-block:nth-of-type(even) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 30px;
    margin-bottom: 24px;
    direction: ltr;
  }
  #services.f-services .f-service-photo { height: 280px; flex: none; }
  #services.f-services .f-service-text { width: 100%; padding: 27px 20px 0; }
  #services.f-services .f-service-text h3 { font-size: 42px; margin-block: 18px; }
}
@media (max-width: 640px) {
  .f-nav-right > .f-nav-cta { display: none; }
}

/* 2026-11-16: RTL footer mark, accessible contact CTA, services catalog. */
.f-footer-arrow {display:flex;align-items:flex-start;justify-content:flex-start;min-width:0}
.f-footer-arrow .f-footer-cta,.f-footer-arrow .f-footer-cta:hover {
  display:inline-flex;align-items:center;justify-content:space-between;gap:18px;
  width:max-content;max-width:100%;min-width:185px;min-height:52px;
  padding:5px 5px 5px 20px;border-radius:50px;background:var(--f-yellow);
  color:#101011;font:800 11px/1.2 var(--f-body);white-space:nowrap;
}
.f-footer-arrow .f-footer-cta b {display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;background:#0b0b0c;color:#f7e6b9;border-radius:50%;font-size:18px}
.f-footer-main {grid-template-columns:minmax(0,1.6fr) minmax(110px,.75fr) minmax(140px,1fr) minmax(185px,auto);gap:clamp(20px,3vw,50px)}
.f-footer-word {display:flex;justify-content:center;align-items:flex-start;gap:.08em;overflow:visible;min-width:0;line-height:1.05;white-space:normal}
.f-footer-brand-name {min-width:0;white-space:nowrap;line-height:1.15}
.f-footer-brand-symbol {display:inline-block;flex:0 0 auto;align-self:flex-start;font-size:.25em;color:#333;line-height:1.1;transform:none}
html[dir="rtl"] .f-footer-word {direction:rtl;flex-direction:row;font-family:"Cairo",sans-serif!important;font-size:clamp(60px,12vw,175px);line-height:1.35;letter-spacing:0}
html[dir="rtl"] .f-footer-brand-name {line-height:1.35;padding-block:.04em}
html[dir="rtl"] .f-footer-brand-symbol {margin-block-start:.08em}
.f-copyright {display:inline-flex;align-items:baseline;flex-wrap:wrap;column-gap:.5em}
.f-copyright-label {white-space:nowrap}
.f-copyright-mark {display:inline-block;position:relative;top:-.45em;margin-inline-start:.09em;font:900 .9em/1 var(--f-head);vertical-align:super;color:#aaa}
.f-services-directory {padding-block:105px 130px}
.f-services-directory-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.f-service-directory-card {background:#111214;display:flex;flex-direction:column;color:#fff;min-width:0;overflow:hidden;border:1px solid #262626}
.f-service-directory-image {height:clamp(240px,27vw,420px);overflow:hidden;background:#1c1c1c}
.f-service-directory-image img {width:100%;height:100%;display:block;object-fit:cover;transition:transform .5s;filter:grayscale(.6)}
.f-service-directory-card:hover img {transform:scale(1.04);filter:grayscale(0)}
.f-service-directory-copy {padding:clamp(25px,3vw,45px);display:flex;flex:1;flex-direction:column;align-items:flex-start}
.f-service-directory-copy h3 {font:900 clamp(33px,3.7vw,60px)/1 var(--f-head);text-transform:uppercase;margin:20px 0}
.f-service-directory-copy p {color:#c0c0c0;font-size:14px;line-height:1.8;max-width:530px;margin-bottom:28px}
.f-service-directory-copy .f-inline-arrow {margin-top:auto}
.f-detail-writing :is(h2,h3,h4) {font-family:var(--f-head);margin:1.3em 0 .45em;line-height:1.2}
.f-detail-writing :is(ul,ol) {padding-inline-start:1.6em;margin-block:1.2em}
.f-detail-writing :is(li,blockquote) {margin-block:.6em}
.f-detail-writing img {height:auto;max-width:100%;display:block;margin:22px 0}
.f-detail-writing a {color:var(--f-yellow);text-decoration:underline}
.f-detail-writing table {max-width:100%;border-collapse:collapse;margin:20px 0}
.f-detail-writing td,.f-detail-writing th {border:1px solid #aaa;padding:8px 12px}
@media(max-width:1050px){.f-footer-main {grid-template-columns:1fr 1fr;gap:35px}.f-footer-arrow {grid-column:2;grid-row:2}}
@media(max-width:780px){.f-footer-arrow {display:flex;grid-column:auto;grid-row:auto}.f-services-directory-grid {grid-template-columns:1fr}}
@media(max-width:520px){.f-footer-main {grid-template-columns:1fr 1fr}.f-footer-arrow {grid-column:1/-1;grid-row:auto}.f-footer-word {font-size:19vw}.f-footer-brand-symbol{font-size:.22em}html[dir="rtl"] .f-footer-word{font-size:clamp(46px,11vw,92px)}.f-service-directory-copy h3{font-size:35px}}
.f-footer-word .f-footer-brand-name {font-size:1em;color:#161616;font-weight:900;line-height:1.15}
.f-footer-word .f-footer-brand-symbol {font-size:.25em;color:#333}
html[dir="rtl"] .f-footer-word .f-footer-brand-name {line-height:1.35}

/* Contact: independent project and careers forms, using the existing visual language. */
.f-contact .f-contact-main h2{margin-bottom:34px}
.f-contact-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 35px;border-bottom:1px solid #444;padding-bottom:17px}
.f-contact-tabs button{border:1px solid #515152;background:transparent;color:#d3d2ce;border-radius:60px;padding:13px 23px;font:800 11px/1.3 var(--f-body);letter-spacing:.08em;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.f-contact-tabs button:hover,.f-contact-tabs button:focus-visible{border-color:var(--f-yellow);color:#fff}
.f-contact-tabs button[aria-selected="true"]{background:var(--f-yellow);border-color:var(--f-yellow);color:#161616}
.f-contact-panel[hidden]{display:none!important}
.f-contact-panel>h3{font:800 clamp(27px,3vw,39px)/1.12 var(--f-head);margin:0 0 30px;letter-spacing:.02em;text-transform:uppercase}
.f-careers-intro{color:#bcbbb7;font-size:13px;line-height:1.9;margin:-12px 0 34px;max-width:550px}
.f-contact form .f-career-upload{display:block;border:1px dashed #75746c;padding:20px 22px;margin:3px 0 22px;cursor:pointer}
.f-contact .f-career-upload small{display:block;font-size:10px;color:#bdbbb5;font-weight:500;letter-spacing:0;margin-top:8px}
.f-contact form .f-career-upload input[type="file"]{display:block;width:100%;color:#efeee8;font:500 12px var(--f-body);margin-top:16px;max-width:100%}
.f-contact .f-career-upload input[type="file"]::file-selector-button{border:1px solid #8a877e;background:#242422;color:#fff;padding:9px 14px;margin-inline-end:12px;cursor:pointer;font:700 11px var(--f-body)}
.f-contact form label.f-careers-consent{display:flex;align-items:flex-start;gap:12px;font-weight:500;font-size:11px;line-height:1.8;letter-spacing:0;color:#d0cfca;cursor:pointer}
.f-contact form .f-careers-consent input[type="checkbox"]{display:block;flex:0 0 17px;appearance:auto;width:17px!important;height:17px;margin:2px 0 0!important;padding:0!important;accent-color:var(--f-yellow);cursor:pointer}
.f-careers-consent a{color:var(--f-yellow);text-decoration:underline;text-underline-offset:3px}
.f-contact .f-form-state[data-status="error"]{color:#ff9f9f}
.f-contact .f-form-state[data-status="success"]{color:var(--f-yellow)}
html[dir="rtl"] .f-contact-tabs{direction:rtl}
@media(max-width:520px){.f-contact-tabs{gap:9px}.f-contact-tabs button{padding:12px 16px;font-size:10px}.f-contact-panel>h3{font-size:29px}.f-contact form .f-career-upload{padding:16px}}
