/* Africa Global Wholesalers — trade catalogue
   Light neutral surfaces, navy ink, one restrained ochre accent.
   Density over decoration: thin rules, tight grids, no floating cards. */

:root {
  --ink: #131f31;
  --ink-2: #4a5768;
  --ink-3: #6f7c8c;
  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --bg-3: #eceff3;
  --line: #d9dfe6;
  --line-2: #c3ccd6;
  --accent: #a8420d;
  --accent-ink: #8c360a;
  --accent-bg: #fdf3ee;
  --focus: #1d4ed8;
  --radius: 3px;
  --maxw: 1200px;
  --gut: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.header-bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand-lockup {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); flex: 0 0 auto;
}
.brand-lockup:hover { color: var(--ink); }
.brand-logo { width: auto; height: 38px; display: block; }
@media (max-width: 420px) { .brand-logo { height: 32px; } }
.nav-main { margin-left: auto; }
.nav-main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-main a {
  display: block; padding: 8px 11px; text-decoration: none; color: var(--ink);
  font-size: .92rem; font-weight: 500; border-radius: var(--radius);
}
.nav-main a:hover { background: var(--bg-2); color: var(--ink); }
.nav-main a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta {
  flex: 0 0 auto; display: inline-block; padding: 9px 16px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 600; border-radius: var(--radius);
}
.header-cta:hover { background: var(--accent-ink); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-bar { flex-wrap: wrap; min-height: 60px; gap: 10px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
    background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
    font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 13px;
    border-radius: var(--radius); cursor: pointer; min-height: 40px;
  }
  .nav-main { flex-basis: 100%; margin-left: 0; display: none; padding-bottom: 10px; }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; gap: 0; }
  .nav-main a { padding: 11px 8px; border-bottom: 1px solid var(--line); }
  .header-cta { order: 3; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: .82rem; }
.crumbs ol {
  list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; gap: 6px;
  color: var(--ink-3);
}
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "›"; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- generic sections ---------- */
main { display: block; }
.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-tint { background: var(--bg-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head .more { font-size: .9rem; font-weight: 600; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; }
.eyebrow {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 700; margin-bottom: 10px;
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: start; }
.hero h1 { margin-bottom: 16px; max-width: 16ch; }
.hero-lede { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 14px 16px 0 0; }
.hero-facts dt { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hero-facts dd { margin: 2px 0 0; font-size: .82rem; color: var(--ink-3); }
.hero-panel { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; }
.hero-panel h2 { font-size: 1.05rem; }
.hero-panel ol { margin: 0; padding-left: 1.1em; font-size: .93rem; color: var(--ink-2); }
.hero-panel li { margin-bottom: .55em; }
.hero-panel li strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero { padding: 34px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; min-height: 44px; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }

/* ---------- product grid ---------- */
.grid-products {
  display: grid; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.card {
  background: var(--bg); padding: 14px; display: flex; flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.card-media {
  aspect-ratio: 1 / 1; background: var(--bg-2); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card-noimg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--ink-3); font-size: .72rem; text-align: center; padding: 12px;
  width: 100%; height: 100%;
}
.card-brand {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin-bottom: 5px;
}
.card-title { font-size: .92rem; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card-meta {
  margin-top: auto; padding-top: 8px; font-size: .78rem; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--bg-3);
}

@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card { padding: 11px; }
}

/* ---------- link tiles (categories / brands) ---------- */
.grid-tiles {
  display: grid; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tile {
  background: var(--bg); padding: 18px 18px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tile:hover { background: var(--bg-2); color: var(--ink); }
.tile h3 { margin: 0 0 6px; font-size: 1rem; }
.tile:hover h3 { color: var(--accent-ink); }
.tile p { margin: 0 0 10px; font-size: .86rem; color: var(--ink-2); }
.tile .count { margin-top: auto; font-size: .75rem; color: var(--ink-3); letter-spacing: .04em; }

.grid-brandlist {
  display: grid; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.brandcell { background: var(--bg); padding: 13px 15px; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brandcell:hover { background: var(--bg-2); color: var(--accent-ink); }
.brandcell strong { display: block; font-size: .93rem; font-weight: 600; }
.brandcell span { font-size: .75rem; color: var(--ink-3); }

/* ---------- product page ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-media { border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-head .brandline { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.product-head .brandline a { color: var(--accent-ink); text-decoration: none; }
.product-head .brandline a:hover { text-decoration: underline; }
.product-head h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--ink-2); background: var(--bg-2); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }

.enquiry-box { border: 1px solid var(--line-2); background: var(--accent-bg); padding: 20px; margin: 0 0 24px; }
.enquiry-box h2 { font-size: 1.05rem; margin-bottom: 8px; }
.enquiry-box p { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }

.notice {
  border-left: 3px solid var(--line-2); background: var(--bg-2);
  padding: 12px 16px; font-size: .88rem; color: var(--ink-2); margin: 0 0 20px;
}
.notice strong { color: var(--ink); }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 26px; }
  .product-media { max-width: 360px; }
}

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1.4em; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); font-weight: 600; }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 { margin-bottom: .4em; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- steps / feature rows ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { background: var(--bg); padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 700; margin-bottom: 10px;
}
.step h3 { font-size: .98rem; margin-bottom: 5px; }
.step p { font-size: .88rem; color: var(--ink-2); margin: 0; }

.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 24px; position: relative; margin-bottom: .6em; font-size: .95rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.checklist li strong { color: var(--ink); }

/* ---------- catalogue filter ---------- */
.catalog-tools {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px;
  align-items: end; margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .94rem; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); }
.field .hint { font-size: .78rem; color: var(--ink-3); }
.filter-status { font-size: .88rem; color: var(--ink-3); margin: 14px 0 18px; }
.js-only { display: none; }
.has-js .js-only { display: block; }
.has-js .no-js-only { display: none; }

@media (max-width: 760px) {
  .catalog-tools { grid-template-columns: 1fr; }
}

/* ---------- catalogue index by letter ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.az-nav a {
  display: inline-block; min-width: 32px; text-align: center; padding: 6px 8px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink-2);
  font-size: .84rem; font-weight: 600; border-radius: var(--radius);
}
.az-nav a:hover { background: var(--bg-2); color: var(--accent-ink); }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.form-full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); padding: 20px; margin: 0 0 22px; }
legend { font-weight: 700; font-size: .95rem; padding: 0 8px; }
.req { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d2dd; font-size: .9rem; padding: 40px 0 0; }
.site-footer a { color: #e6ebf1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: 32px; }
.footer-grid h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8d9bab; margin-bottom: 12px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-about p { color: #98a5b4; max-width: 40ch; font-size: .88rem; }
.footer-brandmark { margin-bottom: 16px; }
.footer-brandmark .brand-logo { height: 42px; }
.footer-bottom {
  border-top: 1px solid #2a384b; padding: 16px 0 22px; display: flex; gap: 16px;
  flex-wrap: wrap; justify-content: space-between; font-size: .82rem; color: #8d9bab;
}
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.err-code { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; color: var(--ink-3); }

/* ---------- print-ish / misc ---------- */
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700; padding: 3px 8px; background: var(--bg-3); color: var(--ink-2);
  border-radius: var(--radius);
}
.inline-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.inline-links a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink-2); font-size: .87rem;
  background: var(--bg);
}
.inline-links a:hover { border-color: var(--ink-3); color: var(--accent-ink); background: var(--bg-2); }

/* ---------- line card table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.line-card { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.line-card caption { text-align: left; }
.line-card th, .line-card td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.line-card thead th {
  background: var(--bg-2); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; white-space: nowrap;
}
.line-card tbody th { font-weight: 600; }
.line-card tbody th a { color: var(--ink); text-decoration: none; }
.line-card tbody th a:hover { color: var(--accent-ink); text-decoration: underline; }
.line-card tbody tr:last-child th, .line-card tbody tr:last-child td { border-bottom: 0; }
.line-card .na { color: var(--ink-3); }
.table-note { font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; max-width: 72ch; }

/* ---------- contact CTA rows ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.cta-direct { font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.cta-direct a { font-weight: 600; }
.contact-strip {
  border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 16px 18px; margin: 0 0 22px;
}
.contact-strip h2 { font-size: 1rem; margin-bottom: 8px; }
.contact-strip .checklist { margin: 0; }
