/* Forge Point Machinery — one stylesheet for the whole site. */

:root {
  --ink: #15181b;
  --ink-soft: #2a2f34;
  --steel: #5a636b;
  --line: #e3e6e8;
  --mist: #f5f6f7;
  --paper: #ffffff;
  --ember: #e05a1e;
  --ember-deep: #bf4712;
  --ember-tint: #fdeee6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(21, 24, 27, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, .wordmark, .stat b, .btn {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  letter-spacing: 0.015em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 0.5rem; font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; margin: 0 0 0.35rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--ember-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 0.75rem;
}

.muted { color: var(--steel); }
.lead { font-size: 1.12rem; color: var(--steel); max-width: 46rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--ember);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }

.wordmark { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.wordmark small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: #b8bec4;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: #d7dbde;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: #fff; text-decoration: none; }
.site-nav a[aria-current='page'] { border-bottom: 2px solid var(--ember); padding-bottom: 2px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: 0;
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: var(--ember);
  color: #fff;
}
.btn:hover { background: var(--ember-deep); text-decoration: none; }

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--ink-soft); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background:
    linear-gradient(115deg, rgba(21, 24, 27, 0.97) 0%, rgba(21, 24, 27, 0.88) 55%, rgba(224, 90, 30, 0.28) 130%),
    repeating-linear-gradient(-55deg, #1b1f23 0 22px, #171a1e 22px 44px);
  color: #fff;
  padding: 5.5rem 0 5rem;
}

.hero .lead { color: #c9ced2; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ember); }
.stat span { font-size: 0.9rem; color: #b8bec4; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: 4.5rem 0; }
.section.alt { background: var(--mist); }
.section-head { margin-bottom: 2.4rem; max-width: 46rem; }

.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* ── Category cards ─────────────────────────────────────────────────────── */

.cat-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}
.cat-card:hover { text-decoration: none; border-color: var(--ember); transform: translateY(-2px); }
.cat-card .muted { font-size: 0.94rem; margin: 0; }
.cat-card h3::after { content: ' →'; color: var(--ember); }

/* ── Machine cards ──────────────────────────────────────────────────────── */

.machine-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.machine-photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #23282d 0%, #15181b 100%);
  color: #7c858d;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.machine-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.machine-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

/* The server renders this when no offer is published (or the store is
   unreachable): one calm card instead of an empty grid. */
.inventory-empty {
  grid-column: 1 / -1;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.inventory-empty p { max-width: 34rem; margin: 0 auto; color: var(--steel); }

.machine-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.machine-meta .year { font-weight: 700; color: var(--ember-deep); }
.machine-meta .loc { font-size: 0.85rem; color: var(--steel); }

.machine-card h3 { font-size: 1.3rem; }

.spec-list { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--steel); }
.spec-list li { padding: 0.22rem 0; border-top: 1px dashed var(--line); }
.spec-list li:first-child { border-top: 0; }

.machine-cta { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.machine-cta .price { font-weight: 700; }

/* ── Steps / process ────────────────────────────────────────────────────── */

.step { position: relative; padding: 1.6rem 1.5rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ember-tint);
  color: var(--ember-deep);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band { background: var(--ink); color: #fff; padding: 3.6rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0.4rem 0 0; color: #b8bec4; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 620px;
}

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  border-color: var(--ember);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ── Inventory filter ───────────────────────────────────────────────────── */

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-bar button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-bar button:hover { border-color: var(--ember); }
.filter-bar button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Brand strip ────────────────────────────────────────────────────────── */

.brand-strip { display: flex; flex-wrap: wrap; gap: 0.7rem 2.2rem; align-items: center; }
.brand-strip span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa2a9;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink); color: #b8bec4; padding: 3.2rem 0 2.2rem; font-size: 0.94rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: #d7dbde; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.2rem 0; }
.footnote { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: #7c858d; }
