/* Single service page — single-trucks.php */

.service_inner {
  display: grid;
  /* minmax(0,…), not 1fr: the auto minimum lets the carousel blow the column out. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 50px;
}

/*
 * aspect-ratio, not height:auto — it holds even while an image is loading or
 * when the file is missing, so a broken src cannot collapse the slide and
 * push the copy beside it off screen. The tint reads as a placeholder.
 */
.service_gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 593 / 395;
  object-fit: cover;
  background-color: #f5f5f2;
}

.service_gallery .swiper-button-prev,
.service_gallery .swiper-button-next {
  color: var(--color-green);
}

.service_gallery .swiper-pagination-bullet-active {
  background-color: var(--color-green);
}

.service_eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service_eyebrow::after {
  content: "";
  flex: 1;
  max-width: 90px;
  height: 1px;
  background-color: var(--color-green);
}

.service_body h1 {
  margin: 20px 0;
  color: #000;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.15;
}

.service_desc p {
  margin-bottom: 15px;
  color: #4b4e46;
}

.service_meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
  border-top: 1px solid #e4e4de;
  padding-top: 25px;
}

.service_meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.service_meta-item span:first-child {
  color: #6f7268;
  font-weight: 600;
}

.service_meta-item span:last-child,
.service_meta-item a {
  color: var(--color-dark-green);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  text-align: right;
}

.service_meta-item a {
  border-bottom: 2px solid var(--color-green);
  transition: 0.4s;
}

.service_meta-item a:hover {
  color: var(--color-green);
}

.service_actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.service_back {
  border-bottom: 2px solid var(--color-dark-green);
  padding-bottom: 3px;
  color: var(--color-dark-green);
  font-weight: 600;
  transition: 0.4s;
}

.service_back:hover {
  color: var(--color-green);
  border-color: var(--color-green);
}

/* adaptive */

@media (max-width: 1060px) {
  .service_inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}
