/* =============================================================
   Afrobora Services Consultancy
   Design Tokens — Single Source of Truth
   Link this file FIRST on every page.
   ============================================================= */

:root {
  /* ---- Colour palette ---- */
  --bg:            #ececec;
  --bg-tint:       #f3f3f1;
  --surface:       #ffffff;
  --surface-2:     #f8f8f6;
  --line:          #e3e3df;
  --line-2:        #d8d8d2;
  --ink:           #15171a;
  --ink-2:         #2a2d33;
  --muted:         #62656d;
  --muted-2:       #8a8d94;

  /* ---- Accent colours ---- */
  --accent:        oklch(0.58 0.09 200);   /* teal */
  --accent-ink:    oklch(0.42 0.10 200);
  --accent-tint:   oklch(0.95 0.03 200);
  --accent-2:      oklch(0.55 0.11 245);   /* deep blue */

  /* ---- Semantic colours ---- */
  --danger:        oklch(0.55 0.18 25);
  --danger-tint:   oklch(0.96 0.04 25);
  --success:       oklch(0.55 0.13 155);
  --success-tint:  oklch(0.96 0.04 155);
  --warn:          oklch(0.72 0.13 70);
  --warn-tint:     oklch(0.97 0.04 70);

  /* ---- Elevation ---- */
  --shadow-sm:  0 1px 2px rgba(20,22,26,.05), 0 1px 1px rgba(20,22,26,.03);
  --shadow-md:  0 6px 20px -8px rgba(20,22,26,.18), 0 2px 6px rgba(20,22,26,.06);
  --shadow-lg:  0 30px 60px -20px rgba(20,22,26,.25), 0 10px 24px -10px rgba(20,22,26,.12);

  /* ---- Shape ---- */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;

  /* ---- Layout ---- */
  --max:   1240px;
  --pad:   20px;

  /* ---- Typography ---- */
  --font:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

/* ---- Global reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: "ss01", "cv11";
  background-image: radial-gradient(circle at 1px 1px, rgba(20,22,26,.07) 1px, transparent 0);
  background-size: 22px 22px;
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
p { margin: 0; }

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Shared section utilities ---- */
.section { padding: 72px 0; position: relative; }
.section--alt { background: var(--bg-tint); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  margin-top: 14px;
  font-weight: 600;
  text-wrap: balance;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---- Shared button system ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn .arr {
  width: 14px; height: 14px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.btn:hover .arr { transform: rotate(45deg) translate(2px, -2px); }

/* ---- Shared form fields ---- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.form h3 { font-size: 20px; font-weight: 600; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.form-note { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
