/* ========================================================================
   JML Supply Chain Consulting — design tokens
   Palette sampled directly from the brand mark: deep navy, bright cyan
   accent, cool light-grey ground, slate for secondary text.
   Type: IBM Plex Serif (headings/voice), IBM Plex Sans (body/UI),
         IBM Plex Mono (figures — read like operating metrics, not decoration)
   ======================================================================== */

:root {
  --ink: #062348;
  --ink-soft: #3c4f66;
  --paper: #ffffff;
  --paper-raised: #f1f5f8;
  --steel: #52697e;
  --line: #dbe2e8;
  --line-strong: #b7c2cb;
  --signal: #00a6bd;
  --signal-dim: #007e91;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1080px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

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

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

/* ---------- layout shell ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  height: 56px;
  width: auto;
}

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}

nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 56px;
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--steel);
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 15ch;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease-out 0.05s forwards;
}

.hero .lede {
  max-width: 58ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease-out 0.2s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede { animation: none; opacity: 1; transform: none; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn.primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}

.btn.primary:hover { background: var(--signal-dim); border-color: var(--signal-dim); }

/* ---------- sections ---------- */

section { padding: 52px 0; }

.rule-top { border-top: 1px solid var(--line-strong); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head .note {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--steel);
  max-width: 32ch;
  text-align: right;
}

/* ---------- ledger (definition-style list, not numbered cards) ---------- */

.ledger { border-top: 1px solid var(--line); }

.ledger-row {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
}

.ledger-row dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- metrics band ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.metric {
  padding: 26px 24px;
  border-right: 1px solid var(--line-strong);
}

.metric:last-child { border-right: none; }

.metric .figure {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--signal);
  display: block;
}

.metric .label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- two column fit/no-fit table ---------- */

.fit-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
}

.fit-col { padding: 26px 28px; }

.fit-col:first-child { border-right: 1px solid var(--line-strong); }

.fit-col h3 { margin-bottom: 14px; }

.fit-col ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }

.fit-col li { margin-bottom: 10px; }

.fit-col.yes h3 { color: var(--signal); }

/* ---------- pull quote / positioning statement ---------- */

.statement {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  max-width: 42ch;
  border-left: 3px solid var(--signal);
  padding-left: 24px;
}

/* ---------- contact form ---------- */

form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
}

.contact-detail {
  border-left: 1px solid var(--line-strong);
  padding-left: 32px;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 32px 0 48px;
  font-size: 0.88rem;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  nav.primary ul { gap: 18px; flex-wrap: wrap; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .metric:last-child { border-bottom: none; }
  .fit-table { grid-template-columns: 1fr; }
  .fit-col:first-child { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-columns { grid-template-columns: 1fr; }
  .contact-detail { border-left: none; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
}
