/* ============================================================
   B2B Forge Co — clean light theme: white + light gray
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --ink: #1c1a16;
  --muted: #6b675e;
  --line: #e6e3dc;
  --accent: #ff5a1f;
  --accent-dark: #d63c00;

  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 8px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 44rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

.section-note { color: var(--muted); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { color: var(--ink); }
.brand-word {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 0.45rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.45em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Pipeline diagram */
.hero-diagram {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diagram-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.pipeline { display: grid; }
.pipe-step { position: relative; padding: 0 0 1.4rem 2rem; }
.pipe-step:last-child { padding-bottom: 0; }

.pipe-node {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
}
.pipe-step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.35rem;
  bottom: -0.1rem;
  width: 2px;
  background: var(--line);
}
.pipe-step:last-child::before { content: none; }
.pipe-step-final .pipe-node {
  border-color: var(--accent);
  background: var(--accent);
}

.pipe-label { display: block; font-weight: 700; font-size: 0.98rem; }
.pipe-desc { display: block; font-size: 0.85rem; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  padding-block: 2.25rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 1.9rem);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.section-alt .card { border-color: var(--line); }
.card:hover {
  box-shadow: 0 6px 24px rgba(28, 26, 22, 0.08);
  transform: translateY(-2px);
}

.stick {
  width: 56px; height: 56px;
  color: var(--ink);
  margin-bottom: 1rem;
}
.stick [stroke="var(--x)"] { stroke: var(--accent); }

.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}
.process-step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Coverage / industries ---------- */
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}
.industry-list li {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.75rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding-block: 1.1rem;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  color: var(--muted);
  font-size: 0.94rem;
  padding-bottom: 1.2rem;
  margin: 0;
  max-width: 58ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2.75rem 1.75rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand p { color: var(--muted); margin-top: 0.75rem; max-width: 20rem; }
.footer-nav ul { display: grid; gap: 0.55rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { color: var(--muted); }
.footer-meta p { margin-bottom: 0.55rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 10px 24px rgba(28, 26, 22, 0.06);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 36rem) {
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .header-actions .btn { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
