/* CML Global Logistics refinement. Scoped to Logistics templates only. */
.cml-logistics {
  background: var(--bs-white);
  color: var(--primary-color);
  overflow: hidden;
}

.cml-logistics h1,
.cml-logistics h2,
.cml-logistics p,
.cml-logistics figure {
  margin-top: 0;
}

.cml-logistics h1,
.cml-logistics h2 {
  color: inherit;
  letter-spacing: -0.035em;
}

.cml-logistics p,
.cml-logistics .logistics-rich-text {
  color: var(--text-color);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
}

.logistics-hero {
  align-items: flex-end;
  background-color: var(--primary-color);
  background-image:
    var(--logistics-hero-image);
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: clamp(580px, 76vh, 790px);
  overflow: hidden;
  padding: 190px 0 90px;
  position: relative;
}

.logistics-hero::after {
  background: transparent;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.logistics-hero__grid,
.logistics-detail-hero__grid {
  background-image: none;
  background-size: 120px 120px;
  inset: 0;
  mask-image: linear-gradient(90deg, white, transparent 76%);
  pointer-events: none;
  position: absolute;
}

.logistics-hero__inner {
  position: relative;
  z-index: 2;
}

.logistics-eyebrow {
  color: var(--bs-white) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em;
  margin-bottom: 20px !important;
  text-transform: uppercase;
}

.logistics-hero h1 {
  color: var(--bs-white);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  margin-bottom: 28px;
  max-width: 850px;
}

.logistics-hero__lead {
  color: var(--bs-white) !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  line-height: 1.55 !important;
  max-width: 660px;
}

.logistics-hero__index {
  align-items: center;
  bottom: 8px;
  color: var(--bs-white);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 14px;
  letter-spacing: 0.12em;
  position: absolute;
  right: 15px;
}

.logistics-hero__index-line {
  background: #FFFFFF;
  height: 1px;
  width: 82px;
}

.logistics-services {
  background:
    var(--cml-surface);
  padding: clamp(78px, 10vw, 140px) 0;
}

.logistics-services__list {
  display: grid;
  gap: clamp(70px, 9vw, 132px);
}

.logistics-service {
  align-items: center;
  display: grid;
  gap: clamp(38px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.logistics-service:nth-child(even) {
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
}

.logistics-service:nth-child(even) .logistics-service__media {
  grid-column: 2;
  grid-row: 1;
}

.logistics-service:nth-child(even) .logistics-service__content {
  grid-column: 1;
  grid-row: 1;
}

.logistics-service__media {
  background: var(--cml-divider);
  box-shadow: none;
  display: block;
  min-height: 470px;
  overflow: hidden;
  position: relative;
}

.logistics-service__media::after {
  background: transparent;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.logistics-service__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.logistics-service__media:hover .logistics-service__image,
.logistics-service__media:focus .logistics-service__image {
  transform: scale(1.045);
}

.logistics-service__number {
  bottom: 24px;
  color: var(--bs-white);
  font-size: 13px;
  font-weight: 700;
  left: 28px;
  letter-spacing: 0.16em;
  position: absolute;
  z-index: 2;
}

.logistics-service__content {
  max-width: 500px;
}

.logistics-service:nth-child(even) .logistics-service__content {
  justify-self: end;
}

.logistics-service__rule {
  background: var(--cml-accent);
  height: 3px;
  margin-bottom: 28px;
  width: 58px;
}

.logistics-service h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 24px;
}

.logistics-service h2 a {
  color: var(--primary-color);
}

.logistics-service h2 a:hover,
.logistics-service h2 a:focus {
  color: var(--primary-color);
}

.logistics-service__content p {
  margin-bottom: 30px;
}

.logistics-text-link,
.logistics-button {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logistics-text-link {
  border-bottom: 1px solid #5baecc;
  color: var(--primary-color);
  padding-bottom: 7px;
}

.logistics-text-link i,
.logistics-button i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.logistics-text-link:hover i,
.logistics-text-link:focus i,
.logistics-button:hover i,
.logistics-button:focus i {
  transform: translateX(5px);
}

.logistics-detail-hero {
  align-items: flex-end;
  background: #156398;
  display: flex;
  min-height: 500px;
  overflow: hidden;
  padding: 190px 0 80px;
  position: relative;
}

.logistics-detail-hero::after {
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  content: "";
  height: 520px;
  position: absolute;
  right: -130px;
  top: -190px;
  width: 520px;
}

.logistics-detail-hero__inner {
  position: relative;
  z-index: 2;
}

.logistics-detail-hero__back {
  align-items: center;
  color: var(--bs-white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.logistics-detail-hero__back:hover,
.logistics-detail-hero__back:focus {
  color: var(--bs-white);
}

.logistics-detail-hero h1 {
  color: var(--bs-white);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 0;
  max-width: 970px;
}

.logistics-detail-intro {
  padding: clamp(80px, 10vw, 140px) 0;
}

.logistics-detail-intro__layout,
.logistics-why__layout {
  align-items: center;
  display: grid;
  gap: clamp(45px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.logistics-detail-intro__content h2,
.logistics-why__content h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 28px;
}

.logistics-rich-text p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-bottom: 18px;
}

.logistics-detail-intro__media,
.logistics-why__media {
  box-shadow: none;
  margin-bottom: 0;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.logistics-detail-intro__image,
.logistics-why__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.logistics-why {
  background:
    var(--cml-surface);
  padding: clamp(80px, 10vw, 140px) 0;
}

.logistics-why__layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.logistics-why__points {
  border-top: 1px solid #5baecc;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.logistics-why__points li {
  align-items: flex-start;
  border-bottom: 1px solid #5baecc;
  color: var(--primary-color);
  display: flex;
  font-size: 16px;
  gap: 16px;
  line-height: 1.65;
  padding: 18px 0;
}

.logistics-why__check {
  align-items: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--bs-white);
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  margin-top: 1px;
  width: 28px;
}

.logistics-why__check i {
  font-size: 11px;
}

.logistics-detail-cta {
  background: var(--primary-color);
  padding: 55px 0;
}

.logistics-detail-cta__inner {
  display: flex;
  justify-content: center;
}

.logistics-button {
  background: var(--bs-white);
  color: var(--primary-color);
  justify-content: space-between;
  min-width: 210px;
  padding: 18px 26px;
}

.logistics-button:hover,
.logistics-button:focus {
  background: var(--cml-accent);
  color: var(--primary-color);
}

.has-logistics-motion [data-logistics-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-logistics-motion [data-logistics-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 991px) {
  .logistics-hero {
    background-image:
      var(--logistics-hero-image);
    min-height: 650px;
    padding: 160px 0 76px;
  }

  .logistics-service,
  .logistics-service:nth-child(even),
  .logistics-detail-intro__layout,
  .logistics-why__layout {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .logistics-service:nth-child(even) .logistics-service__media,
  .logistics-service:nth-child(even) .logistics-service__content {
    grid-column: 1;
  }

  .logistics-service:nth-child(even) .logistics-service__media {
    grid-row: 1;
  }

  .logistics-service:nth-child(even) .logistics-service__content {
    grid-row: 2;
    justify-self: start;
  }

  .logistics-service__media,
  .logistics-detail-intro__media,
  .logistics-why__media {
    min-height: 430px;
  }

  .logistics-detail-intro__content {
    order: 1;
  }

  .logistics-detail-intro__media {
    order: 2;
  }
}

@media only screen and (max-width: 767px) {
  .logistics-hero {
    min-height: 590px;
    padding-bottom: 60px;
  }

  .logistics-hero h1 {
    font-size: 40px;
    max-width: 350px;
    overflow-wrap: break-word;
  }

  .logistics-hero__lead {
    font-size: 17px !important;
    max-width: 340px;
  }

  .logistics-hero__index {
    display: none;
  }

  .logistics-services {
    padding: 70px 0 84px;
  }

  .logistics-services__list {
    gap: 72px;
  }

  .logistics-service__media,
  .logistics-detail-intro__media,
  .logistics-why__media {
    min-height: 320px;
  }

  .logistics-service h2,
  .logistics-detail-intro__content h2,
  .logistics-why__content h2 {
    font-size: 34px;
  }

  .logistics-detail-hero {
    min-height: 440px;
    padding: 155px 0 60px;
  }

  .logistics-detail-hero h1 {
    font-size: 43px;
  }

  .logistics-detail-intro,
  .logistics-why {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cml-logistics *,
  .cml-logistics *::before,
  .cml-logistics *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
