/* =========================================================
   Friendly Freight Network — shared stylesheet
   Design tokens, layout, components. One file, all pages.
   ========================================================= */

:root {
  /* Ink base (near-black, slightly cool) */
  --ink:        #12161c;
  --ink-2:      #1a212a;
  --ink-3:      #2b3540;
  --ink-line:   #313c48;

  /* Light surfaces */
  --paper:      #ffffff;
  --surface:    #f3f5f7;
  --surface-2:  #e9edf1;
  --line:       #dbe1e7;

  /* Signal accent — freight amber */
  --amber:      #f2a31c;
  --amber-deep: #cf860a;
  --amber-soft: #fbeccb;

  /* Text */
  --text:       #12161c;
  --text-dim:   #5a636e;
  --text-faint: #8b939d;
  --invert:     #eef1f4;
  --invert-dim: #a7b0ba;

  /* Type */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow.on-ink { color: var(--amber); }
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--invert); border-color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--amber-deep); color: var(--amber-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--invert);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--invert); flex-shrink: 0; }
.brand svg { width: 34px; height: 20px; }
.brand-word { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.brand-word b { display: block; font-size: 1.02rem; }
.brand-word span { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.34em; color: var(--invert-dim); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a.link {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--invert-dim);
  padding: 0.4rem 0;
  position: relative;
  transition: color .15s ease;
}
.nav a.link:hover { color: var(--invert); }
.nav a.link[aria-current="page"] { color: var(--invert); }
.nav a.link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--amber);
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.phone-link {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--invert);
  white-space: nowrap;
}
.phone-link:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  margin-left: 0.25rem;
  width: 44px; height: 40px;
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--invert); display: block; transition: .2s; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--invert); transition: .2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.open .nav-toggle span { background: transparent; }
.site-header.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--invert-dim); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--invert); margin-bottom: 1rem; }
.footer-tag { font-family: var(--f-display); font-weight: 700; color: var(--invert); font-size: 1.05rem; margin: 0 0 1rem; }
.footer-col h4 { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--invert); margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; color: var(--invert-dim); font-size: 0.92rem; padding: 0.28rem 0; }
.footer-col a:hover { color: var(--amber); }
.creds { font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.9; color: var(--invert-dim); }
.creds b { color: var(--invert); font-weight: 500; }
.footer-bottom { border-top: 1px solid var(--ink-line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: baseline; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--text-faint); max-width: 60ch; }
.disclaimer { font-style: italic; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--invert); position: relative; overflow: hidden; }
.hero-inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  color: var(--invert);
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero h1 .dim { color: var(--invert-dim); }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--invert-dim); max-width: 52ch; margin: 0 0 2.2rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* route signature */
.route-band { position: relative; z-index: 2; border-top: 1px solid var(--ink-line); }
.route-svg { width: 100%; height: 92px; }
.route-line { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.route-live { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s cubic-bezier(.6,.02,.2,1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node { fill: var(--ink); stroke: var(--amber); stroke-width: 2.5; }
.node-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--invert-dim); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .route-live { animation: none; stroke-dashoffset: 0; } }

/* trust chips */
.trustbar { background: var(--ink-2); border-top: 1px solid var(--ink-line); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; padding-block: 1rem; }
.chip { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--invert-dim); display: inline-flex; align-items: center; gap: 0.5rem; }
.chip b { color: var(--invert); font-weight: 500; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

/* page banner (inner pages) */
.page-banner { background: var(--ink); color: var(--invert); }
.page-banner .wrap { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.page-banner h1 { color: var(--invert); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-banner p { color: var(--invert-dim); font-size: 1.12rem; max-width: 56ch; margin: 1.1rem 0 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--paper); padding: 1.9rem 1.7rem; }
.pillar .num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--amber-deep); letter-spacing: 0.1em; }
.pillar h3 { font-size: 1.18rem; margin: 0.7rem 0 0.55rem; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Equipment ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.equip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.25rem; }
.equip .tag { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase; }
.equip h3 { font-size: 1.12rem; margin: 0.45rem 0 0.4rem; }
.equip p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

.equip-inline { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.equip-inline span { font-family: var(--f-mono); font-size: 0.82rem; padding: 0.45rem 0.85rem; border: 1px solid var(--ink-line); border-radius: 999px; color: var(--invert-dim); }

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.coverage .cv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.coverage .cv .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); }
.coverage .cv h3 { font-size: 1.35rem; margin: 0.5rem 0; }
.coverage .cv p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Steps (route) ---------- */
.steps { position: relative; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem; padding-bottom: 2.2rem; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: -4px; width: 2px; background: var(--line);
}
.step .marker {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--amber); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 600; color: var(--text); font-size: 0.95rem;
  position: relative; z-index: 2;
}
.step .step-body { padding-top: 0.35rem; }
.step h3 { font-size: 1.24rem; margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--text-dim); }
.step .when { font-family: var(--f-mono); font-size: 0.76rem; color: var(--amber-deep); letter-spacing: 0.06em; margin-top: 0.5rem; }
.step .when a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 2px; }
.step .when a:hover { color: var(--amber); }

/* ---------- About / team ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose p { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.team { display: grid; gap: 1rem; }
.member { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.member .role { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.member h3 { font-size: 1.3rem; margin: 0.35rem 0 0.3rem; }
.member p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Credentials table ---------- */
.cred-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.cred-table th, .cred-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cred-table th { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); width: 42%; white-space: nowrap; }
.cred-table td { font-family: var(--f-mono); color: var(--text); }
.cred-table tr:last-child th, .cred-table tr:last-child td { border-bottom: none; }
.status-active { color: #1c7a44; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--invert); }
.cta-band .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--invert); max-width: 20ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.form-card .sub { color: var(--text-dim); margin: 0 0 1.6rem; font-size: 0.98rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.4rem; }
.field label .req { color: var(--amber-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--text);
  padding: 0.72rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); background: var(--paper); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form-note { font-size: 0.85rem; color: var(--text-faint); margin: 0.4rem 0 1.2rem; }
.form-status { display: none; padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 1rem; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f5ec; color: #1c7a44; border: 1px solid #bfe4cc; }
.form-status.info { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid #f2dca3; }

.reasons { display: grid; gap: 0.85rem; }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.reason .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.reason h3 { font-size: 1.05rem; margin: 0.25rem 0 0.35rem; }
.reason a { font-family: var(--f-mono); font-size: 0.92rem; color: var(--amber-deep); text-decoration: none; }
.reason a:hover { text-decoration: underline; }
.reason p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--text-faint); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--ink); padding: 0.6rem 1rem; font-family: var(--f-display); font-weight: 700; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .equip-grid, .coverage { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; min-height: 60px; }
  .brand { order: 1; margin-right: auto; }
  .header-actions { order: 2; }
  .nav-toggle { display: flex; order: 3; }
  .nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0.4rem 0 0.2rem;
  }
  .site-header.open .nav { display: flex; }
  .nav a.link {
    padding: 0.9rem 0.2rem;
    border-top: 1px solid var(--ink-line);
    font-size: 1rem;
    color: var(--invert);
  }
  .nav a.link[aria-current="page"] { color: var(--amber); }
  .nav a.link[aria-current="page"]::after { display: none; }
  .header-actions .phone-link { display: none; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .pillars, .equip-grid, .coverage { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   RESYNC BLOCK — styles required by the current HTML
   (brand logo, slate theme, honeypot, arrow flow, commit card)
   ========================================================= */

/* Brand logo image sizing */
.brand-logo { height: 44px; width: auto; display: block; }
.site-footer .brand-logo { height: 54px; margin-bottom: 0.4rem; }
@media (max-width: 720px) { .brand-logo { height: 38px; } }
@media (max-width: 600px) { .site-header .brand-word { display: none; } }

/* Slate header & footer theme (hero + content keep original ink/white) */
.site-header { background: #5c6773; border-bottom-color: #47515d; }
.site-footer { background: #5c6773; }
.site-header .nav a.link { color: #e3e8ed; }
.site-header .nav a.link:hover,
.site-header .nav a.link[aria-current="page"] { color: #ffffff; }
.site-header .phone-link { color: #ffffff; }
.site-header .btn-ghost { color: #ffffff; border-color: #6f7a86; }
.site-header .btn-ghost:hover { color: var(--amber); border-color: var(--amber); }
.brand-word b { color: #ffffff; }
.brand-word span { color: #d6dce2; }
.footer-tag, .footer-col h4, .creds b, .site-footer .brand { color: #ffffff; }
.footer-col a, .creds { color: #d6dce2; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top-color: #47515d; }
.footer-bottom p { color: #c4cbd3; }
.footer-bottom .disclaimer a { color: #d6dce2; }
@media (max-width: 720px) { .nav a.link { border-top-color: #6f7a86; } }

/* Honeypot spam field (visually hidden, still submitted) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Arrow-connected process flow (teaser) */
.flow { display: flex; align-items: flex-start; gap: 0.75rem; }
.flow-step { flex: 1 1 0; min-width: 0; }
.flow-num { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--amber); font-family: var(--f-mono); font-weight: 600; font-size: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.flow-step h3 { font-size: 1.18rem; margin: 0 0 0.5rem; }
.flow-step p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }
.flow-arrow { flex: 0 0 auto; align-self: flex-start; color: var(--amber); font-size: 1.9rem; line-height: 1.3rem; height: auto; }
@media (max-width: 720px) {
  .flow { flex-direction: column; gap: 0.4rem; }
  .flow-arrow { align-self: flex-start; line-height: 1; height: auto; margin: 0.2rem 0 0.2rem 4px; transform: rotate(90deg); }
}

/* About commitment card */
.commit-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); padding: 1.9rem 1.8rem; }
.commit-card h3 { font-size: 1.35rem; line-height: 1.15; margin: 0.55rem 0 1.3rem; }
.commit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.commit-list li { position: relative; padding-left: 2rem; color: var(--text-dim); font-size: 0.98rem; line-height: 1.45; }
.commit-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber-soft); }
.commit-list li::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--amber-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Plain (unnumbered) pillar grid */
.pillars.no-num .pillar h3 { margin-top: 0; }
