/* ============================================================
   Master East Africa — Apple "MacBook Neo" design system
   Light, gallery-white canvas · huge SF Pro headlines ·
   single CTA blue · 28px cards · zero shadows
   ============================================================ */

:root {
  /* Colors — white canvas, black structure, red accent */
  --color-ink: #15130f;
  --color-graphite: #6b6b6b;
  --color-slate: #3a3a3a;
  --color-fog: #f4f4f4;
  --color-snow: #ffffff;
  --color-obsidian: #111111;
  --color-silver-mist: #e6e6e6;
  --color-red: #e1241b;
  --color-red-dark: #b81810;
  /* keep legacy token names mapped to red so all CTAs/accents recolor */
  --color-azure: #e1241b;
  --color-cobalt-link: #c01910;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --page-max: 1200px;
  --pad-x: 24px;

  /* Radius */
  --radius-card: 28px;
  --radius-pill: 980px;

  /* Surfaces */
  --surface-canvas: #ffffff;
  --surface-card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  background: var(--surface-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
section { padding: 120px 0; }
section > * { max-width: var(--page-max); margin-left: auto; margin-right: auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.band-fog { background: var(--color-fog); }
.band-dark { background: var(--color-obsidian); color: var(--color-snow); }
.band-dark .section-label { color: rgba(255,255,255,0.55); }
.band-dark .section-head-note { color: rgba(255,255,255,0.6); }

/* ---------- Typography ---------- */
.section-label {
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-azure);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.022em;
}
.lead {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-slate);
  margin: 22px 0 32px;
  max-width: 540px;
}
.band-dark .lead { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-block;
  background: var(--color-azure);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn-cta:hover { background: #0077ed; }
.btn-cta:active { transform: scale(0.98); }
.btn-lg { font-size: 19px; padding: 13px 26px; }
.btn-block { width: 100%; padding: 15px; font-size: 18px; margin-top: 8px; }

.btn-ghost {
  display: inline-block;
  color: var(--color-cobalt-link);
  font-size: 19px;
  font-weight: 400;
  padding: 13px 6px;
  transition: opacity 0.1s ease;
}
.btn-ghost:hover { opacity: 0.7; }

/* ---------- Nav ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,247,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 52px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-logo span { font-weight: 400; color: var(--color-graphite); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  font-size: 14px;
  color: var(--color-ink);
  opacity: 0.85;
  transition: opacity 0.1s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* Frosted language pill */
.lang-toggle {
  display: inline-flex;
  background: rgba(210,210,215,0.55);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-toggle button.active {
  background: #fff;
  color: var(--color-ink);
}

/* ---------- Hero ---------- */
#hero {
  text-align: center;
  padding: 110px 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 26px;
}
.hero-title span { color: var(--color-azure); }
.hero-sub {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--color-slate);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ---------- Stats ticker ---------- */
.ticker-band {
  background: var(--color-obsidian);
  color: #fff;
  overflow: hidden;
  padding: 22px 0;
}
.ticker {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker-item { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ticker-item b { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.ticker-item span { font-size: 15px; color: rgba(255,255,255,0.55); }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-azure); align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head-note {
  max-width: 380px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-graphite);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--color-silver-mist);
  border-radius: var(--radius-card);
  padding: 34px 28px;
  text-align: left;
}
.band-fog .stat-card { border-color: transparent; }
.stat-num { color: var(--color-ink); }
.stat-card .stat-num::after { content: ""; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-ink);
}
.stat-label { margin-top: 8px; font-size: 15px; color: var(--color-graphite); }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--color-silver-mist);
  border-radius: var(--radius-card);
  padding: 32px 28px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--color-red); transform: translateY(-3px); }
.band-fog .feature-card { border-color: transparent; }
.band-fog .feature-card:hover { border-color: var(--color-red); }
.card-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-red);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.feature-card p { font-size: 16px; line-height: 1.5; color: var(--color-graphite); }

/* Audience cards (on dark band) */
.audience-card {
  background: #161617;
  border-radius: var(--radius-card);
  padding: 36px 30px;
  border: 1px solid rgba(255,255,255,0.07);
}
.audience-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.audience-card p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.62); }

/* ---------- Brands marquee ---------- */
.brands-section { overflow: hidden; }
.brands-head { text-align: center; margin-bottom: 44px; }
.brands-head .section-label { color: var(--color-azure); }
.marquee { overflow: hidden; padding: 7px 0; max-width: 100%; padding-left: 0; padding-right: 0; }
.marquee > * { max-width: none; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-pill {
  flex: 0 0 auto;
  width: 150px;
  height: 84px;
  background: var(--surface-card);
  border: 1px solid var(--color-silver-mist);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  transition: border-color 0.15s ease;
}
.band-fog .brand-pill { background: #fff; }
.brand-pill:hover { border-color: var(--color-red); }
.brand-pill img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.brand-pill:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Coverage ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: center; }
.country-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.country-tag {
  font-size: 14px;
  color: var(--color-slate);
  background: var(--color-fog);
  border: 1px solid var(--color-silver-mist);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
}
.band-fog .country-tag { background: #fff; }
.coverage-panel {
  background: var(--color-obsidian);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.coverage-stat { display: flex; flex-direction: column; gap: 4px; }
.coverage-stat .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.coverage-stat .big i { font-style: normal; color: var(--color-azure); font-size: 32px; }
.coverage-stat > span:last-child { font-size: 15px; color: rgba(255,255,255,0.6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.contact-link { font-size: 17px; color: var(--color-slate); }
a.contact-link { color: var(--color-cobalt-link); }
a.contact-link:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
}
.band-fog .contact-form { background: #fff; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 500; color: var(--color-graphite); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-fog);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.12s ease, background 0.12s ease;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-azure);
}
.form-note { margin-top: 14px; font-size: 15px; color: var(--color-azure); font-weight: 500; }

/* ---------- Footer ---------- */
footer { background: var(--color-fog); border-top: 1px solid var(--color-silver-mist); padding: 40px 0; }
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.footer-logo span { font-weight: 400; color: var(--color-graphite); }
.footer-copy { font-size: 13px; color: var(--color-graphite); }
.footer-nav { margin-left: auto; display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--color-graphite); }
.footer-nav a:hover { color: var(--color-ink); }

/* ---------- Hero & section imagery ---------- */
.hero-image {
  max-width: 1180px;
  width: 100%;
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
}
.hero-frame {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-silver-mist);
  background: radial-gradient(130% 150% at 50% -10%, #ffffff 0%, #f2f2f2 100%);
  padding: 26px 28px 18px;
  overflow: hidden;
}
.hero-frame::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 72px; height: 4px; background: var(--color-red);
}
.hero-frame-tag {
  position: absolute; top: 16px; right: 22px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-graphite);
}
.hero-frame img {
  width: 100%; height: auto; display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 560px) { .hero-frame-tag { display: none; } .hero-frame { padding: 18px; } }

.about-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-obsidian);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section-accent { color: var(--color-red); }

/* GroupAuto lockup */
.group-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--color-silver-mist);
}
.group-lockup img { height: 30px; width: auto; opacity: 0.9; }
.group-lockup span { font-size: 13px; color: var(--color-graphite); }
.band-dark .group-lockup { border-color: rgba(255,255,255,0.14); }
.band-dark .group-lockup img { filter: brightness(0) invert(1); }

/* ---------- Quote CTA band ---------- */
.quote-band { padding: 80px 0; }
.quote-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.quote-inner .section-title { font-size: clamp(30px, 4vw, 44px); }
.quote-inner .lead { margin-bottom: 0; color: rgba(255,255,255,0.72); max-width: 560px; }
.quote-band .btn-cta { flex: 0 0 auto; }

/* ---------- Showcase band ---------- */
.showcase-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.showcase-figure { display: flex; justify-content: center; }
.showcase-figure img { max-height: 420px; width: auto; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Suppliers / clients map ---------- */
.map-figure {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-silver-mist);
  background: #fafafa;
}
.map-figure img { width: 100%; height: auto; display: block; }
.map-pin {
  position: absolute;
  width: 11px; height: 11px;
  background: var(--color-red);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(225,36,27,0.5);
  animation: pin-pulse 2.4s ease-out infinite;
}
.map-pin::after {
  content: attr(data-city);
  position: absolute;
  left: 50%; top: 16px;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  color: var(--color-ink);
  background: rgba(255,255,255,0.9);
  padding: 1px 6px; border-radius: 6px;
}
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,36,27,0.45); }
  70% { box-shadow: 0 0 0 12px rgba(225,36,27,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,36,27,0); }
}
.map-legend { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--color-graphite); }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-supplier { background: var(--color-red); }
.dot-hub { background: var(--color-obsidian); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform 0.12s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
.wa-float .wa-label { white-space: nowrap; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 500; font-size: 16px;
  padding: 12px 18px; border-radius: var(--radius-pill);
}
.btn-wa svg { width: 19px; height: 19px; fill: #fff; }
@media (max-width: 560px) {
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
}

/* ---------- Legal page ---------- */
.legal-hero { padding: 70px 0 24px; }
.legal-hero .section-title { font-size: clamp(34px, 6vw, 64px); }
.legal-meta { margin-top: 14px; color: var(--color-graphite); font-size: 15px; }
.legal-wrap { max-width: 820px; padding-bottom: 100px; }
.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
  margin: 40px 0 12px; padding-top: 18px;
  border-top: 1px solid var(--color-silver-mist);
}
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap p { font-size: 17px; line-height: 1.6; color: var(--color-slate); margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 14px 20px; }
.legal-wrap li { font-size: 17px; line-height: 1.55; color: var(--color-slate); margin-bottom: 7px; }
.legal-wrap a { color: var(--color-cobalt-link); }
.lang-hidden { display: none !important; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .about-grid, .coverage-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid-3, .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .footer-nav { margin-left: 0; width: 100%; }
  .nav-inner { gap: 12px; }
}
