/*
  components.css: pieces that appear on more than one page.

  .vplayer       video with a poster overlay and play button; clicking the
                 overlay hides it and plays the video (site.js, initVideos)
  .testi         testimonials: review summary card + quote carousel
  .carousel      generic looping carousel (site.js, initCarousels);
                 slides visible = CSS custom property --per-view (default 2),
                 --per-view-phone at 767px and below (default 1); set them
                 on the .carousel element to change a page's carousel
  .cta-band      navy "Ready to move freight?" band with a white button
  .faq           FAQ section: title block, accordion panel (native
                 <details>, several can be open), contact card
  .btn-white     white rectangular button used in CTA bands
*/

/* ---------- Video player with overlay ---------- */
.vplayer {
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: #000;
}
.vplayer video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.vplayer__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: center / cover no-repeat;
  cursor: pointer;
}
.vplayer__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}
.vplayer__overlay:hover::after { background: rgba(0, 0, 0, 0.6); }
.vplayer__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  color: #fff;
}
.vplayer__play svg { width: 100%; height: 100%; overflow: visible; fill: currentColor; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.vplayer__play .ring { fill: none; stroke-width: 6; }
.vplayer.is-playing .vplayer__overlay { display: none; }
@media (max-width: 768px) {
  .vplayer__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* ---------- Testimonials ---------- */
.testi { padding: 80px 0 70px; background: #fff; }
.testi__row { padding: var(--row-y) 0; }
.testi__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: 24px;
  align-items: start;
}
.testi__eyebrow { grid-column: 1 / -1; text-align: center; }
.testi__title {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: clamp(28px, 2.4vw, 40px);
  text-align: center;
}
.review-summary {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px 24px;
  border-radius: 12px;
  background: var(--navy);
  color: #f5f5f5;
  text-align: left;
  font-size: 16px;
}
.review-summary > p:first-child { font-size: 19px; line-height: 1.5; }
.review-summary__score { margin-top: auto; padding: 24px 0 12px; font-size: 54px; font-weight: 500; line-height: 1.2; }
.review-summary__score span { margin-left: 6px; font-size: 28px; }
.review-summary__count { font-size: 14px; line-height: 1.6; }
.testi .carousel { grid-column: 2; }
@media (max-width: 980px) {
  .testi__grid { grid-template-columns: minmax(0, 1fr); }
  .review-summary { min-height: 220px; margin-bottom: 24px; }
  .testi .carousel { grid-column: 1; }
}

.quote-card {
  height: 100%;
  min-height: 260px;
  padding: 24px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.7;
}
/* Live pins the name to the bottom of a 212px inner box, not of the card. */
.quote-card__in { display: flex; flex-direction: column; min-height: 212px; }
.quote-card__in > p:first-child { font-size: 17px; line-height: 1.5; }
.quote-card__in > p:last-child { margin-top: auto; padding-top: 16px; font-size: 14px; line-height: 1.6; }
.quote-card strong { color: var(--navy); font-weight: 700; }
.quote-card a { color: #344f6d; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Carousel ---------- */
.carousel { --per-view: 2; position: relative; min-width: 0; padding-bottom: 68px; }
.carousel__viewport {
  width: calc(100% + 24px);
  margin-left: -12px;
  overflow: hidden;
  overflow: clip;
}
.carousel__track { display: flex; will-change: transform; }
.carousel__track.is-animating { transition: transform 200ms ease-in-out; }
.carousel__slide {
  display: flex;
  flex: 0 0 calc(100% / var(--per-view, 2));
  max-width: calc(100% / var(--per-view, 2));
  padding: 0 12px;
}
.carousel__slide > * { flex: 1 1 auto; }
.carousel__arrow {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.carousel__arrow--prev { left: calc(50% - 52px); }
.carousel__arrow--next { left: calc(50% + 8px); }
.carousel__arrow::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 21px;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.carousel__arrow::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 7px;
  height: 7px;
  box-sizing: content-box;
  border-top: 1px solid currentColor;
}
.carousel__arrow--prev::after { left: 10px; border-left: 1px solid currentColor; transform: rotate(-45deg); }
.carousel__arrow--next::after { right: 10px; border-right: 1px solid currentColor; transform: rotate(45deg); }
.carousel__arrow:hover { opacity: 0.6; }
.carousel__arrow:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 767px) {
  .carousel { --per-view: var(--per-view-phone, 1); }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 42px 0; background: var(--navy); }
.cta-band__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.cta-band__text { color: #d7e0ee; font-size: 17px; text-align: left; }
.cta-band__title { margin: 0; padding-bottom: 14px; color: #fff; }
.cta-band__action { text-align: center; }
.cta-band__call { margin-top: 12px; color: #d7e0ee; font-size: 16px; }
.cta-band__call a { color: #fff; }
.cta-band__call strong { font-weight: 700; }
.btn-white {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 4px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7em;
}
@media (max-width: 767px) {
  .cta-band { padding: 32px 0; }
  .cta-band__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cta-band__text { text-align: center; }
}

/* ---------- FAQ ---------- */
.faq {
  --f-navy: #142b46;
  --f-blue: #5182c4;
  --f-ink: #4d5560;
  --f-muted: #5b636d;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sec-pad) 0 calc(var(--sec-pad) + 8px);
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 65%);
  font-family: var(--font);
  text-align: left;
}
.faq::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  z-index: 0;
  width: min(60%, 1000px);
  aspect-ratio: 1000 / 400;
  pointer-events: none;
  background: url("/assets/media/2026/10/c5-services-network-bg-1000.webp") no-repeat right top / 100% auto;
  opacity: .55;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 62% 90% at 76% 16%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 90% at 76% 16%, #000 30%, transparent 78%);
}
.faq__layout {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head panel" "card panel";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 4.4vw, 88px);
  row-gap: clamp(28px, 2.4vw, 40px);
  align-items: start;
}
.faq__head { grid-area: head; }
.faq__eyebrow { margin: 0 0 18px; color: var(--f-muted); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: 3.2px; text-transform: uppercase; }
.faq__h2 { margin: 0 0 16px; color: var(--f-navy); font-family: "Montserrat"; font-size: clamp(34px, 3.05vw, 50px); font-weight: 800; line-height: .98; text-transform: uppercase; }
.faq__h2-a, .faq__h2-b { display: block; }
.faq__h2-b { color: var(--f-blue); }
.faq__lede { max-width: 24em; color: var(--f-ink); font-size: clamp(17px, 1.15vw, 20px); font-weight: 500; line-height: 1.42; text-wrap: pretty; }
.faq__panel {
  grid-area: panel;
  padding: 6px clamp(20px, 2.2vw, 40px);
  border: 1px solid rgba(20, 43, 70, .06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 44px -22px rgba(20,43,70,.3), 0 2px 8px rgba(20,43,70,.06);
}
.faq__item + .faq__item { border-top: 1px solid #e4e9f0; }
.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 22px 0;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:focus-visible { outline: 3px solid var(--f-blue); outline-offset: 2px; }
.faq__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf0f7;
  color: var(--f-navy);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease;
}
.faq__item[open] .faq__num { background: var(--f-navy); color: #fff; }
.faq__title {
  flex: 1;
  min-width: 0;
  padding: 0;
  color: var(--f-navy);
  font-family: "Montserrat";
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: pretty;
  transition: color .2s ease;
}
.faq__q:hover .faq__title { color: var(--f-blue); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #d3dce7;
  border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--f-blue);
  transition: transform .25s ease, background-color .2s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon { border-color: var(--f-blue); }
.faq__item[open] .faq__icon { border-color: var(--f-blue); background: var(--f-blue); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 24px 58px; }
.faq__a p { max-width: 44em; color: var(--f-ink); font-size: 16px; font-weight: 500; line-height: 1.65; }
.faq__tel { color: #4176be; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.faq__contact {
  grid-area: card;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 2.4vw, 40px);
  border-radius: 12px;
  background: var(--f-navy);
  color: #fff;
  box-shadow: 0 12px 30px rgba(20,43,70,.2), 0 2px 6px rgba(20,43,70,.12);
}
.faq__contact-media { position: absolute; inset: 0; z-index: -2; }
.faq__contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.faq__contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(14,32,56,.97) 0%, rgba(14,32,56,.9) 46%, rgba(14,32,56,.6) 100%); }
.faq__contact::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  width: 70%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(62deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 34%, rgba(255,255,255,0) 41%), linear-gradient(62deg, rgba(255,255,255,0) 52%, rgba(139,184,255,.07) 57%, rgba(255,255,255,0) 64%);
}
.faq__contact-title { margin: 0 0 8px; padding: 0; color: #fff; font-family: "Montserrat"; font-size: clamp(20px, 1.4vw, 24px); font-weight: 800; line-height: 1.15; letter-spacing: .3px; text-transform: uppercase; }
.faq__contact-line { max-width: 26em; margin: 0 0 22px; color: #d7e0ee; font-size: 15px; font-weight: 500; line-height: 1.55; }
.faq__contact-list { display: grid; gap: 14px; line-height: 26px; }
.faq__contact-link { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; border-radius: 8px; }
.ficon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color: #fff;
  transition: background-color .2s ease;
}
.ficon svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faq__contact-link:hover .ficon { background: rgba(255,255,255,.16); }
.faq__contact-link:focus-visible { outline: 3px solid var(--f-blue); outline-offset: 4px; }
.faq__contact-text { display: grid; gap: 4px; min-width: 0; }
.faq__contact-label { color: #a9b9cd; font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: 2px; text-transform: uppercase; }
.faq__contact-value { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.faq__contact-link:hover .faq__contact-value { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .faq::after { width: 100%; opacity: .4; }
  .faq__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "panel" "card"; grid-template-rows: auto; }
}
@media (max-width: 600px) {
  .faq__layout { width: auto; margin: 0 20px; }
  .faq__h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .faq__lede { font-size: 17px; line-height: 1.55; }
  .faq__q { gap: 14px; padding: 18px 0; }
  .faq__num { width: 34px; height: 34px; font-size: 12px; }
  .faq__a { padding: 0 0 22px; }
}
@media (min-width: 981px) {
  .faq__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
/* Wide FAQ (design pass 2026-11-19): the layout matches the 1320px content
   width, the question panel gets the larger column so most questions fit on
   one or two lines, and the dispatch contact card fills the left column under
   the title. The title sizes to its column so each line stays on one line. */
.faq--wide .faq__layout { width: min(1320px, 100% - 2 * clamp(20px, 3.6vw, 60px)); max-width: none; }
.faq--wide .faq__head { container-type: inline-size; }
.faq--wide .faq__h2 { font-size: clamp(24px, 7.9cqi, 50px); }
@media (min-width: 981px) { .faq--wide .faq__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
@media (max-width: 600px) {
  .faq--wide .faq__layout { width: auto; margin: 0 20px; }
  .faq--wide .faq__panel { padding: 4px 16px; }
  .faq--wide .faq__q { gap: 12px; }
}
