/* Backbone Leadership Group: brand tokens */
:root {
  --ink: #1D1F20;        /* Shop Ink: text, dark sections */
  --steel: #416180;      /* Tool Steel: links, secondary (light backgrounds only; 2.6:1 on Ink fails AA) */
  --orange: #E5621F;     /* Safety Orange: primary buttons + logo middle vertebra ONLY */
  --paper: #F2F2F3;      /* Paper: page background */
  --concrete: #D4D4D7;   /* Concrete: borders; text on dark (11:1 on Ink) */
  --gray: #5D5D60;       /* Gray: secondary text, input borders (5.9:1 on Paper) */
  --white: #FFFFFF;

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--steel); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.dark :focus-visible { outline-color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-weight: 500;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--concrete);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { color: var(--ink); display: block; padding: 6px 0; }
.logo { width: 148px; height: auto; }
.logo-name { font-family: var(--font-head); font-weight: 700; font-size: 31px; }
.logo-sub { font-family: var(--font-head); font-weight: 600; font-size: 9.6px; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--orange);
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
/* Ink on orange = 4.8:1 (white on orange is only 3.4:1) */
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dark .btn-primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 1.05rem; white-space: nowrap; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
  color: var(--steel);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.text-link.on-dark { color: var(--concrete); }
.text-link.on-dark:hover { color: var(--paper); }

/* Shared section bits */
.section { padding: 64px 0; }
.dark { background: var(--ink); color: var(--paper); }

.label, .eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 0.75rem;
}
.dark .label { color: var(--concrete); }

h2 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); margin-bottom: 2rem; max-width: 20ch; }
h3 { font-size: 1.5rem; letter-spacing: 0.03em; }

.lead { font-size: 1.2rem; max-width: 40rem; }

.location {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--gray);
}

/* Hero */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--concrete); }
.eyebrow { color: var(--gray); }
.hero h1 {
  font-size: clamp(2.6rem, 8vw + 0.5rem, 5rem);
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.h1-second { display: block; color: var(--steel); }
.hero .lead { margin-bottom: 1.75rem; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}
.cta-row .text-link { font-size: 1.05rem; padding: 0.5rem 0; }
.hero .location { margin: 0; }

/* Problem */
.problems {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.problems li { border-top: 3px solid var(--concrete); padding-top: 1rem; }
.problems .num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--concrete);
  margin-bottom: 0.5rem;
}
.problems h3 { margin-bottom: 0.6rem; color: var(--paper); }
.problems p { color: var(--concrete); }
.kicker {
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 36rem;
  padding-left: 1rem;
  border-left: 3px solid var(--concrete);
}

/* How it works */
.steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 2rem; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--steel);
}
.step h3 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.step-body > p { max-width: 40rem; }
.failures {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--concrete);
  counter-reset: fp;
}
.failures li {
  counter-increment: fp;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.25rem;
  border-bottom: 1px solid var(--concrete);
}
.failures li::before {
  content: counter(fp);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
.failures strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.failures span { display: block; color: var(--gray); }
.failures .context::before { border-style: dashed; border-color: var(--gray); color: var(--gray); }
.tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--gray);
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--gray);
}

/* About */
.about { display: grid; gap: 2rem; }
.about-text { max-width: 40rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--concrete); font-size: 1.125rem; }
.about-text .text-link { display: inline-block; margin-top: 0.5rem; }
.headshot { margin: 0; max-width: 360px; }
.headshot img { width: 100%; height: auto; border: 1px solid var(--gray); }

/* Contact */
#contact .lead { margin-bottom: 2rem; }
.scheduler {
  background: var(--white);
  border: 1px solid var(--concrete);
  margin-bottom: 2.5rem;
}
/* Calendly sizes its iframe to 100% of this box, so it needs a fixed height.
   Phones get extra room because Calendly stacks the event details above the calendar. */
.calendly-slot { height: 980px; position: relative; }
.calendly-slot iframe { display: block; width: 100%; height: 100%; }
.scheduler-fallback { padding: 1.5rem; color: var(--gray); }
.scheduler:focus, .form-card:focus, .thanks:focus { outline: none; }

.contact-grid { display: grid; gap: 2.5rem; }
.form-card {
  background: var(--white);
  border: 1px solid var(--concrete);
  padding: 1.5rem var(--gutter);
}
.form-card h3 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.form-note { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.25rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.optional { font-weight: 400; color: var(--gray); }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray); /* 5.9:1, meets 3:1 for control boundaries */
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
::placeholder { color: var(--gray); opacity: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 0.5rem 0 1.25rem; min-height: 65px; }
.form-card .btn { width: 100%; }
.privacy { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--gray); }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; }
.form-error {
  border-left: 3px solid var(--ink);
  padding: 0.6rem 0.8rem;
  background: var(--paper);
  font-weight: 500;
}
.thanks h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.thanks p { font-size: 1.125rem; }

.direct h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.direct dl { margin: 0 0 1.5rem; }
.direct dt {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--gray);
}
.direct dd { margin: 0 0 1rem; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--paper); }
.footer-mark { width: 40px; height: auto; flex: none; }
.tagline {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  line-height: 1.1;
  text-wrap: balance;
}
@media (min-width: 720px) { .tagline { font-size: 1.5rem; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--concrete); text-underline-offset: 3px; overflow-wrap: anywhere; display: inline-block; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--paper); }
.footer-legal { margin: 0; color: var(--concrete); font-size: 0.9rem; }

/* 404 */
.notfound { padding: 96px 0; min-height: 60vh; }
.notfound h1 { font-size: clamp(3rem, 10vw, 5.5rem); margin-bottom: 1rem; }
.notfound p { font-size: 1.2rem; margin-bottom: 2rem; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .logo { width: 188px; }
  .section { padding: 96px 0; }
  .hero { padding: 88px 0 96px; }
  .problems { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step { grid-template-columns: 4.5rem 1fr; gap: 1.5rem; }
  .step-num { font-size: 4rem; }
  .failures { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-top: 0; }
  .failures li:nth-child(-n+2) { border-top: 1px solid var(--concrete); }
  .form-card { padding: 2rem; }
  .calendly-slot { height: 720px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--gray); }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 3fr 2fr; gap: 3.5rem; align-items: start; }
  .about:has(.headshot) { grid-template-columns: 320px 1fr; gap: 3.5rem; align-items: center; }
}
