/* ==========================================================================
   D III Transport — global stylesheet
   Brand palette:
     maroon    #8c0800   PRIMARY brand color (header, key bands)
     gold      #f8ae36   PRIMARY accent (CTAs, links, highlights)
     charcoal  #32373c   secondary website accent only — not a brand color
     ink       #222222   body text

   Hover states darken the base color with a brightness filter rather than
   introducing extra tints, so the palette stays at exactly two brand colors.
   ========================================================================== */

:root {
  --maroon: #8c0800;
  --maroon-dark: #6b0600;
  --gold: #f8ae36;
  --charcoal: #32373c;
  --charcoal-light: #414750;
  --ink: #222222;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f7f7f8;
  --white: #ffffff;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { filter: brightness(1.25); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Screen-reader-only text (used for the skip link and icon labels) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--maroon);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--maroon);
  border-color: var(--gold);
}
.btn-primary:hover {
  filter: brightness(0.93);
  color: var(--maroon);
}

/* Solid maroon button — used for the third hero action. */
.btn-maroon {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.btn-maroon:hover {
  filter: brightness(1.3);
  color: var(--white);
}

/* Gold background with white text — used specifically for the hero's
   "Get a Quote" button per explicit design direction. Note: this is a low
   -contrast combination (~1.9:1, under the 4.5:1 accessibility minimum for
   normal text) — kept as requested, flagged here for future reference. */
.btn-gold-white {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold-white:hover {
  filter: brightness(0.93);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--maroon);
}

.btn-lg { padding: 17px 40px; font-size: 16px; }

/* ------------------------------------------------------------ utility bar */
.utility-bar {
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  flex-wrap: wrap;
}
.utility-bar a { color: var(--maroon); }
.utility-bar a:hover { filter: brightness(1.25); }

.utility-announce { margin: 0; }
.utility-announce strong { color: var(--maroon); }
.utility-announce a { text-decoration: underline; margin-left: 4px; }

.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.utility-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.utility-hours { white-space: nowrap; }
.utility-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}
.utility-bar .social { display: flex; align-items: center; gap: 14px; }
.utility-bar .social a { display: flex; color: var(--muted); }
.utility-bar .social a:hover { color: var(--maroon); filter: none; }

/* --------------------------------------------------------------- header -- */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 128px;
}

/* Logo lockup. Source file is only 76x43 natively — displaying it at 72px
   tall is a ~1.7x upscale, so it will look soft, especially on Retina
   displays. See README "Assets needed" for a higher-res replacement.
   flex-shrink: 0 keeps its rendered size fixed regardless of how much
   room the rest of the header has — it will never stretch or squeeze. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px;
  border-radius: var(--radius);
  width: 48px;
  height: 44px;
}
/* Three explicit lines instead of a Unicode glyph, sized to fill the
   button's interior rather than sit small and centered within it. */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
}

/* The nav itself never shrinks or wraps its text — see the .nav-compact
   rules below and js/main.js, which measure whether it actually fits and
   switch to the hamburger menu instead of letting anything wrap. */
.site-nav { margin-left: auto; flex-shrink: 0; }
.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav .nav-cta a {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 13px 34px;
  border-radius: var(--radius);
  border-bottom: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav .nav-cta a:hover { filter: brightness(0.93); color: var(--white); }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  /* Real jobsite photo, darkened so the white/gold hero text stays readable. */
  background:
    linear-gradient(rgba(20, 10, 8, 0.55), rgba(20, 10, 8, 0.55)),
    url("/images/hero-truck.jpg");
  background-size: cover;
  background-position: center 40%;
  color: var(--white);
  text-align: left;
  padding: 130px 0 120px;
}
.hero h1 {
  max-width: 900px;
  margin: 0 0 1.4em;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}
.hero-actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

/* ------------------------------------------------------------ stats band -- */
.stats {
  background: var(--charcoal);
  color: var(--white);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
  text-align: center;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- sections -- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--charcoal); color: rgba(255, 255, 255, 0.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
}
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------- difference card -- */
.difference-card {
  /* Full width of .wrap -- same container the header uses, so this spans
     exactly from the logo's left edge to the nav's right edge. */
  padding: 48px;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.difference-card h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.difference-card p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------------------------------------------------------------- about -- */
/* Text stays aligned with every other section's .wrap content edge (same
   formula .wrap itself resolves to: centered up to --wrap, then 24px
   padding); the image takes all remaining space with no padding on its
   outer side, so it bleeds flush to the actual viewport edge. */
.split-bleed {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split-bleed-right { padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.split-bleed-left { padding-right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.split-text {
  flex: 1 1 0;
  min-width: 0;
  max-width: 536px;
}
.split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
}
.split-bleed .media-photo {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
/* Placeholder visual block — replace with a real photo when assets arrive. */
.media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.media-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
.media-photo-about { object-position: 60% center; }
.media-photo-what-we-do { object-position: 40% center; }

/* -------------------------------------------------------------- clients -- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client-grid li {
  background: var(--white);
  list-style: none;
  padding: 22px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}
.client-grid { margin: 0; padding: 0; }

/* --------------------------------------------------------------- values -- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.value {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}
.value h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.value .value-tagline {
  color: var(--gold);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.6em;
}
.value p { font-size: 16px; }

/* ------------------------------------------------------------ management -- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.member h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.member .role {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.member .contact-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon);
  border-bottom: 1px solid transparent;
}
.member .contact-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------- cta band -- */
.cta-band {
  background: var(--gold);
  color: var(--maroon);
  text-align: center;
  padding: 68px 0;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  margin-bottom: 0.4em;
}
.cta-band p { max-width: 620px; margin: 0 auto 1.8em; font-weight: 600; }
.cta-band .btn {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.cta-band .btn:hover { filter: brightness(1.3); color: var(--white); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 62px 0 0;
  font-size: 15.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 46px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ----------------------------------------------------------- stub pages -- */
.stub {
  padding: 110px 0;
  text-align: center;
}
.stub h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }
.stub p { color: var(--muted); max-width: 560px; margin: 0 auto 1.6em; }

/* ------------------------------------------------------------ form page -- */
.form-page { padding: 100px 0 120px; text-align: center; }
.form-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.form-page > .wrap > p { max-width: 620px; margin: 0 auto 40px; color: var(--muted); }

.site-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.site-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-form input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}
.site-form input:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(140, 8, 0, 0.12);
}
.site-form button { align-self: center; margin-top: 10px; }

/* Address autocomplete dropdown (js/grindings.js). Wraps the address
   label's input; positioned relative so the suggestion list can sit
   directly below it regardless of where the field falls in the form. */
.address-autocomplete { position: relative; width: 100%; }
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
}
.address-suggestions:empty { display: none; }
.address-suggestions li {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  cursor: pointer;
}
.address-suggestions li:hover,
.address-suggestions li:focus {
  background: var(--bg-soft);
  color: var(--maroon);
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1000px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------- nav overflow mode --
   Unlike the rest of this file, this isn't gated by a viewport media query.
   js/main.js measures whether the nav's natural (never-shrunk, never-wrapped)
   width actually fits the header, and adds/removes .nav-compact on
   .site-header accordingly — so the hamburger appears exactly when the nav
   would otherwise run out of room, at any viewport width, not just below a
   guessed breakpoint. */
.site-header.nav-compact .wrap { position: relative; }
.site-header.nav-compact .nav-toggle { display: flex; }
.site-header.nav-compact .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 24px 24px;
}
.site-header.nav-compact .site-nav.is-open { display: block; }
.site-header.nav-compact .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.site-header.nav-compact .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header.nav-compact .site-nav a { display: block; padding: 14px 0; }
.site-header.nav-compact .site-nav .nav-cta {
  border-bottom: none;
  margin-top: 14px;
}
.site-header.nav-compact .site-nav .nav-cta a { text-align: center; }

@media (max-width: 780px) {
  .utility-bar { padding-top: 14px; padding-bottom: 8px; }
  .utility-bar .wrap { row-gap: 6px; }
  .utility-announce { width: 100%; text-align: center; }
  .utility-right { width: 100%; justify-content: center; }
  .site-header .wrap { min-height: 84px; }
  .brand img { height: 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { padding: 12px 24px; font-size: 13px; text-align: center; }
  .hero { padding: 88px 0 78px; }
  .section { padding: 62px 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .split-bleed {
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    padding-left: 0;
    padding-right: 0;
  }
  .split-text {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }
  .split-bleed .media-photo { flex: none; width: 100%; }
  .values { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
