html {
  scroll-padding-top: 3rem;
}

#contact {
  scroll-margin-top: -1rem;
}

.services-section {
  background: #0d1b2a;
  color: #d5dbcf;
  padding: clamp(2rem, 3vw, 3rem) 1.5rem clamp(3rem, 5vw, 4rem);
}

.services-heading {
  max-width: 1280px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
  color: #fa6c04;
  font-size: .9rem;
  font-weight: 800;
}

.services-eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
}

.services-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.45;
}

.services-intro {
  max-width: 48rem;
  margin: .5rem 0 0;
  color: #d5dbcf;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 2;
  text-align: justify;
  text-align-last: start;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(250, 108, 4, .55);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #14293d, #0e1f30 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 20px 45px rgba(0, 0, 0, .12);
}

.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 2.5rem;
  width: 4rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #fa6c04;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.6;
}

.service-title > span:last-child {
  background: linear-gradient(#fa6c04, #fa6c04) right bottom / 0 2px no-repeat;
  transition: background-size .35s ease;
}

.service-card:hover .service-title > span:last-child {
  background-size: 100% 2px;
}

.service-icon {
  color: #fa6c04;
  display: grid;
  place-items: center;
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(250, 108, 4, .4);
  border-radius: 1rem;
  background: rgba(250, 108, 4, .1);
}

.service-icon svg { width: 2.5rem; height: 2.5rem; }
.fleet-wave { transform-origin: 50% 25%; animation: fleet-pulse 2.5s ease-in-out infinite; }
.map-layer-back { animation: map-rise 3s ease-in-out infinite; }

@keyframes fleet-pulse { 50% { opacity: .3; transform: scale(1.08); } }
@keyframes map-rise { 50% { transform: translateY(-2px); } }

.service-card ul {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-right: 1.5rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.9;
}

.service-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .9em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #fa6c04;
  box-shadow: 0 0 0 4px rgba(250, 108, 4, .12);
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 1.25rem;
  min-height: 3rem;
  margin-top: auto;
  padding: .65rem 1.2rem;
  border: 1px solid #fa6c04;
  border-radius: .9rem;
  background: #fa6c04;
  color: #0d1b2a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(250, 108, 4, .2);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.service-card ul { margin-bottom: 1.5rem; }
.service-link:hover { transform: translateY(-3px); background: #ffb37a; box-shadow: 0 12px 28px rgba(250, 108, 4, .3); }
.service-link:focus-visible { outline: 2px solid #ffb37a; outline-offset: 4px; }
.service-link-arrow { font-size: 1.25rem; line-height: 1; transition: transform .2s ease; }
.service-link:hover .service-link-arrow { transform: translate(-2px, -2px); }

.service-card--detail { cursor: pointer; }
.service-card--detail:focus-visible, .service-detail-title:focus-visible { outline: 2px solid #ffb37a; outline-offset: 4px; }
.service-detail-title { color: inherit; text-decoration: none; }
.service-detail-title:hover { color: #ffb37a; }

@media (prefers-reduced-motion: reduce) {
  .fleet-wave, .map-layer-back { animation: none; }
  .service-title > span:last-child, .service-link, .service-link-arrow { transition: none; }
}

@media (max-width: 760px) {
  .services-section { padding: 3rem 1rem; }
  .services-heading { margin-bottom: 1.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 1.5rem; }
  .service-title { align-items: flex-start; font-size: 1.35rem; }
  .service-icon { flex-basis: 3rem; width: 3rem; height: 3rem; }
  .service-icon svg { width: 2.2rem; height: 2.2rem; }
}

#contact > section {
  padding-top: clamp(4rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 5vw, 4rem);
}
