@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/sofia-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("fonts/sofia-sans-extra-condensed.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --crane: #f6bf1f;
  --navy: #0c1f3d;
  --galvanized: #dce3e7;
  --white: #fff;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --space: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--navy);
  font: 400 1.1875rem/1.55 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  text-wrap: balance;
}
h1 { font-size: clamp(3.5rem, 8.2vw, 8rem); line-height: .86; }
h2 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.875rem, 2.6vw, 2.375rem); line-height: 1; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 0; top: 0; z-index: 1; padding: 1rem; background: var(--white); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-right: var(--gutter);
  background: var(--navy);
  color: var(--white);
}
.site-header .logo { margin-right: auto; padding-left: calc(var(--gutter) - .95rem); }
.logo img { width: 10rem; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.site-header a { padding-block: .5rem; text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; }
.header-phone { font-weight: 700; white-space: nowrap; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: var(--crane);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter);
}
.hero-copy p { max-width: 34rem; }
.hero-copy .offer { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.hero-photo { width: 100%; height: 100%; min-height: 36rem; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.button {
  padding: .9rem 1.5rem;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { text-decoration: underline; }
.button:focus-visible { outline-color: var(--navy); }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem var(--gutter);
  padding: var(--space) var(--gutter);
}
.prose { display: grid; gap: 1.25rem; max-width: 40rem; }

/* 208 flatbeds: 16 x 13 on wide screens, 13 x 16 on phones */
.tonnage { padding: var(--space) var(--gutter); background: var(--navy); color: var(--white); }
.tonnage h2 { max-width: 16ch; }
.tonnage p { max-width: 38rem; margin-top: 1.5rem; }
.trucks {
  aspect-ratio: 768 / 338;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  background: url("truck.svg") 0 0 / calc(100% / 16) calc(100% / 13);
}

/* Services */
.help { padding: var(--space) var(--gutter); background: var(--galvanized); }
.help dl { margin-top: clamp(2rem, 5vw, 4rem); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: .75rem var(--gutter);
  padding-block: 1.75rem;
  border-top: 2px solid var(--navy);
}
.service dt { font: 800 clamp(1.875rem, 2.6vw, 2.375rem)/1 var(--display); }
.service dd { max-width: 40rem; }

/* Contact */
.contact { padding: var(--space) var(--gutter); background: var(--crane); }
.contact p { max-width: 38rem; margin-top: 1.25rem; }
.contact .phone {
  display: inline-block;
  margin-top: 2rem;
  font: 800 clamp(3rem, 17vw, 16rem)/.85 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.contact .phone:hover { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .08em; }
.contact .email { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
.contact .actions { margin-top: 1.75rem; }

/* Booking calendar */
.booking {
  width: min(64rem, 100vw - 2rem);
  max-width: none;
  height: min(52rem, 100dvh - 2rem);
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--navy);
}
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgb(12 31 61 / .8); }
.booking-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--crane);
}
.booking-bar h2 { margin-right: auto; font-size: 2.25rem; }
.booking iframe { flex: 1; width: 100%; min-height: 0; border: 0; }

/* Inner pages */
.page { padding: clamp(3rem, 6vw, 5rem) var(--gutter) var(--space); }
.page h1 { max-width: 18ch; font-size: clamp(3rem, 6.5vw, 6rem); }
.page .intro { max-width: 38rem; margin-top: 1.5rem; }
.article { margin-top: 2.5rem; }
.article h2 { margin-top: 1rem; font-size: 2.25rem; }
.page .button { display: inline-block; }

/* Resources */
.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem var(--gutter);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.shelf h2 { font-size: clamp(2.25rem, 3.5vw, 3.25rem); }
.shelf ul { margin: 0; padding: 0; list-style: none; }
.shelf li { padding-block: 1.5rem; border-top: 2px solid var(--navy); }
.shelf li p { max-width: 40rem; margin-top: .6rem; }

.gauge {
  width: 100%;
  max-width: 40rem;
  margin-top: 2.5rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.gauge caption { padding-bottom: 1rem; text-align: left; }
.gauge th, .gauge td { padding: .6rem 1rem; text-align: right; }
.gauge th:first-child { text-align: left; }
.gauge thead { background: var(--navy); color: var(--white); }
.gauge tbody tr:nth-child(even) { background: var(--galvanized); }

/* Quote form */
.quote { max-width: 60rem; margin-top: 3rem; }
.quote fieldset { min-width: 0; margin: 0 0 3rem; padding: 0; border: 0; }
.quote legend { padding: 0; font: 800 2.25rem/1 var(--display); }
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  margin-top: 1.25rem;
}
.fields label { font-weight: 700; }
.fields .wide { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea, .quote-ready textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin-top: .35rem;
  padding: .6rem .8rem;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1.125rem/1.4 var(--text);
}
.hint { display: block; margin-top: .35rem; font-size: 1rem; font-weight: 400; line-height: 1.4; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.submit p { flex: 1 1 18rem; max-width: 30rem; }
.quote-ready { max-width: 60rem; margin-top: 3rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--crane); }
.quote-ready h2 { font-size: 2.75rem; }
.quote-ready p { margin-top: .75rem; }
.quote-ready .button { margin: 1rem 1rem 0 0; }
.video { width: 100%; max-width: 70rem; aspect-ratio: 16 / 9; margin-top: 2.5rem; border: 0; display: block; background: var(--navy); }
.page .after { margin-top: 1.5rem; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  padding: 2rem var(--gutter);
  background: var(--navy);
  color: var(--white);
  font-size: 1.0625rem;
}
.site-footer p { margin-right: auto; }

@media (max-width: 800px) {
  .hero, .about, .service, .shelf { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { min-height: 0; aspect-ratio: 1; }
  .trucks { aspect-ratio: 624 / 416; background-size: calc(100% / 13) calc(100% / 16); }
}
@media (max-width: 520px) {
  .logo img { width: 7rem; }
  .gauge th, .gauge td { padding-inline: .5rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .site-header { flex-wrap: wrap; row-gap: 0; font-size: 1.0625rem; }
  .site-header nav { order: 1; width: 100%; padding: 0 0 .5rem var(--gutter); }
  .site-header .logo { padding-left: .6rem; }
}
