/* V and J Transportation LLC
   Color tokens: white base, brilliant blue for action, navy ink from the logo. */
:root {
  --white: #ffffff;
  --paper: #f4f7fe;
  --sky: #e2eaff;
  --line: #d6dff2;
  --ink: #0b1a3a;
  --steel: #46557a;
  --blue: #1652f0;
  --blue-deep: #0c3cc2;
  --blue-soft: #8fb0ff;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --max: 1440px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 3.75rem;
  --space-7: 5.25rem;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Shared text pieces */
.small-heading {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  max-width: 34em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem 0.7rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.button:active { transform: scale(0.97); }
.button-light { background: var(--white); color: var(--blue); }
.button-light:hover { background: var(--sky); }
.button-outline { border-color: var(--white); color: var(--white); }
.button-outline:hover { background: rgba(255, 255, 255, 0.14); }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: var(--space-4);
}

.brand { display: block; width: 172px; }
.brand img { width: 100%; }

.brand-note {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--steel);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.1rem 0.45rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--blue); border-bottom-color: currentColor; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.icon-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.icon-circle svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.header-cta:hover .icon-circle { background: var(--blue); border-color: var(--blue); color: var(--white); }

.nav-toggle { display: none; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter) var(--space-6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: var(--space-3);
}

.hero-copy {
  grid-column: 1 / 6;
  grid-row: 1;
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-right: var(--space-2);
}

.hero-title {
  font-size: clamp(3.25rem, 6.4vw, 6.75rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-left: -0.05em;
}
.hero-title span { display: block; }

.hero-sub {
  margin-top: var(--space-4);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  max-width: 24em;
}

.hero-photo {
  grid-column: 6 / 13;
  grid-row: 1 / 3;
  margin-right: calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--sky);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 60% 60%;
}

.lanes {
  grid-column: 1 / 5;
  grid-row: 2;
  align-self: end;
  padding: var(--space-5) var(--space-4) var(--space-2) 0;
}
.lane-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 0.7rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.lane-route { display: inline-flex; align-items: center; gap: 0.5rem; }
.lane-arrow {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: var(--steel); stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.lane-type { color: var(--steel); white-space: nowrap; }

.hero-card {
  grid-column: 5 / 8;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 2;
  margin-bottom: -4.5rem;
  padding: var(--space-4);
  background: var(--sky);
}
.card-icon {
  width: 30px; height: 30px;
  margin-bottom: var(--space-3);
  fill: none; stroke: var(--blue); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.hero-card p {
  font-size: 0.9375rem;
  color: var(--steel);
  max-width: 22em;
}

.hero-clock {
  grid-column: 8 / 12;
  grid-row: 3;
  align-self: end;
  padding-left: var(--space-3);
}
.clock-time {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: clamp(2.75rem, 4.2vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.clock-ampm {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 0.4rem;
}
.clock-meta {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--steel);
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--steel);
  flex: none;
}
.status.is-open .status-dot { background: #12a150; box-shadow: 0 0 0 4px rgba(18, 161, 80, 0.16); }
.status.is-closed .status-dot { background: #c2410c; }

.hero-small-photo {
  grid-column: 1 / 4;
  grid-row: 3;
  margin-top: var(--space-4);
  align-self: end;
  overflow: hidden;
}
.hero-small-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.badge {
  grid-column: 12 / 13;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  position: relative;
  width: 112px;
  aspect-ratio: 1;
}
.badge svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; fill: var(--ink); }
.badge-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Who we are */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-3);
  row-gap: var(--space-5);
  border-top: 1px solid var(--line);
}
.about-photo {
  grid-column: 1 / 8;
  margin-left: calc(var(--gutter) * -1);
}
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 50%; }
.about-copy { grid-column: 8 / 13; align-self: center; }
.about-copy .section-title { margin-bottom: var(--space-4); }
.about-copy .lead { margin-bottom: var(--space-3); font-weight: 500; }
.about-copy p + p { margin-top: var(--space-2); color: var(--steel); }
.about-copy p:not(.lead) { max-width: 36em; }

/* Services */
.services {
  background: var(--paper);
  padding: var(--space-7) 0;
}
.services-head,
.service-groups {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.services-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-6);
}
.services-head .section-title { grid-column: 1 / 6; }
.services-head .lead { grid-column: 7 / 13; color: var(--steel); }

.service-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 901px) {
  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-6);
  }
}
.group-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--ink);
}
.service-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.service-list svg {
  width: 34px; height: 34px;
  fill: none; stroke: var(--blue); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-list h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.35rem; }
.service-list p { color: var(--steel); max-width: 30em; }
.group-note { margin-top: var(--space-3); font-weight: 500; }
.group-note a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.group-note a:hover { color: var(--blue-deep); }

/* Careers: the one solid brand-blue moment */
.careers {
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.careers-copy {
  padding: var(--space-7) var(--gutter);
  max-width: calc(var(--max) / 2);
  justify-self: end;
  width: 100%;
}
.careers-title {
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}
.careers .lead { margin-bottom: var(--space-4); }
.check-list li {
  position: relative;
  padding: 0.7rem 0 0.55rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.careers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
/* The source photo is only 612px wide, so show it near its real size instead of stretching it. */
.careers-photo {
  display: flex;
  align-items: center;
  padding: var(--space-6) var(--gutter) var(--space-6) 0;
}
.careers-photo img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Contact */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
}
.contact-head { margin-bottom: var(--space-6); }
.contact-head .section-title { margin-bottom: var(--space-3); }
.contact-head .lead { color: var(--steel); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.contact-block { border-top: 2px solid var(--ink); padding-top: var(--space-3); }

.people li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 0;
}
.initials {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-weight: 700;
  padding-top: 0.15em;
}
.person { display: flex; flex-direction: column; line-height: 1.3; }
.person-name { font-size: 1.25rem; font-weight: 600; }
.person-phone {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 3px;
}
.person-phone:hover { color: var(--blue-deep); }

.reach li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-2);
  padding: 0.7rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
}
.reach-label { color: var(--steel); font-size: 0.9375rem; }
.reach a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.reach a:hover { color: var(--blue); }

.hours { width: 100%; border-collapse: collapse; }
.hours th,
.hours td {
  text-align: left;
  padding: 0.7rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours th { font-weight: 400; color: var(--steel); padding-right: var(--space-2); }
.hours td { font-weight: 600; text-align: right; white-space: nowrap; }
.contact-block .status { margin-top: var(--space-3); }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
  color: var(--steel);
}
.site-footer img { width: 88px; }
.footer-legal { margin-left: auto; }

/* Page-load: one orchestrated reveal of the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span,
  .hero-sub,
  .hero-photo,
  .hero-card {
    animation: rise 0.9s var(--ease-out) both;
  }
  .hero-title span:nth-child(2) { animation-delay: 0.08s; }
  .hero-sub { animation-delay: 0.2s; }
  .hero-photo { animation-name: reveal; animation-duration: 1.1s; animation-delay: 0.1s; }
  .hero-card { animation-delay: 0.45s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge svg { animation: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

/* Tablet */
@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .brand-note { display: none; }

  .badge { display: none; }

  .hero-copy { grid-column: 1 / 7; }
  .hero-photo { grid-column: 7 / 13; grid-row: 1 / 3; }
  .lanes { grid-column: 1 / 7; grid-row: 2; padding-right: var(--space-4); }
  .hero-card {
    grid-column: 7 / 13;
    grid-row: 3;
    align-self: start;
    margin: -3rem 0 0 var(--space-4);
  }
  .hero-small-photo {
    grid-column: 1 / 4;
    grid-row: 3;
    align-self: start;
    margin-top: var(--space-4);
  }
  .hero-clock {
    grid-column: 4 / 7;
    grid-row: 3;
    align-self: start;
    padding: var(--space-4) 0 0 var(--space-3);
  }
}

/* Small tablet and phone */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    column-gap: var(--space-2);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
  .brand { width: 128px; }
  .header-cta {
    grid-column: 3;
    grid-row: 1;
    min-height: 44px;
  }
  .header-cta .icon-circle { display: none; }

  .nav-toggle {
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0 0.25rem;
    background: none;
    border: 0;
    color: var(--ink);
    font: 600 1rem var(--font);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s;
  }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) 0;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 0.9rem 0 0.75rem; font-size: 1.125rem; border: 0; }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    padding-top: 0;
    padding-bottom: var(--space-5);
  }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; }
  .hero-card { order: 3; }
  .lanes { order: 4; }
  .hero-clock { order: 5; }
  .hero-small-photo { order: 6; }
  .hero-copy { grid-column: 1 / -1; grid-row: auto; padding: var(--space-4) 0 var(--space-4); }
  .hero-photo { grid-column: 1 / -1; grid-row: auto; margin: 0 calc(var(--gutter) * -1); }
  .hero-photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-card {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: -3.5rem 0 0 var(--space-4);
  }
  .lanes { grid-column: 1 / -1; grid-row: auto; padding: var(--space-5) 0 0; }
  .hero-clock { grid-column: 1 / 2; grid-row: auto; align-self: end; padding: var(--space-4) 0 0; }
  .hero-small-photo { grid-column: 2 / 3; grid-row: auto; margin-top: var(--space-5); }

  .about { grid-template-columns: 1fr; row-gap: var(--space-4); padding-top: var(--space-5); padding-bottom: var(--space-6); }
  .about-photo,
  .about-copy { grid-column: 1 / -1; }
  .about-photo { margin-right: calc(var(--gutter) * -1); }

  .services { padding: var(--space-6) 0; }
  .services-head { grid-template-columns: 1fr; row-gap: var(--space-3); margin-bottom: var(--space-5); }
  .services-head .section-title,
  .services-head .lead { grid-column: 1 / -1; }
  .service-groups { grid-template-columns: 1fr; gap: var(--space-5); }

  .careers { grid-template-columns: 1fr; }
  .careers-copy { padding: var(--space-6) var(--gutter); max-width: none; }
  .careers-photo { order: -1; padding: 0; }
  .careers-photo img { max-width: none; }

  .contact { padding: var(--space-6) var(--gutter); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }

  .footer-legal { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .hero { grid-template-columns: 1fr; }
  .hero-clock,
  .hero-small-photo { grid-column: 1 / -1; }
  .hero-small-photo { margin-top: var(--space-4); }
  .hero-card { margin-left: var(--space-2); }
  .lane-list li { flex-wrap: wrap; row-gap: 0; }
  .careers-actions .button { flex: 1 1 100%; }
}
