/* =========================================================
   Transportation — page-specific styles
   ========================================================= */

.page-main {
  min-height: 100vh;
  padding-top: calc(var(--banner-h) + var(--nav-h));
  background: var(--epx-dark);
}

.page-hero {
  padding: 100px 0 120px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.page-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--epx-red);
  flex-shrink: 0;
}

.page-title {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 28px;
  max-width: 800px;
}

.page-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

.page-blurb {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.65;
}

/* ---------- Split hero: copy left, image stack right ---------- */
.page-hero-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-hero-text { max-width: 620px; }

.hero-images {
  position: relative;
  height: 520px;
}

.hero-img-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.6);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img--1 {
  width: 72%;
  height: 72%;
  bottom: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-1.5deg);
  transition: transform 500ms var(--ease);
}
.hero-img--2 {
  width: 58%;
  height: 58%;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(1.8deg);
  transition: transform 500ms var(--ease) 60ms;
}
.hero-img--3 {
  width: 46%;
  height: 44%;
  bottom: 20%;
  right: 8%;
  z-index: 3;
  transform: rotate(-0.8deg);
  box-shadow: 0 12px 36px -10px rgba(0,0,0,0.65);
  transition: transform 500ms var(--ease) 120ms;
}

.hero-images:hover .hero-img--1 { transform: rotate(-2.5deg) translateY(-4px); }
.hero-images:hover .hero-img--2 { transform: rotate(2.8deg) translateY(-6px); }
.hero-images:hover .hero-img--3 { transform: rotate(-1.4deg) translateY(-8px); }

.page-hero-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--epx-red);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.page-hero-cta:hover {
  background: #c41a20;
  box-shadow: 0 10px 28px -8px rgba(225,31,38,0.4);
  transform: translateY(-1px);
}

/* =========================================================
   BY THE NUMBERS — non-numeric status card (02)
   ========================================================= */
.stat-card--status .stat-head-row { margin-bottom: 22px; }
.stat-status-value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--epx-dark);
  margin-bottom: 24px;
}
.stat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--epx-green);
  box-shadow: 0 0 0 0 rgba(110,175,71,0.5);
  animation: stat-pulse-green 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes stat-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(110,175,71,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(110,175,71,0); }
}

/* =========================================================
   SHARED SECTION SCAFFOLD — solutions, fleet, connectivity
   ========================================================= */
.tr-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.tr-head {
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px 80px;
  align-items: end;
}
.tr-eyebrow {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-red);
  margin-bottom: -8px;
}
.tr-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--epx-red);
  box-shadow: 0 0 0 0 rgba(225,31,38,0.5);
  animation: stat-pulse 1.6s ease-out infinite;
}
.tr-title {
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--epx-dark);
  text-wrap: balance;
}
.tr-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(17,17,17,0.42);
}
.tr-blurb {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(17,17,17,0.6);
  max-width: 44ch;
  margin: 0;
  padding-bottom: 8px;
  text-wrap: pretty;
}

.tr-head--dark .tr-title { color: #fff; }
.tr-head--dark .tr-title em { color: rgba(255,255,255,0.42); }
.tr-head--dark .tr-blurb { color: rgba(255,255,255,0.6); }

/* =========================================================
   SPECIALIZED TRANSPORTATION SOLUTIONS — light, calibrated strip
   ========================================================= */
.tr-solutions {
  position: relative;
  background: #fff;
  color: var(--epx-dark);
  padding: 160px 0 180px;
  overflow: hidden;

  --tr-cold: #2f6ea6;
  --tr-ambient: #a9722b;
  --tr-clinical: var(--epx-green);
  --tr-reverse: var(--epx-red);
}

.tr-cond-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
}

.tr-cond {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 34px 34px;
  border-left: 1px solid rgba(17,17,17,0.09);
  border-top: 3px solid var(--accent);
  transition: background-color 300ms var(--ease);
}
.tr-cond:first-child { border-left: none; }
.tr-cond:hover { background: rgba(17,17,17,0.02); }

.tr-cond--cold {
  --accent: var(--tr-cold);
  --accent-soft: rgba(47,110,166,0.10);
  --accent-line: rgba(47,110,166,0.28);
}
.tr-cond--ambient {
  --accent: var(--tr-ambient);
  --accent-soft: rgba(169,114,43,0.10);
  --accent-line: rgba(169,114,43,0.28);
}
.tr-cond--clinical {
  --accent: var(--tr-clinical);
  --accent-soft: rgba(110,175,71,0.10);
  --accent-line: rgba(110,175,71,0.28);
}
.tr-cond--reverse {
  --accent: var(--tr-reverse);
  --accent-soft: rgba(225,31,38,0.09);
  --accent-line: rgba(225,31,38,0.26);
}

.tr-cond-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 6px;
}
.tr-cond-icon svg { width: 26px; height: 26px; }

.tr-cond-range {
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tr-cond-range--word { letter-spacing: -0.02em; font-size: clamp(24px, 2.1vw, 32px); }
.tr-cond-unit {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 2px;
  vertical-align: baseline;
}

.tr-cond-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--epx-dark);
  margin: 0;
  text-wrap: balance;
}
.tr-cond-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(17,17,17,0.62);
  margin: 0;
  text-wrap: pretty;
}
.tr-cond-tag {
  align-self: flex-start;
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(17,17,17,0.55);
  padding: 7px 12px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
}

/* =========================================================
   OUR FLEET — dark section, feature banner + spec cards
   ========================================================= */
.tr-fleet {
  position: relative;
  background: var(--epx-dark);
  color: #fff;
  padding: 160px 0 180px;
  overflow: hidden;
}
.tr-fleet::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(225,31,38,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 88%, rgba(110,175,71,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.tr-fleet-feature {
  position: relative;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  isolation: isolate;
}
.tr-fleet-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tr-fleet-feature-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.35) 45%, rgba(17,17,17,0.05) 75%);
}
.tr-fleet-feature-copy {
  position: absolute;
  left: 40px;
  bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.tr-fleet-feature-num {
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tr-fleet-feature-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
  max-width: 26ch;
}

.tr-fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tr-fleet-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  transition: border-color 280ms var(--ease), transform 280ms var(--ease);
}
.tr-fleet-card:hover {
  border-color: rgba(225,31,38,0.35);
  transform: translateY(-3px);
}

.tr-fleet-photo {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.tr-fleet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tr-fleet-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tr-fleet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tr-fleet-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.tr-fleet-qty {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--epx-red);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.tr-fleet-use {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.58);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   REGIONAL CONNECTIVITY — light section, three-hub rail
   ========================================================= */
.tr-connectivity {
  position: relative;
  background: #fff;
  color: var(--epx-dark);
  padding: 160px 0 180px;
  overflow: hidden;
}

.tr-hub-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
}

.tr-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px 36px 40px;
  border-left: 1px solid rgba(17,17,17,0.09);
  border-top: 3px solid var(--accent);
  transition: background-color 300ms var(--ease);
}
.tr-hub:first-child { border-left: none; }
.tr-hub:hover { background: rgba(17,17,17,0.02); }

.tr-hub--eg { --accent: var(--epx-red); }
.tr-hub--ae { --accent: #6b6b6b; }
.tr-hub--sa { --accent: var(--epx-green); }

.tr-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,0.05);
  border: 1px solid rgba(17,17,17,0.10);
  color: var(--accent);
}
.tr-hub-icon svg { width: 24px; height: 24px; }

.tr-hub-flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(17,17,17,0.12);
  margin-top: 4px;
}
.tr-hub-flags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tr-hub-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--epx-dark);
  margin: 6px 0 0;
  text-wrap: balance;
}
.tr-hub-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17,17,17,0.62);
  margin: 0;
  text-wrap: pretty;
}
.tr-hub-text strong {
  color: var(--epx-dark);
  font-weight: 600;
}
.tr-hub-status {
  margin-top: auto;
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--epx-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tr-hub-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tr-hub-status--soon { color: rgba(17,17,17,0.5); }
.tr-hub-status--soon::before { box-shadow: none; }

/* =========================================================
   SUSTAINABILITY — EcoVadis badge + three-card grid
   ========================================================= */
.sust-grid--three {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}
.sust-grid--three .sust-card { min-height: 264px; }

.tr-ecovadis-badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110,175,71,0.3);
  background: rgba(110,175,71,0.08);
  color: var(--epx-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: fit-content;
}
.tr-ecovadis-badge svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   CALL TO ACTION
   ========================================================= */
.svc-cta {
  background: var(--epx-dark);
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.svc-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.svc-cta-title {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
}
.svc-cta-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
}
.svc-cta-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
}
.svc-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}
.cta-btn--primary {
  background: var(--epx-red);
  color: #fff;
  width: 100%;
  justify-content: center;
}
.cta-btn--primary:hover {
  background: #c41a20;
  box-shadow: 0 10px 28px -8px rgba(225,31,38,0.45);
  transform: translateY(-1px);
}
.cta-btn--outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  width: 100%;
  justify-content: center;
}
.cta-btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .tr-cond-strip { grid-template-columns: repeat(2, 1fr); }
  .tr-cond:nth-child(odd) { border-left: none; }

  .tr-fleet-grid { grid-template-columns: repeat(2, 1fr); }

  .tr-hub-rail { grid-template-columns: 1fr; }
  .tr-hub { border-left: none; }
}

@media (max-width: 1080px) {
  .page-hero-inner--split { grid-template-columns: 1fr; gap: 48px; }
  .hero-images { height: 380px; }

  .tr-solutions,
  .tr-fleet,
  .tr-connectivity { padding: 120px 0 140px; }
  .tr-inner { padding: 0 32px; }
  .tr-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }

  .tr-fleet-feature { height: 320px; }

  .svc-cta { padding: 100px 0; }
  .svc-cta-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 32px; }
  .svc-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-btn { width: auto; }
}

@media (max-width: 768px) {
  .page-hero { padding: 64px 0 80px; }
  .page-hero-inner { padding: 0 24px; }
  .hero-images { height: 300px; }

  .tr-solutions,
  .tr-fleet,
  .tr-connectivity { padding: 90px 0 110px; }
  .tr-inner { padding: 0 24px; }

  .tr-cond-strip { grid-template-columns: 1fr; border-radius: 20px; }
  .tr-cond { padding: 30px 24px 28px; border-left: none; }

  .tr-fleet-feature { height: 240px; border-radius: 18px; }
  .tr-fleet-feature-copy { left: 24px; bottom: 20px; gap: 12px; }
  .tr-fleet-grid { grid-template-columns: 1fr; }

  .tr-hub-rail { border-radius: 20px; }
  .tr-hub { padding: 32px 24px 32px; }

  .sust-grid--three { grid-template-columns: 1fr; }

  .svc-cta { padding: 80px 0; }
  .svc-cta-inner { padding: 0 24px; }
  .svc-cta-actions { flex-direction: column; align-self: stretch; }
  .cta-btn { width: 100%; }
}

.sust-card--photo {
  padding: 14px 14px 24px;
  gap: 18px;
}
.sust-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17,17,17,0.06);
}
.sust-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(0.45);
  transition: transform 640ms var(--ease), filter 420ms var(--ease);
}
.sust-card--photo:hover .sust-media img {
  transform: scale(1.07);
  filter: saturate(1);
}
.sust-media-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,0.30) 100%);
  transition: opacity 420ms var(--ease);
}
.sust-card--photo:hover .sust-media-veil { opacity: 0.35; }
.sust-card--photo .sust-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 8px 18px -10px rgba(17,17,17,0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 380ms var(--ease);
}
.sust-card--photo:hover .sust-icon { transform: translateY(-2px); }
.sust-card--photo .sust-icon svg { width: 28px; height: 28px; }
.sust-card--photo .sust-body { padding: 0 12px; }
.sust-card--photo .sust-tag { margin-left: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sust-media img,
  .sust-card--photo:hover .sust-media img,
  .sust-card--photo:hover .sust-icon { transform: none; transition: none; }
}
