/* Sifogroup Zambia Limited: group site.
   Lean, no icon fonts, no framework. Navy + the logo's red on white. */
:root {
  --navy: #1b1f6b;
  --navy-deep: #0b0f3b;
  --navy-mid: #2e3192;
  --red: #b3282d;
  --red-dark: #8f1f24;
  --ink: #14163a;
  --muted: #565b7e;
  --line: #e3e5f0;
  --bg: #ffffff;
  --alt: #f4f5fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 15, 59, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* skip link + focus */
.skip-link { position: fixed; left: 12px; top: -56px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f0a3a6; outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(179, 40, 45, .28); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--alt); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,15,59,.10); }
.progress { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 33px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; text-decoration: none; font-weight: 600; color: var(--navy); border-radius: 10px; }
.nav a:hover { background: var(--alt); }
.nav a[aria-current="true"] { background: var(--alt); color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; margin-left: auto; padding: 0; }
.menu-btn span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero: a real project photo under navy, the group's network on top */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(1200px 600px at 75% 30%, #2a2f9a 0%, rgba(42,47,154,0) 60%), linear-gradient(160deg, #0b0f3b 0%, #131868 55%, #1b1f6b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11,15,59,.94) 0%, rgba(11,15,59,.78) 48%, rgba(11,15,59,.34) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 1; background: linear-gradient(180deg, rgba(11,15,59,0), rgba(11,15,59,.45)); pointer-events: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.75); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: clamp(64px, 10vw, 130px) 0 clamp(36px, 5vw, 56px); max-width: 780px; margin-right: auto; margin-left: max(20px, calc((100% - 1160px) / 2)); }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd0d2; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
.hero h1 span { color: #ff8b90; }
.lead { margin-top: 22px; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: #dfe2ff; max-width: 640px; }
.finder { display: flex; gap: 10px; margin-top: 28px; max-width: 620px; }
.finder input { flex: 1; min-width: 0; min-height: 52px; border: 0; border-radius: 999px; padding: 0 22px; background: #fff; color: var(--ink); font-size: 1rem; }
.finder input::placeholder { color: #6b7096; }
.finder .btn { min-height: 52px; padding: 0 26px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta-row .btn { flex: 0 1 auto; }
.hero-visual { position: relative; z-index: 2; }
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 34px; }
.fact { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; }
.fact strong { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }
.fact span { color: #cfd3ff; font-size: .9rem; }

/* light-weight network picture (phones, Data Saver, and the fallback when the 3D scene is off) */
.orbit { display: block; width: min(300px, 70vw); height: auto; margin: 0 auto 22px; overflow: visible; }
.orbit-rings circle { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.orbit line { stroke-width: 1.5; opacity: .5; }
.orbit .halo { opacity: .3; transform-box: fill-box; transform-origin: center; animation: orbit-pulse 3.2s ease-in-out infinite; animation-delay: var(--d); }
.orbit-spin { transform-origin: 200px 200px; animation: orbit-spin 140s linear infinite; }
.hub-glow { fill: #ff8b90; opacity: .35; }
.hub { fill: #ff8b90; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
html.want3d .orbit { visibility: hidden; }
@media (min-width: 901px) {
  .hero { --vis-w: min(400px, 32vw); }
  .hero-visual { position: absolute; z-index: 1; right: max(24px, calc((100% - 1160px) / 2)); top: 46%; transform: translateY(-50%); width: var(--vis-w); }
  .hero-inner { max-width: min(780px, calc(100% - var(--vis-w) - 64px)); }
  .orbit { width: 100%; margin: 0; }
}

/* sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.alt { background: var(--alt); }
.head { max-width: 720px; margin-bottom: 40px; }
.tag { color: var(--red); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); }
.sub, .body { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.body { margin-bottom: 26px; }

/* companies: search, sector filter, cards */
.toolbar { display: grid; gap: 14px; margin-bottom: 4px; }
.search { position: relative; max-width: 460px; }
.search svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; border-radius: 999px; min-height: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { min-height: 44px; padding: 0 17px; border-radius: 999px; border: 1.5px solid #c9cde3; background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fchip:hover { border-color: var(--navy-mid); }
.fchip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { margin: 14px 0 20px; color: var(--muted); font-size: .95rem; min-height: 1.5em; }
.companies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.company { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 2px 0 rgba(11,15,59,.03); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.company::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); }
.company:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.logo-tile { display: flex; align-items: center; justify-content: center; height: 118px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; }
.logo-tile img { max-height: 92px; width: auto; max-width: 82%; object-fit: contain; }
.chip { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--alt); border-radius: 999px; padding: 4px 11px; border-left: 3px solid var(--accent); }
.company h3 { font-size: 1.14rem; color: var(--navy); }
.company p { color: var(--muted); font-size: .97rem; flex: 1; }
.visit, .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); min-height: 32px; }
.visit svg, .more svg { width: 18px; height: 18px; transition: transform .25s; }
.company:hover .visit svg, .aud:hover .more svg { transform: translateX(4px); }
.company-empty { grid-column: 1 / -1; background: #fff; border: 1px dashed #c9cde3; border-radius: var(--radius); padding: 34px 24px; text-align: center; color: var(--muted); }
.company-empty strong { color: var(--navy); font-size: 1.1rem; }
.company-empty p + p { margin-top: 6px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* group / pillars */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pillars li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pillars h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 4px; }
.pillars p { color: var(--muted); }

/* work gallery: first photo large, the rest beside it; scales to any number of photos */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 19vw, 230px); gap: 18px; }
.gallery li { min-height: 0; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.shot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #dfe2f3; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shot:hover img { transform: scale(1.05); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 18px 16px; color: #fff; font-weight: 700; text-align: left; background: linear-gradient(to top, rgba(8,10,40,.88), rgba(8,10,40,0)); }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; color: #fff; }
.lightbox::backdrop { background: rgba(5,7,30,.9); }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lb-inner figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-inner img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; margin-inline: auto; border-radius: 12px; }
.lb-inner figcaption { margin-top: 14px; font-weight: 700; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
html.lb-open { overflow: hidden; }

/* work with us */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.aud:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red); }
.aud > svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--alt); color: var(--navy); margin-bottom: 4px; transition: background .25s, color .25s; }
.aud:hover > svg { background: var(--red); color: #fff; }
.aud h3 { color: var(--navy); font-size: 1.15rem; }
.aud p { color: var(--muted); flex: 1; font-size: .98rem; }

/* updates (only present when there is real news) */
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.update { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.update img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.update time { color: var(--muted); font-size: .85rem; font-weight: 700; }
.update h3 { color: var(--navy); font-size: 1.15rem; }
.update h3 a { text-decoration: none; }
.update h3 a:hover { text-decoration: underline; }
.update p { color: var(--muted); }

/* contact */
.contact { align-items: start; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.act { display: flex; gap: 12px; align-items: center; min-height: 66px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.act:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: var(--shadow); }
.act svg { flex: none; width: 26px; height: 26px; color: var(--red); }
.act span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: .93rem; overflow-wrap: anywhere; }
.act strong { color: var(--navy); font-size: 1rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c9cde3; border-radius: 10px; padding: 12px 14px; min-height: 46px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-mid); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--red); }
.err { color: var(--red-dark); font-size: .86rem; font-weight: 600; min-height: 0; }
.note { color: var(--muted); font-size: .86rem; }
.note a { text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
.ok { background: #e8f6ee; border: 1px solid #9bd6b3; color: #14502b; border-radius: 10px; padding: 12px 14px; }

/* footer */
.site-footer { background: var(--navy-deep); color: #cfd3ff; padding-top: 56px; }
.foot { display: grid; grid-template-columns: 1.3fr 1.7fr 1fr; gap: 36px; padding-bottom: 36px; }
.foot-brand img { background: #fff; padding: 8px 12px; border-radius: 10px; width: auto; height: 46px; margin-bottom: 14px; }
.foot-brand p { max-width: 320px; }
.foot-contact { margin-top: 12px; }
.foot-contact a { color: #cfd3ff; display: inline-flex; align-items: center; min-height: 44px; }
.foot-contact a:hover { color: #fff; }
.foot-col { display: flex; flex-direction: column; }
.foot-col h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.foot-col a { color: #cfd3ff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 10px 0 22px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.to-top { color: #cfd3ff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.to-top:hover { color: #fff; text-decoration: underline; }

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

/* reveal on scroll (only hidden when JS is running) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1060px) {
  .nav a { padding: 0 10px; }
  .audience { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .companies, .updates { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 28vw, 240px); }
  .gallery li:first-child { grid-column: span 2; grid-row: span 1; }
  .split { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .head-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(11,15,59,.12); padding: 8px 20px 14px; display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { min-height: 50px; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
  .hero-inner { margin-left: 20px; margin-right: 20px; width: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(11,15,59,.9), rgba(11,15,59,.8)); }
  .facts { gap: 8px; }
  .fact { padding: 12px 12px; }
  .fact strong { font-size: 1.25rem; }
  .fact span { font-size: .78rem; }
  .companies, .updates { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .fchip { flex: none; scroll-snap-align: start; }
  .search { max-width: none; }
  .row2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .lb-inner { padding: 64px 16px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 44px; }
  .cta-row .btn { flex: 1 1 0; padding: 0 10px; font-size: .95rem; white-space: nowrap; }
  .finder { flex-direction: column; }
  .finder .btn { width: 100%; }
  .audience, .actions { grid-template-columns: 1fr; }
  .audience { gap: 14px; }
  .aud { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; align-content: start; padding: 18px; }
  .aud > svg { grid-row: 1 / span 3; margin: 0; }
  .aud h3, .aud p, .aud .more { grid-column: 2; }
  .gallery { grid-auto-rows: 150px; gap: 12px; }
  .orbit { width: min(240px, 64vw); }
}

/* phones, Data Saver, slow connections: no 3D hero, lighter background */
html.lite #heroCanvas { display: none; }
html.lite .hero { background: linear-gradient(160deg, #0b0f3b 0%, #131868 60%, #1b1f6b 100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  #heroCanvas { display: none; }
}
