/*
Theme Name: US Logistics
Theme URI: https://uslogistics.biz
Author: Built for US Logistics & Consulting Corp
Description: Custom theme for US Logistics & Consulting Corp, a FedEx Ground linehaul contractor running out of Fife, Washington. Dark working-freight design, no page builder, no external dependencies beyond Google Fonts.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: uslogistics
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --night:    #101418;
  --steel:    #191F25;
  --steel-2:  #222A32;
  --steel-3:  #2C353E;
  --rule:     #303A44;
  --rule-2:   #46525E;

  --ink:      #F2EFEA;
  --ink-2:    #A2ACB6;
  --ink-3:    #6E7A85;

  --amber:    #F0A828;
  --amber-dk: #C9871A;
  --clear:    #6BAE81;
  --alert:    #E4705E;

  --f-disp: "Barlow Condensed", "Arial Narrow", Helvetica, sans-serif;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--amber); color: #1A1206; padding: 10px 16px;
  font-family: var(--f-disp); font-weight: 600; text-decoration: none;
}

/* ==========================================================================
   Brand mark
   ========================================================================== */

.mark { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; min-height: 44px; }
.mark-lockup { display: block; height: 40px; width: auto; aspect-ratio: 724 / 235.4; }
.login-lockup { height: 34px; margin: 0 auto 24px; display: block; }

/* ==========================================================================
   Header
   ========================================================================== */

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--night);
  position: sticky; top: 0; z-index: 20;
}

.bar { display: flex; align-items: center; gap: 32px; min-height: 74px; }
.nav-toggle, a.portal { flex: 0 0 auto; }

nav.main { display: flex; gap: 26px; margin-left: auto; align-items: center; }
nav.main ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }

nav.main a {
  font-family: var(--f-disp); font-weight: 600; font-size: 16px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent; display: block;
}
nav.main a:hover { color: var(--ink); }
nav.main .current-menu-item > a,
nav.main .current_page_item > a { color: var(--ink); border-bottom-color: var(--amber); }

a.portal {
  font-family: var(--f-disp); font-weight: 600; font-size: 15px; min-height: 40px;
  display: inline-flex; align-items: center;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber-dk);
  padding: 8px 15px; text-decoration: none; white-space: nowrap;
}
a.portal:hover { background: var(--amber); color: #1A1206; }

.nav-toggle {
  display: none; min-height: 40px; background: none; border: 1px solid var(--rule-2);
  color: var(--ink); font-family: var(--f-disp); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px;
  padding: 8px 13px; cursor: pointer; margin-left: auto;
}

/* ==========================================================================
   Type
   ========================================================================== */

h1 {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(34px, 6.4vw, 68px); line-height: 0.99;
  letter-spacing: -0.005em; margin: 0; text-wrap: balance;
}
h2 {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.07;
  margin: 0; text-wrap: balance;
}
h3 { font-family: var(--f-disp); font-weight: 600; font-size: 21px; line-height: 1.15; margin: 0; }

.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 16px;
}

.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.62; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-block: 96px 0; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin: 26px 0 0; }

/* --- Hero with a photograph -------------------------------------------
   The truck sits to the right, behind a scrim that keeps the headline
   readable. The photograph is already dark, so the scrim only has to do
   the last part of the work rather than dim the whole image. */

.hero.has-photo .hero-art { display: none; }

.hero-photo {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 60%;
  display: block;
}

/* Fade the photograph into the page on its left edge and along the bottom,
   so it reads as part of the hero rather than a pasted-in rectangle. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--night) 0%, rgba(16,20,24,0.86) 22%, rgba(16,20,24,0) 62%),
    linear-gradient(to bottom, var(--night) 0%, rgba(16,20,24,0) 26%),
    linear-gradient(to top, var(--night) 0%, rgba(16,20,24,0) 34%);
}

.hero.has-photo .hero-inner { padding-block-end: 8px; }
.hero.has-photo h1 { max-width: 13ch; }
.hero.has-photo .lede { max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

.btn {
  font-family: var(--f-disp); font-weight: 600; font-size: 16px;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px 24px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; display: inline-block;
}
.btn-solid { background: var(--amber); color: #1A1206; }
.btn-solid:hover { background: #FFBB43; }
.btn-ghost { border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* Credential strip */
.creds {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 64px 0 0;
}
.cred { background: var(--night); padding: 17px 18px; }
.cred dt {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 5px;
}
.cred dd {
  font-family: var(--f-disp); font-weight: 600; font-size: 24px; line-height: 1.05;
  margin: 0; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cred dd.mono { font-family: var(--f-mono); font-weight: 500; font-size: 15px; }

/* ==========================================================================
   Sections
   ========================================================================== */

section.band { padding: 84px 0; border-bottom: 1px solid var(--rule); }
section.band.tint { background: var(--steel); }

.band-head { max-width: 62ch; margin: 0 0 44px; }
.band-head p { margin-top: 16px; }

.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 34px; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 44px; }

.pillar { border-top: 2px solid var(--amber); padding-top: 18px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 15.5px; color: var(--ink-2); }

/* Spec list */
.spec { border-top: 1px solid var(--rule); margin: 0; padding: 0; }
.spec > div {
  display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-family: var(--f-disp); font-weight: 600; font-size: 17px;
  letter-spacing: 0.03em; color: var(--ink);
}
.spec dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Fleet diagram
   Each configuration is its own figure so the label is HTML and wraps
   normally. The drawing itself keeps a minimum width so it stays legible,
   and scrolls sideways inside its own box on a narrow screen rather than
   pushing the page out. */
.diagram {
  background: var(--steel); border: 1px solid var(--rule);
  padding: 22px 22px 16px; margin: 0 0 34px;
}
.usl-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.rig { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rig:first-child { padding-top: 0; }
.rig:last-child { border-bottom: 0; padding-bottom: 0; }

.rig-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.rig-scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rig-scroll svg { display: block; width: 100%; min-width: 560px; height: auto; }

.rig figcaption {
  font-family: var(--f-mono); font-size: 12px; line-height: 1.5;
  color: var(--ink-2); margin-top: 10px;
}
.diagram > figcaption {
  font-family: var(--f-mono); font-size: 12px; line-height: 1.55;
  color: var(--ink-3); margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.rig-hint { display: none; }

/* Seasonal hiring notice. Deliberately loud, because it is temporary. */
.peak-note {
  border-left: 3px solid var(--amber);
  background: rgba(240,168,40,0.07);
  padding: 14px 18px;
  margin: 26px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.peak-note strong {
  display: block;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 5px;
}

/* Jobs */
.jobs { border-top: 1px solid var(--rule); }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.job-loc {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 5px;
}
.job h3 { margin-bottom: 6px; }
.job p { font-size: 15px; color: var(--ink-2); margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-2); border: 1px solid var(--rule-2); padding: 3px 8px;
}

/* Contact and Apply: the form leads, the details sit beside it */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; }

.portal-content { max-width: none; }

.form-wrap { max-width: 640px; }
.form-wrap + .form-aside {
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--rule);
}
.form-aside h3 { margin-bottom: 14px; }
.form-aside h3 + address { margin-bottom: 30px; }
.form-aside .steps {
  margin: 0 0 26px; padding-left: 20px; color: var(--ink-2);
  font-size: 15.5px; line-height: 1.6;
}
.form-aside .steps li { margin-bottom: 8px; }

/* On a wide screen the details move alongside the form rather than under it. */
@media (min-width: 1000px) {
  .form-wrap { float: left; width: 58%; max-width: 640px; }
  .form-aside { float: right; width: 34%; margin-top: 0; padding-top: 0; border-top: 0; }
  .band .shell::after { content: ""; display: table; clear: both; }
}

address { font-style: normal; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
address a { display: inline-block; padding: 4px 0; }
address strong { color: var(--ink); font-weight: 600; }

.tbd {
  color: var(--alert); font-family: var(--f-mono); font-size: 13px;
  border-bottom: 1px dotted var(--alert);
}

/* Editor content on generic pages */
.entry-content { max-width: 72ch; overflow-wrap: break-word; }
.entry-content h2 { margin: 40px 0 14px; }
.entry-content h3 { margin: 30px 0 10px; }
.entry-content ul, .entry-content ol { color: var(--ink-2); }
.entry-content img { border: 1px solid var(--rule); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 10px; text-align: left; }

/* Tables get their own sideways scroll rather than stretching the page.
   The wrapper is added to post content by usl_wrap_tables(). */
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 22px; }
.table-scroll table { min-width: 520px; margin: 0; }

.entry-content pre {
  overflow-x: auto; max-width: 100%;
  background: var(--steel); border: 1px solid var(--rule);
  padding: 14px 16px; font-family: var(--f-mono); font-size: 14px;
}
.entry-content code { font-family: var(--f-mono); font-size: 0.92em; overflow-wrap: anywhere; }
.entry-content pre code { overflow-wrap: normal; }
.entry-content blockquote {
  margin: 24px 0; padding-left: 18px;
  border-left: 2px solid var(--rule-2); color: var(--ink-2);
}
.entry-content iframe, .entry-content video { max-width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site { padding: 54px 0 40px; background: var(--steel); border-top: 1px solid var(--rule); }

.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 34px; margin-bottom: 38px;
}
.foot-grid h4 {
  font-family: var(--f-disp); font-weight: 600; font-size: 14px;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 13px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 2px; }
.foot-grid a, .foot-grid span { color: var(--ink-2); text-decoration: none; font-size: 15px; display: inline-block; padding: 5px 0; }
.foot-grid a:hover { color: var(--amber); }

.colophon {
  border-top: 1px solid var(--rule); padding-top: 20px;
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
}

/* ==========================================================================
   Accessibility + responsive
   ========================================================================== */

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

@media (max-width: 1000px) {
  /* Below this the photograph stops competing with the headline and becomes
     a band underneath it, which stays readable on a phone. */
  .hero-photo {
    position: relative;
    inset: auto;
    z-index: 0;
    margin: 40px 0 0;
    height: 56vw;
    min-height: 210px;
    max-height: 360px;
  }
  .hero-photo img { object-position: 46% 60%; }
  .hero-photo::after {
    background:
      linear-gradient(to bottom, var(--night) 0%, rgba(16,20,24,0) 22%),
      linear-gradient(to top, var(--night) 0%, rgba(16,20,24,0) 26%);
  }
  .hero.has-photo h1,
  .hero.has-photo .lede { max-width: none; }
  .hero.has-photo .hero-inner { padding-block-end: 0; }

  .creds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .bar { flex-wrap: wrap; padding-block: 16px; gap: 14px; min-height: 0; }
  .nav-toggle { display: block; }
  nav.main { width: 100%; order: 3; display: none; margin-left: 0; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  nav.main li { border-top: 1px solid var(--rule); }
  nav.main a { padding: 13px 0; }
  a.portal { margin-left: 0; }
  .hero-inner { padding-block-start: 60px; }
  section.band { padding: 60px 0; }
  .creds { margin-top: 44px; }
}

/* Below this a swipe is needed to see the full length of a rig, so say so. */
@media (max-width: 700px) {
  .rig-hint {
    display: block;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
  }
  .rig-scroll {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 88%, rgba(0,0,0,0.15) 100%);
            mask-image: linear-gradient(to right, #000 0, #000 88%, rgba(0,0,0,0.15) 100%);
  }
  .diagram { padding: 18px 14px 14px; }
}

@media (max-width: 620px) {
  .colophon { flex-direction: column; gap: 8px; }
  /* Below this a two column spec row squeezes the description into a
     column too narrow to read, so label and value stack. */
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .job { grid-template-columns: 1fr; }
  .job .btn { justify-self: start; }
}

@media (max-width: 520px) {
  .shell { padding: 0 20px; }
  section.band { padding: 48px 0; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lede { font-size: 17.5px; }
  .cols-3 { gap: 28px; }
  .cols-2 { gap: 32px; }
  .foot-grid { gap: 26px; }
  .hero-inner { padding-block-start: 44px; }
  .hero-photo { margin-top: 32px; }

  /* Two buttons will not sit side by side at this width, so rather than let
     them stagger, give each the full row. */
  .cta-row { gap: 12px; margin-top: 28px; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
}

/* A 320px phone, or a large accessibility text size, still has to work. */
@media (max-width: 420px) {
  .bar { gap: 10px; }
  .mark-lockup { height: 32px; }
  a.portal { font-size: 13px; padding: 10px; letter-spacing: 0.05em; }
  .nav-toggle { font-size: 13px; padding: 10px; }
  .cred { padding: 14px 14px; }
  .cred dd { font-size: 21px; }
  .btn { padding: 12px 18px; font-size: 15px; }
}

/* A phone held sideways has almost no vertical room; do not spend 74px of it
   on a header that follows the reader down the page. */
@media (max-height: 480px) and (orientation: landscape) {
  header.site { position: static; }
  .hero-inner { padding-block-start: 40px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
