/* Parts & Services presentation. The shared navigation and service copy stay intact. */
.service-jumps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: -24px;
  margin-bottom: 25px;
  padding: 8px;
  border: 1px solid #e2ebe5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(9, 39, 34, .11);
  font-size: 12px;
}

.service-jumps a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 5px;
  color: #20594a;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.service-jumps a:hover,
.service-jumps a:focus-visible {
  background: #e8f4ed;
  color: #0b654b;
  text-decoration: none;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 530px;
  margin-top: 18px;
  margin-bottom: 25px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #0a292c;
  box-shadow: 0 10px 30px rgba(8, 38, 33, .09);
  scroll-margin-top: 112px;
}

.service-detail > div:first-child {
  position: relative;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  background: #dceae5;
}

.service-detail .large-number {
  position: absolute;
  z-index: 2;
  top: 25px;
  left: 29px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(69px, 7vw, 105px);
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .26);
}

.service-detail .detail-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.service-detail .detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail .detail-image figcaption {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 20px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 3px;
  background: rgba(5, 29, 31, .72);
  color: #e3f2e9;
  font-size: 10px;
  letter-spacing: .04em;
}

.service-detail > div:last-child {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(29px, 3vw, 45px);
  overflow: hidden;
  background: radial-gradient(circle at 92% 8%, rgba(39, 128, 105, .27), transparent 45%), #09272a;
  color: #f4faf6;
}

.service-detail > div:last-child::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background: url('/assets/cog-pattern.svg') right -105px top -95px / 490px auto no-repeat;
}

.service-detail .eyebrow {
  margin-bottom: 14px;
  color: #8be0bd;
  font-size: 10px;
  letter-spacing: .17em;
}

.service-detail h2 {
  color: #f5faf5;
  font-family: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  font-size: clamp(29px, 2.7vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.service-detail .lede {
  margin-top: 16px;
  color: #c3d9d0;
  font-size: 14px;
  line-height: 1.5;
}

.service-detail .capabilities {
  margin: 19px 0 20px;
}

.service-detail .capabilities li {
  padding: 9px 0 9px 20px;
  border-color: rgba(222, 242, 233, .19);
  color: #e2eee8;
  font-size: 12px;
  line-height: 1.43;
}

.service-detail .capabilities li::before { color: #91e0b9; }

.service-detail .text-link {
  align-self: flex-start;
  gap: 20px;
  margin-top: auto;
  padding: 9px 0 6px;
  border-color: #8cd7b5;
  color: #aaebcb;
  font-size: 12px;
  font-weight: 700;
}

.service-detail .text-link:hover { color: #fff; }

#automation-parts > div:first-child { grid-column: 2; grid-row: 1; background: #e5f0eb; }
#automation-parts > div:last-child { grid-column: 1; grid-row: 1; background: #e5f1eb; color: #173e35; }
#automation-parts > div:last-child::before { opacity: .27; }
#automation-parts .large-number { color: #2b7a66; text-shadow: none; }
#automation-parts .detail-image.electrical {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5f0eb;
  background-image: linear-gradient(rgba(22, 101, 77, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 101, 77, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}

#automation-parts .detail-image.electrical img {
  width: min(62%, 310px);
  height: auto;
  max-height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(12, 55, 45, .19));
}

#automation-parts .detail-image figcaption { background: rgba(255, 255, 255, .78); color: #48655b; }
#automation-parts .eyebrow { color: #17775c; }
#automation-parts h2 { color: #173d34; }
#automation-parts .lede { color: #3d5d53; }
#automation-parts .capabilities li { border-color: #bdd5c8; color: #25483e; }
#automation-parts .capabilities li::before { color: #168e6d; }
#automation-parts .text-link { border-color: #168e6d; color: #146b52; }
#automation-parts .text-link:hover { color: #073e31; }

#engineering > div:last-child { background: radial-gradient(circle at 92% 8%, rgba(54, 148, 114, .26), transparent 45%), #103538; }

.process {
  background-color: #09272a;
  background-image: linear-gradient(90deg, rgba(9, 39, 42, .98), rgba(9, 39, 42, .88)), url('/assets/cog-pattern.svg');
  background-position: center, right center;
  background-size: cover, 520px auto;
  background-repeat: no-repeat;
  color: #f4faf6;
}

.process .eyebrow { color: #8be0bd; }
.process .lede { color: #d9e9df; }
.process p:not(.eyebrow):not(.lede) { color: #bbd1c7; }

@media (max-width: 1050px) {
  .service-detail > div:last-child { padding: 30px; }
  .service-detail h2 { font-size: 31px; }
}

@media (max-width: 720px) {
  .service-jumps {
    display: flex;
    flex-direction: row;
    gap: 3px;
    margin-top: -12px;
    margin-bottom: 17px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .service-jumps::-webkit-scrollbar { display: none; }
  .service-jumps a { flex: none; min-height: 42px; padding: 9px 12px; font-size: 11px; white-space: nowrap; }
  .service-detail { grid-template-columns: 1fr; min-height: 0; margin-top: 14px; margin-bottom: 20px; }
  .service-detail > div:first-child,
  #automation-parts > div:first-child { grid-column: auto; grid-row: auto; order: 0; min-height: 240px; }
  .service-detail > div:last-child,
  #automation-parts > div:last-child { grid-column: auto; grid-row: auto; order: 1; padding: 26px 23px 28px; }
  .service-detail .large-number { top: 17px; left: 18px; font-size: 68px; }
  .service-detail h2 { font-size: clamp(29px, 7vw, 35px); }
  .service-detail .lede { font-size: 13px; }
  .service-detail .capabilities li { font-size: 12px; }
  #automation-parts .detail-image.electrical img { width: min(66%, 259px); max-height: 65%; }
  .process { padding-top: 50px; padding-bottom: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-jumps a { transition: none; }
}
