/* ============================================================================
   EXCEED — lang.css
   Everything the localised pages add on top of site.css:
     1. the shared language selector (subtle white panel),
     2. right-to-left support for Arabic,
     3. small helpers (isolated phone numbers, draft bar, feedback form).
   site.css is never modified by the localisation build.
   ========================================================================== */

/* ---- Telephone and other Latin runs never reverse inside RTL text ---- */
.lang-tel, .lang-tel bdi, bdi[dir="ltr"] { unicode-bidi: isolate; }
.lang-tel { direction: ltr; }
[dir="rtl"] .lang-tel { direction: ltr; unicode-bidi: isolate; }

/* ============================ LANGUAGE SELECTOR ============================
   A near-white rounded panel with a soft shadow, sitting quietly at the foot
   of the page between the ambience toggle (left) and the section navigator
   (right). Restrained padding, hairline border, no gold fill — the current
   language is marked with a thin gold ring only.
   ========================================================================= */
.lang-select{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  z-index: 76;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(690px, calc(100vw - 48px));
  padding: 8px 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,32,51,.10);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(7,26,45,.16), 0 1px 2px rgba(7,26,45,.06);
  backdrop-filter: blur(6px);
  direction: ltr;
}
.lang-select .lang-select-label{
  font-family: var(--reading);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8b8577;
  padding: 0 6px 0 2px;
  white-space: nowrap;
}
.lang-select a{
  display: block;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  line-height: 0;
  transition: border-color .25s, transform .2s, background .25s;
}
.lang-select a:hover{ border-color: var(--gold); transform: translateY(-1px); }
.lang-select a:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-select a.is-current{
  border-color: var(--gold);
  background: rgba(183,139,67,.10);
  box-shadow: inset 0 0 0 1px rgba(183,139,67,.30);
}
.lang-select svg{ display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16,32,51,.12); }
.lang-select .lang-abbr{
  display: block; width: 22px; height: 15px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16,32,51,.12);
  font-family: var(--reading); font-size: 9px; font-weight: 700; letter-spacing: .04em;
  line-height: 15px; text-align: center; color: #8a692a; background: #f3efe4;
}
/* The hero strapline lifts clear of the selector rather than sitting under it. */
.hero-tagline{ bottom: 92px; }
@media (max-width: 900px){
  .lang-select{ max-width: calc(100vw - 28px); padding: 7px 9px; gap: 6px; }
  .lang-select .lang-select-label{ display: none; }
}
@media (max-width: 700px){
  .lang-select{ bottom: 74px; }
}
@media (prefers-reduced-motion: reduce){
  .lang-select a{ transition: none; }
}

/* ---------------------------- draft / resume bar ------------------------ */
.draft-bar{ margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.draft-note-lead{ font-size: 13px; line-height: 1.7; color: var(--ink-dim); max-width: 56ch; }
.draft-code{ display: none; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-dim); }
.draft-code.shown{ display: block; }
.draft-code strong{ font-family: var(--reading); font-weight: 600; letter-spacing: .16em; color: var(--gold-deep); }
.draft-link{ display: inline-block; margin-top: 12px; padding: 0; background: none; border: none; border-bottom: 1px solid var(--line-gold); cursor: pointer; font-family: var(--reading); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.draft-link:hover{ color: var(--gold); border-color: var(--gold); }
.draft-resume{ display: none; margin-top: 18px; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.draft-resume.shown{ display: flex; }
.draft-resume .field{ flex: 1 1 200px; margin-bottom: 0; }
.draft-resume input{ text-transform: uppercase; letter-spacing: .18em; }
.draft-restore{ background: transparent; border: 1px solid var(--line-gold); color: var(--gold-deep); font-family: var(--reading); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; padding: 12px 24px; cursor: pointer; }
.draft-restore:hover{ background: var(--gold); color: #fdfaf2; border-color: var(--gold); }
.draft-note{ margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }
.lang-form .form-status a{ color: var(--gold-deep); border-bottom: 1px solid var(--line-gold); }
.lang-form .direct-fallback{ display: block; margin-top: 6px; }

/* Ragged right everywhere — body copy is never justified. */
.body-copy, .lead, .closing-note, .sector-strip p, .draft-note-lead,
.exceed-disclaimer, .foot-photo-note, .service-card p, .industry p, .stat-tile .lbl{
  text-align: start;
  text-justify: none;
}

/* ================================== RTL =================================== */
[dir="rtl"] .site-header{ left: auto; right: 0; padding: 26px clamp(24px,4vw,58px) 0 0; }
[dir="rtl"] .explore-button{ right: auto; left: clamp(24px,4vw,58px); }
[dir="rtl"] .site-menu{ right: auto; left: 0; transform: translateX(-102%); }
[dir="rtl"] body.menu-open .site-menu{ transform: none; }
[dir="rtl"] .menu-title, [dir="rtl"] .brand-word, [dir="rtl"] .brand-sub{ text-indent: 0; }
[dir="rtl"] .label, [dir="rtl"] .foot-head, [dir="rtl"] .lang-title,
[dir="rtl"] .quiet-link, [dir="rtl"] .btn-gold, [dir="rtl"] .btn-ghost,
[dir="rtl"] .c-form label, [dir="rtl"] .chip, [dir="rtl"] .industry-credit,
[dir="rtl"] .hero-tagline, [dir="rtl"] .service-card .n{ letter-spacing: 0; }
[dir="rtl"] .hero-tagline{ right: auto; left: clamp(66px,6vw,96px); }
[dir="rtl"] .pagenav{ right: auto; left: clamp(14px,2.2vw,28px); }
[dir="rtl"] .ambience-toggle{ left: auto; right: clamp(18px,3vw,44px); }
[dir="rtl"] .checklist li, [dir="rtl"] .coverage-cols li, [dir="rtl"] .deliverables li{ padding: 9px 24px 9px 0; }
[dir="rtl"] .checklist li::before, [dir="rtl"] .coverage-cols li::before, [dir="rtl"] .deliverables li::before{ left: auto; right: 0; }
[dir="rtl"] .ms-list li{ padding: 10px 26px 10px 0; }
[dir="rtl"] .ms-list li::before{ left: auto; right: 2px; }
[dir="rtl"] .exp-chapter .pull{ border-left: none; border-right: 1px solid var(--line-gold); padding-left: 0; padding-right: 24px; }
[dir="rtl"] .c-form input, [dir="rtl"] .c-form select, [dir="rtl"] .c-form textarea{ text-align: right; }
[dir="rtl"] .c-form input[dir="ltr"], [dir="rtl"] .c-form input[type="email"], [dir="rtl"] .c-form input[type="tel"], [dir="rtl"] .c-form input[type="date"]{ text-align: left; direction: ltr; }
[dir="rtl"] .hc-thumb{ left: auto; right: 3px; }
[dir="rtl"] .hc-fill{ left: auto; right: 0; }
[dir="rtl"] .no-cv{ border-left: none; border-right: 2px solid var(--gold); }
[dir="rtl"] .stat-tile .val{ direction: ltr; text-align: right; }
[dir="rtl"] .lang-select{ direction: ltr; }
/* Arabic sits better with a naskh face for headings; Cormorant has no Arabic. */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[lang="ar"] .hero-single, [lang="ar"] .image-statement p{
  font-family: "Noto Naskh Arabic", "Amiri", "Geeza Pro", "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.35;
}
[lang="ar"] .image-statement p, [lang="ar"] .video-interlude p{ line-height: 1.4; }
[lang="th"] h1, [lang="th"] h2, [lang="th"] h3, [lang="th"] .hero-single{ line-height: 1.35; }
[lang="zh"] h1, [lang="zh"] h2, [lang="zh"] h3, [lang="zh"] .hero-single{ letter-spacing: .02em; line-height: 1.3; }
