/* ==========================================================================
   BMD Ghana Limited — site styles
   Bureau Merveillus Datum (GH) Ltd
   --------------------------------------------------------------------------
   White-dominant palette. Green and yellow appear as type, hairline rules,
   buttons and one highlighter — never as large filled fields. Both hues are
   sampled from the BMD wordmark.

   Deliberately single-theme: the page is white for every visitor, whatever
   their system setting. Token groups:
     core    — ink, body, line, surfaces
     field   — the hero / page banner / footer bands
     mark    — the yellow highlighter, which only works under dark text
   ========================================================================== */

/* ---- Tokens: complete light palette on bare :root ---------------------- */
:root {
  color-scheme: light;   /* single-theme site: never adopt the OS dark palette */

  --brand:        #0d5e10;
  --brand-deep:   #072d0b;
  --brand-mid:    #12751a;
  --brand-lift:   #2e9a33;
  --accent:       #e3df02;
  --accent-ink:   #2c2a00;

  --paper:        #ffffff;
  --surface:      #ffffff;
  --surface-sunk: #f8faf6;
  --hover:        #f0f3ee;

  --field:        #ffffff;
  --field-text:   #0b1f0e;
  --field-muted:  #5b6b5c;
  --field-rule:   #dce3d8;
  --field-grid:   rgba(11, 31, 14, .045);
  --field-link:   #0d5e10;

  --mark-bg:      rgba(227, 223, 2, .9);
  --mark-ink:     #0b1f0e;

  --ink:          #0b1f0e;
  --body:         #334234;
  --muted:        #5b6b5c;
  --line:         #dfe6db;
  --line-strong:  #b8c6b4;

  --focus:        #12751a;
  --shadow:       0 1px 2px rgba(11, 31, 14, .05), 0 8px 24px -12px rgba(11, 31, 14, .16);

  --display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 65ch;
  --radius: 3px;
  --rule: 1px solid var(--line);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

/* must outrank component display rules (e.g. .nav { display: flex }) */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem); letter-spacing: -.012em; }
h4 { font-size: 1.0625rem; letter-spacing: -.006em; }

p { margin: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-mid); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { margin: 0; padding: 0; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .65rem 1rem; z-index: 100;
  font-family: var(--mono); font-size: .8125rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---- Layout primitives ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.25rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
/* On a white page the section rhythm comes from rules, not fills */
.section--sunk {
  background: var(--surface-sunk);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.section--sunk + .section--sunk { border-top: 0; }

.measure { max-width: var(--measure); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--body);
  max-width: 54ch;
}

/* Mono eyebrow with a hairline rule — the "register entry" device */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  min-width: 1.5rem;
}
.eyebrow--field { color: var(--field-muted); }
.eyebrow--field::after { background: var(--field-rule); }

/* Section head: title + intro, left aligned */
.head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
/* Two up on desktop, one on phones — for blocks with enough copy that a
   third column would squeeze them (the product cards). */
/* Product cards: explicit column counts rather than auto-fit, so the row
   is always full. auto-fit resolved to 2 columns on a tablet and left the
   third card sitting alone. Change 3 to 2 if a fourth card is restored. */
.grid--products { grid-template-columns: 1fr; }
@media (min-width: 64rem) {
  .grid--products { grid-template-columns: repeat(2, 1fr); }
}

/* Asymmetric editorial split: heading rail + content */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(14rem, 22rem) 1fr; }
  .split--wide { grid-template-columns: minmax(16rem, 26rem) 1fr; }
}

.stack { display: grid; gap: 1rem; align-content: start; }
.stack--lg { gap: 1.75rem; }
.stack--sm { gap: .5rem; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.008em;
  padding: .8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-mid); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
/* on a field band — now white, so it reads like a normal outline button */
.btn--onfield { border-color: var(--line-strong); color: var(--field-text); background: transparent; }
.btn--onfield:hover { border-color: var(--brand); color: var(--brand); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn:hover { transform: none; }
}

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: var(--paper); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .6875rem; text-decoration: none; }
.brand img { width: auto; height: 1.9375rem; }
.brand__name {
  display: grid;
  font-family: var(--display);
  line-height: 1.12;
}
.brand__name b {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.008em;
  color: var(--ink);
}
.brand__name span {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .25rem; }
/* :not(.btn) keeps these off the CTA button — otherwise .nav a outranks
   .btn--primary and the button label loses its white. */
.nav a:not(.btn) {
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: .5rem .6875rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--hover); }
.nav a:not(.btn)[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .5rem .625rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-cta { margin-left: .5rem; }

@media (max-width: 61.24rem) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: var(--rule);
    box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav a:not(.btn) { padding: .8125rem .25rem; border-bottom: var(--rule); border-radius: 0; }
  .nav a:not(.btn):hover { background: transparent; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .header-cta { margin-left: 0; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  background: var(--field);
  color: var(--field-muted);
  position: relative;
  overflow: hidden;
  border-bottom: var(--rule);
}
/* faint ruled ground — a registry sheet, drawn not decorated */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--field-grid) 1px, transparent 1px);
  background-size: 5.5rem 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(1.75rem, 3.5vw, 3rem);
}
.hero h1 { color: var(--field-text); max-width: 22ch; }
/* the one place the yellow carries weight on white: a marker behind dark text */
.hero h1 em {
  font-style: normal;
  color: var(--mark-ink);
  background: linear-gradient(transparent 56%, var(--mark-bg) 56%);
  padding-inline: .06em;
}
.hero__lede { color: var(--body); max-width: 48ch; margin-top: 1.5rem; }
.hero .actions { margin-top: 2.25rem; }

/* The "register" — real facts, set like an official record */
.register {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.register div {
  padding: 1.125rem 1.25rem 1.125rem 0;
  border-bottom: 1px solid var(--field-rule);
}
.register dt {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--field-muted);
  margin-bottom: .375rem;
}
.register dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--field-text);
}
.register dd a { color: var(--field-link); text-decoration: none; }
.register dd a:hover { text-decoration: underline; }

/* ---- Page banner (interior pages) ------------------------------------- */
.banner {
  background: var(--field);
  color: var(--field-muted);
  border-bottom: var(--rule);
}
.banner__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.banner h1 { color: var(--field-text); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 26ch; }
.banner p { color: var(--body); max-width: 52ch; margin-top: 1.125rem; font-size: clamp(1rem, .96rem + .3vw, 1.1875rem); }

/* ---- Service rows: hairline-separated, not cards ---------------------- */
.rows { display: grid; border-top: 1px solid var(--line-strong); }
.row-item {
  display: grid;
  gap: .5rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: var(--rule);
  align-items: start;
}
@media (min-width: 48rem) {
  .row-item { grid-template-columns: minmax(10rem, 16rem) 1fr; }
}
.row-item h3 { color: var(--ink); }
.row-item p { color: var(--body); max-width: 60ch; }
.row-item__meta {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* ---- Division blocks --------------------------------------------------- */
/* A graded set of greens: yellow at 2px is too faint to read on white. */
.division {
  display: grid;
  gap: .625rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--brand-deep);
}
.division:nth-child(2) { border-top-color: var(--brand); }
.division:nth-child(3) { border-top-color: var(--brand-mid); }
.division:nth-child(4) { border-top-color: var(--brand-lift); }
.division__tag {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.division h3 { color: var(--ink); }
.division p { color: var(--body); font-size: .9688rem; }
.division a {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  margin-top: .25rem;
}
.division a:hover { text-decoration: underline; }

/* ---- Product showcase strip ------------------------------------------- */
.product {
  display: grid;
  gap: 1rem;
  align-content: start;
  background: var(--surface);
  border: var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.product:nth-child(1) { border-left-color: var(--brand-deep); }
.product:nth-child(2) { border-left-color: var(--brand); }
.product:nth-child(3) { border-left-color: var(--brand-mid); }
.product:nth-child(4) { border-left-color: var(--brand-lift); }
.product__name {
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.product__kind {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.product ul { display: grid; gap: .4375rem; list-style: none; }
.product li {
  position: relative;
  padding-left: 1.125rem;
  font-size: .9375rem;
  color: var(--body);
}
.product li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: .375rem; height: .375rem;
  background: var(--brand);
  border-radius: 50%;
}
.product__link { margin-top: .25rem; justify-self: start; }

/* ---- Cards (used sparingly, where an object really is separate) ------- */
.card {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: grid;
  gap: .625rem;
  align-content: start;
}
.card h3 { color: var(--ink); }
.card p { color: var(--body); font-size: .9688rem; }

/* ---- Data register list (contact, facts) ------------------------------ */
.dl { display: grid; border-top: 1px solid var(--line-strong); }
.dl > div {
  display: grid;
  gap: .25rem .5rem;
  padding-block: 1rem;
  border-bottom: var(--rule);
}
@media (min-width: 30rem) {
  .dl > div { grid-template-columns: minmax(7rem, 10rem) 1fr; align-items: baseline; }
}
.dl dt {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dl dd a { text-decoration: none; }
.dl dd a:hover { text-decoration: underline; }
.dl dd small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: .875rem;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---- Prose ------------------------------------------------------------ */
.prose { max-width: var(--measure); display: grid; gap: 1.125rem; }
.prose h2 { margin-top: 1.25rem; }
.prose h3 { margin-top: 1rem; }
.prose ul { display: grid; gap: .5rem; padding-left: 1.125rem; list-style: none; }
.prose ul li { position: relative; padding-left: .875rem; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: .65em;
  width: .3125rem; height: .3125rem;
  background: var(--brand); border-radius: 50%;
}

/* ---- "To supply" marker: honest placeholder ---------------------------- */
.todo {
  display: grid;
  gap: .5rem;
  border: 1px dashed var(--line-strong);
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.todo b {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.todo p { font-size: .9375rem; color: var(--body); }
.todo code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--hover);
  padding: .1em .35em;
  border-radius: 2px;
}

/* ---- Team / client placeholder tiles ----------------------------------- */
.tile {
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  display: grid;
  gap: .375rem;
  align-content: start;
}
.tile__avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--hover);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--brand);
  margin-bottom: .5rem;
}
.tile h3 { font-size: 1.0625rem; }
.tile__role {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 5.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---- CTA band --------------------------------------------------------- */
/* No fill — a heavy accent rule carries it instead. */
.cta {
  background: var(--surface-sunk);
  border-top: 4px solid var(--accent);
  border-bottom: var(--rule);
}
.cta__inner {
  padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .cta__inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.cta h2 { color: var(--ink); max-width: 30ch; }
.cta p { color: var(--body); max-width: 46ch; margin-top: .75rem; }

/* ---- Form ------------------------------------------------------------- */
.form { display: grid; gap: 1.125rem; max-width: 34rem; }
.field { display: grid; gap: .4375rem; }
.field label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--text);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .75rem .875rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 8rem; resize: vertical; }
.form__note { font-size: .875rem; color: var(--muted); }

/* ---- Footer ----------------------------------------------------------- */
/* Green rule here, yellow on the CTA just above it — so the two bands
   read as separate rather than as one repeated device. */
.site-footer {
  background: var(--field);
  color: var(--body);
  border-top: 3px solid var(--brand);
}
.site-footer__inner { padding-block: clamp(2.5rem, 5vw, 3.75rem); display: grid; gap: 2.5rem; }
@media (min-width: 56rem) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.site-footer h4 {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer ul { display: grid; gap: .625rem; list-style: none; font-size: .9375rem; }
.site-footer__brand img { height: 3.25rem; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { font-size: .9375rem; max-width: 34ch; color: var(--body); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: .625rem 1.5rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}
.social { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Utilities -------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
