/* S&T Trucking Logistics. Dispatch-board chassis: stamped header, backlit phone number,
   load-slot tags, alternating flat board rows, labeled fleet-facts signature row. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg[hidden] { display: none; }
[id] { scroll-margin-top: 110px; }
::selection { background: var(--amber); color: var(--board); }
html { scrollbar-color: var(--slate-light) var(--paper); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.14; margin: 0 0 var(--s2); }
h1 { font-weight: 700; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
a { color: var(--amber-deep); }
.dark a { color: var(--amber-bright); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* focus */
:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: var(--radius); }
.dark :focus-visible, .board-head :focus-visible { outline-color: var(--amber-bright); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--board); color: var(--ink-dark); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ============ header: the dispatch strip ============ */
.board-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--board);
  border-bottom: 2px solid var(--amber);
}
.board-head-in {
  max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  min-height: 72px;
}

/* stamped brand block */
.stamp {
  flex: none;
  display: flex; flex-direction: column; justify-content: center;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 6px 10px 5px;
  text-decoration: none;
  transform: rotate(-0.6deg);
}
.stamp-line1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.1rem; letter-spacing: .04em; color: var(--amber-bright);
  line-height: 1;
}
.stamp-line2 {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dark); margin-top: 3px;
}

.dtabs { display: flex; gap: 2px; margin-right: auto; }
.dtabs a {
  position: relative;
  padding: 9px 13px; min-height: 40px; display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; text-decoration: none; color: var(--muted-dark);
  border-left: 1px solid var(--rule-dark);
  transition: color var(--t-fast) var(--t-cut);
}
.dtabs a:first-child { border-left: 0; }
.dtabs a:hover { color: var(--ink-dark); }
.dtabs a[aria-current="page"] { color: var(--amber-bright); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--rule-dark); border-radius: var(--radius);
  background: var(--board-2); color: var(--ink-dark);
  font: inherit; font-size: .85rem;
  padding: 9px 13px; min-height: 44px;
  cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle:active { transform: translateY(1px); }
.nav-toggle .ico-shut { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-shut { display: block; }

/* the backlit phone number: text only, no pill */
.board-phone {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none;
  padding: 4px 0;
}
.board-phone-label {
  font-family: var(--display); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark);
}
.board-phone-num {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  color: var(--amber-bright);
  text-shadow: 0 0 10px rgba(244,169,60,.55), 0 0 22px rgba(244,169,60,.25);
  white-space: nowrap;
  letter-spacing: .01em;
}
html[data-anim] .board-phone-num { animation: backlit-pulse 4.5s ease-in-out infinite; }

@keyframes backlit-pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(244,169,60,.55), 0 0 22px rgba(244,169,60,.25); }
  50%      { text-shadow: 0 0 14px rgba(244,169,60,.75), 0 0 30px rgba(244,169,60,.4); }
}

/* ============ buttons: one solid block, no outline twin ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; min-height: 52px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: .98rem;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast) var(--t-step);
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--board); }
.btn-amber:hover { background: var(--amber-press); }
.btn-slate { background: var(--slate); color: var(--ink-dark); }
.btn-slate:hover { background: var(--slate-press); }

.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--amber-deep); text-decoration: none; font-size: 1rem;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: .92rem;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-fast) var(--t-cut);
}
.arrowlink:hover { gap: 12px; border-bottom-color: var(--amber-deep); }
.dark .arrowlink { color: var(--amber-bright); }

/* corner-tag CTA: stamped, tilted like a marker on the board */
.corner-tag {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  transform: rotate(-1deg);
}
.corner-tag::before {
  content: "CALL DISPATCH";
  position: absolute; top: -13px; left: 10px;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em;
  color: var(--amber-bright);
  background: var(--board);
  padding: 1px 6px;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
}

/* ============ dark board sections ============ */
.dark { background: var(--board); color: var(--ink-dark); }
.dark p { color: var(--ink-dark); }
.dark .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }

/* ============ hero ============ */
.hero { position: relative; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(22,25,27,.95) 0 38%, rgba(22,25,27,.78) 62%, rgba(22,25,27,.42));
}
.hero-in { padding: clamp(52px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem);
  letter-spacing: -0.005em;
  margin: 0 0 var(--s2);
  max-width: 15ch;
}
.hero-line { font-size: 1.08rem; max-width: 50ch; color: var(--muted-dark); margin-bottom: var(--s4); }
.hero-line strong { color: var(--ink-dark); font-weight: 600; }

/* ============ load-slot tag row (hero) ============ */
.slotrow {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: var(--s5);
}
.slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 8px;
  border: 1px dashed var(--rule-dark);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.slot-tick {
  width: 16px; height: 16px; flex: none;
  border: 1.4px solid var(--tickbox); border-radius: var(--radius);
  color: var(--amber-bright);
  display: inline-grid; place-items: center;
}
.slot-tick svg { width: 11px; height: 11px; }
.slot-tick .tick-path { stroke-dasharray: 16; stroke-dashoffset: 16; }
html[data-anim] .slot.ticked .tick-path,
html:not([data-anim]) .tick-path { stroke-dashoffset: 0; }
html[data-anim] .slot.ticked .tick-path { transition: stroke-dashoffset 180ms var(--t-cut); }
.slot-label {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dark);
}
.slot-note { font-size: .78rem; color: var(--muted-dark); }

.cta-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4) var(--s5); }

/* ============ sections: flat alternating board rows ============ */
.sec { padding: clamp(48px, 8vw, 88px) 0; }
.sec-head {
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: 10px; margin-bottom: clamp(24px, 4vw, 40px);
}
.sec-head .eyebrow {
  display: block;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 6px;
}
.dark .sec-head .eyebrow { color: var(--amber-bright); }
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.dark .sec-head { border-bottom-color: var(--rule-dark); }
.sec-intro { max-width: 58ch; margin-bottom: var(--s4); }

/* ============ carrier / broker split lanes ============ */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule-strong); }
.lane {
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 30px);
  border-left: 1px solid var(--rule-strong);
}
.lane:first-child { border-left: 0; }
.lane-tag {
  display: inline-block;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius);
  margin-bottom: var(--s2);
}
.lane-carrier .lane-tag { background: var(--amber); color: var(--board); }
.lane-broker .lane-tag { background: var(--slate); color: var(--ink-dark); }
.lane h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lane p { font-size: .98rem; }
.lane ul { margin: var(--s2) 0 0; padding: 0; list-style: none; }
.lane li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--rule);
  font-size: .94rem;
}
.lane li:first-child { border-top: 0; }

/* ============ signature: fleet-facts board row ============ */
.factboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--rule-dark);
  background: var(--board-2);
  position: relative;
}
.factcell {
  padding: 20px 18px 18px;
  border-left: 1px dashed var(--rule-dark);
  text-align: left;
}
.factcell:first-child { border-left: 0; }
.factcell .fnum {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--amber-bright);
  text-shadow: 0 0 8px rgba(244,169,60,.35);
  line-height: 1;
  display: block; margin-bottom: 6px;
}
.factcell .flabel {
  font-family: var(--display); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted-dark);
  display: block;
}
.factboard-cap {
  font-size: .84rem; color: var(--muted-dark); margin-top: var(--s2); max-width: 68ch;
}
.dark .factboard-cap { color: var(--muted-dark); }
.sec:not(.dark) .factboard-cap { color: var(--muted); }

/* compact single-line fact strip (services/contact reference) */
.factstrip {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-family: var(--mono); font-size: .84rem;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0; margin: var(--s3) 0;
}
.factstrip span { padding: 0 14px; border-left: 1px dashed var(--rule-strong); }
.factstrip span:first-child { border-left: 0; padding-left: 0; }
.dark .factstrip { border-color: var(--rule-dark); }
.dark .factstrip span { border-left-color: var(--rule-dark); }

/* ============ tick boxes reused as list furniture ============ */
.tickbox {
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--tickbox); border-radius: var(--radius);
  color: var(--amber-deep);
  display: inline-grid; place-items: center;
}
.dark .tickbox { color: var(--amber-bright); }
.tickbox svg { width: 13px; height: 13px; }
.tickbox .tick-path { stroke-dasharray: 16; stroke-dashoffset: 16; }
html[data-anim] .ticked .tick-path,
html:not([data-anim]) .tick-path { stroke-dashoffset: 0; }
html[data-anim] .ticked .tick-path { transition: stroke-dashoffset 160ms var(--t-cut); }

/* ============ photo layouts ============ */
.photo-band { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2px; }
.photo-band .stack { display: grid; gap: 2px; }
.photo-band figure, .photo-duo figure, .photo-solo figure { margin: 0; position: relative; }
.photo-band img, .photo-duo img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption, .photo-duo figcaption, .photo-solo figcaption {
  font-size: .78rem; color: var(--muted); padding-top: 6px;
}
.photo-band .lead img { min-height: 320px; }
.photo-band .stack img { aspect-ratio: 3 / 2; }
.photo-solo img { width: 100%; }

/* placeholder-art figures: drawn, clearly labeled, not photographic */
.ph-art {
  position: relative;
  background: var(--board-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph-art svg { width: 60%; height: 60%; opacity: .5; }
.ph-art .ph-badge {
  position: absolute; bottom: 8px; right: 8px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark); background: rgba(22,25,27,.7);
  padding: 3px 8px; border: 1px solid var(--rule-dark); border-radius: var(--radius);
}

/* ============ office/contact split ============ */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.factline { border-bottom: 1px solid var(--rule); padding: 12px 2px; margin: 0; max-width: none; }
.factline:first-of-type { border-top: 1px solid var(--rule-strong); }
.factline b { font-weight: 600; font-family: var(--display); }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.field { margin-bottom: var(--s2); }
.field label { display: block; font-size: .82rem; letter-spacing: .03em; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 12px 12px; min-height: 48px;
  transition: border-color var(--t-fast) var(--t-cut), background var(--t-fast) var(--t-cut);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber-deep); outline-offset: 1px; background: #FFFDF6;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg {
  display: none;
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 14px 16px; margin-top: var(--s2);
  font-size: .98rem;
}
.form-msg.show { display: block; }
.form-msg a { color: var(--amber-deep); white-space: nowrap; }

/* big phone line on light ground */
.ph-light-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  margin: var(--s3) 0;
}
.ph-light-row .ph-num {
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--ink);
  text-decoration: none;
}
.ph-light-row .ph-num:hover { color: var(--amber-deep); }
.ph-light-row .ph-tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ============ footer ============ */
.foot { background: var(--board); color: var(--ink-dark); padding: var(--s6) 0 calc(var(--s6) + 68px); border-top: 2px solid var(--amber); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule-dark); }
.foot p { margin: 0 0 4px; color: var(--ink-dark); }
.foot-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.foot-id a { color: var(--amber-bright); text-decoration: none; }
.foot-id a:hover { text-decoration: underline; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--muted-dark); text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: .88rem; letter-spacing: .04em; }
.foot-nav a:hover { color: var(--ink-dark); }
.foot-facts p { font-family: var(--mono); font-size: .84rem; color: var(--muted-dark); }
.foot-fine { padding-top: var(--s3); }
.foot-fine p { font-size: .8rem; color: var(--muted-dark); max-width: 80ch; }

/* ============ mobile call bar ============ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--board); border-top: 1px solid var(--rule-dark);
}
.callbar .btn { width: 100%; font-size: .95rem; min-height: 48px; padding: 10px 8px; }
.callbar.gone { display: none !important; }

/* ============ reveals: short snappy fade-up ============ */
html[data-anim] .rv { opacity: 0; transform: translateY(8px); }
html[data-anim] .rv.on { opacity: 1; transform: none; transition: opacity 200ms var(--t-step), transform 200ms var(--t-step); }

/* page banners (inner pages) */
.banner .hero-in { padding: clamp(44px, 7vw, 84px) 0; }
.banner h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 18ch; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .lanes { grid-template-columns: 1fr; }
  .lane { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .lane:first-child { border-top: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band .stack { grid-template-columns: 1fr 1fr; }
  .factboard { grid-template-columns: repeat(2, 1fr); }
  .factcell:nth-child(2n+1) { border-left: 0; }
  .factcell:nth-child(-n+2) { border-bottom: 1px dashed var(--rule-dark); }
}
@media (max-width: 760px) {
  .board-head-in { flex-wrap: wrap; min-height: auto; padding-block: 10px; }
  .dtabs { display: none; order: 3; flex-direction: column; gap: 0; width: 100%; margin-right: 0; }
  .dtabs.open { display: flex; border-top: 1px solid var(--rule-dark); margin-top: 8px; padding-top: 4px; }
  .dtabs a { border-left: 0; border-top: 1px solid var(--rule-dark); padding: 12px 4px; min-height: 48px; }
  .dtabs a:first-child { border-top: 0; }
  .nav-toggle { display: inline-flex; }
  .board-phone { align-items: flex-start; }
  .callbar { display: flex; }
  .photo-band .stack { grid-template-columns: 1fr; }
  .hero-scrim { background: linear-gradient(180deg, rgba(22,25,27,.94) 0 42%, rgba(22,25,27,.7)); }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .factboard { grid-template-columns: 1fr 1fr; }
  [id] { scroll-margin-top: 130px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html[data-anim] .rv, html[data-anim] .slot { opacity: 1; transform: none; }
  html[data-anim] .tick-path { stroke-dashoffset: 0; }
}
