/* Barney Trucking temp site. Mobile-first: every layout is intrinsic
   (flex-wrap / auto-fit grid), so it works at 375px with no breakpoints. */
/* Self-hosted Barlow (SIL OFL, fonts/OFL-LICENSE.txt). Loading from Google Fonts
   sends every visitor's IP to Google without consent, which EU courts have ruled
   unlawful, so the font files are served from this site. font-display: optional
   keeps a slow first load on the fallback font instead of re-flowing the page
   when the font arrives (Lighthouse CLS 0.17 on Careers). */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: optional; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: optional; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: optional; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: optional; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: optional; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #0E2A47;
  --blue: #1D4F91;
  --slate: #22364F;
  --amber: #F5A623;
  --ground: #F4F5F7;
  --line: #DDE2E8;
  --ink: #1B2430;
  --muted: #4A5565;
  --on-dark: #D5DDE7;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Barlow, system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.1; }
p, ul { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.topbar { background: var(--navy); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0 20px; justify-content: space-between; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.topbar a.hiring { color: var(--amber); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--navy); letter-spacing: .5px; }
.brand-name small { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }
.nav a { padding: 11px 10px; font-weight: 600; text-decoration: none; color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #E3961A; color: var(--navy); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.nav .btn { margin-left: 4px; min-height: 44px; padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.hero { background: var(--slate); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-media { flex: 1 1 320px; min-width: 0; }
/* Photos keep their own shape: the truck shots are 2.4:1 and cropping them to a
   fixed frame cuts off trailers and tanks. */
.hero-media img { width: 100%; height: auto; border-radius: 6px; }
.hero-media img.portrait { max-width: 420px; margin: 0 auto; }
.hero h1 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; }
.hero p { color: var(--on-dark); font-size: 19px; max-width: 600px; }
.hero a:not(.btn) { color: #fff; font-weight: 700; }
/* Homepage: a separate path for shippers and for drivers */
.paths { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 4px; }
.path { display: flex; flex-direction: column; gap: 8px; }
.path-label { color: var(--on-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.eyebrow { color: var(--amber); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.kicker { color: var(--blue); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.section { padding-top: 56px; padding-bottom: 64px; }
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue h2 { color: #fff; }
.band-blue .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.band-blue p { color: #DCE6F3; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 46px); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h2, .card h3 { font-family: var(--display); font-weight: 700; font-size: 30px; }
.card p { color: var(--muted); }
.card .grow { flex-grow: 1; }
.more { font-weight: 700; padding: 10px 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--blue); line-height: 1.1; }
.stat span { color: var(--muted); }
.photo { width: 100%; height: auto; border-radius: 6px; background: #3A5272; }
/* Award graphics differ in shape (3:2, 1:1): same-height frame, shown whole */
.photo-contain { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border: 1px solid var(--line); }
/* Newmatic-Truck.jpg is a 7:1 side view of the whole rig on white: show it whole, never cropped */
.photo-rig { aspect-ratio: 1024 / 428; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 8px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); }
.cols-2 { columns: 2; column-gap: 24px; padding-left: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.split > .main { flex: 2 1 360px; min-width: 0; }
.split > .side { flex: 1 1 260px; min-width: 0; align-self: flex-start; }
.head-row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.apply { text-decoration: none; border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 6px; color: var(--navy); }
.apply b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.apply.primary { background: var(--amber); }
.apply.outline { background: #fff; border: 2px solid var(--navy); }
.apply.plain { background: #fff; border: 1px solid var(--line); }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; }
.benefits li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy); }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { position: relative; min-height: 340px; border-radius: 6px; overflow: hidden; grid-column: 1 / -1; background: var(--line); }
.big-phone { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--navy); text-decoration: none; line-height: 1.2; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.site-footer .grid { padding-top: 48px; padding-bottom: 32px; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .label { font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.site-footer .brand-word { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; }
.legal { border-top: 1px solid #2A4566; }
.legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
.legal a, .legal button { display: inline-block; padding: 6px 0; }
.link-btn { background: none; border: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--amber); }

/* Keyboard focus must always be visible (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Click-to-load embeds: nothing from YouTube/Google loads until the visitor asks */
.embed-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff; background: var(--navy); }
.map .embed-facade { background: var(--slate); }
.embed-facade p { color: var(--on-dark); font-size: 14px; max-width: 420px; }
.embed-facade a { color: #fff; }
.embed-facade .btn { cursor: pointer; font: inherit; font-weight: 700; }

/* Cookie consent: Accept and Reject are equal in size and prominence */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 3px solid var(--amber); box-shadow: 0 -6px 24px rgba(14, 42, 71, .2); }
.consent .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.consent p { flex: 1 1 320px; min-width: 0; font-size: 15px; color: var(--ink); }
.consent .btn-row { flex: 0 0 auto; }
.consent .btn { cursor: pointer; font: inherit; font-weight: 700; min-width: 120px; justify-content: center; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }

/* Long-form legal pages */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose table { margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--ground); }

/* Website forms (rate request, driver lead) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 20px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy); font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #8A94A3; border-radius: 4px; padding: 10px 12px; min-height: 46px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: 14px; min-height: 0; }
.form-status { font-weight: 600; }
.form-status.ok { color: #067647; }
.form-status.err { color: #B42318; }
.form-note { color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { cursor: pointer; font: inherit; font-weight: 700; align-self: flex-start; }
form .btn[disabled] { opacity: .6; cursor: progress; }
/* Reserve the Turnstile widget's space (65px) so the button doesn't jump when it appears */
.turnstile-slot { min-height: 65px; }

/* Mobile review (2026-10-28) */
/* The header's "Request a rate" button wrapped onto its own row on phones and duplicates
   the hero's button right below it, so hide it on narrow screens. */
@media (max-width: 599px) { .nav .btn { display: none; } }
/* Footer link lists: full 44px tap rows instead of 26px */
.site-footer .col a { display: block; padding: 9px 0; }
.site-footer .col { gap: 2px; }
.legal .nowrap { white-space: nowrap; }
/* Small uppercase labels read better on phones at 14px */
.kicker, .path-label, .site-footer .label { font-size: 14px; }
