/* Colours and fonts match the JJ's Bits & Bobs work orders app. */
:root {
  --bg: #14171c;
  --bg-panel: #191d23;
  --bg-card: #20252c;
  --bg-card-hover: #262c34;
  --border: #2c333c;
  --border-soft: #23282f;
  --text: #e9eaec;
  --text-dim: #9aa1ab;
  --text-faint: #656d78;
  --accent: #f2ede2;
  --accent-2: #3fd6c4;
  --accent-2-soft: #3fd6c422;
  --warn: #ffc247;
  --warn-soft: #ffc2471c;
  --orange: #ff9447;
  --radius-s: 6px;
  --radius-m: 10px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 15.5px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.faint { color: var(--text-faint); }
.accent { color: var(--accent-2); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-panel); border-bottom: 1px solid var(--border-soft);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 26px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .2px; line-height: 1.1; white-space: nowrap; }
.brand-tagline { font-size: 11px; font-weight: 500; color: var(--text-faint); letter-spacing: .2px; margin-top: 1px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none; color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-s);
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--bg); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: var(--radius-s);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-card); border-color: var(--text-faint); }
.btn-primary { background: var(--accent); color: #14171c; border-color: var(--accent); }
.btn-primary:hover { background: #fffaf0; border-color: #fffaf0; }
.btn-sm { font-size: 13.5px; padding: 8px 14px; }
.btn-lg { font-size: 15px; padding: 14px 22px; word-break: break-all; }

/* Pills and tags (like the board stage buttons) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 100px;
}
.pill-on { background: var(--warn); color: #14171c; border-color: var(--warn); font-weight: 600; }
.tag { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; }
.tag-warn { color: var(--warn); background: var(--warn-soft); }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--border-soft); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.15rem, 4.6vw, 2.9rem); white-space: nowrap; font-weight: 800; letter-spacing: -.01em; }
.lead { color: var(--text-dim); font-size: 1.08rem; margin-top: 18px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Panels (like the edit work order window) */
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
}
.panel-head .mono, .panel-foot .mono { font-size: 11px; letter-spacing: .5px; }
.panel-body { padding: 16px 18px; }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--border-soft); background: var(--bg);
}
.kv {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1px dashed var(--border-soft); font-size: 13.5px;
}
.kv:last-child { border-bottom: 0; }
.kv span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); padding-top: 2px; white-space: nowrap; }
.kv b { font-weight: 500; text-align: right; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-panel); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-alt .card, .section-alt .ticket { background: var(--bg-card); }
.section-alt .panel { background: var(--bg); }
.section-alt .panel-foot { background: var(--bg-panel); }
.section-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .6px; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 24px; border-bottom: 1px solid var(--border-soft);
}
.section-label .num { color: var(--text-faint); margin-right: 10px; }
.section-lead { color: var(--text-dim); margin: -8px 0 20px; }
.hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 20px; }

/* Cards (like work order cards) */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.shop-grid { max-width: 620px; }
.card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 20px;
}
.card-code { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-bottom: 8px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--text-dim); font-size: 14px; }
.card-link { display: block; text-decoration: none; transition: background .15s, border-color .15s; }
.card-link:hover { background: var(--bg-card-hover); border-color: var(--text-faint); }
.card-link .mono { color: var(--accent-2); }

.made { margin-top: 20px; }
.made-list {
  list-style: none; margin: 0; columns: 4 200px; column-gap: 28px;
}
.made-list li {
  break-inside: avoid; padding: 7px 0 7px 16px; position: relative;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.made-more { color: var(--text); font-size: 15px; font-style: italic; }
.made-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--accent-2);
}

/* How it works, laid out like the order board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.column { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-m); }
.column-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); font-size: 13.5px; font-weight: 600;
}
.column-head .count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  background: var(--bg-card); border-radius: 100px; padding: 1px 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-gray { background: var(--text-dim); }
.dot-orange { background: var(--orange); }
.dot-teal { background: var(--accent-2); }
.dot-amber { background: var(--warn); }
.column-body { padding: 10px; }
.ticket { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px; }
.ticket p { font-size: 13.5px; color: var(--text-dim); }

/* Contact */
.contact-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
.contact h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.contact p { color: var(--text-dim); max-width: 460px; }

/* Footer */
.foot { border-top: 1px solid var(--border-soft); padding: 22px 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-row { height: 60px; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 17px; }
  .nav-link { display: none; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .board { grid-template-columns: 1fr; }
  .contact-body { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* How your parts are made */
.steps-made { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { margin: 0; display: flex; flex-direction: column; }
.step img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-bottom: 1px solid var(--border-soft); }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 13.5px; }
@media (max-width: 900px) { .steps-made { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps-made { grid-template-columns: 1fr; } }
.section-alt .column { background: var(--bg); }

/* Four services and colour swatches */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.swatches { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--border); margin-left: 6px; }
.sw-black { background: #0b0b0b; }
.sw-grey { background: #8a8f96; }
.sw-white { background: #f4f4f4; }
.sw-clear { background: linear-gradient(135deg, #ffffff22, #ffffff66); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }
#pricing .panel { display: flex; flex-direction: column; } #pricing .panel-body { flex: 1; }
.hero-where {
  margin-top: 12px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2);
}
.hero-solo { grid-template-columns: 1fr; } .hero-solo > div > :not(h1) { max-width: 760px; }

.contact-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--text); }
@media (max-width: 640px) { .contact-actions { width: 100%; } }

/* Hero background: photos of past work scrolling slowly left to right */
.hero-slides { position: relative; overflow: hidden; padding: 120px 0 130px; }
.hero-slides .wrap { position: relative; z-index: 2; }
.slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Two identical sets of photos scroll left to right; shifting by half the
   track width lands exactly on the start again, so the loop is seamless. */
.slides-track {
  display: flex; height: 100%; width: max-content;
  animation: scroll-right 80s linear infinite;
}
.slides-track img {
  height: 100%; width: clamp(280px, 34vw, 540px); object-fit: cover;
  margin-right: 10px; border-radius: 4px; flex: none;
}
.hero-slides::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,23,28,.94) 0%, rgba(20,23,28,.80) 45%, rgba(20,23,28,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20,23,28,0) 30%);
}
@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .slides-track { animation: none; }
}
@media (max-width: 640px) {
  .hero-slides { padding: 72px 0 80px; }
  .slides-track img { width: 62vw; }
}

/* Recent work gallery */
.section-work { border-top: 1px solid var(--border-soft); }
.work-item { margin: 0; overflow: hidden; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--bg-card); }
.work-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 12px; }
.work-grid .work-item { aspect-ratio: 1; }
.work-grid .work-item.tall { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
