/* =========================================================
   LIMBEST – Services page styles
   ========================================================= */

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }

/* Outline button (Learn More) */
.btn--outline {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

/* =========================================================
   Hero (background photo + separate staff PNG)
   The worker is cropped by the bottom edge of the hero.
   ========================================================= */
.svc-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(520px, 44vw, 640px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
  color: var(--white);
  background: var(--navy) url("../images/services-hero-bg.jpg") center / cover no-repeat;
}
.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(10, 20, 35, .62) 0%, rgba(10, 20, 35, .36) 50%, rgba(10, 20, 35, .08) 100%);
}
.svc-hero__inner { position: relative; z-index: 2; width: 100%; }
.svc-hero__content { max-width: 620px; }
.svc-hero__label { font-size: 13px; letter-spacing: 1px; line-height: 1.6; text-transform: uppercase; }
.svc-hero__rule { display: block; width: 48px; height: 2px; margin: 10px 0 24px; background: var(--red); }
.svc-hero h1 { color: var(--white); text-transform: uppercase; }
.svc-hero__text { max-width: 540px; margin-top: 18px; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Staff: width = size; right/bottom = position (bottom: 0 crops the legs) */
.svc-hero__staff {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -40px;
  height: calc(100% - var(--header-h) + 40px);
  width: auto;
  max-width: none;
}

/* =========================================================
   Shared bits
   ========================================================= */
.svc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--slate);
}
.svc-title { margin-top: 12px; line-height: 1.2; text-transform: uppercase; }

/* =========================================================
   Services Overview
   ========================================================= */
.svc-overview { padding-top: var(--space-normal); }
.svc-overview__head { max-width: 920px; margin: 0 auto; text-align: center; }
.svc-overview__head .lead { margin-top: 20px; font-size: 18px; line-height: 1.6; }

/* =========================================================
   Customer logo marquee (CSS only, pauses on hover)
   ========================================================= */
.client-marquee { margin-top: 48px; padding: 18px 0 22px; background: #e6e8eb; }
.client-marquee__title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: var(--slate);
}
.client-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.client-marquee__track {
  display: flex;
  width: max-content;
  animation: client-marquee 40s linear infinite;
}
.client-marquee:hover .client-marquee__track { animation-play-state: paused; }
.client-marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}
.client-marquee__group img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .2s ease, opacity .2s ease;
}
.client-marquee__group img:hover { filter: none; opacity: 1; }
@keyframes client-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-marquee__track { animation: none; }
  .client-marquee__viewport { overflow-x: auto; }
}

/* =========================================================
   Our Services list (alternating image / text)
   ========================================================= */
.svc-list { padding: var(--space-main) 0; }
.svc-list__title { margin-top: 0; text-align: center; font-size: 36px; }

.svc-item {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 56px auto 0;
}
.svc-item--reverse { grid-template-columns: .85fr 1.15fr; }
.svc-item--reverse .svc-item__img { order: 2; }
.svc-item__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.svc-item__body h3 { font-size: 24px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.svc-item__body p { margin-top: 10px; font-size: 15px; line-height: 1.6; }

.svc-checks { margin: 16px 0 26px; padding: 0; list-style: none; }
.svc-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}
.svc-checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D52B30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================================================
   Responsive – Tablet (900px)
   ========================================================= */
@media (max-width: 1200px) and (min-width: 901px) {
  .svc-hero__content { max-width: min(560px, 50vw); }
  .svc-hero h1 { font-size: 44px; }
  .svc-hero__staff { height: calc(100% - var(--header-h) + 40px); max-width: 38vw; object-fit: contain; object-position: bottom right; }
}

   @media (max-width: 900px) {
  .svc-hero {
    display: block;
    height: auto;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 0;
    --staff-w: min(80vw, 480px);
    --bg-h: 560px;               /* height of the background photo */
    background-size: auto var(--bg-h);
    background-position: 40% top;
    background-repeat: no-repeat;
  }
  /* Photo darkened, then fades into the solid navy below it */
  .svc-hero::before {
    background: linear-gradient(180deg,
      rgba(10, 20, 35, .55) 0,
      rgba(10, 20, 35, .55) calc(var(--bg-h) - 160px),
      var(--navy) var(--bg-h));
  }
  .svc-hero__staff {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: var(--staff-w);
    height: auto;
    margin: 12px auto 0;
  }

  .svc-overview__head .lead { font-size: 16px; }
  .client-marquee__group { gap: 56px; padding-right: 56px; }
  .client-marquee__group img { height: 52px; max-width: 170px; }

  /* Every block: image on top, text below */
  .svc-item,
  .svc-item--reverse { grid-template-columns: 1fr; gap: 24px; max-width: 640px; margin-top: 48px; }
  .svc-item--reverse .svc-item__img { order: 0; }
}

/* =========================================================
   Responsive – Mobile (600px)
   ========================================================= */
@media (max-width: 600px) {
  .svc-hero {
    padding-top: calc(var(--header-h) + 32px);
    --staff-w: min(96vw, 420px);
    --bg-h: 520px;
  }
  .svc-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .svc-hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .svc-hero h1 { font-size: 27px; }

  .svc-overview { padding-top: 44px; }
  .svc-overview__head .lead { font-size: 15px; }
  .client-marquee { margin-top: 32px; padding: 16px 0 20px; }
  .client-marquee__group { gap: 44px; padding-right: 44px; }
  .client-marquee__group img { height: 54px; max-width: 160px; }

  .svc-list { padding: 44px 0 60px; }
  .svc-list__title { font-size: 28px; }
  .svc-item,
  .svc-item--reverse { gap: 20px; margin-top: 40px; }
  .svc-item__body h3 { font-size: 22px; }
}

/* =========================================================
   Swiss grid – desktop (≥901px)
   ========================================================= */
@media (min-width: 901px) {

  /* Hero: content spans columns 1–7 (the 901–1200px rule above still caps its width) */
  .svc-hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .svc-hero__content { grid-column: 1 / 8; }

  /* Services Overview: left-aligned header on a two-column split
     (label + title on columns 1–6, lead text on columns 7–12) */
  .svc-overview__head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    max-width: calc(var(--max) + var(--pad) * 2);
    text-align: left;
  }
  .svc-overview__head > .svc-label { grid-column: 1 / 7; grid-row: 1; }
  .svc-overview__head > .svc-title { grid-column: 1 / 7; grid-row: 2; }
    /* Balance the title lines so a single word is not left alone on the last line */
  .svc-overview__head > .svc-title { text-wrap: balance; }
  .svc-overview__head > .lead {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 0;
    padding-top: 34px;
  }

  /* Marquee title: left edge aligned with column 1 (the logo strip stays full width) */
  .client-marquee__title {
    padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
    text-align: left;
  }

  /* Our Services: left-aligned title */
  .svc-list__title { text-align: left; }

  /* Service rows: image = 6 columns, text = 5 columns, column 7 left empty.
     Reverse rows swap sides (text 1–5, image 7–12).
     grid-row: 1 is required so explicit column placement keeps both items on one row. */
  .svc-item,
  .svc-item--reverse {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gutter);
    max-width: none;
    margin: 56px 0 0;
  }
  .svc-item__img  { grid-column: 1 / 7;  grid-row: 1; }
  .svc-item__body { grid-column: 8 / 13; grid-row: 1; }
  .svc-item--reverse .svc-item__body { grid-column: 1 / 6; }
  .svc-item--reverse .svc-item__img  { grid-column: 7 / 13; }
}

/* Wide screens: hero text uses the full 7 columns, intro text spans 6 of them */
@media (min-width: 1201px) {
  .svc-hero__content { max-width: none; }
  .svc-hero__text {
    max-width: calc((100% - 6 * var(--gutter)) / 7 * 6 + 5 * var(--gutter));
  }
}
/* Marquee title: centred above the full-width logo strip */
.client-marquee__title {
  padding-inline: var(--pad);
  text-align: center;
}

/* Desktop: keep the staff inside the content area (same rule as the Home page) */
@media (min-width: 901px) {
  .svc-hero__staff {
    right: max(var(--pad), calc((100vw - var(--max)) / 2 - 35px));
  }
}