/* ============================================================
   Colorado MRO Buyers
   Industrial register: flat surfaces, hairline rules, one accent.
   ============================================================ */

:root {
  --ink: #14171a;
  --ink-2: #2b3138;
  --steel: #5c656e;
  --paper: #fbfaf8;
  --paper-2: #f2efea;
  --line: #ddd8d0;
  --line-dark: #333a41;
  --accent: #d24a16;
  --accent-ink: #a83a10;
  --bone: #e8e4de;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gut: 24px;
  --r: 3px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

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

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 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-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

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

/* ---------------- Type ---------------- */

h1,
h2,
h3 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.021em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.9em;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}

.section-lede {
  font-size: 1.1rem;
  max-width: 62ch;
  color: var(--steel);
  margin-bottom: 2.5rem;
}

.text-accent {
  color: var(--accent);
}

.fineprint {
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.75rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo img {
  width: 208px;
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:not(.btn):hover {
  color: var(--accent-ink);
}

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero h1 {
  max-width: 15ch;
}

.hero-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--steel);
  max-width: 44ch;
}

.hero-card {
  background: var(--ink);
  border-radius: var(--r);
  padding: 8px 26px 14px;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
}
.spec-list li:last-child {
  border-bottom: 0;
}

.spec-k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a949d;
}

.spec-v {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--bone);
  text-align: right;
}

/* ---------------- Value bar ---------------- */

.valuebar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.valuebar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.value {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.value:first-child {
  padding-left: 0;
  border-left: 0;
}
.value:last-child {
  padding-right: 0;
}

.value h3 {
  margin-bottom: 0.45em;
}

.value p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--steel);
}

/* ---------------- Sections ---------------- */

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-tint {
  background: var(--paper-2);
}

.section-dark {
  background: var(--ink);
  border-bottom: 0;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark p {
  color: #aeb6bd;
}
.section-dark .eyebrow {
  color: #f08a5d;
}
.section-dark .section-lede {
  color: #aeb6bd;
}
.section-dark .fineprint {
  color: #8a949d;
}
.section-dark .btn-ghost {
  color: #fff;
  border-color: var(--line-dark);
}
.section-dark .btn-ghost:hover {
  border-color: #fff;
}

/* ---------------- What we buy ---------------- */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.buy-card {
  background: #fff;
  padding: 24px 22px;
}

.buy-card-wide {
  grid-column: 1 / -1;
}

.buy-card h3 {
  margin-bottom: 0.4em;
}

.buy-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--steel);
}

.brands-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 2.5rem 0 0.75rem;
}

.brands {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 74ch;
  margin-bottom: 0.6em;
}

/* ---------------- Steps ---------------- */

.steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
}

.steps li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--ink);
  padding: 26px 24px;
}

.step-n {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.steps h3 {
  margin-bottom: 0.35em;
}

.steps p {
  margin: 0;
  font-size: 0.96rem;
  max-width: 68ch;
}

/* ---------------- Split layout ---------------- */

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-copy p {
  max-width: 58ch;
}

.checks {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.checks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 1px;
}

.split-aside {
  display: grid;
  gap: 14px;
}

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}

.fact-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.5em;
}

.fact-v {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.quote-card {
  background: var(--ink);
  border-radius: var(--r);
  padding: 22px 24px;
}

.quote-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f08a5d;
  margin: 0 0 0.6em;
}

.quote-v {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.plain {
  color: var(--ink);
  text-decoration: none;
}
.plain:hover {
  color: var(--accent-ink);
}

/* ---------------- Live inventory ---------------- */

.inv-status {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  padding: 22px 0;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.inv-item {
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}
.inv-item:hover {
  background: #fff8f4;
}

.inv-thumb {
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-title {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inv-price {
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.inv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 1.75rem;
}

/* ---------------- Form ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.form {
  background: #fff;
  border-radius: var(--r);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.fld label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  color: #a1a8ae;
}

/* 16px minimum stops iOS from zooming the viewport on focus. */
.field {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 12px;
  width: 100%;
}

.field:focus {
  border-color: var(--ink);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(210, 74, 22, 0.25);
}

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

.field.file {
  padding: 9px 12px;
  background: var(--paper-2);
}

.hint {
  margin: 0;
  font-size: 0.83rem;
  color: var(--steel);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-msg.ok {
  color: #1c6b3f;
}
.form-msg.err {
  color: #b3261e;
}

.contact-aside {
  display: grid;
  gap: 14px;
}

.section-dark .form label,
.section-dark .form .hint,
.section-dark .form .fineprint {
  color: var(--steel);
}
.section-dark .form .fineprint {
  color: #8a949d;
}

@media (min-width: 641px) {
  .field {
    font-size: 0.94rem;
  }
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--paper-2);
  padding: 3rem 0 1.5rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-row .fineprint {
  max-width: 48ch;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.footer-nav a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent-ink);
}

.footer-legal {
  padding-top: 1.25rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .buy-grid,
  .inv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valuebar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }
  .value:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 16px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child {
    border-bottom: 0;
    padding-top: 12px;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
  }

  .primary-nav {
    position: static;
  }

  .site-header .container {
    position: relative;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .lede {
    max-width: none;
  }

  .steps li {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 22px 18px;
  }

  .step-n {
    font-size: 1.25rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .logo img {
    width: 176px;
  }

  .buy-grid {
    grid-template-columns: 1fr;
  }
  .buy-card-wide {
    grid-column: span 1;
  }

  .inv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valuebar-grid {
    grid-template-columns: 1fr;
  }
  .value {
    padding: 0;
    border-left: 0;
  }

  .checks {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 20px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

.hp input {
  font-size: 1rem;
}
