/* =================================================================
   GoCrewIt — credibility page · "NIGHT SHIFT"
   The page IS a dispatch console at 2am: dark-dominant, warm-shifted.
   Barlow / Barlow Condensed, on the Fire Inspect Hub design language
   (siblings, not clones — GoCrewIt's pitch is "I build these platforms").

   ACCENT DISCIPLINE (binding):
   - --signal (green) appears ONLY on status: the LIVE pill + live-card
     marker. It never decorates. Green on a non-status = bug.
   - --amber carries display type + emphasis (headings, wordmark, stat
     numbers, review emphasis). It is the warmth of the page.
   ================================================================= */

:root {
  --ground:   #12140f;  /* page background — near-black, warm-shifted     */
  --ground-2: #1b1e17;  /* raised surfaces: cards, panels                 */
  --rule:     #2e3328;  /* borders, dividers, grid lines (hairline)       */
  --ink:      #edeae0;  /* primary type — warm white, NOT pure #fff       */
  --ink-dim:  #9a9a8c;  /* secondary type, meta, labels (AA-checked)      */
  --amber:    #e8a33d;  /* display / emphasis — headings, wordmark        */
  --amber-lt: #f2bd6b;  /* amber hover (brighter on dark)                 */
  --signal:   #4ade80;  /* STATUS ONLY — LIVE pill + live-card marker     */

  --sans: 'Barlow', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Cascadia Mono", Menlo, Consolas, monospace;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(3rem, 7vw, 5.5rem);
  --wrap: 72rem;
  --r: 8px;
  --r-lg: 12px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Belt-and-suspenders: no element can ever induce horizontal scroll on a
     phone, whatever the font-load state or device metrics. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Long unbreakable strings (emails, URLs, mono IDs/dates) break rather than
     run off the right edge — inherited by all descendants. */
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-lt); }

/* Visible keyboard focus everywhere — amber reads on the dark ground. */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Shared inner column — matches board-bar / main / footer width. */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---- Dispatch-board header bar -------------------------------- */
.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.7rem var(--pad);
  border-bottom: 1px solid var(--rule);
  background: var(--ground-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.board-bar__tag {
  font-weight: 600;
  color: var(--ink);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule);
}
.board-bar__meta { color: var(--ink-dim); }
.board-bar__meta--dim { margin-left: auto; }

/* ---- Layout rhythm -------------------------------------------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}
main > section { padding: var(--gap) 0; border-bottom: 1px solid var(--rule); }
main > section:last-of-type { border-bottom: 0; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* Amber tick carries the warmth into each structural label. */
.section-label::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ================================================================
   HERO — the dominant object. Same dark ground as the page; it stands
   out by type scale + the amber thesis + the amber baseline rule.
   ================================================================ */
.hero {
  background: var(--ground);
  color: var(--ink);
  border-bottom: 4px solid var(--amber);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(232,163,61,0.5);
  border-radius: 3px;
}
.hero__thesis {
  font-family: var(--display);
  /* Min lowered so the WIDE fallback face (system-ui, pre-swap or if Google
     Fonts is blocked on a phone) still fits at 320px — the min is what renders
     on a phone, so it must clear the narrowest device. */
  font-size: clamp(2.35rem, 1.4rem + 5.4vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.005em;
  font-weight: 800;
  margin: 0 0 1.5rem;
  max-width: 16ch;
  color: var(--amber);
}
.hero__sub {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 0 2.4rem;
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__loc { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ================================================================
   STATS — raised cards, the credibility punch under the hero.
   True numbers only. Number = condensed 800 in amber.
   ================================================================ */
.stats { padding: clamp(2.5rem, 6vw, 4rem) 0 !important; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat {
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.4rem);
  line-height: 1;
  color: var(--amber);
  margin: 0 0 0.5rem;
}
.stat__label {
  font-size: 0.95rem;
  color: var(--ink-dim);
  line-height: 1.4;
  margin: 0;
}

/* ---- Button — amber emphasis on the dark ground --------------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ground);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--amber);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--amber-lt); border-color: var(--amber-lt); color: var(--ground); transform: translateY(-1px); }

/* ---- Who / How / prose ---------------------------------------- */
.who__body, .how__body { max-width: var(--measure); }
.who__body p, .how__body p { margin: 0 0 1.15rem; font-size: 1.18rem; line-height: 1.7; color: var(--ink); }
.who__body p:last-child, .how__body p:last-child { margin-bottom: 0; }

/* ---- The board: job cards ------------------------------------- */
.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.card {
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.7rem;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,0.45); border-color: #3c4234; }
/* Live-card marker — STATUS, so green is correct here. */
.card--live { border-left: 3px solid var(--signal); }

.card__ticket {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}
.card__id { color: var(--ink-dim); font-weight: 600; }

.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-dim);
  white-space: nowrap;
}
/* The genuinely-live status — the one place green is allowed to fill. */
.pill--live {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ground);
}

.card__title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0; margin: 0 0 0.6rem; color: var(--amber); }
.card__scope { margin: 0 0 0.9rem; color: var(--ink); max-width: 60ch; }
.card__link { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; }

@media (min-width: 52rem) {
  .board { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ================================================================
   PROOF / reviews — the most prominent object on the page.
   Raised cards; the lead review dominates. Stars + names in amber.
   ================================================================ */
.proof__context { max-width: var(--measure); font-size: 1.18rem; margin: 0 0 2.25rem; color: var(--ink); }
.reviews { display: grid; gap: 1.5rem; }
.review {
  margin: 0;
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.9rem 2rem 1.7rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
/* Lead review dominates: amber top bar, larger quote. */
.review--lead { border-top: 4px solid var(--amber); }
.review__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.review__stars { color: var(--amber); letter-spacing: 0.14em; font-size: 1.15rem; line-height: 1; }
.review__src { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-dim); }
.review__body { margin: 0 0 1.3rem; max-width: 62ch; font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.review--lead .review__body {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.review__who {
  display: flex;
  align-items: baseline;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.review__who cite { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 1.15rem; color: var(--amber); }
.review__badge { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim); }
.review__link { font-family: var(--mono); font-size: 0.78rem; margin-left: auto; font-weight: 600; white-space: nowrap; }

@media (min-width: 52rem) {
  .reviews { grid-template-columns: 1.4fr 1fr; align-items: start; }
  /* Lead review takes the full top row for dominance. */
  .review--lead { grid-column: 1 / -1; }
}

/* ---- Hire list ------------------------------------------------ */
.hire__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: var(--measure);
}
.hire__list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 1.15rem;
  color: var(--ink);
}
.hire__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
}

/* ================================================================
   CTA PANEL — inverted: a LIGHT block on the dark page. One light
   object on a dark ground is the strongest button you can build.
   ================================================================ */
.cta-panel__box {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-panel__box h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.05;
  color: var(--ground);
  margin: 0 0 0.75rem;
}
.cta-panel__box p {
  color: var(--ground-2);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}
/* Dark button on the light panel — the inverse of the page's amber btn. */
.cta-panel__box .btn {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--ink);
}
.cta-panel__box .btn:hover { background: #000; border-color: #000; color: var(--ink); }

/* ---- Contact — work-order field grid, retinted ---------------- */
.contact__grid { margin: 0 0 2rem; display: grid; gap: 0; max-width: 40rem; }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.contact__row:last-child { border-bottom: 1px solid var(--rule); }
.contact__row dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  min-width: 8rem;
}
.contact__row dd { margin: 0; color: var(--ink); }
.contact__cta { margin: 0; }

/* ---- Footer --------------------------------------------------- */
.site-foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--rule);
}
.site-foot__nav { display: flex; gap: 1.25rem; }

/* ---- Legal pages (privacy / terms / support / 404) ------------ */
.doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) 4rem;
}
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); letter-spacing: 0; margin: 0 0 0.5rem; color: var(--amber); }
.doc .doc__meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); margin: 0 0 2.5rem; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: 2.5rem 0 0.75rem; color: var(--amber); }
.doc p, .doc li { max-width: var(--measure); color: var(--ink); }
.doc a.back { font-family: var(--mono); font-size: 0.8rem; }
.doc__placeholder {
  background: var(--ground-2);
  border: 1px dashed var(--rule);
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ---- 404 ------------------------------------------------------ */
.notfound { text-align: left; }
.notfound .code { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.08em; }

/* ---- Motion preference ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}
