/* ATB — Advance Technology And Business SPC
   Design: serious / technical corporate. EN + AR (RTL) ready. */

:root {
  --navy: #0e2439;
  --navy-2: #14324f;
  --steel: #1f4e79;
  --slate: #5b6b7b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #1a2733;
  --muted: #5f6f7e;
  --accent: #e8842b;      /* used sparingly for CTAs */
  --accent-dark: #c96e1c;
  --white: #ffffff;
  --radius: 6px;
  --maxw: 1160px;
  --shadow: 0 6px 24px rgba(14, 36, 57, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

/* Arabic / RTL adjustments */
html[dir="rtl"] body { font-family: "Segoe UI", "Tahoma", "Arial", sans-serif; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
html[dir="rtl"] .card-icon { margin-left: 0; }

img { max-width: 100%; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

/* Subtle photo backdrop behind About + Services (ends before Special Expertise) */
.entry-canvas {
  position: relative;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(180deg, rgba(245,247,250,.80) 0%, rgba(245,247,250,.82) 45%, rgba(245,247,250,.90) 100%),
    url("../../images/coastline-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center center;
  background-size: cover, cover;
  /* 'scroll' (not 'fixed') — iOS Safari does not render fixed backgrounds */
  background-attachment: scroll, scroll;
}
/* Narrow screens: use the portrait framing (fits vertical viewports better) */
@media (max-width: 820px) {
  .entry-canvas {
    background-image:
      linear-gradient(180deg, rgba(245,247,250,.82) 0%, rgba(245,247,250,.84) 45%, rgba(245,247,250,.91) 100%),
      url("../../images/coastline-port-bg.jpg");
    background-attachment: scroll, scroll;
  }
}
/* Let the backdrop show through the two sections it wraps */
.entry-canvas > .section { background-color: transparent; }
.section-dark { background: var(--navy); color: #dbe5ef; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .6em;
}
.section-dark .eyebrow { color: var(--accent); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-dark .lead { color: #c3d0dd; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 112px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .brand-logo { width: auto; height: 70px; display: block; }
.brand small { display: block; font-size: .86rem; font-weight: 700; letter-spacing: .03em; color: var(--navy); text-transform: none; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--steel); text-decoration: none; }

.lang-switch {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 40px; overflow: hidden;
  background: #fff;
}
.lang-opt {
  border: 0; background: transparent; color: var(--navy);
  padding: 6px 11px; font-weight: 700; font-size: .8rem; letter-spacing: .3px;
  cursor: pointer; font-family: var(--font); line-height: 1;
  display: inline-flex; align-items: center; text-decoration: none;
}
.lang-opt + .lang-opt { border-inline-start: 1px solid var(--line); }
.lang-opt:hover { color: var(--steel); text-decoration: none; }
.lang-opt.is-active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: var(--radius); font-weight: 700;
  padding: 13px 26px; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: all .15s ease; font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf1f8;
  background:
    linear-gradient(180deg, rgba(10,26,42,.46) 0%, rgba(10,26,42,.26) 55%, rgba(10,26,42,.52) 100%),
    linear-gradient(90deg, rgba(10,26,42,.50) 0%, rgba(10,26,42,.12) 100%),
    url("../../images/service-fire-ambulance.jpg") center 35% / cover no-repeat,
    var(--navy);
  overflow: hidden;
}
/* keep white hero text readable now that the photo shows through more */
.hero h1, .hero .hero-sub p, .hero .eyebrow {
  text-shadow: 0 1px 3px rgba(6,16,28,.75), 0 2px 14px rgba(6,16,28,.55);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 66px; padding-bottom: 60px; }
.hero-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 54px; align-items: center; }
.hero-head .eyebrow { margin-bottom: .6em; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0; }
.hero-sub p { color: #c6d4e2; font-size: 1.12rem; max-width: 46ch; margin-bottom: 22px; }
html[dir="rtl"] .hero h1 { max-width: 18ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }

.hero-badge { display: inline-flex; width: fit-content; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #dbe5ef; border-radius: 40px; padding: 7px 15px; font-size: .82rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 16px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px 40px; margin-top: 36px; flex-wrap: wrap; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 auto; }
.hero-pillar { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 40px; padding: 8px 15px; font-size: .92rem; font-weight: 600; color: #e6eef7; }
.hero-pillar .pi { width: 19px; height: 19px; flex: 0 0 auto; color: var(--accent); }

.hero-stats {
  display: flex; gap: 30px; flex-wrap: wrap; flex: 0 0 auto; align-self: flex-end;
  background: rgba(10,26,42,.44);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 14px 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-stats .stat b { text-align: right; }
.hero-stats .stat b { display: block; font-size: 1.7rem; color: #fff; }
.hero-stats .stat span { font-size: .9rem; color: #c2d2e0; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--steel); }
.card-media {
  position: relative; height: 132px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-soft), #e7edf4);
  display: flex; align-items: center; justify-content: center; color: var(--steel);
}
.card-media svg { width: 40px; height: 40px; opacity: .5; }
.card-media .ph-tag {
  position: absolute; bottom: 9px; inset-inline-start: 0; width: 100%; text-align: center;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.card-media.has-img { height: 150px; background: none; }
.card-media.has-img img { width: 100%; height: 100%; object-fit: cover; }
.card-media.has-img .ph-tag { display: none; }
.card-body { padding: 26px 28px; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: .97rem; margin: 0; }
/* legacy icon (unused by service cards now) */
.card-icon { width: 46px; height: 46px; border-radius: 8px; margin-bottom: 16px; background: var(--bg-soft); color: var(--steel); display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Government partner (Austria × Oman) ---------- */
.gov-visual { background: var(--navy); color: #dbe5ef; border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 32px; display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 100%; }
.gov-flag { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gov-flag img { width: 62px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.gov-flag span { font-weight: 700; color: #fff; font-size: .96rem; }
.gov-x { font-size: 1.8rem; color: var(--accent); font-weight: 800; }
#gov-partner .cert-badges { margin-top: 26px; }
/* Bridge graphic: Europe × Oman */
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; margin-top: 44px; }
.bridge-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.bridge-col.eu { border-top: 3px solid var(--steel); }
.bridge-col.om { border-top: 3px solid var(--accent); }
.bridge-head { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); font-size: 1.08rem; margin-bottom: 16px; }
.bridge-head img { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.bridge-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.bridge-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.bridge-item.flags::before { display: none; }
.bridge-item .flag { margin: 0 4px 0 0; }
html[dir="rtl"] .bridge-item .flag { margin: 0 0 0 4px; }
.bridge-link { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; }
.bridge-link::before { content: ""; position: absolute; top: 50%; left: -22px; right: -22px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--steel), var(--accent)); opacity: .3; }
.bridge-mark { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--bg-soft); padding: 14px 12px; }
/* Extra gap between the two flags on B.A.U.S. AT. (Poland + Germany) */
.partner-flag .flag + .flag, .brand-country .flag + .flag { margin-inline-start: 7px; }
.bridge-kugel { width: 62px; height: auto; transform: translateX(-4px); }
.bridge-wordmark { width: 98px; height: auto; transform: translateX(14px); }
@media (max-width: 820px) { .bridge-link::before { display: none; } }
@media (max-width: 820px) { .bridge { grid-template-columns: 1fr; } .bridge-link { flex-direction: row; gap: 14px; padding: 6px 0; } }

.gov-messages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.gov-msg { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.gov-msg-icon svg { width: 34px; height: 34px; color: var(--accent); }
.gov-msg h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.gov-msg p { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.65; }
@media (max-width: 900px) { .gov-messages { grid-template-columns: 1fr; } }

/* ---------- What we do (4 areas with lists) ---------- */
.service4-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.service4-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.service4-card:hover { transform: translateY(-4px); border-color: var(--steel); }
.service4-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service4-head svg { width: 34px; height: 34px; color: var(--accent); flex: 0 0 auto; }
.service4-head h3 { margin: 0; font-size: 1.22rem; }
.service4-desc { color: var(--muted); margin: 0 0 16px; font-size: .97rem; line-height: 1.6; }
.service4-list { list-style: none; margin: 0; padding: 0; }
.service4-list li { position: relative; padding-inline-start: 26px; margin-bottom: 9px; font-size: .93rem; color: var(--text); line-height: 1.5; }
.service4-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 900px) { .service4-grid { grid-template-columns: 1fr; } }

/* ---------- Expertise / feature split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: center; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li { position: relative; padding-inline-start: 32px; margin-bottom: 14px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.media-box {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--navy-2), var(--steel));
  min-height: 340px; display: grid; place-items: center; color: #cfe0f0; text-align: center; padding: 24px;
  border: 1px solid var(--line);
}
.media-box .ph-label { font-size: .85rem; opacity: .85; }
.media-box.has-img { padding: 0; background: none; min-height: 0; display: block; border: 0; }
.media-box.has-img img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px; font-size: .9rem; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.client-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.client-card:hover { transform: translateY(-3px); border-color: var(--steel); }
.client-icon { flex: 0 0 auto; line-height: 0; }
.client-icon svg { width: 42px; height: 42px; color: var(--accent); display: block; }
.client-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.client-card p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.client-tag { font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--steel); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 40px; padding: 4px 11px; }

/* ---------- Certifications ---------- */
.cert-heading { margin-top: 48px; font-weight: 700; color: var(--navy); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cert-badge { font-size: .82rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 9px 16px; box-shadow: var(--shadow); }

/* ---------- The Next Chapter ---------- */
.nextchapter { display: grid; grid-template-columns: 1.4fr 1fr; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.nc-main { padding: 34px; }
.nc-badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 40px; margin-bottom: 16px; }
.nc-main h3 { font-size: 1.5rem; margin-bottom: .5em; }
.nc-main p { color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.nc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-tags > span { font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 40px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 7px; }
.nc-tags .ti { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.nc-tags .flag { margin: 0; }
.nc-meta { background: var(--navy); color: #dbe5ef; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.nc-meta-item { display: flex; flex-direction: column; gap: 2px; }
.nc-meta-item .lbl { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.nc-meta-item .val { font-size: .98rem; color: #fff; font-weight: 600; }
.nc-contrib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }

/* ---------- Authorized brands ---------- */
.brand-group { margin-top: 32px; }
.brand-group-title { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--navy); font-size: 1rem; margin: 0 0 14px; }
.bg-icon { width: 39px; height: 39px; flex: 0 0 auto; color: var(--accent); }
.brands-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.brand-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.brand-item:hover { transform: translateY(-3px); border-color: var(--steel); }
.brand-name { font-weight: 800; color: var(--navy); letter-spacing: .03em; font-size: 1.05rem; }
.brand-note { font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.brand-country { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.partner-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .15s ease, border-top-color .15s ease; }
.partner-card:hover { transform: translateY(-4px); border-top-color: var(--accent); }
.partner-flag { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.partner-role { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.partner-card h3 { font-size: 1.02rem; margin-bottom: .5em; }
.partner-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- Global reach / offices ---------- */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: border-color .15s ease; }
.office-card:hover { border-color: var(--steel); }
.office-flag { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.office-country { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.office-city { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 2px 0 10px; }
.office-desc { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.step img { display: block; width: 100%; height: 160px; object-fit: cover; }
.step-body { counter-increment: step; padding: 22px; }
.step-body::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800; color: var(--accent); font-size: 1.3rem; display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-logo { height: 109px; width: auto; display: block; margin-bottom: 26px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-list .ci { color: var(--accent); font-weight: 800; min-width: 22px; }
.contact-list a { color: #dbe5ef; }
.contact-card {
  background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font); font-size: .96rem; color: var(--text); background: #fff;
}
.field select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b7b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px;
}
html[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); color: var(--muted); padding: 56px 0 28px; font-size: .92rem; border-top: 1px solid var(--line); }
.footer h4 { color: var(--navy); font-size: .95rem; margin: 0 0 14px; letter-spacing: .04em; }
.footer a { color: var(--slate); }
.footer a:hover { color: var(--steel); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 52px; }
.footer-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.footer-group-label { font-weight: 800; color: var(--navy); font-size: .92rem; margin-inline-end: 4px; }
.footer-links a { color: var(--slate); font-weight: 600; font-size: .93rem; }
.footer-links a:hover { color: var(--steel); text-decoration: none; }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: 14px; }
.footer-brand .footer-logo { width: auto; height: 84px; display: block; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand-text .fb-name { font-weight: 800; color: var(--navy); font-size: 1.9rem; letter-spacing: .02em; }
.footer-brand-text .fb-sub { font-weight: 700; color: var(--navy); font-size: .82rem; letter-spacing: .01em; margin-top: 2px; }
.footer-tagline { max-width: 34ch; color: var(--muted); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted);
}
.footer-bottom a { color: var(--steel); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: .9rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--steel); }

/* ---------- Flags (uniform, site-wide) ---------- */
.flag { display: inline-block; width: 21px; height: 14px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); margin-inline-end: 7px; }
.partner-flag, .office-flag { line-height: 0; }
.partner-flag .flag, .office-flag .flag { margin: 0; vertical-align: middle; }

/* ---------- Scroll reveal (Pepp) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal :is(.section .eyebrow, .section > .container > h2, .section .lead, .card, .service4-card, .client-card, .partner-card, .office-card, .brand-item, .brand-group-title, .gallery figure, .step, .gov-msg, .bridge, .contact-card) {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, .8, .3, 1), transform .7s cubic-bezier(.16, .8, .3, 1);
  }
  .has-reveal :is(.section .eyebrow, .section > .container > h2, .section .lead, .card, .service4-card, .client-card, .partner-card, .office-card, .brand-item, .brand-group-title, .gallery figure, .step, .gov-msg, .bridge, .contact-card).is-visible {
    opacity: 1; transform: none;
  }
}

/* ---------- Language visibility helper ---------- */
[data-lang-hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-top { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { max-width: 20ch; }
  .hero-sub p { max-width: 58ch; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: 1fr; }
  .nextchapter { grid-template-columns: 1fr; }
  .nc-contrib { grid-template-columns: 1fr; }
}
/* Collapse the header nav into a hamburger early enough for tablets / iPad */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 112px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .partner-grid, .offices-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 60px 0; }
}
