/* ==========================================================================
   USA TRANS GROUP INC — site styles
   Direction: road sign + bill of lading. Flat colour, thin rules, numbered
   sections. The logo is the only glossy object on the page.
   ========================================================================== */

/* Metric-matched stand-ins for the heading face. They are used while the web
   font is loading, or when it is blocked, so the header and the headings keep
   their width. Local fonts only: nothing is downloaded for them. */
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold");
  font-weight: 600 700;
  size-adjust: 86%;
}

@font-face {
  font-family: "Barlow Condensed Fallback Wide";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 600 700;
  size-adjust: 70%;
}

:root {
  --navy: #0A1B33;
  --navy-raise: #0F2545;
  --red: #B3202E;
  --red-dark: #8E1823;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --ink: #0A1B33;
  --text: #223043;
  --steel: #5B6777;
  --line: #DAD6CC;
  --field-border: #7A8595;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C5CEDB;
  --navy-line: rgba(255, 255, 255, 0.18);

  --radius: 6px;
  --radius-sm: 4px;
  --gutter: 20px;
  --wrap: 1200px;
  --header-h: 68px;
  --focus-ring: #0A1B33;

  --font-head: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback Wide", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-h: 80px;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  /* Same colour as the footer: on a short page in a tall window the space
     under the footer does not show as a light strip. */
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
  text-decoration-thickness: 2px;
}

/* A phone number is never split across two lines. */
a[href^="tel:"] {
  white-space: nowrap;
}

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

address {
  font-style: normal;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-raise);
  border-color: var(--navy-raise);
  color: var(--white);
}

.btn-line {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   Number plates (USDOT / MC)
   -------------------------------------------------------------------------- */

.plates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plate {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px 8px;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3px var(--navy);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plates--lg .plate {
  padding: 13px 20px 12px;
  font-size: clamp(1.5rem, 5.4vw, 2rem);
}

.plates--sm .plate {
  padding: 7px 10px 6px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--navy-line);
  --focus-ring: #FFFFFF;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
  padding: 8px 0;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 50px;
}

.header-phone {
  order: 2;
  margin-left: auto;
  padding: 10px 4px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}

.header-cta {
  display: none;
}

.nav-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.15s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  order: 4;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  border-bottom: 3px solid var(--red);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  border-top: 1px solid var(--navy-line);
}

.site-nav a:not(.btn) {
  display: block;
  padding: 15px var(--gutter);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  background: var(--navy-raise);
}

.site-nav .nav-cta-item {
  padding: 18px var(--gutter) 22px;
}

.site-nav .nav-cta-item .btn {
  width: 100%;
}

/* No JavaScript: the menu is simply shown under the bar, and the header
   scrolls away with the page instead of covering the screen. */
@media (scripting: none) {
  .site-header {
    position: static;
  }

  .header-bar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex: 1 0 100%;
    max-height: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    border-bottom: 0;
  }
}

@media (max-width: 359px) {
  .header-bar {
    gap: 10px;
  }

  .brand img {
    height: 44px;
  }

  .header-phone {
    font-size: 1.125rem;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 1200px) {
  .header-bar {
    flex-wrap: nowrap;
    gap: 22px;
  }

  .brand img {
    height: 60px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    order: 0;
    flex: 0 1 auto;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a:not(.btn) {
    padding: 10px 10px;
    font-size: 1.0625rem;
    letter-spacing: 0.07em;
    color: var(--on-navy-soft);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .site-nav a:not(.btn):hover {
    background: transparent;
    color: var(--white);
    border-bottom-color: var(--red);
  }

  .site-nav .nav-cta-item {
    display: none;
  }

  .header-phone {
    order: 0;
    margin-left: 6px;
    font-size: 1.1875rem;
  }

  .header-cta {
    display: inline-flex;
    order: 0;
    min-height: 44px;
    padding: 8px 18px;
    font-size: 1.0625rem;
    white-space: nowrap;
  }
}

@media (min-width: 1280px) {
  .site-nav a:not(.btn) {
    padding: 10px 13px;
  }

  .header-phone {
    margin-left: 12px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  --focus-ring: #FFFFFF;
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding-block: 48px 52px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 3px;
  background: var(--red);
}

/* Narrow phones: the two parts of the hero eyebrow sit on two full lines
   instead of breaking in the middle of a phrase. */
@media (max-width: 479px) {
  .eyebrow {
    align-items: flex-start;
  }

  .eyebrow::before {
    margin-top: 0.55em;
  }

  .eyebrow-text > span {
    display: block;
  }

  .eyebrow .eyebrow-dot {
    display: none;
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3.375rem, 15.5vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.hero h1 span {
  display: block;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--on-navy-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero-intro strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  flex: 1 1 220px;
}

.hero .plates {
  margin-top: 30px;
}

/* Waybill card */

.waybill {
  background: var(--navy-raise);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.waybill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.waybill-head strong {
  color: var(--white);
  font-weight: 700;
}

.waybill dl {
  margin: 0;
}

.waybill-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.24);
}

.waybill dt {
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.waybill dd {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
}

.route {
  padding: 18px 20px 20px;
}

.route svg {
  width: 100%;
  height: auto;
}

.route-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-stops li:nth-child(2) {
  text-align: center;
}

.route-stops li:nth-child(3) {
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .route-line {
    animation: route-run 2.4s linear infinite;
  }

  @keyframes route-run {
    to {
      stroke-dashoffset: -28;
    }
  }
}

/* Lane markings under the hero */

.lane {
  position: relative;
  height: 44px;
  background: var(--navy-raise);
  border-top: 2px solid rgba(255, 255, 255, 0.34);
}

.lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0 44px, transparent 44px 84px);
  background-size: 84px 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .lane::before {
    animation: lane-run 3.2s linear infinite;
  }

  @keyframes lane-run {
    to {
      background-position: -84px 0;
    }
  }
}

@media (min-width: 640px) {
  .waybill-row {
    grid-template-columns: 9.5rem 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
    padding-block: 76px 80px;
  }

  .hero h1 {
    font-size: clamp(4.75rem, 8.2vw, 7rem);
  }

  .lane {
    height: 56px;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(60px, 9vw, 108px);
  border-top: 1px solid var(--line);
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
  color: var(--on-navy-soft);
  border-top: 0;
  --focus-ring: #FFFFFF;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-no {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-no b {
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-no::after {
  content: "";
  flex: 0 1 140px;
  height: 1px;
  background: var(--line);
}

.section h2 {
  font-size: clamp(2.25rem, 6.4vw, 3.625rem);
}

.section-intro {
  margin: 18px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy .section-no {
  color: var(--on-navy-soft);
}

.section--navy .section-no b {
  color: var(--white);
}

.section--navy .section-no::after {
  background: var(--navy-line);
}

.section--navy a {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   01 Services
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.card-no {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.625rem;
  line-height: 1.05;
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.manifest {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.manifest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.manifest-head h3 {
  font-size: 1.375rem;
  letter-spacing: 0.08em;
}

.manifest-head p {
  margin: 0;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manifest-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 -1px -1px 0;
  padding: 0;
  list-style: none;
  counter-reset: manifest;
}

.manifest-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 600;
  counter-increment: manifest;
}

.manifest-list li::before {
  content: "0" counter(manifest);
  flex: none;
  min-width: 1.75rem;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifest-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .manifest-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1120px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Four cards in a row: room for two heading lines, so the paragraphs
     start on the same line in every card. */
  .card h3 {
    min-height: 2.1em;
  }
}

/* --------------------------------------------------------------------------
   02 About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 36px;
}

.about-copy p {
  max-width: 38em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .section-intro {
  margin-bottom: 1.1em;
}

.logo-plaque {
  margin: 0;
  padding: clamp(24px, 6vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-plaque picture {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.logo-plaque img {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 44px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 18px 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat:nth-child(odd) {
  border-left: 0;
}

.stat:nth-child(-n + 2) {
  border-top: 0;
}

.stat dt {
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 11vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.source-note {
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat,
  .stat:nth-child(odd) {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 26px 24px 22px;
  }

  .stat:first-child {
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   03 Why us
   -------------------------------------------------------------------------- */

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.line-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 4px 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.line-code {
  grid-row: span 2;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.line-item h3 {
  font-size: 1.625rem;
  line-height: 1.05;
}

.line-item p {
  margin: 6px 0 0;
  max-width: 40em;
}

@media (min-width: 900px) {
  .line-item {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: baseline;
    padding: 28px 0;
  }

  .line-code {
    grid-row: auto;
    font-size: 2.25rem;
  }

  .line-item h3 {
    font-size: 1.75rem;
  }

  .line-item p {
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   04 Safety and compliance
   -------------------------------------------------------------------------- */

.safety-grid {
  display: grid;
  gap: 40px;
}

.safety-copy p {
  max-width: 36em;
}

.checks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--navy-line);
}

.checks li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--navy-line);
  color: var(--white);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.25em;
  width: 16px;
  height: 8px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: translateY(-50%) rotate(-45deg);
}

.safety-note {
  margin: 22px 0 0;
  font-size: 1rem;
}

.record {
  background: var(--navy-raise);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.record-head {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.record-title {
  margin: 0 0 14px;
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.record dl {
  margin: 0;
}

.record-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.24);
}

.record-row:last-child {
  border-bottom: 0;
}

.record dt {
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.record dd {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .record-row {
    grid-template-columns: 11rem 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 960px) {
  .safety-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   05 Drivers
   -------------------------------------------------------------------------- */

.notice {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius);
}

.notice .section-no {
  margin-bottom: 14px;
}

.notice h2 {
  font-size: clamp(2rem, 5.6vw, 3rem);
}

.notice p {
  max-width: 40em;
  margin: 16px 0 0;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notice-actions .btn {
  flex: 1 1 240px;
}

@media (min-width: 960px) {
  .notice {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .notice-actions {
    flex-direction: column;
  }

  .notice-actions .btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   06 Contact (home page) and the Request a quote page (/contact)
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 36px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-actions .btn {
  flex: 1 1 220px;
}

.contact-list {
  margin: 28px 0 0;
  border-top: 2px solid var(--navy);
}

.contact-list--card {
  margin: 0;
  padding: 6px clamp(20px, 4.5vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.contact-list--card .contact-row:last-child {
  border-bottom: 0;
}

.page-lead {
  max-width: 36em;
  margin: 20px 0 0;
  color: var(--on-navy-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.contact-page {
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.contact-page-grid {
  display: grid;
  gap: 40px;
}

.contact-aside h2 {
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  line-height: 1.05;
}

.contact-aside .contact-list {
  margin-top: 20px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (min-width: 480px) {
  .contact-row {
    grid-template-columns: 6.5rem 1fr;
    gap: 12px;
  }
}

.contact-list dt {
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list dd a {
  color: var(--ink);
}

.contact-list dd a:hover {
  color: var(--red);
}

.form-card {
  padding: clamp(20px, 4.5vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field label,
.field .label {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field .req {
  color: var(--red);
}

.field .opt {
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6B7686;
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--steel);
  font-size: 0.875rem;
  line-height: 1.45;
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-sm);
}

.consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.consent label {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.consent-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.consent-title span {
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: none;
}

.consent-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--steel);
  font-size: 0.875rem;
  line-height: 1.45;
}

.consent a {
  color: var(--ink);
  font-weight: 600;
}

.consent a:hover {
  color: var(--red);
}

/* Wide enough for a whole address on one line: do not break it mid-word.
   The <wbr> break points inside the addresses are for narrow screens only
   (they would still break the line inside "nowrap"). The same goes for the
   addresses written out in the legal pages (a.url). */
@media (min-width: 640px) {
  .consent a,
  .legal-doc a.url {
    white-space: nowrap;
  }

  .consent a wbr,
  .legal-doc a.url wbr {
    display: none;
  }
}

.form-actions {
  margin-top: 22px;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin: 16px 0 0;
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.form-status p {
  margin: 0;
}

.form-status p + p {
  margin-top: 8px;
}

.form-status a {
  color: var(--ink);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field--wide {
    grid-column: 1 / -1;
  }

  .form-actions .btn {
    width: auto;
    min-width: 240px;
  }

  .contact-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }

  .contact-page-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 56px;
    align-items: start;
  }

  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-soft);
  font-size: 1rem;
  --focus-ring: #FFFFFF;
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: 56px 40px;
}

.footer-brand img {
  width: auto;
  height: 72px;
}

/* The legal name under the logo is plain text, not a second wordmark. */
.footer-name {
  margin: 20px 0 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.footer-brand p {
  margin-bottom: 16px;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 4px;
}

.footer-col a,
.footer-col address {
  display: inline-block;
  padding: 5px 0;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}

.footer-col address {
  color: var(--on-navy-soft);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--navy-line);
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  padding-block: 20px 26px;
  font-size: 0.9375rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--white);
}

/* Phones: each line breaks at its separator, never inside the company name
   or between the two links. */
@media (max-width: 639px) {
  .footer-bottom p {
    text-wrap: balance;
  }

  .footer-bottom .footer-sep {
    display: none;
  }

  .footer-bottom .footer-links,
  .footer-bottom .footer-part {
    display: block;
  }
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: 48px;
    padding-block: 72px 48px;
  }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--navy);
  color: var(--white);
  --focus-ring: #FFFFFF;
}

.page-head .wrap {
  padding-block: 44px 40px;
}

.page-head h1 {
  color: var(--white);
  font-size: clamp(2.75rem, 10vw, 4.75rem);
  line-height: 0.95;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-navy-soft);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-meta strong {
  color: var(--white);
  font-weight: 600;
}

.legal {
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.legal-doc {
  max-width: 52rem;
  padding: clamp(22px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.legal-doc > :first-child {
  margin-top: 0;
}

.legal-doc > :last-child {
  margin-bottom: 0;
}

.legal-doc h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.625rem, 4.6vw, 2rem);
  line-height: 1.08;
  text-wrap: wrap;
}

.legal-doc h2 .num {
  flex: none;
  color: var(--red);
  letter-spacing: 0.06em;
}

.legal-doc h3 {
  margin: 26px 0 8px;
  font-size: 1.3125rem;
  letter-spacing: 0.05em;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.legal-doc li {
  margin-bottom: 0.4em;
}

.legal-doc li::marker {
  color: var(--red);
}

.legal-intro {
  font-size: 1.125rem;
}

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.callout p {
  margin: 0;
  font-weight: 600;
  line-height: 1.55;
}

.callout p + p {
  margin-top: 10px;
}

.callout-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal-doc .tiles {
  padding-left: 0;
}

.tiles li {
  margin: 0;
  padding: 14px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.tiles li:first-child {
  border-top: 0;
}

.tiles strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-msg {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px dashed var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-block {
  margin: 14px 0 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}

.contact-block strong {
  color: var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 52rem;
  margin-top: 28px;
}

/* "On this page": a list of the sections. Shown only where there is room
   for a second column; on smaller screens the document starts right away. */
.legal-toc {
  display: none;
}

.legal-toc-title {
  margin: 0 0 12px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.legal-toc li {
  border-top: 1px solid var(--line);
}

.legal-toc a {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.legal-toc .num {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles li:nth-child(2) {
    border-top: 0;
  }

  .tiles li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

/* Wide screens: the document on the left, the section list on the right.
   The two columns together fill the same width as the page heading. */
@media (min-width: 1100px) {
  .legal .wrap {
    display: grid;
    grid-template-columns: minmax(0, 52rem) minmax(0, 280px);
    column-gap: 48px;
    justify-content: space-between;
    align-items: start;
  }

  .legal-doc {
    grid-column: 1;
    grid-row: 1;
  }

  .legal-nav {
    grid-column: 1;
    grid-row: 2;
  }

  .legal-toc {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding: 22px 22px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius);
  }
}

@media (min-width: 1100px) and (scripting: none) {
  .legal-toc {
    top: 24px;
  }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  background: var(--navy);
  color: var(--on-navy-soft);
  --focus-ring: #FFFFFF;
}

.notfound .wrap {
  padding-block: clamp(64px, 12vw, 128px);
}

.notfound p.notfound-code {
  max-width: none;
  margin: 0 0 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(5rem, 24vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.notfound h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.notfound p {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: 1.125rem;
}

.notfound .hero-actions {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Motion and print. Nothing on the pages is hidden until the visitor
   scrolls: a full-page screenshot shows every block.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .lane,
  .nav-toggle,
  .hero-actions,
  .notice-actions,
  .contact-actions,
  .legal-toc {
    display: none !important;
  }
}
