/* ============================================
   18 SPOKES — styles.css
   Palette: Tool Blue #1E5A8A | Ink #171B1F | Shop Paper #F4F3EE
            Safety Orange #F0562A | Steel #8A9299
   Type: Barlow Condensed (display) / Barlow (body) / IBM Plex Mono (data)
   ============================================ */

:root {
  --blue: #1E5A8A;
  --blue-dark: #14405f;
  --ink: #171B1F;
  --paper: #F4F3EE;
  --white: #FFFFFF;
  --orange: #F0562A;
  --orange-dark: #cf4520;
  --steel: #8A9299;
  --steel-light: #d8dad6;
  --max: 1160px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(23, 27, 31, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: 0.03em; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.25rem; line-height: 1.55; max-width: 46ch; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--blue);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--paper);
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-name span { color: var(--orange); }

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav .nav-cta {
  background: var(--orange);
  color: var(--white);
}
.main-nav .nav-cta:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 88px 24px 96px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: var(--steel-light); margin: 1.25rem 0 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wheel {
  justify-self: center;
  width: min(380px, 80%);
  opacity: 0.95;
}
.hero-wheel svg { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .wheel-spin {
    animation: spin 90s linear infinite;
    transform-origin: 50% 50%;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* ---------- Data strip ---------- */
.data-strip {
  background: var(--blue);
  color: var(--white);
}
.data-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat {
  padding: 32px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.stat:first-child { border-left: none; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}
.stat-source {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head p { margin-top: 1rem; color: #3d444b; }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-head p { color: var(--steel-light); }

/* ---------- Service menu (workshop board style) ---------- */
.service-menu { display: grid; gap: 16px; }
.service-row {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  box-shadow: var(--shadow);
}
.section-alt .service-row { background: var(--paper); }
.service-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding-top: 4px;
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { color: #3d444b; max-width: 62ch; }
.service-row ul {
  margin: 12px 0 0 1.1rem;
  color: #3d444b;
}
.service-row li { margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.section-dark .card {
  background: #1f2429;
  border-color: #2d343b;
}
.card h3 { margin-bottom: 10px; }
.card p { color: #3d444b; }
.section-dark .card p { color: var(--steel-light); }
.card .mono { color: var(--orange); display: block; margin-bottom: 12px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 3px solid var(--orange); position: relative; }
.plan-flag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--orange);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}
.plan-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 10px 0 4px;
}
.plan-price small {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--steel);
  font-family: 'Barlow', sans-serif;
  text-transform: none;
}
.plan ul {
  list-style: none;
  margin: 22px 0 28px;
  flex-grow: 1;
}
.plan li {
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--paper);
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 50%;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--orange);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: #3d444b; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--steel); margin-top: 12px; }
.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 52ch; margin: 0 auto 28px; font-size: 1.15rem; }
.cta-band .btn { background: var(--ink); color: var(--white); }
.cta-band .btn:hover { background: #000; }

/* ---------- Prose (about page) ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2rem; }
.prose h2 { margin: 2.4rem 0 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 56px 0 32px;
  border-top: 3px solid var(--blue);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--steel-light); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-legal {
  border-top: 1px solid #2d343b;
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px; }
  .hero-wheel { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .data-strip .container { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }
  .stat:first-child { border-top: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    display: none;
    border-bottom: 3px solid var(--blue);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; }
  .main-nav a { display: block; padding: 12px 14px; }
}

@media (max-width: 560px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}
