/* ==========================================================
   CorpRisk Africa Ltd — site stylesheet
   ========================================================== */
:root {
  --navy: #0b3a63;
  --navy-2: #0d4f86;
  --blue: #0f75bd;
  --blue-dark: #0b5c96;
  --sky: #e6f1fa;
  --orange: #ee6a2c;
  --orange-dark: #d1561b;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 26, 51, .08);
  --wrap: 1340px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .8em 1.6em; border-radius: var(--radius);
  background: var(--orange); color: #fff; border: 2px solid var(--orange);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue); color: #c9d6e6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--orange); }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__info svg { width: 14px; height: 14px; fill: #fff; flex: none; }
.topbar__links { display: flex; gap: 18px; }

/* ---------- Header / nav ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(10,26,51,.08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 20px; }
.logo { flex: none; }
.logo img { width: 215px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.sub-toggle {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--head); font-weight: 600; font-size: 1.08rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); padding: 10px 12px; border-radius: 4px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav button.sub-toggle:hover, .nav li.is-current > a, .nav li.is-current > button { color: var(--blue); }
.nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav .submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
  min-width: 300px; background: #fff; border-top: 3px solid var(--blue);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu, .nav li.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav .submenu a { white-space: normal; text-transform: none; font-family: var(--body); font-weight: 500; font-size: .98rem; letter-spacing: 0; padding: 9px 20px; border-radius: 0; }
.nav .submenu a:hover { background: var(--bg-soft); }
.nav .btn { white-space: nowrap; margin-left: 10px; padding: .55em 1.1em; font-size: .98rem; color: #fff; background: var(--orange); border-radius: var(--radius); }
.nav .btn:hover { color: #fff; background: var(--orange-dark); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 600px; overflow: hidden; background: var(--navy); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,0) 65%); }
.slide h1, .slide h2, .slide p, .slide .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.slide__body { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.slide__text { max-width: 620px; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.slide h1, .slide h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 18px; }
.slide p { color: #d7e1ee; font-size: 1.12rem; max-width: 520px; margin-bottom: 28px; }
.slide__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__controls { position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0; }
.hero__controls .wrap { display: flex; align-items: center; gap: 10px; }
.dot { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; transition: background .2s, width .2s; }
.dot.is-active { background: var(--orange); width: 54px; }
.hero__arrows { margin-left: auto; display: flex; gap: 8px; }
.hero__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.hero__arrows button:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--soft { background: var(--bg-soft); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #c9d6e6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.rule { width: 60px; height: 4px; background: var(--orange); border: 0; margin: 0 0 22px; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* Intro split */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; left: -24px; bottom: -24px; background: var(--orange); color: #fff;
  padding: 20px 26px; border-radius: var(--radius); font-family: var(--head); max-width: 230px; box-shadow: var(--shadow);
}
.split__badge strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.split__badge span { font-size: 1rem; letter-spacing: .04em; }
.lead { font-size: 1.15rem; color: var(--ink); }
.text-muted { color: var(--muted); }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,26,51,.14); color: var(--ink); }
.service-card__img { aspect-ratio: 16/8; overflow: hidden; background: var(--navy); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card__num { font-family: var(--head); font-weight: 700; color: var(--orange); font-size: 1rem; letter-spacing: .12em; }
.service-card h3 { margin: 6px 0 10px; }
.service-card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.more { margin-top: auto; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-size: .98rem; }
.service-card:hover .more { color: var(--orange); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--head); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4rem); color: #fff; line-height: 1; }
.stat__num em { font-style: normal; color: var(--orange); }
.stat__label { margin-top: 10px; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; color: #9fb3cc; }

/* Clients marquee & grid */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-tile { flex: none; width: 190px; height: 104px; background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--line); }
.logo-tile img { max-height: 84px; width: auto; object-fit: contain; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.clients-grid .logo-tile { width: auto; height: 120px; transition: box-shadow .2s, transform .2s; }
.clients-grid .logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-grid--4 { grid-template-columns: repeat(2, 1fr); }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); transition: transform .25s; }
.news-card:hover { transform: translateY(-4px); color: var(--ink); }
.news-card__img { aspect-ratio: 16/10; background: var(--navy) url("../images/favicon.png") center / 54px no-repeat; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card time { font-size: .88rem; color: var(--orange); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.news-card h3 { margin: 8px 0 10px; font-size: 1.4rem; }
.news-card p { color: var(--muted); font-size: .97rem; }

/* Talk to us / contact */
.contact-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(238,106,44,.15); display: flex; align-items: center; justify-content: center; }
.contact-list .ic svg { width: 18px; height: 18px; fill: var(--orange); }
.contact-list strong { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: #fff; font-weight: 600; }
.contact-list a { color: #c9d6e6; }
.contact-list a:hover { color: var(--orange); }
.light .contact-list li { border-color: var(--line); }
.light .contact-list strong { color: var(--navy); }
.light .contact-list a { color: var(--ink); }
.light .contact-list a:hover { color: var(--orange); }

.form-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); color: var(--ink); }
.form-card h3 { margin-bottom: 18px; }
.form-grid { 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: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Page banner ---------- */
.banner { position: relative; padding: 46px 0 38px; color: #fff; background: var(--navy); overflow: hidden; }
.banner__bg { position: absolute; inset: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 75%); }
.banner h1, .banner .crumbs, .banner .post-meta { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.banner .crumbs { color: #e6eef6; }
.banner .wrap { position: relative; z-index: 2; }
.banner h1 { color: #fff; margin-bottom: 8px; max-width: 820px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.crumbs { font-size: .92rem; color: #9fb3cc; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { margin: 0 8px; }

/* ---------- Content ---------- */
.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose { font-size: 1.07rem; }
.prose p { color: #2c3848; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--orange); }
.callout { border-left: 4px solid var(--orange); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }

.sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.side-box h3 { font-size: 1.3rem; margin-bottom: 14px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover, .side-nav a.is-current { color: var(--orange); }
.side-nav a.is-current { font-weight: 700; }
.side-cta { background: var(--navy); color: #c9d6e6; }
.side-cta h3 { color: #fff; }
.side-cta .phone { display: block; font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: #fff; margin: 4px 0 16px; }

.values { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.value { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 24px 28px; }
.value h3 { margin-top: 0; margin-bottom: 8px; }
.value:nth-child(2) { border-left-color: var(--orange); }
.value:nth-child(3) { border-left-color: var(--navy); }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.mv__item { background: var(--navy); color: #c9d6e6; border-radius: var(--radius); padding: 30px; }
.mv__item h3 { color: #fff; }
.mv__item:nth-child(2) { background: var(--blue); color: #e5f0fa; }
.mv__item p { margin: 0; }

.branches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.branches span { background: var(--sky); color: var(--blue-dark); font-weight: 600; font-size: .9rem; padding: 5px 12px; border-radius: 20px; }

.map { border: 0; width: 100%; height: 460px; display: block; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,12,25,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 10px 16px; line-height: 1; }
.lightbox .lb-close { top: 12px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.post-meta { color: #9fb3cc; font-size: .95rem; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Login cards */
.login-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 30px; justify-content: center; }
.login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; color: var(--ink); transition: transform .25s; }
.login-card:hover { transform: translateY(-4px); color: var(--ink); }
.login-card img { width: 100%; }
.login-card div { padding: 18px; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }

.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; display: block; }

/* CTA strip */
.cta-strip { background: var(--orange); color: #fff; padding: 46px 0; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-strip p { margin: 4px 0 0; color: #ffe6da; }
.cta-strip .btn { background: var(--navy); border-color: var(--navy); }
.cta-strip .btn:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #082f52; color: #9fb3cc; padding: 70px 0 0; font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .9fr .8fr 1.5fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #c9d6e6; }
.footer a:hover { color: var(--orange); }
.footer__logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.footer__logo img { width: 170px; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .88rem; }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* WhatsApp float */
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a, .nav button.sub-toggle { padding: 10px 7px; font-size: 1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 20px 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 80;
  }
  .menu-open .nav { transform: none; }
  .menu-open .header { z-index: 100; }
  .menu-toggle { position: relative; z-index: 90; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.sub-toggle { width: 100%; justify-content: space-between; padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .nav li.is-open > .submenu { display: block; }
  .nav li:hover > .submenu { display: none; }
  .nav li.is-open:hover > .submenu { display: block; }
  .nav .btn { margin: 18px 0 0; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,26,51,.5); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .menu-open .nav-backdrop { opacity: 1; visibility: visible; }
  .split, .contact-block, .content-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .values { grid-template-columns: 1fr; }
  .split__badge { left: 16px; bottom: -20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__info span.hide-sm { display: none; }
  .topbar .wrap { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
  .header .wrap { min-height: 76px; }
  .logo img { width: 170px; }
  .section { padding: 64px 0; }
  .services-grid, .news-grid, .news-grid--4, .mv, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .login-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .banner { padding: 36px 0 30px; }
  .hero__arrows { display: none; }
  .slide::after { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
  .post-nav { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Who we are intro (home) */
.who-intro { text-align: center; }
.who-intro__inner { max-width: none; }
.who-intro h2 { color: var(--blue-dark); }
.who-intro .rule { margin-left: auto; margin-right: auto; }
.who-intro__text { font-family: var(--body); font-size: 1.07rem; line-height: 1.7; color: #2c3848; text-align: justify; margin-bottom: 28px; }

/* Blue accents */
h2, h3 { color: var(--navy); }
.section--sky h2, .section-head h2 { color: var(--blue-dark); }
.rule { background: var(--blue); }
.eyebrow { color: var(--blue); }
.slide .eyebrow { color: #fff; }
.section--navy .eyebrow { color: #8cc6f0; }
.section--navy .rule { background: var(--orange); }
.service-card { border-top: 4px solid var(--blue); }
.stat__num em { color: #8cc6f0; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--blue); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 22px; height: 22px; fill: #fff; }
.section--navy h2, .section--navy .section-head h2 { color: #fff; }
.side-nav a:hover, .side-nav a.is-current { color: var(--blue); }
@media (max-width: 640px) { .who-intro__text { text-align: left; } }
.footer-contacts li { margin-bottom: 14px; line-height: 1.6; }
.footer-contacts strong { display: block; color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
/* Mission / Vision text */
.prose .mv__item p { color: #e8f1f9; }
.prose .mv__item h3 { color: #fff; margin-top: 0; }

/* Hero side arrows */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.hero-arrow svg { width: 30px; height: 30px; fill: #fff; }
.hero-arrow:hover { background: var(--orange); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
@media (max-width: 640px) { .hero-arrow { width: 40px; height: 40px; top: auto; bottom: 14px; transform: none; } .hero-arrow svg { width: 24px; height: 24px; } .hero-arrow.prev { left: auto; right: 62px; } .hero-arrow.next { right: 16px; } }
@media (min-width: 641px) and (max-width: 1340px) { .slide__text { padding-left: 60px; } .hero__controls .wrap { padding-left: 80px; } }
.who-intro { padding: 44px 0 50px; }
.who-intro h2 { margin-bottom: 10px; }
.who-intro .rule { margin-bottom: 18px; }
.who-intro__text { margin-bottom: 22px; }

/* Header logo padding + nav buttons */
.logo { padding: 10px 0; }
.nav-btns { display: flex; gap: 8px; margin-left: 10px; }
.nav .nav-btns .btn { margin-left: 0; }
.nav .btn--portal { background: var(--blue); }
.nav .btn--portal:hover { background: var(--blue-dark); }
.topbar .wrap { justify-content: flex-start; }
@media (min-width: 1121px) and (max-width: 1440px) {
  .logo img { width: 180px; }
  .nav a, .nav button.sub-toggle { padding: 10px 6px; font-size: .95rem; letter-spacing: .02em; }
  .nav .btn { padding: .5em .8em; font-size: .9rem; }
  .header .wrap { gap: 12px; }
}
@media (min-width: 1121px) and (max-width: 1200px) { .logo img { width: 150px; } .nav a, .nav button.sub-toggle { padding: 8px 4px; font-size: .88rem; } }
@media (max-width: 1120px) { .nav-btns { flex-direction: column; margin: 18px 0 0; } .nav .nav-btns .btn { margin: 0; } }
@media (max-width: 640px) { .logo { padding: 8px 0; } }
/* Keep client logo strip within the page width */
.marquee { width: calc(100% - 40px); max-width: calc(var(--wrap) - 40px); margin: 0 auto; }
/* Centre the top contact bar */
.topbar .wrap { justify-content: center; }
.topbar__info { justify-content: center; }
/* Darker, larger menu items */
.nav > ul > li > a, .nav > ul > li > button.sub-toggle { color: #071a2e; font-size: 1.08rem; font-weight: 700; padding: 10px 12px; letter-spacing: .04em; }
.nav > ul > li > a:hover, .nav > ul > li > button.sub-toggle:hover, .nav > ul > li.is-current > a, .nav > ul > li.is-current > button { color: var(--blue); }
@media (min-width: 1121px) and (max-width: 1440px) { .nav > ul > li > a, .nav > ul > li > button.sub-toggle { font-size: 1rem; padding: 10px 8px; } }
@media (min-width: 1121px) and (max-width: 1240px) { .nav > ul > li > a, .nav > ul > li > button.sub-toggle { font-size: .92rem; padding: 8px 5px; } }
@media (max-width: 1120px) { .nav > ul > li > a, .nav > ul > li > button.sub-toggle { font-size: 1.1rem; } }
@media (min-width: 1441px) { .nav .btn { padding: .55em 1.1em; font-size: .98rem; } .nav-btns { gap: 8px; margin-left: 12px; } }

/* Uniform body text: one size, line height and colour everywhere */
p, li, .prose, .lead, .who-intro__text, .section-head p, .service-card p, .news-card p,
.value p, .prose .mv__item p, .side-box p, .contact-list div, .footer, .footer p, .footer li {
  font-family: var(--body); font-size: 17px; line-height: 1.7;
}
.prose p, .lead, .who-intro__text, .section-head p, .service-card p, .news-card p, .value p, .side-box:not(.side-cta) p,
.light .contact-list div { color: #2c3848; }
.prose .mv__item p { color: #e8f1f9; }
.side-box h3 { font-size: 1.7rem; margin-bottom: 14px; }

/* Mobile refinements */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .who-intro { padding: 36px 0 40px; }
  .dot { width: 18px; }
  .dot.is-active { width: 30px; }
  .wa-float { width: 46px; height: 46px; left: 14px; bottom: 14px; }
  .wa-float svg { width: 24px; height: 24px; }
  .to-top { width: 42px; height: 42px; right: 14px; bottom: 14px; }
  .to-top svg { width: 18px; height: 18px; }
  .footer { padding-top: 48px; }
  .footer__bottom { margin-top: 32px; }
}
