/* Phase 2 — Services page
   Scoped to .services-page so the Phase 1 homepage remains untouched. */

.services-page .site-header {
  background: rgba(14,17,17,.94);
}

.services-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.services-hero-image,
.services-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-hero-image {
  object-fit: cover;
  object-position: center 52%;
}

.services-hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,14,15,.90) 0%, rgba(5,14,15,.67) 52%, rgba(5,14,15,.24) 100%),
    linear-gradient(0deg, rgba(5,14,15,.52), transparent 52%);
}

.services-hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.services-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}

.services-hero .hero-lead {
  max-width: 720px;
  margin-bottom: 2rem;
}

.services-intro {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.services-intro-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.services-intro-grid > p {
  max-width: 560px;
  margin-bottom: .35rem;
  color: var(--grey);
  font-size: 1.08rem;
}


/* Services quick navigation */
.services-subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services-subnav-inner {
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  padding-top: .8rem;
  padding-bottom: .8rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.services-subnav-inner::-webkit-scrollbar {
  display: none;
}

.services-subnav a {
  flex: 0 0 auto;
  padding: .68rem .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.services-subnav a:hover,
.services-subnav a:focus-visible {
  border-color: rgba(17,74,79,.22);
  background: rgba(17,74,79,.06);
  color: var(--teal);
}

.service-detail {
  scroll-margin-top: calc(var(--header-height) + 78px);
}

.service-detail {
  border-top: 1px solid var(--border);
}

.service-detail-alt {
  background: var(--light);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.service-detail-alt .service-copy {
  order: 2;
}

.service-detail-alt .service-gallery {
  order: 1;
}

.service-number {
  display: inline-block;
  margin-bottom: 1.3rem;
  color: var(--orange);
  font: 700 .82rem/1 "Poppins", sans-serif;
  letter-spacing: .16em;
}

.service-copy {
  max-width: 530px;
}

.service-copy > p:not(.eyebrow) {
  color: #4b5353;
}

.service-list {
  display: grid;
  gap: .62rem;
  margin: 1.7rem 0 2rem;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 1.45rem;
  color: #394141;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: .8rem;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-gallery-main {
  grid-row: 1 / 3;
}

.service-gallery-two {
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 390px;
}

.services-equipment-strip {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--ink);
  color: var(--white);
}

.services-equipment-inner {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.services-equipment-inner h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.services-equipment-inner > p {
  max-width: 520px;
  margin: 0;
  color: #b8c2c1;
}

@media (max-width: 980px) {
  .services-intro-grid,
  .service-detail-grid,
  .services-equipment-inner {
    grid-template-columns: 1fr;
  }

  .service-detail-alt .service-copy,
  .service-detail-alt .service-gallery {
    order: initial;
  }

  .service-copy {
    max-width: 680px;
  }

  .service-gallery {
    max-width: 820px;
  }
}


@media (max-width: 760px) {
  .services-subnav-inner {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .services-subnav a {
    padding: .65rem .82rem;
    font-size: .86rem;
  }
}

@media (max-width: 680px) {
  .services-hero {
    min-height: 620px;
  }

  .services-hero-image {
    object-position: 58% center;
  }

  .services-hero-overlay {
    background:
      linear-gradient(90deg, rgba(5,14,15,.91), rgba(5,14,15,.55)),
      linear-gradient(0deg, rgba(5,14,15,.5), transparent);
  }

  .service-gallery,
  .service-gallery-two {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 150px;
  }

  .service-gallery-main,
  .service-gallery-two img:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .service-gallery-two img:last-child {
    grid-column: 1 / 3;
  }
}
