/* ==========================================================================
   Safir Holding — public website design system
   --------------------------------------------------------------------------
   Arabic-first and RTL-first. One token set drives both directions; every
   offset uses logical properties (inline-start/end) so the LTR (English) view
   mirrors cleanly without a second stylesheet.

   Palette (matches the internal platform's corporate identity):
     --navy    deep navy blue      --ink     primary text on light
     --gold    elegant gold accent --paper   white surfaces
     --mist    soft gray           --line    hairline borders
   ========================================================================== */

:root {
  /* brand */
  --navy: #0A1730;
  --navy-800: #0D1E3D;
  --navy-700: #12224A;
  --navy-600: #1B2F5E;
  --gold: #C8A24A;
  --gold-strong: #B08A33;
  --gold-soft: #DCBE72;
  --gold-tint: rgba(200, 162, 74, .12);
  --gold-line: rgba(200, 162, 74, .34);

  /* neutrals */
  --paper: #FFFFFF;
  --mist: #F5F6F8;
  --mist-2: #EDEFF3;
  --line: #E1E4EA;
  --line-strong: #D2D7E0;
  --ink: #0F1B33;
  --ink-2: #3C4761;
  --muted: #6B7488;

  /* semantic */
  --ok: #1E8E5A;
  --warn: #B7791F;
  --danger: #B23B3B;

  /* shape & elevation */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-xs: 0 1px 2px rgba(10, 23, 48, .05);
  --shadow-sm: 0 1px 2px rgba(10, 23, 48, .06), 0 2px 6px rgba(10, 23, 48, .05);
  --shadow: 0 10px 28px rgba(10, 23, 48, .09);
  --shadow-lg: 0 22px 56px rgba(10, 23, 48, .14);

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 7vw, 104px);
  --header-h: 78px;

  /* type */
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-ar);
  --tracking-eyebrow: .14em;
}

/* LTR / English uses the Latin-first stack. */
html[lang="en"] { --font: var(--font-en); --tracking-eyebrow: .1em; }

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body.site {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  line-height: 1.22; margin: 0 0 .55em; font-weight: 600;
  letter-spacing: -0.015em; color: var(--navy); text-wrap: balance;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 50%; transform: translateX(-50%) translateY(-140%);
  top: 10px; z-index: 200; background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow);
  transition: transform .18s ease;
}
/* Inline-start is the right edge in RTL, so the centring offset flips. */
[dir="rtl"] .skip-link { transform: translateX(50%) translateY(-140%); }
.skip-link:focus { transform: translateX(-50%) translateY(0); }
[dir="rtl"] .skip-link:focus { transform: translateX(50%) translateY(0); }

/* ------------------------------------------------------------ container -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--mist); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .95rem; }

.section-title {
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem);
  margin-bottom: .5rem;
}
.section-title::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 14px;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.section-sub { color: var(--ink-2); max-width: 64ch; margin-bottom: 2.4rem; font-size: 1.03rem; }
.center .section-title::after { margin-inline: auto; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .97); }

/* The header shares the body container so the brand lines up with the page
   content below it. */
.site-header .container { max-width: var(--container); }

.header-inner {
  display: flex; align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  min-height: var(--header-h);
}

/* Brand block: a fixed-height logo slot plus a nowrap wordmark. The wordmark
   never wraps, so the branding can never spill into the navigation. */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  flex: 0 1 auto; min-width: 0; max-width: 300px;
}
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(155deg, var(--navy-600), var(--navy));
  box-shadow: 0 6px 16px rgba(10, 23, 48, .22), inset 0 0 0 1px rgba(220, 190, 114, .35);
  flex: 0 0 auto;
}
/* The configurable logo slot. Height is fixed and the image is contained, so
   any uploaded aspect ratio/dimension stays inside without distorting. */
.brand-logo {
  display: grid; place-items: center;
  height: 46px; width: auto; max-width: 190px; flex: 0 0 auto;
}
.brand-logo img {
  display: block; max-height: 46px; max-width: 190px;
  width: auto; height: auto; object-fit: contain;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.18; min-width: 0;
}
.brand-name {
  font-weight: 700; font-size: 1.06rem; color: var(--navy);
  letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: .68rem; color: var(--muted); letter-spacing: .03em;
  text-transform: uppercase; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Navigation occupies the middle and centres itself; the actions block is
   pinned to the end. The two can never overlap because each is a flex item
   with its own non-shrinking action area. */
.header-menu {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 auto; min-width: 0;
}

/* The in-drawer language switch is a phone-only affordance; on wider screens
   the header bar keeps its own switch. */
.menu-lang { display: none; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative;
  padding: 8px 9px; border-radius: 999px;
  font-size: .84rem; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover { background: var(--mist-2); color: var(--navy); }
.site-nav a.is-active { color: var(--navy); font-weight: 600; }
.site-nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 9px; bottom: 1px; height: 2px;
  border-radius: 999px; background: var(--gold);
}

.header-actions {
  display: flex; align-items: center; gap: 9px;
  flex: 0 0 auto; margin-inline-start: auto;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line);
}
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 7px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.lang-opt:hover { color: var(--navy); }
.lang-opt.is-on {
  background: var(--paper); color: var(--navy);
  box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--gold-line);
}

.nav-toggle {
  display: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  width: 46px; height: 46px; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nav-toggle:hover { border-color: var(--gold-line); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy);
  margin-inline: auto; position: relative; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-bars::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(200, 162, 74, .18), transparent 62%),
    radial-gradient(900px 500px at 8% 110%, rgba(27, 47, 94, .55), transparent 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  color: #fff;
  padding-block: clamp(76px, 9vw, 148px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(760px 440px at 78% 22%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 440px at 78% 22%, #000, transparent 76%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1.25fr .85fr; align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-soft); font-size: .78rem; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(220, 190, 114, .1); border: 1px solid rgba(220, 190, 114, .28);
}
.hero-title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem);
  color: #fff; margin-bottom: .35em; letter-spacing: -.025em; line-height: 1.08;
}
.hero-tagline {
  font-size: clamp(1.08rem, .92rem + 1.05vw, 1.5rem);
  color: rgba(255,255,255,.92); font-weight: 400; margin-bottom: .85em;
  line-height: 1.45;
}
.hero-tagline-line { display: block; }
.hero-values {
  color: var(--gold-soft); font-size: .95rem; font-weight: 500;
  letter-spacing: .01em; margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero side panel — a quiet, factual summary of the two markets -------- */
.hero-panel {
  padding: 26px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-panel-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin-bottom: 18px;
}
.hero-panel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,162,74,.2);
}
.hero-panel-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.hero-panel-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-weight: 600; font-size: .96rem;
}
.hp-flag { font-size: 1.25rem; line-height: 1; }
.hero-panel-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-panel-foot span {
  font-size: .76rem; padding: 5px 11px; border-radius: 999px;
  background: rgba(220,190,114,.12); color: var(--gold-soft);
  border: 1px solid rgba(220,190,114,.24);
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .16s ease, border-color .16s ease,
              box-shadow .18s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(200, 162, 74, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #E4CB88, var(--gold-soft)); box-shadow: 0 12px 28px rgba(200, 162, 74, .36); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(220, 190, 114, .08); }
.section .btn-ghost, .page-hero .btn-ghost { color: var(--navy); border-color: var(--line-strong); }
.section .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-tint); }

/* ----------------------------------------------------------- page hero --- */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -30%, rgba(200, 162, 74, .16), transparent 60%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; padding-block: clamp(56px, 6.5vw, 100px);
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,.86); max-width: 68ch; margin: 0; font-size: 1.05rem; }
.page-hero-sub { margin-bottom: 1.4rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 1.6rem; }
.notfound { text-align: center; }
.notfound p { margin-inline: auto; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  font-size: .85rem; color: rgba(255,255,255,.68); margin-bottom: 1.1rem;
}
.crumbs a { color: rgba(255,255,255,.88); }
.crumbs a:hover { color: var(--gold-soft); }

/* --------------------------------------------------------- service grid -- */
.service-grid, .journey-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.journey-card, .service-card {
  position: relative;
  display: flex; flex-direction: column; gap: 11px;
  padding: 30px 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.journey-card::before, .service-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .28s ease;
}
.journey-card:hover, .service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line);
}
.journey-card:hover::before, .service-card:hover::before { transform: scaleX(1); }
.journey-icon, .service-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(150deg, var(--gold-tint), rgba(200,162,74,.04));
  color: var(--navy); border: 1px solid var(--gold-line);
  margin-bottom: 8px;
}
.journey-card h3, .service-card h3 { font-size: 1.14rem; margin: 0; }
.journey-card p, .service-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.journey-cta, .service-link {
  margin-top: auto; padding-top: 8px;
  color: var(--gold-strong); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 7px;
}
[dir="rtl"] .journey-cta span, [dir="rtl"] .service-link span,
[dir="rtl"] .market-cta span { display: inline-block; transform: scaleX(-1); }

/* --------------------------------------------------------- market cards -- */
.market-choice { padding-block: var(--section-y); }
.market-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.6rem;
}
.market-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  padding: 32px; border-radius: var(--radius-xl);
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border: 1px solid rgba(220,190,114,.16);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.market-card::after {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,74,.22), transparent 68%);
  pointer-events: none;
}
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.market-card.compact { padding: 22px; }
.market-flag { font-size: 1.7rem; line-height: 1; }
.market-name { font-size: 1.18rem; font-weight: 600; }
.market-cta {
  color: var(--gold-soft); font-size: .9rem; font-weight: 600; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 7px;
}

/* ------------------------------------------------------------ service blk */
.service-block {
  padding: 38px 0; border-bottom: 1px solid var(--line);
}
.service-block:first-of-type { padding-top: 8px; }
.service-block:last-child { border-bottom: 0; padding-bottom: 0; }
.service-block-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.service-block-head .service-icon { flex: 0 0 auto; margin-bottom: 0; }
.service-block-head h2 { font-size: 1.4rem; margin-bottom: .25em; }
.service-block-head p { color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------------- steps / how -- */
.steps {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: step;
}
.steps li {
  position: relative; counter-increment: step;
  padding: 26px 24px 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  color: var(--ink-2); font-size: .96rem;
}
.steps li::before {
  content: counter(step, decimal);
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 11px; background: var(--navy); color: var(--gold-soft);
  font-weight: 700; font-size: .95rem;
  font-family: var(--font-en);
}
.steps li::after {
  content: ""; position: absolute; inset-inline-start: 24px; top: 0; height: 3px;
  width: 36px; border-radius: 999px; background: var(--gold);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------- two col --- */
.two-col {
  display: grid; gap: 36px; align-items: start;
  grid-template-columns: 1.4fr 1fr;
}
.highlights { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 14px; }
.highlights li {
  position: relative; padding-inline-start: 34px;
  color: var(--ink-2); font-size: 1rem;
}
.highlights li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-tint); border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.highlights li::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: calc(.42em + 6px);
  width: 6px; height: 3px; border-inline-start: 2px solid var(--gold-strong);
  border-bottom: 2px solid var(--gold-strong);
  transform: rotate(-45deg);
}
.aside-card {
  padding: 28px; border-radius: var(--radius-xl);
  background: var(--mist); border: 1px solid var(--line);
}
.aside-card h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: mini; }
.mini-steps li {
  position: relative; counter-increment: mini; padding-inline-start: 32px;
  color: var(--ink-2); font-size: .94rem;
}
.mini-steps li::before {
  content: counter(mini); position: absolute; inset-inline-start: 0; top: .1em;
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--navy); color: var(--gold-soft);
  font-size: .72rem; font-weight: 700; font-family: var(--font-en);
}

/* ----------------------------------------------------------------- form -- */
.form-wrap { max-width: 820px; }
.site-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-note { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }
.field-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA2B4; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C4CAD6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); outline: none;
}
.field textarea { resize: vertical; min-height: 118px; }
.field-check { flex-direction: row; align-items: flex-start; gap: 11px; grid-column: 1 / -1; }
.field-check input { width: auto; margin-top: 4px; accent-color: var(--navy); }
.field-check label { font-weight: 400; color: var(--ink-2); }
.field-error { color: var(--danger); font-size: .82rem; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

/* Off-screen honeypot. Clipped to a zero box rather than parked at left:-9999px:
   a negative offset creates a ~10,000px scrollable width in RTL and forces
   every page to scroll horizontally. */
.hp {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .92rem; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--danger); font-weight: 600; }
.form-success {
  margin-top: 1.5rem; padding: 34px; text-align: center;
  background: #F2F9F5; border: 1px solid rgba(30,142,90,.3); border-radius: var(--radius-xl);
}
.form-success .ref {
  display: inline-block; margin-top: 10px; padding: 7px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; letter-spacing: .04em; color: var(--navy);
}

/* ----------------------------------------------------- listing wizard ---- */
.progress {
  list-style: none; padding: 0; margin: 0 0 2.4rem;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.progress li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); font-weight: 500;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.progress li[data-state="current"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.progress li[data-state="done"] { background: var(--gold-tint); color: var(--navy); border-color: var(--gold-line); }
.step-num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.06); font-weight: 700; font-size: .75rem;
  font-family: var(--font-en);
}
.progress li[data-state="current"] .step-num { background: rgba(255,255,255,.2); color: #fff; }
.progress li[data-state="done"] .step-num { background: rgba(200,162,74,.25); }

.form-step { border: 0; padding: 0; margin: 0 0 1.75rem; }
.form-step legend {
  font-size: 1.12rem; font-weight: 600; margin-bottom: 1.1rem; color: var(--navy);
  padding: 0;
}
.radio-row { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.radio-card {
  display: flex; align-items: center; gap: 11px; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  background: var(--paper); font-size: .95rem; color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.radio-card:hover { border-color: var(--gold); box-shadow: var(--shadow-xs); }
.radio-card input { accent-color: var(--navy); }
.radio-card:has(input:checked) {
  border-color: var(--navy); background: var(--gold-tint); color: var(--navy);
  font-weight: 600;
}
.review-box {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
}
.review-box dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; margin: 0; }
.review-box dt { color: var(--muted); font-size: .85rem; }
.review-box dd { margin: 0; font-size: .9rem; font-weight: 500; color: var(--ink); }
.form-nav { display: flex; gap: 13px; margin-top: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------- opportunities - */
.opp-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.opp-card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.opp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.opp-card h3 { font-size: 1.08rem; margin: 0; }
.opp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .75rem; padding: 4px 11px; border-radius: 999px;
  background: var(--mist-2); color: var(--ink-2); font-weight: 500;
}
.tag.gold { background: var(--gold-tint); color: var(--gold-strong); border: 1px solid var(--gold-line); }
.opp-interest { margin-top: 2.4rem; }
.listing-notice {
  margin-top: 1.8rem; padding: 14px 18px;
  border-inline-start: 3px solid var(--gold-line);
  background: var(--gold-tint); color: var(--ink-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: .94rem; line-height: 1.7;
}
[dir="rtl"] .listing-notice { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.opp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.opp-photos img { width: 100%; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.field-hint { color: var(--muted); font-size: .85rem; margin: 4px 0 8px; line-height: 1.6; }
.state { color: var(--muted); }

/* -------------------------------------------------------- company cards -- */
.company-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.company-card {
  position: relative; padding: 30px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-card::before {
  content: ""; position: absolute; inset-inline-start: 28px; top: 0; width: 40px; height: 3px;
  border-radius: 999px; background: var(--gold);
}
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.company-card h3 { font-size: 1.14rem; margin-top: 6px; }
.company-meta {
  color: var(--gold-strong); font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; margin-bottom: .7rem; text-transform: uppercase;
}
.company-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* --------------------------- group companies (interactive selector) ------- */
/* Desktop: a selectable list of every group company beside the selected
   company's detail. Mobile (<=600px): the same markup becomes an accordion.
   All nine names stay visible -- no horizontal scrolling and no filters. */
.company-list {
  display: grid; gap: 30px; margin-top: 2.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  align-items: start;
}
.company-choices { display: flex; flex-direction: column; }
.company-inline { display: none; }

.company-choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: start; font: inherit; font-size: .98rem; color: var(--ink);
  background: transparent; border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 12px; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.company-choice:hover { background: var(--mist); }
.company-choice[aria-expanded="true"] {
  background: var(--gold-tint); color: var(--ink);
  border-inline-start: 3px solid var(--gold);
}
.company-choice:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: -3px; }
.company-choice-name { flex: 1 1 auto; }

.company-logo {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; padding: 9px 8px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--muted); font-size: .72rem;
}
.company-logo-lg { min-width: 92px; padding: 20px 18px; font-size: .8rem; margin-bottom: 1.1rem; }

.company-detail {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 34px;
  box-shadow: var(--shadow-sm); min-height: 340px;
}
.company-name { font-size: 1.45rem; margin: 0 0 .4rem; }
.company-about { color: var(--ink-2); margin: 1rem 0 .7rem; }
.company-card-text { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.company-sub { font-size: .95rem; margin: 1.2rem 0 .5rem; }
.company-services { margin: 0; padding-inline-start: 1.1rem; color: var(--ink-2); }
.company-services li { margin-bottom: .35rem; }

.company-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.company-action {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--mist); text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.company-action:hover { border-color: var(--gold-line); background: var(--paper); }
.company-action-label { font-size: .72rem; font-weight: 600; color: var(--gold-strong); text-transform: uppercase; letter-spacing: .03em; }
.company-action-value { font-size: .92rem; }

@media (max-width: 600px) {
  /* Accordion: stack names and reveal the chosen company's detail beneath it. */
  .company-list { display: block; }
  .desktop-detail { display: none; }
  .company-inline { display: block; }
  .company-choice { border-radius: var(--radius-sm); }
  .inline-detail[hidden] { display: none; }
  .inline-detail:not([hidden]) { display: block; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; min-height: 0; }
}

.pillar-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pillar {
  padding: 30px 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.pillar h3 { font-size: 1.1rem; }
.pillar p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.prose { max-width: 74ch; }
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.85; }

/* ------------------------------------------------------------- footer ---- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy));
  color: rgba(255,255,255,.82);
  padding-block: 64px 30px; margin-top: 0;
}
.footer-inner {
  display: grid; gap: 40px; grid-template-columns: 1.1fr 1.4fr; align-items: start;
}
.footer-brand .brand-mark-lg {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 16px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(220, 190, 114, .35);
}
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; font-weight: 700; }
.footer-tag { color: rgba(255,255,255,.68); font-size: .94rem; max-width: 42ch; margin-top: .5rem; }
.footer-heading {
  font-size: .78rem; font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-nav a { color: rgba(255,255,255,.82); font-size: .94rem; transition: color .16s ease; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-legal p { margin: 0; }
.footer-legal a { color: rgba(255,255,255,.78); }
.footer-legal a:hover { color: var(--gold-soft); }
.noscript-note {
  margin: 16px 0; padding: 16px 20px; border-radius: var(--radius-sm);
  background: #FFF7E6; border: 1px solid rgba(183,121,31,.35); color: #6b4b12;
}


/* ------------------------------------------------------ trust / why ---- */
.trust-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.trust-card {
  padding: 30px 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.trust-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(150deg, var(--gold-tint), rgba(200,162,74,.04));
  color: var(--navy); border: 1px solid var(--gold-line);
}
.trust-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.trust-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* steps with a title and a description */
.steps li .step-title { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.steps li .step-desc { display: block; color: var(--ink-2); font-size: .92rem; }

/* ------------------------------------------------------------- FAQ ----- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 20px;
  box-shadow: var(--shadow-xs);
}
.faq-item[open] { border-color: var(--gold-line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-weight: 600; color: var(--navy); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret {
  flex: 0 0 auto; width: 10px; height: 10px;
  border-inline-end: 2px solid var(--gold-strong);
  border-bottom: 2px solid var(--gold-strong);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] .faq-caret { transform: rotate(-135deg); }
.faq-item p { color: var(--ink-2); font-size: .95rem; line-height: 1.75; margin: 0 0 16px; }

/* check-list (deliverables) */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-inline-start: 32px; color: var(--ink-2); font-size: .98rem;
}
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .28em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-tint); border: 1px solid var(--gold-line);
}
.check-list li::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: calc(.28em + 6px);
  width: 6px; height: 3px; border-inline-start: 2px solid var(--gold-strong);
  border-bottom: 2px solid var(--gold-strong); transform: rotate(-45deg);
}

.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-soft); margin: 0 0 .8rem; text-transform: uppercase;
}

/* -------------------------------------------------- footer columns ----- */
.footer-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.82); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-soft); }

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 1240px) {
  .site-nav a { padding: 8px 8px; font-size: .82rem; }
  .header-inner { gap: 12px; }
  .brand { max-width: 250px; gap: 10px; }
  .brand-logo { max-width: 150px; }
  .brand-logo img { max-width: 150px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .015em; }
  .lang-opt { min-width: 48px; padding: 7px 9px; font-size: .78rem; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-panel { max-width: 520px; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav { grid-template-columns: 1fr; gap: 26px; }
  .prose { max-width: none; }
}

@media (max-width: 1150px) {
  /* Below this width the nav collapses into a drawer under the header. The
     language switch stays in the header bar; only the links move. This
     breakpoint sits just above the widest nav so the links can never collide
     with the brand or the switch. */
  .nav-toggle { display: grid; place-items: center; }

  .header-menu {
    position: absolute; inset-inline: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; margin: 0;
    box-shadow: var(--shadow);
  }
  .header-menu.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 15px; border-radius: var(--radius-sm); font-size: .98rem; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: var(--gold-tint); }
  .header-actions { gap: 8px; }
  .lang-opt { min-width: 58px; padding: 7px 12px; font-size: .82rem; }

  .field-grid { grid-template-columns: 1fr; }
  .site-form { padding: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .page-hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  body.site { font-size: 15.5px; }
  .brand-sub { display: none; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand-logo { height: 40px; max-width: 128px; }
  .brand-logo img { max-height: 40px; max-width: 128px; }
  .brand { max-width: 190px; gap: 9px; }
  .brand-name { font-size: 1rem; }
  .header-inner { gap: 10px; }
  .lang-opt { min-width: 50px; padding: 6px 9px; font-size: .76rem; }
  .progress { gap: 7px; }
  .progress li { padding: 7px 11px; font-size: .76rem; }
  .step-label { display: none; }
  .hero-values { font-size: .88rem; }
  .btn { min-height: 48px; padding: 0 20px; font-size: .93rem; }
}

/* ------------------------------------------------------ reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   Original approved design — home hero, about rows, contact, legal, careers
   --------------------------------------------------------------------------
   These extend the base system above for the handoff's approved layout. All
   offsets use logical properties so the RTL (Arabic) and LTR (English) views
   mirror cleanly from the one stylesheet.
   ========================================================================== */

/* ---------------------------------------------------- home hero (image) -- */
.hero-home {
  background-color: var(--navy);
  /* The owner-selected Bahrain Bay image sits over a navy wash so the fixed
     heading and definition always stay legible, in both directions. */
  background-image: linear-gradient(100deg, rgba(10, 23, 48, .93) 0%, rgba(10, 23, 48, .72) 48%, rgba(10, 23, 48, .45) 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-home::after { display: none; }
.hero-home .hero-inner { grid-template-columns: 1fr; max-width: 900px; }
.hero-home .hero-copy { max-width: 760px; }
.hero-intro {
  font-size: clamp(1.02rem, .92rem + .55vw, 1.22rem);
  color: rgba(255, 255, 255, .9); line-height: 1.75; margin: 0 0 2rem; max-width: 62ch;
}

/* --------------------------------------------------------- section lead --- */
.section-lead {
  color: var(--ink-2); font-size: 1.06rem; line-height: 1.8;
  max-width: 70ch; margin: 0 0 1.4rem;
}
.center .section-lead { margin-inline: auto; }

/* -------------------------------------------------------------- narrow ---- */
.narrow { max-width: 820px; }

/* ----------------------------------------------------------- about rows --- */
.about-row { padding-block: clamp(34px, 4vw, 52px); }
.about-row + .about-row { border-top: 1px solid var(--line); }
.about-row-inner {
  display: grid; gap: clamp(16px, 3vw, 52px);
  grid-template-columns: .7fr 1.3fr; align-items: start;
}
.about-row-heading { font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); color: var(--navy); margin: 0; }
.about-row-body p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.85; margin: 0 0 1rem; }
.about-row-body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- contact ------ */
.contact-card {
  padding: 34px; border-radius: var(--radius-xl);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-card p { color: var(--ink-2); margin: 0 0 .7rem; font-size: 1rem; }
.contact-card strong { color: var(--navy); }
.contact-legal {
  color: var(--muted); font-size: .9rem; letter-spacing: .02em; margin-bottom: 1.2rem;
}
.map-placeholder {
  display: grid; place-items: center; min-height: 320px; padding: 30px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-xl);
  background: repeating-linear-gradient(45deg, var(--mist), var(--mist) 12px, var(--mist-2) 12px, var(--mist-2) 24px);
  color: var(--muted); font-weight: 600; text-align: center;
}

/* ------------------------------------------------------ floating WhatsApp -- */
.whatsapp-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: #25D366; color: #04331a; font-weight: 700; font-size: .9rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37, 211, 102, .45); }

/* ----------------------------------------------------------- legal copy -- */
.legal-copy .legal-block { margin-bottom: 2.2rem; }
.legal-block h2 { font-size: 1.22rem; color: var(--navy); margin: 0 0 .7rem; }
.legal-block p { color: var(--ink-2); font-size: 1rem; line-height: 1.85; margin: 0 0 .8rem; }

/* --------------------------------------------------------- footer logo ---- */
.footer-brand .brand-logo {
  height: auto; max-width: 220px; margin-bottom: 16px;
  background: #fff; border-radius: 14px; padding: 10px 14px;
}
.footer-brand .brand-logo img { max-height: 52px; max-width: 190px; }

/* --------------------------------------------------------- opportunities -- */
.opp-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 1.6rem; }
.opp-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.opp-list .state { grid-column: 1 / -1; color: var(--muted); }

/* ---------------------------------------------------------- file input ---- */
.field input[type="file"] { padding: 11px 13px; background: var(--mist); cursor: pointer; }

@media (max-width: 900px) {
  .about-row-inner { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .whatsapp-float { inset-inline: 16px; inset-block-end: 16px; justify-content: center; }
}


/* ==========================================================================
   MOBILE-FIRST PHONE EXPERIENCE  (feature/safir-mobile-responsive)
   --------------------------------------------------------------------------
   Everything below targets phones (≤640px) and the smallest handsets (≤380px).
   Nothing here applies at >= 641px, so the approved desktop/tablet layout is
   byte-for-byte unchanged. The existing system is desktop-first; these rules
   give the phone an intentionally composed layout rather than a shrunken one.
   ========================================================================== */

/* Phone extras that also help the tablet drawer (<= 640px). */
@media (max-width: 640px) {
  :root {
    --section-y: clamp(44px, 10vw, 72px);
    --gutter: 18px;
    --radius-xl: 22px;
  }

  body.site { font-size: 16px; line-height: 1.7; }

  /* Tighter, more readable type scale on a small canvas. */
  .section-title { font-size: clamp(1.5rem, 1.1rem + 3.6vw, 1.95rem); }
  .section-sub, .section-lead { font-size: 1rem; margin-bottom: 1.6rem; }
  .about-row-heading { font-size: 1.32rem; }
  .prose p, .about-row-body p { font-size: 1.03rem; line-height: 1.8; }

  /* ----------------------------------------------------------- header -- */
  .site-header .container { padding-inline: var(--gutter); }
  .header-inner {
    gap: 8px; min-height: 64px;
    /* Room for the notch/home indicator on the first paint. */
    padding-block: max(4px, env(safe-area-inset-top, 0px)) 0;
  }
  .brand { gap: 10px; flex: 1 1 auto; min-width: 0; max-width: none; min-height: 44px; }
  .brand-logo { height: 42px; max-width: 150px; }
  .brand-logo img { max-height: 42px; max-width: 150px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .62rem; }

  .header-actions { gap: 8px; }
  .nav-toggle { width: 46px; height: 46px; flex: 0 0 auto; }

  /* The drawer: a full-width panel pinned under the bar, with its own
     scroll region so a long menu never runs past the viewport. */
  .header-menu {
    position: fixed; inset-inline: 0;
    top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: 14px var(--gutter) 26px;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .header-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav { gap: 2px; }
  .site-nav a {
    padding: 15px 16px; border-radius: 12px; font-size: 1.02rem;
    min-height: 52px; display: flex; align-items: center;
  }
  .site-nav a.is-active { background: var(--gold-tint); }

  /* The language switch moves into the drawer on phones (see the renderer's
     menu-language block), leaving the bar to the logo and the menu button. */
  .menu-lang {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-top: 10px; padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .menu-lang .lang-switch { padding: 4px; background: var(--mist); }
  .menu-lang .lang-opt { min-width: 82px; padding: 12px 16px; font-size: .92rem; min-height: 46px; }
  .header-actions .lang-switch { display: none; }

  /* Dim the page behind the open drawer and lock its scroll (JS). */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(10, 23, 48, .42);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  /* ------------------------------------------------------------ hero -- */
  .hero { padding-block: clamp(52px, 15vw, 88px); }
  .hero-home { background-position: center 30%; }
  .hero-home .hero-inner { max-width: none; }
  .hero-title { font-size: clamp(1.85rem, 1.2rem + 4.4vw, 2.5rem); }
  .hero-intro { font-size: 1rem; margin-bottom: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding-block: clamp(38px, 11vw, 62px); }
  .page-hero h1 { font-size: clamp(1.55rem, 1.15rem + 3.6vw, 2.05rem); }
  .page-hero p { font-size: .98rem; }
  .crumbs { font-size: .82rem; }

  /* ---------------------------------------------------------- buttons -- */
  .btn { min-height: 50px; padding: 0 22px; font-size: .96rem; }
  .opp-cta { flex-direction: column; align-items: stretch; }
  .opp-cta .btn { width: 100%; justify-content: center; }
  .market-cta, .journey-cta, .service-link { min-height: 44px; }

  /* ----------------------------------------------------------- cards -- */
  .service-grid, .journey-grid, .trust-grid, .pillar-grid,
  .market-grid, .company-grid, .opp-list {
    grid-template-columns: 1fr;
  }
  .journey-card, .service-card, .trust-card, .pillar, .market-card,
  .company-card, .contact-card { border-radius: var(--radius); }
  .market-card.compact { padding: 20px; }
  .service-block-head { gap: 14px; }
  .service-block-head h2 { font-size: 1.24rem; }

  /* ------------------------------------------- group companies accordion */
  .company-list { gap: 0; margin-top: 1.6rem; }
  .company-choice {
    min-height: 60px; padding: 14px 16px; border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .company-choice-name { font-size: 1rem; }
  .company-logo { min-width: 46px; padding: 8px 6px; }
  .inline-detail:not([hidden]) { padding: 22px 16px; }
  .company-detail { min-height: 0; padding: 24px 20px; }
  .company-name { font-size: 1.28rem; }
  .company-actions { gap: 8px; }
  .company-action { flex: 1 1 100%; }

  /* ----------------------------------------------------------- forms -- */
  .site-form { padding: 20px 16px; border-radius: var(--radius); }
  .form-note { font-size: .9rem; }
  .field-grid { gap: 15px; }
  .field label { font-size: .9rem; }
  /* 16px keeps iOS Safari from zooming the page when a field is focused. */
  .field input, .field select, .field textarea { font-size: 16px; min-height: 50px; }
  .field textarea { min-height: 120px; }
  .field input[type="file"] { min-height: 52px; padding: 14px; }
  .field-check { gap: 10px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-status { text-align: center; }

  /* Inline links inside paragraphs get a finger-sized hit area without
     disturbing the line rhythm. */
  .legal-block a, .prose a, .about-row-body a, .contact-legal a,
  .contact-card p a { padding-block: 11px; }

  /* ---------------------------------------------------------- footer -- */
  .site-footer { padding-block: 48px 26px; }
  .footer-inner { gap: 26px; }
  .footer-brand .brand-logo { max-width: 190px; padding: 9px 12px; }
  /* The legal name must wrap on a phone rather than push the page wide. */
  .footer-brand .brand-name, .brand-name { white-space: normal; }
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }
  .footer-col ul { gap: 2px; }
  /* Comfortable, tappable footer links (>= 44px tall) rather than 19px text. */
  .footer-nav a, .footer-col a { font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; }
  .footer-legal { flex-direction: column; gap: 10px; margin-top: 30px; text-align: center; }
  .footer-legal p { text-align: center; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

  /* The consent checkbox needs a finger-sized hit area. */
  .field-check { align-items: flex-start; }
  .field-check input {
    width: 24px; height: 24px; margin-top: 2px; flex: 0 0 auto;
  }
  .field-check label { min-height: 44px; display: flex; align-items: center; }

  /* WhatsApp: a comfortable full-width bar above the safe area, not a chip
     that can cover the last footer line. */
  .whatsapp-float {
    inset-inline: 16px; inset-block-end: max(16px, env(safe-area-inset-bottom, 0px));
    justify-content: center; min-height: 50px; font-size: .95rem;
  }
  .site-footer { padding-bottom: 96px; }
}

/* Very small handsets (iPhone SE 1st gen, 320px). */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand-logo { max-width: 118px; }
  .brand-logo img { max-width: 118px; }
  .brand-name { font-size: .92rem; }
  .header-menu .lang-opt { min-width: 70px; }
  .hero-title { font-size: clamp(1.7rem, 1.1rem + 5vw, 2.1rem); }
  .section-title { font-size: clamp(1.38rem, 1rem + 7vw, 1.7rem); }
  .btn { padding: 0 18px; }
}

/* Landscape phones: keep the hero from eating the whole short viewport. */
@media (max-width: 900px) and (max-height: 520px) {
  .hero { padding-block: 44px; }
}
