/* Shared design system for torque-hub — tokens, nav, buttons, footer.
   Used by index.html and inventory.html. Page-specific styles stay
   inline in each page's <style> block. */

:root{
  --bg: #09090b;
  --panel: #0c0c0f;
  --surface: rgba(255,255,255,0.03);
  --surface-strong: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --ink: #ffffff;
  --ink-dim: #a1a1aa;
  --ink-faint: #71717a;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.14);
  --good: #22c55e;
  --amber: #f59e0b;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; background:var(--bg); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}
body{
  margin:0; background:var(--bg); color:var(--ink-dim);
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased; line-height:1.6;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
.mono{ font-variant-numeric:tabular-nums; }
.wrap{ max-width:1152px; margin:0 auto; padding-inline:24px; }
section{ padding:96px 0; }
@media (max-width:640px){ section{ padding:64px 0; } }
h1,h2,h3{ color:var(--ink); font-weight:600; letter-spacing:-0.02em; margin:0; text-wrap:balance; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:10px 16px; z-index:300; font-weight:600; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }

/* ---------- nav ---------- */
header.site{
  position:fixed; top:0; left:0; right:0; z-index:100;
  border-bottom:1px solid var(--border);
  background:rgba(9,9,11,0.8); backdrop-filter:blur(16px);
}
.nav-row{ height:64px; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:9px; color:var(--ink); }
.brand span{ font-weight:600; font-size:1.05rem; letter-spacing:-0.01em; }
.brand-logo{ width:34px; height:34px; object-fit:contain; flex:none; }
nav.links{ display:flex; align-items:center; gap:32px; font-size:0.9rem; font-weight:500; color:var(--ink-dim); }
nav.links a:hover{ color:var(--ink); }
nav.links a[aria-current="page"]{ color:var(--ink); }
@media (max-width:820px){ nav.links{ display:none; } }
.btn-call-nav{
  background:#fff; color:#09090b; padding:9px 18px; border-radius:var(--radius-full);
  font-size:0.88rem; font-weight:600; transition:background .15s;
}
.btn-call-nav:hover{ background:#d4d4d8; }

.nav-actions{ display:flex; align-items:center; gap:10px; }

/* ---------- mobile hamburger nav ---------- */
.nav-toggle{
  display:none; background:none; border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  width:40px; height:40px; align-items:center; justify-content:center; color:#fff; cursor:pointer; flex:none; padding:0;
}
@media (max-width:820px){ .nav-toggle{ display:flex; } }
.nav-toggle svg{ width:20px; height:20px; }
.mobile-nav-panel{
  display:none; position:fixed; top:64px; left:0; right:0; z-index:99;
  background:var(--bg); border-bottom:1px solid var(--border);
  padding:8px 24px calc(8px + env(safe-area-inset-bottom)); max-height:calc(100vh - 64px); overflow-y:auto;
}
.mobile-nav-panel.open{ display:block; }
@media (min-width:821px){ .mobile-nav-panel{ display:none !important; } }
.mobile-nav-panel a{
  display:block; padding:16px 4px; font-size:1.05rem; font-weight:500; color:var(--ink-dim); border-bottom:1px solid var(--border);
}
.mobile-nav-panel a:last-child{ border-bottom:none; }
.mobile-nav-panel a:hover, .mobile-nav-panel a[aria-current="page"]{ color:#fff; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:15px 30px; font-weight:500; font-size:1rem; border-radius:var(--radius-full); border:1px solid transparent; cursor:pointer; transition:all .15s; }
.btn-primary{ background:#fff; color:#09090b; }
.btn-primary:hover{ background:#d4d4d8; }
.btn-outline{ background:transparent; color:#fff; border-color:var(--border-strong); }
.btn-outline:hover{ background:var(--surface); }

/* ---------- status pill ---------- */
.status-pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--border); background:var(--surface);
  border-radius:var(--radius-full); padding:6px 14px 6px 10px;
  font-size:0.8rem; font-weight:500; color:var(--ink-dim); margin-bottom:26px;
}
.dot{ width:7px; height:7px; border-radius:50%; background:var(--ink-faint); flex:none; }
.dot.on{ background:var(--good); animation:pulse 2s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.45; } }

/* ---------- section heads ---------- */
.section-head{ margin-bottom:56px; max-width:640px; }
.section-head h2{ font-size:clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom:14px; }
.section-head h2 br{ display:block; }
.section-head p{ font-size:1.05rem; color:var(--ink-dim); font-weight:300; }

/* ---------- card ---------- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:32px; transition:background .2s, border-color .2s;
}
.card:hover{ background:var(--surface-strong); border-color:var(--border-strong); }

/* ---------- footer ----------
   Kept deliberately minimal: brand, then just the handful of details a
   customer actually needs (phone, email, address, a link to live stock),
   then a closing credit line. No banner, no multi-column link dump. */
footer.site{ padding:44px 0 120px; border-top:1px solid var(--border); }

.footer-brand{ display:flex; align-items:center; gap:9px; margin-bottom:20px; }
.footer-brand span{ font-weight:600; font-size:1.05rem; color:#fff; }
.footer-brand .brand-logo{ width:28px; height:28px; }

.footer-row-meta{ display:flex; flex-wrap:wrap; gap:12px 26px; font-size:0.86rem; color:var(--ink-dim); margin-bottom:22px; }
.footer-meta-item{ display:inline-flex; align-items:center; gap:7px; }
.footer-meta-item svg{ width:15px; height:15px; flex:none; color:var(--ink-faint); }
a.footer-meta-item:hover{ color:#fff; }
a.footer-meta-item:hover svg{ color:var(--accent); }

.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 24px; padding-top:18px; border-top:1px solid var(--border); font-size:0.78rem; color:var(--ink-faint); }
.footer-bottom a{ color:var(--ink-dim); text-decoration:underline; }
.footer-bottom a:hover{ color:#fff; }

/* ---------- sticky mobile call bar ---------- */
.mobile-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:150; display:none; gap:10px;
  background:rgba(9,9,11,0.92); backdrop-filter:blur(12px); border-top:1px solid var(--border);
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
}
@media (max-width:820px){ .mobile-bar{ display:flex; } body{ padding-bottom:66px; } }
.mobile-bar a{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:12px 6px; border-radius:var(--radius-full); font-weight:600; font-size:0.86rem; white-space:nowrap; }
.mobile-bar .call{ background:#fff; color:#09090b; }
.mobile-bar .dir, .mobile-bar .book{ background:var(--surface); color:#fff; border:1px solid var(--border-strong); }
