/* ==========================================================================
   Tri State Intermodal, Inc. — site styles
   Plain CSS, no build step. Colors and fonts follow the original WordPress
   theme (primary #8c1f24, Ubuntu / Poppins / Titillium Web).
   ========================================================================== */

:root {
  --red: #8c1f24;
  --red-dark: #6f171b;
  --red-band: #9f464c;
  --ink: #222222;
  --text: #333333;
  --muted: #8f8f8f;
  --line: #e6e6e6;
  --bg-soft: #f7f7f7;
  --dark: #222222;
  --dark-2: #333333;
  --white: #ffffff;

  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-alt: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Titillium Web", var(--font);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 110px;
  --radius: 2px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }

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

.sr-only {
  position: absolute !important;
  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: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; background: var(--white); color: var(--ink);
  font-weight: 500; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 100px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--white); }
.center { text-align: center; }

/* ---------- Headings ---------- */
.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 68px; height: 3px;
  margin: 26px auto 0;
  background: var(--red);
}
.section--dark .section-title { color: var(--white); }
.section--dark .section-title::after { background: var(--white); }

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-alt);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 38px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-alt);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--outline-light { color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--red); }
.btn--light { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.logo { display: block; flex-shrink: 0; }
.logo img { height: 78px; width: auto; }
.logo__dark { display: none; }

.nav__list { display: flex; align-items: stretch; gap: clamp(18px, 3vw, 46px); height: var(--header-h); }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a {
  position: relative;
  display: flex; align-items: center; height: 100%;
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}
.nav__list > li > a::after {
  content: "";
  position: absolute; left: -14px; right: -14px; bottom: -1px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav__list > li > a:hover::after,
.nav__list > li > a[aria-current="page"]::after,
.nav__list > li > a.is-section::after { transform: scaleX(1); }
.nav__list > li > a:hover { color: inherit; }

.nav__sub {
  position: absolute; top: 100%; left: -24px;
  min-width: 210px;
  padding: 10px 0;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--red);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.has-sub:hover > .nav__sub,
.has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: 10px 24px;
  font-size: 0.95rem; font-weight: 500; text-transform: uppercase;
  color: var(--ink);
}
.nav__sub a:hover,
.nav__sub a[aria-current="page"] { color: var(--red); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  background: transparent; border: 0;
  color: inherit;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Fixed header once the visitor scrolls past the hero top */
.site-header.is-fixed {
  position: fixed;
  --header-h: 80px;
  background: var(--white);
  color: var(--ink);
  border-bottom-color: transparent;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  animation: header-in 0.35s var(--ease);
}
.site-header.is-fixed .logo img { height: 54px; }
.site-header.is-fixed .logo__light { display: none; }
.site-header.is-fixed .logo__dark { display: block; }
.site-header.is-fixed .nav__list > li > a::after { background: var(--red); }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-fixed { animation: none; } }

@media (max-width: 959px) {
  :root { --header-h: 84px; }
  .logo img { height: 58px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #1b1b1b;
    color: var(--white);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; height: auto; padding: 8px 0 16px; }
  .nav__list > li { display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav__list > li:last-child { border-bottom: 0; }
  .nav__list > li > a { display: block; height: auto; padding: 16px var(--gutter); }
  .nav__list > li > a::after { display: none; }
  .nav__list > li > a[aria-current="page"],
  .nav__list > li > a.is-section { color: #e7a1a5; }
  .nav__sub {
    position: static; min-width: 0;
    padding: 0 0 10px;
    background: transparent; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__sub a { padding: 8px calc(var(--gutter) + 20px); color: rgba(255, 255, 255, 0.75); }
  .nav__sub a:hover,
  .nav__sub a[aria-current="page"] { color: #e7a1a5; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: 640px;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  background: #1d2227 url("../img/hero-port.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.3) 100%);
}
.hero__title {
  font-size: clamp(1.75rem, 0.9rem + 4.2vw, 4.375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero__title span { display: block; }
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { animation: rise 0.8s var(--ease) both; }
  .hero__title span:nth-child(2) { animation-delay: 0.15s; }
  .hero__title span:nth-child(3) { animation-delay: 0.3s; }
  .hero__actions { animation: rise 0.8s 0.5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Inner-page hero (title + breadcrumb)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 10vw, 126px)) var(--gutter) clamp(70px, 9vw, 128px);
  background: var(--red-dark) center / cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 20, 20, 0.45);
}
.page-hero--about { background-image: url("../img/about-hero.jpg"); }
.page-hero--contact { background-image: url("../img/contact-hero.jpg"); }
.page-hero--news { background-image: url("../img/news-hero.jpg"); }
.page-hero--careers { background-image: url("../img/fleet-trucks.jpg"); }
.page-hero--drivers { background-image: url("../img/fleet-trucks.jpg"); }

.page-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px;
  margin-top: 14px;
  font-size: 1.0625rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 12px; opacity: 0.8; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   Home: intro
   ========================================================================== */
.intro h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.intro p {
  max-width: 980px;
  margin: 0 auto 14px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
}
.intro__badge { width: 300px; margin: 36px auto 0; }

/* ==========================================================================
   Home: services
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service { display: flex; flex-direction: column; }
.service__media {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 8 / 7;
  overflow: hidden;
  background: #2a2a2a;
  color: var(--white);
}
.service__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.18);
}
.service:hover .service__media img { transform: scale(1.05); }
.service__title {
  position: relative; z-index: 1;
  padding: 0 20px;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.service__list {
  padding: 26px 24px 36px;
  text-align: center;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
}
.service__list li + li { margin-top: 12px; }

@media (max-width: 899px) {
  .services { grid-template-columns: 1fr; }
  .service__media { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Home: FAQ split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
}
.split__content { padding: clamp(56px, 8vw, 110px) clamp(var(--gutter), 3vw, 48px); }
.split__media { position: relative; min-height: 360px; }
.split__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split__title {
  margin-bottom: clamp(32px, 4vw, 56px);
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
}

.faq { display: grid; gap: 20px; }
.faq__item {
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px clamp(20px, 3vw, 40px);
  font-family: var(--font-alt);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--red);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer {
  padding: 0 clamp(20px, 3vw, 40px) 30px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #111;
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer { animation: fade-down 0.3s var(--ease); }
}
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Home: client logos (auto-scrolling strip)
   ========================================================================== */
.clients__viewport {
  margin-top: clamp(40px, 6vw, 70px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.clients__viewport:hover .clients__track { animation-play-state: paused; }
.clients__set { display: flex; }
/* Each set is at least 120% of the viewport wide, so the loop never shows a gap */
.clients__item {
  position: relative;
  display: grid; place-items: center;
  width: max(220px, 20vw);
  height: 170px;
  padding: 10px clamp(28px, 3vw, 48px);
}
.clients__item::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 1px; height: 28px;
  background: #d5d5d5;
  transform: translateY(-50%);
}
.clients__item img { width: auto; max-width: min(100%, 250px); max-height: 120px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__track { width: auto; animation: none; justify-content: center; }
  .clients__set { flex-wrap: wrap; justify-content: center; }
  .clients__set[aria-hidden="true"] { display: none; }
  .clients__item { width: 260px; }
}

/* ==========================================================================
   Home: testimonials
   ========================================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(48px, 7vw, 80px);
}
.testimonial { text-align: center; }
.testimonial__mark { width: 40px; height: 40px; margin: 0 auto 22px; color: #6d6d6d; }
.testimonial blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--white);
}
.testimonial__avatar {
  width: 132px; height: 132px;
  margin: 36px auto 22px;
  padding: 12px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--white);
  object-fit: contain;
}
.testimonial__name { display: block; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.testimonial__role { display: block; margin-top: 6px; font-size: 0.95rem; font-weight: 500; color: #8a8a8a; }

@media (max-width: 799px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Call-to-action band
   ========================================================================== */
.cta { background: var(--red-band); color: var(--white); padding-block: clamp(44px, 6vw, 62px); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  flex-wrap: wrap;
}
.cta__title {
  font-family: var(--font-alt);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
}
.cta .btn { padding-inline: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: #a3a3a3; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px clamp(32px, 5vw, 80px);
  padding-block: clamp(60px, 8vw, 90px);
}
.site-footer h2 {
  margin-bottom: 26px;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.footer-links li:last-child { border-bottom: 0; }
.footer-links a {
  display: block;
  padding: 13px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-address { font-style: normal; font-size: 1.0625rem; font-weight: 500; line-height: 1.95; }
.footer-address a:hover { color: var(--white); }

.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s, border-color 0.2s;
}
.social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.social svg { width: 18px; height: 18px; }

.site-footer__bottom {
  padding-block: 28px;
  border-top: 1px solid #2f2f2f;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #8b8b8b;
}
.site-footer__bottom a { color: #c2454c; }
.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 799px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark-2);
}
.about__media { position: relative; min-height: 420px; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__content {
  padding: clamp(56px, 8vw, 110px) clamp(var(--gutter), 3vw, 40px);
  color: var(--white);
}
.about__content h2,
.about__content .about__kicker {
  margin: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
}
.about__kicker + h2 { margin-top: 28px; }
.about__content p {
  margin-top: 30px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.75;
}
.about__content h2 + p { margin-top: 36px; }

@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.map { background: #e9e9e9; }
.map iframe { width: 100%; height: clamp(320px, 40vw, 440px); border: 0; }

.contact-head { margin-bottom: clamp(36px, 5vw, 56px); }
.contact-head h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1400px;
  margin-inline: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-card {
  padding: clamp(40px, 5vw, 60px) 24px;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-card + .contact-card { border-left: 1px solid var(--line); }
.contact-card__icon { width: 46px; height: 46px; margin: 0 auto 22px; color: var(--red); }
.contact-card h3 { margin-bottom: 14px; font-size: 1.35rem; font-weight: 500; }
.contact-card p a:hover { color: var(--red); }
.contact-card__link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  word-break: break-word;
}
.contact-card__link:hover { color: var(--red-dark); text-decoration: underline; }

@media (max-width: 799px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card + .contact-card { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Careers / news cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 520px));
  justify-content: center;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 60px);
}
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow);
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 36px; }
.card__meta { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.card__title { margin: 8px 0 12px; font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.card__title a:hover { color: var(--red); }
.card__text { color: var(--text); }
.card__body .btn { align-self: flex-start; margin-top: 24px; }

/* ==========================================================================
   Article (Drivers post)
   ========================================================================== */
.article { max-width: 860px; margin-inline: auto; }
.article__media { margin-bottom: 32px; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
}
.article__meta a { color: var(--red); }
.article h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 500; color: var(--ink); }
.article h3 { margin: 30px 0 12px; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.article p + p { margin-top: 16px; }
.article ul + p { margin-top: 26px; }
.article p a { color: var(--red); font-weight: 500; }
.article p a:hover { text-decoration: underline; }
.article ul { display: grid; gap: 10px; }
.article ul li { position: relative; padding-left: 26px; }
.article ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 10px;
  background: var(--red);
}
.article__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   404
   ========================================================================== */
.notfound p { max-width: 560px; margin: 0 auto; font-size: 1.15rem; }
.notfound .article__actions { justify-content: center; }

/* ==========================================================================
   Scroll reveal (progressive enhancement — CSS scroll-driven animations)
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta, .map, .clients { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; background: none; color: #000; }
  .hero::before, .page-hero::before { display: none; }
}
