﻿/* =============================================================================
   SERVICE PAGES - layout shared by Cranes & Rigging, Logistics and Transportation
   (each of those pages has its own small CSS file in css/pages/ for the few
   sizes that differ).

   Sections, top to bottom:
     .service-hero       photo with a white shade, title, buttons, yellow label
     .service-points     dark strip with five short points
     .service-feature    icon + title + text + button, with a photo
     .service-tiles      four (or three) tiles with a photo and a link
     .service-equipment  photo + list on a dark background
     .service-approach   title + text with yellow arrows on the right
     .service-safety     dark strip with a yellow title
     .closing            title + two buttons
   ============================================================================= */


/* ---------- Hero ------------------------------------------------------------- */
.service-hero {
  height: 42.05cqw;
  padding: 12.55cqw 0 0 6.98cqw;
  color: var(--black);
}
.service-hero .background { background-color: var(--white); }

.service-hero__shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #fff 18.42%, rgba(243, 248, 240, 0) 100%);
  box-shadow: 0 0.078cqw 0.3125cqw rgba(0, 0, 0, 0.6);
}

.service-hero__title {
  width: 41.99cqw;
  font-family: var(--font-heading);
  font-size: 5.227cqw;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-hero__subtitle {
  margin-top: 0.78cqw;
  font-family: var(--font-heading);
  font-size: 1.738cqw;
  line-height: 1.4;
}

.service-hero__text {
  width: 31.39cqw;
  margin-top: 0.84cqw;
  font-size: 1.112cqw;
  line-height: normal;
}

.service-hero__buttons {
  display: flex;
  gap: 1.31cqw;
  margin-top: 2.37cqw;
}
.service-hero__buttons .button { height: 3.46cqw; }
.service-hero__buttons .button:first-child { width: 14.96cqw; }
.service-hero__buttons .button:last-child  { width: 17.64cqw; }

/* the yellow name label */
.service-hero__label {
  position: absolute;
  left: 78.58cqw;
  top: 28.87cqw;
  width: 14.38cqw;
  height: 7.19cqw;
}

.service-hero .next-page-button {
  position: absolute;
  left: 94.02cqw;
  top: 21.52cqw;
}


/* ---------- Five points -------------------------------------------------- */
.service-points {
  display: grid;
  grid-template-columns: repeat(5, 13.96cqw);
  column-gap: 3.68cqw;
  align-items: center;
  height: 9.71cqw;
  padding-left: 6.98cqw;
  background-color: var(--dark-grey);
  color: var(--white);
  font-size: 1.112cqw;
  line-height: normal;
}


/* ---------- Feature (icon + text + photo) -------------------------------- */
.service-feature {
  position: relative;
  height: 34.75cqw;
  padding: 10.29cqw 0 0 23.99cqw;
}

.service-feature__icon {
  position: absolute;
  left: 6.97cqw;
  top: 10.3cqw;
  width: 13.89cqw;
  height: 13.89cqw;
}
.service-feature__icon img { width: 100%; height: 100%; object-fit: cover; }

.service-feature__text { width: 30.45cqw; }
.service-feature h2 { text-transform: uppercase; }
.service-feature p {
  margin-top: 0.47cqw;
  font-size: 1.112cqw;
  line-height: 1.6;
}
.service-feature .button {
  width: 13.91cqw;
  height: 3.46cqw;
  margin: 0.52cqw 0 0 -0.11cqw;
}

.service-feature__picture {
  position: absolute;
  left: 59.9cqw;
  top: 3.1cqw;
  width: 33.12cqw;
  height: 28.35cqw;
  object-fit: cover;
  border-radius: 20px;
}


/* ---------- Tiles ----------------------------------------------------------- */
.service-tiles {
  display: flex;
  gap: 2.42cqw;
  padding: 0 0 7.24cqw 7.09cqw;
}

.service-tile {
  display: flex;
  flex-direction: column;
  width: 19.63cqw;
  height: 18.43cqw;
  padding: 1.63cqw 1.57cqw 0 1.41cqw;
  border: 0.8px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.697cqw;
  background-color: var(--cream);
}

.service-tile img {
  width: 16.43cqw;
  height: 11.44cqw;
  margin-left: 0.16cqw;
  object-fit: cover;
  border-radius: 0.697cqw;
}

.service-tile h3 {
  margin-top: 1.63cqw;
  font-size: 1.535cqw;
  line-height: 1.1;
}

.service-tile > * { flex-shrink: 0; }

/* the link sits at the bottom right, hanging a little below the tile */
.service-tile .card-link {
  align-self: flex-end;
  width: 13.02cqw;
  height: 2.41cqw;
  margin-top: auto;
  margin-bottom: -3.3cqw;
}


/* ---------- Equipment ------------------------------------------------------- */
.service-equipment {
  display: flex;
  align-items: flex-start;
  height: 36.59cqw;
  padding: 4.41cqw 0 0 6.98cqw;
  color: var(--white);
}
.service-equipment .background { background-color: rgba(0, 0, 0, 0.87); }

.service-equipment__picture {
  width: 33.12cqw;
  height: 27.66cqw;
  object-fit: cover;
  border-radius: 20px;
}

.service-equipment__text { margin: 1.57cqw 0 0 9.87cqw; }
.service-equipment h2 { text-transform: uppercase; }
.service-equipment .arrow-list { margin-top: 1.31cqw; }
.service-equipment .button {
  width: 11.97cqw;
  height: 2.99cqw;
  margin-top: 1.47cqw;
}


/* ---------- Engineering approach -------------------------------------------- */
.service-approach {
  position: relative;
  height: 16.69cqw;
  padding: 2.1cqw 0 0 7.03cqw;
  overflow: hidden;
}
.service-approach h2 { width: 36.59cqw; text-transform: uppercase; }
.service-approach p {
  width: 33.81cqw;
  margin-top: 0.52cqw;
  font-size: 1.112cqw;
  line-height: 1.6;
  color: var(--grey);
}
.service-approach__chevrons {
  position: absolute;
  left: 46.77cqw;
  top: 0;
  width: 54.28cqw;
  height: 16.69cqw;
  object-fit: cover;
}


/* ---------- Safety strip -------------------------------------------------------- */
.service-safety {
  height: 19.37cqw;
  padding-top: 6.46cqw;
  background-color: var(--near-black);
  color: var(--yellow);
  text-align: center;
}
.service-safety h2 { text-transform: uppercase; }
.service-safety p {
  margin-top: 0.47cqw;
  font-size: 1.112cqw;
  line-height: 1.6;
  color: var(--off-white);
}


/* ---------- Closing ----------------------------------------------------------- */
.closing { height: 18.79cqw; padding-top: 4.78cqw; }
.closing__buttons { gap: 2.1cqw; margin-top: 1.57cqw; }
.closing .button { width: 16.48cqw; height: 3.46cqw; }


/* =============================================================================
   TABLET
   ============================================================================= */
@media (max-width: 1000px) {
  .service-hero { height: 62.37cqw; padding: 18.31cqw 0 0 3.95cqw; }
  .service-hero__title { width: 44.86cqw; font-size: 6.658cqw; }
  .service-hero__subtitle { margin-top: 0.79cqw; font-size: 1.753cqw; }
  .service-hero__text { width: 44.86cqw; margin-top: 0.79cqw; font-size: 1.859cqw; }
  .service-hero__buttons { align-items: flex-start; gap: 1.36cqw; margin-top: 2.37cqw; }
  .service-hero__buttons .button { font-weight: 400; white-space: normal; text-align: center; }
  .service-hero__buttons .button:first-child { width: 14.46cqw; height: 3.95cqw; font-size: 1.812cqw; }
  .service-hero__buttons .button:last-child  { width: 18.76cqw; height: 4.97cqw; font-size: 1.859cqw; }
  .service-hero__buttons .button::after { width: 2.6cqw; height: 2.6cqw; }
  .service-hero__label { left: 72.09cqw; top: 42.6cqw; width: 23.84cqw; height: 11.86cqw; }
  .service-hero .next-page-button { left: 93.56cqw; top: 27.34cqw; }

  .service-points {
    grid-template-columns: repeat(5, 13.9cqw);
    column-gap: 3.66cqw;
    height: 13.79cqw;
    padding-left: 7.01cqw;
    font-size: 1.726cqw;
  }

  .service-feature { height: 53.56cqw; padding: 22.82cqw 0 0 51.64cqw; }
  .service-feature__icon { left: 51.6cqw; top: 10.58cqw; width: 9.29cqw; height: 9.29cqw; }
  .service-feature__text { width: 44.41cqw; }
  .service-feature h2 { font-size: 3.32cqw; }
  .service-feature p { margin-top: 1.81cqw; font-size: 1.859cqw; }
  .service-feature .button { width: 23.84cqw; height: 6.67cqw; margin: 1.69cqw 0 0; font-weight: 400; font-size: 1.859cqw; }
  .service-feature .button::after { width: 3.4cqw; height: 3.4cqw; }
  .service-feature__picture { left: 3.95cqw; top: 6.67cqw; width: 44.41cqw; height: 40.23cqw; }

  .service-tiles { gap: 2.37cqw; padding: 3.95cqw 0 8.03cqw 4.18cqw; }
  .service-tile { width: 21.13cqw; height: 39.66cqw; padding: 1.7cqw 1.67cqw 0 1.47cqw; }
  .service-tile img { width: 17.85cqw; height: 12.43cqw; margin-left: 0.11cqw; }
  .service-tile h3 { margin-top: 1.58cqw; font-size: 2.656cqw; }
  .service-tile .card-link { align-self: flex-start; width: 17.97cqw; height: 2.71cqw; margin: 1.58cqw 0 0; font-weight: 400; font-size: 1.726cqw; }
  .service-tile .card-link::after { width: 2.71cqw; height: 2.71cqw; }

  .service-equipment { height: 52.32cqw; padding: 6.67cqw 0 0 3.95cqw; }
  .service-equipment__picture { width: 44.41cqw; height: 39.1cqw; }
  .service-equipment__text { margin: 3.95cqw 0 0 13.11cqw; }
  .service-equipment h2 { font-size: 3.32cqw; }
  .service-equipment .arrow-list { margin-top: 1.47cqw; font-size: 1.859cqw; }
  .service-equipment .button { width: 20.68cqw; height: 5.76cqw; margin-top: 1.36cqw; font-weight: 400; font-size: 1.859cqw; }
  .service-equipment .button::after { width: 3.4cqw; height: 3.4cqw; }

  .service-approach { height: 23.39cqw; padding: 2.6cqw 0 0 6.89cqw; }
  .service-approach h2 { width: 36.72cqw; font-size: 3.484cqw; }
  .service-approach p { width: 36.72cqw; margin-top: 0.79cqw; font-size: 1.864cqw; }
  .service-approach__chevrons { left: 46.78cqw; width: 54.24cqw; height: 21.36cqw; }

  .service-safety { height: 20.68cqw; padding-top: 6.44cqw; }
  .service-safety p { margin-top: 0.79cqw; font-size: 1.864cqw; }

  .closing { height: 19.21cqw; padding: 3.95cqw 7.01cqw 0; }
  .closing h2 { font-size: 3.984cqw; }
  .closing__buttons { align-items: flex-start; gap: 2.04cqw; margin-top: 1.69cqw; }
  .closing .button { width: 14.69cqw; height: 4.63cqw; font-size: 1.812cqw; white-space: normal; text-align: center; }
  .closing .button:last-child { width: 17.18cqw; height: 4.86cqw; }
  .closing .button::after { width: 3.4cqw; height: 3.4cqw; }
}


/* =============================================================================
   PHONE
   ============================================================================= */
@media (max-width: 750px) {
  .service-hero { height: 124.53cqw; padding: 30.93cqw 0 0 5.33cqw; }
  .service-hero__title { width: 61.33cqw; margin-left: 0.27cqw; font-size: 6.674cqw; }
  .service-hero__subtitle { width: 61.33cqw; margin-top: 0; font-size: 3.737cqw; }
  .service-hero__text { width: 61.33cqw; margin-top: 0.8cqw; font-size: 3.737cqw; }
  .service-hero__buttons { flex-direction: column; gap: 1.33cqw; margin-top: 2.4cqw; }
  .service-hero__buttons .button { width: 48.53cqw !important; height: 13.33cqw !important; font-size: 3.737cqw !important; }
  .service-hero__buttons .button:first-child { font-size: 3.697cqw !important; }
  .service-hero__buttons .button::after { width: 6cqw; height: 6cqw; }
  .service-hero__label { left: 64.8cqw; top: 93.6cqw; width: 29.87cqw; height: 14.93cqw; }
  .service-hero .next-page-button { left: 79.47cqw; top: 56.27cqw; }

  .service-points {
    grid-template-columns: 39.47cqw 39.47cqw;
    column-gap: 6.13cqw;
    row-gap: 16.8cqw;
    align-content: start;
    height: 83.2cqw;
    padding: 13.87cqw 0 0 9.07cqw;
    font-size: 3.47cqw;
  }

  .service-feature { height: 159.2cqw; padding: 109.87cqw 0 0 5.33cqw; }
  .service-feature__icon { left: 5.34cqw; top: 85.74cqw; width: 18.71cqw; height: 18.71cqw; }
  .service-feature__text { width: 89.33cqw; }
  .service-feature h2 { font-size: 6.71cqw; }
  .service-feature p { margin-top: 2.67cqw; font-size: 3.737cqw; }
  .service-feature .button { width: 48cqw; height: 13.33cqw; margin-top: 2.67cqw; font-size: 3.737cqw; }
  .service-feature .button::after { width: 6cqw; height: 6cqw; }
  .service-feature__picture { left: 5.33cqw; top: 10.93cqw; width: 89.33cqw; height: 67.2cqw; }

  .service-tiles { flex-direction: column; gap: 6.93cqw; padding: 8cqw 0 8cqw 5.6cqw; }
  .service-tile { width: 89.07cqw; height: auto; padding: 6.67cqw 6.67cqw 6.67cqw 6.4cqw; border-radius: 4.026cqw; }
  .service-tile img { width: 75.73cqw; height: 52.53cqw; margin-left: 0.27cqw; border-radius: 4.026cqw; }
  .service-tile h3 { margin-top: 5.6cqw; font-size: 4.805cqw; }
  .service-tile .card-link { align-self: flex-end; width: 35.73cqw; height: 6.67cqw; margin: 5.07cqw 0 0; font-size: 3.737cqw; }
  .service-tile .card-link::after { width: 6.67cqw; height: 6.67cqw; }

  .service-equipment { flex-direction: column; height: 154.13cqw; padding: 10.67cqw 0 0 5.33cqw; }
  .service-equipment__picture { width: 89.33cqw; height: 67.2cqw; }
  .service-equipment__text { margin: 7.73cqw 0 0 6.67cqw; }
  .service-equipment h2 { font-size: 6.71cqw; }
  .service-equipment .arrow-list { margin-top: 4.27cqw; font-size: 3.737cqw; }
  .service-equipment .arrow-list li { padding-left: 5.07cqw; }
  .service-equipment .arrow-list li + li { margin-top: 1.87cqw; }
  .service-equipment .arrow-list li::before { top: 0; }
  .service-equipment .button { width: 50.93cqw; height: 14.13cqw; margin-top: 4cqw; font-size: 3.47cqw; }
  .service-equipment .button::after { width: 6cqw; height: 6cqw; }

  .service-approach { height: 63.47cqw; padding: 26.67cqw 5.33cqw 0; }
  .service-approach h2 { width: 89.33cqw; font-size: 6.71cqw; }
  .service-approach p { width: 89.33cqw; margin-top: 2.67cqw; font-size: 3.737cqw; }
  .service-approach__chevrons { left: 46.4cqw; width: 56.27cqw; height: 22.13cqw; }

  .service-safety { height: 35.47cqw; padding: 6.4cqw 5.33cqw 0; }
  .service-safety h2 { font-size: 6.71cqw; }
  .service-safety p { margin-top: 2.67cqw; font-size: 3.737cqw; }

  .closing { height: 66.13cqw; padding: 8cqw 5.33cqw 0; }
  .closing h2 { font-size: 6.71cqw; }
  .closing__buttons { align-items: center; gap: 1.87cqw; margin-top: 5.6cqw; }
  .closing .button { width: 48.8cqw !important; height: 13.33cqw !important; font-size: 3.697cqw; }
  .closing .button::after { width: 6cqw; height: 6cqw; }
}
