/* VAS Consulting - brand colors taken from the logo files */
:root {
  --blue: #0072bb;
  --blue-dark: #004f84;
  --navy: #003f6b;
  --green: #bdd535;
  --orange: #e8782a;
  --ink: #12263a;
  --muted: #4a5b6c;
  --line: #dbe4ec;
  --tint: #f2f7fb;
  --white: #ffffff;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { display: block; height: 52px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: .5rem .8rem; font: inherit; color: var(--ink); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .55rem .9rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.nav a:hover { background: var(--tint); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav li.lang a { display: flex; align-items: center; gap: .4rem; margin-left: .25rem; }
.nav li.lang .lang-icon { flex: none; }
.nav a.nav-cta { background: var(--blue); color: var(--white); margin-left: .5rem; }
.nav a.nav-cta:hover { background: var(--blue-dark); color: var(--white); }
.nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 6px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--blue-dark); }
.btn-primary:hover { background: var(--green); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--blue-dark); color: var(--white); }

/* Hero (home page) and page-hero (inner pages)
   Artwork from the company-profile cover; img/hero-*.{svg,png} are built by docs/hero-artwork/build-hero.py.
   Layers: navy and network lines (plus Africa on the home page), then the fade behind the text and the
   dot grid (::before), then the lime sweep (::after). The lime blade starts 45% down the sweep image,
   so the bottom padding reserves only that part of it. */
.hero, .page-hero {
  background: url(../img/hero-net.svg) right center / cover no-repeat, var(--navy);
  color: var(--white); position: relative; overflow: hidden;
}
.hero {
  background: url(../img/hero-africa.png) right center / cover no-repeat,
              url(../img/hero-net.svg) right center / cover no-repeat,
              var(--navy);
  --sweep: clamp(44px, 6.5vw, 104px);
  --fade: ellipse 900px 400px;
  padding: 2.5rem 0 calc(var(--sweep) * .55 + 1.5rem);
}
.page-hero {
  --sweep: clamp(28px, 3.6vw, 58px);
  --fade: ellipse 900px 260px;
  padding: 2.25rem 0 calc(var(--sweep) * .55 + 1.5rem);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0 1.1px, transparent 1.7px) 0 0 / 16px 16px,
              radial-gradient(var(--fade) at min(50%, calc(max(1.25rem, 50% - 550px) + 340px)) 44%,
                rgba(0,63,107,.96) 40%, rgba(0,63,107,.58) 62%, rgba(0,63,107,0) 80%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--sweep);
  background: url(../img/hero-sweep.svg) center bottom / 100% 100% no-repeat; z-index: 1;
}
.hero .wrap, .page-hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.15; margin: 0 0 1.1rem; max-width: 17em; }
.hero p { font-size: 1.2rem; max-width: 40em; margin: 0 0 2rem; color: #e6f1fa; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.page-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.2; }
.page-hero p { margin: 0; max-width: 42em; color: #e6f1fa; font-size: 1.15rem; }

/* Sections */
section { padding: 3.75rem 0; }
.tint { background: var(--tint); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.25; margin: 0 0 .6rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44em; margin: 0 0 2rem; }
.lead.closing { margin-top: 1.5rem; }
.eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .4rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; padding: 1.4rem 1.4rem 1.5rem; }
.card p { margin: 0; color: var(--muted); }
/* Five cards: 3 on the first row, 2 wider on the second */
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > *, .grid-5 > *:nth-child(n+4) { grid-column: span 1; }
  .grid-5 > *:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .grid-5 { grid-template-columns: 1fr; }
  .grid-5 > *, .grid-5 > *:last-child { grid-column: auto; }
}
a.card-link, a.card-link:hover, a.card-link:focus { text-decoration: none; }
a.card-link { display: block; color: inherit; transition: box-shadow .15s, border-top-color .15s; }
a.card-link:hover { border-top-color: var(--green); box-shadow: 0 6px 18px rgba(18, 38, 58, .12); color: inherit; }
.service[id] { scroll-margin-top: 96px; }

.service { padding: 2rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: 1.5rem; margin: 0; }
.service p:first-child { margin-top: 0; }
.service ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.service li { margin: .2rem 0; }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.panel { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 8px; padding: 1.6rem; }
.panel p { margin: 0 0 1rem; }
.panel p:last-child { margin-bottom: 0; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: .6rem; }
.steps strong { display: block; margin-bottom: .3rem; }

.cta-band { background: var(--blue); color: var(--white); text-align: center; padding: 3.25rem 0; }
.cta-band h2 { margin-bottom: 1.2rem; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
.facts { background: var(--tint); border-radius: 8px; padding: 1.5rem; align-self: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1rem; margin: 1.5rem 0 .5rem; }
.stats div { background: var(--tint); border-radius: 8px; padding: .9rem 1rem; }
.tint .stats div { background: var(--white); border: 1px solid var(--line); }
.stats b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); line-height: 1.1; margin-bottom: .3rem; white-space: nowrap; }
.stats span { color: var(--muted); font-size: .92rem; }
.stats-note { color: var(--muted); font-size: .88rem; margin: 0 0 1.5rem; }
.quote { margin: 1.75rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--green); background: var(--tint); border-radius: 0 8px 8px 0; }
.tint .quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); }
.quote p { margin: 0 0 .6rem; font-size: 1.05rem; }
.quote footer { color: var(--muted); font-size: .92rem; }
.facts h3 { margin-bottom: .8rem; }
.tint .facts { background: var(--white); border: 1px solid var(--line); }
.facts dl { margin: 0; }
.facts dt { font-weight: 700; margin-top: .8rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; color: var(--muted); }

/* Form */
form { display: grid; gap: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #9fb2c3; border-radius: 6px; background: var(--white); color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note { font-size: .92rem; color: var(--muted); }
.notice { border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; }
.notice-ok { background: #eaf6d4; border: 1px solid var(--green); }
.notice-err { background: #fdebdc; border: 1px solid var(--orange); }

/* Footer */
.site-footer { background: var(--ink); color: #d7e1ea; padding: 3rem 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--green); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer address { font-style: normal; }
.legal { border-top: 1px solid #2c4258; margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; color: #a9bacb; }

@media (min-width: 821px) and (max-width: 1060px) {
  .nav a { padding: .55rem .5rem; font-size: .92rem; }
  .brand img { height: 46px; width: auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); border-radius: 0; }
  .nav a.nav-cta { margin: .4rem 0 0; text-align: center; }
  .service, .feature, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 calc(var(--sweep) * .55 + 1.5rem); background: url(../img/hero-net.svg) right center / cover no-repeat, var(--navy); }
  section { padding: 2.75rem 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
