/* Rahman Overseas: restrained corporate style. Flat colours, hairline rules, no effects. */
:root {
  --navy: #1a327c;
  --navy-deep: #122560;
  --blue: #1f8fd7;
  --maroon: #88190e;
  --ink: #1b2233;
  --muted: #5b6475;
  --line: #d9dee8;
  --soft: #f4f6fa;
  --white: #fff;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--navy); font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--navy); border-radius: 2px; cursor: pointer; background: var(--navy); color: var(--white); }
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--soft); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn.outline-light:hover { background: rgba(255,255,255,.08); }

/* Top bar */
.topbar { background: var(--navy-deep); color: #c9d3ea; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #c9d3ea; text-decoration: none; }
.topbar .tb-right { display: flex; gap: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text strong { display: block; font-size: 17px; color: var(--navy); letter-spacing: .04em; line-height: 1.1; }
.brand-text span { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-toggle { background: none; border: 1px solid var(--line); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; border-radius: 2px; color: var(--navy); font-weight: 600; }
.lang-toggle:hover { border-color: var(--navy); }
.header .btn { padding: 9px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; border-radius: 2px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero .eyebrow { color: #8fc8ef; }
.hero h1 { color: var(--white); font-size: 48px; font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] .hero h1 { font-size: 44px; letter-spacing: 0; }
.hero p.lead { margin-top: 20px; font-size: 18px; color: #d7def0; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual img { width: 100%; max-width: 460px; margin-inline-start: auto; }

/* Credentials strip */
.creds { border-bottom: 1px solid var(--line); }
.creds .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.cred { padding: 26px 18px; border-inline-start: 1px solid var(--line); }
.cred:first-child { border-inline-start: 0; padding-inline-start: 0; }
.cred strong { display: block; font-size: 22px; color: var(--navy); font-weight: 600; }
.cred span { font-size: 13px; color: var(--muted); }

/* Photo strip */
.photo-band { padding: 40px 0 44px; background: var(--soft); border-bottom: 1px solid var(--line); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.band-head h2 { font-size: 19px; }
.band-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.strip { overflow: hidden; direction: ltr; }
.strip-track { display: flex; gap: 16px; width: max-content; animation: strip-scroll 90s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
.strip a { display: block; text-decoration: none; color: inherit; flex: none; width: max-content; }
.strip img { height: 220px; width: auto; border: 1px solid var(--line); background: var(--white); }
.strip span { display: block; max-width: 300px; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: normal; }
html[dir="rtl"] .strip span { direction: rtl; text-align: right; }
@keyframes strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip-track { animation: none; }
}

/* Gallery page */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.photo-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; text-align: start; color: inherit; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: 14px; }
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); background: var(--white); }
.lightbox::backdrop { background: rgba(18, 37, 96, .88); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; font-size: 14px; color: var(--ink); }
.lightbox .lb-bar button { flex: none; font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.simple-header .wrap { justify-content: space-between; }
.simple-header .btn { white-space: nowrap; padding: 8px 14px; font-size: 14px; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: #333b4d; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.step { padding: 28px 24px 8px 0; }
html[dir="rtl"] .step { padding: 28px 0 8px 24px; }
.step + .step { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.step-num { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .1em; }
.step h3 { font-size: 19px; margin: 8px 0 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* Trades */
.trades { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.trades th, .trades td { text-align: start; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.trades th { width: 22%; color: var(--navy); font-size: 16px; font-weight: 600; }
.trades thead th { background: var(--navy); color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; }
html[lang="ar"] .trades thead th { letter-spacing: 0; font-size: 15px; }
.trades td { color: #333b4d; }
.trades td.unskilled { width: 28%; color: var(--muted); }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.markets li { list-style: none; padding: 16px 20px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; }
.markets { padding: 0; margin: 0; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure img { aspect-ratio: 3 / 2; }
.memberships { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--line); }
.memberships div { padding: 20px; border-inline-start: 1px solid var(--line); }
.memberships div:first-child { border-inline-start: 0; }
.memberships strong { display: block; color: var(--navy); }
.memberships span { font-size: 13px; color: var(--muted); }

/* Engage */
.engage { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.engage > div { padding: 28px; border-inline-start: 1px solid var(--line); }
.engage > div:first-child { border-inline-start: 0; }
.engage h3 { font-size: 18px; margin-bottom: 8px; }
.engage p { font-size: 15px; color: var(--muted); }
.engage .n { display: inline-block; width: 28px; height: 28px; border: 1px solid var(--navy); color: var(--navy); text-align: center; line-height: 26px; font-size: 14px; font-weight: 600; margin-bottom: 14px; border-radius: 50%; }

/* Portal teaser */
.portal-teaser { background: var(--navy); color: var(--white); }
.portal-teaser h2 { color: var(--white); }
.portal-teaser .section-head p { color: #d7def0; }
.portal-teaser .two-col { align-items: center; }
.stage-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.stage-list li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #e6ebf6; font-size: 15px; }
.stage-list li b { color: #8fc8ef; font-weight: 600; width: 24px; flex: none; }
.portal-points { margin: 24px 0 32px; padding: 0; list-style: none; }
.portal-points li { padding: 6px 0; color: #d7def0; padding-inline-start: 20px; position: relative; }
.portal-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 15px; width: 8px; height: 1px; background: #8fc8ef; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.person { border: 1px solid var(--line); padding: 28px; }
.person h3 { font-size: 20px; }
.person .role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.person dl { margin: 20px 0 0; }
.person dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.person dt { color: var(--muted); }
.person dd { margin: 0; }
.person .btn { margin-top: 20px; }
.office { margin-top: 24px; font-size: 15px; color: var(--muted); }
.office strong { color: var(--ink); display: block; margin-bottom: 4px; }
form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #c3cad8; border-radius: 2px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-inline-start: 3px solid var(--maroon); background: #fbf1ef; color: var(--maroon); font-size: 14px; }
.form-note { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }

/* Footer */
.footer { background: var(--navy-deep); color: #b9c4de; font-size: 14px; padding: 48px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; }
.footer a { color: #b9c4de; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.fraud { margin-top: 16px; font-size: 13px; color: #9fabc8; max-width: 520px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; top: 76px; inset-inline: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .menu-btn { display: inline-block; margin-inline-start: auto; }
  .header .wrap { gap: 12px; }
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { margin: 0 auto; max-width: 360px; }
  .creds .wrap { grid-template-columns: repeat(3, 1fr); }
  .cred:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .markets { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .memberships { grid-template-columns: 1fr 1fr; }
  .memberships div:nth-child(3) { border-inline-start: 0; }
  .memberships div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .engage { grid-template-columns: 1fr; }
  .engage > div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .engage > div:first-child { border-top: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .tb-left { display: none; }
  .topbar .wrap { justify-content: center; }
  .header .wrap { height: 64px; }
  .nav { top: 64px; }
  .brand img { height: 36px; }
  .brand-text span { display: none; }
  .header .btn.portal-btn { display: none; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 27px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .hero h1, html[lang="ar"] .hero h1 { font-size: 33px; }
  .hero p.lead { font-size: 16px; }
  .creds .wrap { grid-template-columns: 1fr 1fr; }
  .cred { padding: 18px 12px; border-top: 1px solid var(--line); }
  .cred:nth-child(-n+2) { border-top: 0; }
  .cred:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .cred:nth-child(4) { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
  .cred:nth-child(5) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .step, html[dir="rtl"] .step, .step + .step { padding: 22px 0 18px; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .trades thead { display: none; }
  .trades, .trades tbody, .trades tr, .trades th, .trades td { display: block; width: 100% !important; }
  .trades th { padding-bottom: 4px; border-bottom: 0; }
  .trades td { padding-top: 6px; padding-bottom: 6px; border-bottom: 0; }
  .trades td.unskilled { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .trades td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
  .markets { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .strip img { height: 170px; }
  .strip span { max-width: 230px; }
  .band-head { flex-direction: column; gap: 6px; }
  form.enquiry { grid-template-columns: 1fr; }
  .person dl div { grid-template-columns: 90px 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 440px) { .simple-header .brand-text { display: none; } }
