/* Individual technical artwork for CQ service cards.
   The artwork remains deliberately subtle so service names and actions stay readable. */
.service-grid .service-card {
  position:relative !important;
  isolation:isolate;
  overflow:hidden;
}
.service-grid .service-card > * {
  position:relative;
  z-index:1;
}
.service-grid .service-card::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center, center, right -5% center;
  background-size:cover, cover, auto 104%;
  opacity:.96;
  transform:scale(1.001);
  transform-origin:right center;
  transition:transform .35s ease, opacity .35s ease, filter .35s ease;
}
.service-grid .service-card::after {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse 82% 70% at 50% 50%, rgba(7,9,12,.68) 0%, rgba(7,9,12,.40) 40%, rgba(7,9,12,.07) 74%, transparent 100%);
}
.service-grid .service-card:hover::before {
  opacity:1;
  transform:scale(1.045);
  filter:saturate(1.22) brightness(1.04);
}
.service-grid .service-card:nth-child(1)::before {
  background-image:
    radial-gradient(circle at 82% 27%, rgba(255,122,20,.13), transparent 33%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.48) 100%),
    url('/assets/images/service-phone.svg');
}
.service-grid .service-card:nth-child(2)::before {
  background-image:
    radial-gradient(circle at 83% 25%, rgba(255,122,20,.13), transparent 34%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.46) 100%),
    url('/assets/images/service-laptop.svg');
}
.service-grid .service-card:nth-child(3)::before {
  background-image:
    radial-gradient(circle at 83% 28%, rgba(255,122,20,.14), transparent 34%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.46) 100%),
    url('/assets/images/service-console.svg');
}
.service-grid .service-card:nth-child(4)::before {
  background-image:
    radial-gradient(circle at 82% 25%, rgba(255,122,20,.13), transparent 34%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.46) 100%),
    url('/assets/images/service-ecu.svg');
}
.service-grid .service-card:nth-child(5)::before {
  background-image:
    radial-gradient(circle at 82% 27%, rgba(255,122,20,.13), transparent 34%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.46) 100%),
    url('/assets/images/service-vehicle.svg');
}
.service-grid .service-card:nth-child(6)::before {
  background-image:
    radial-gradient(circle at 82% 27%, rgba(255,122,20,.13), transparent 34%),
    linear-gradient(90deg, rgba(21,24,28,.99) 0%, rgba(21,24,28,.96) 40%, rgba(10,12,15,.46) 100%),
    url('/assets/images/service-accessory.svg');
}

/* Cleaner service-card composition: remove decorative numbers/icons and centre content with higher contrast. */
.service-grid .service-card .service-index,
.service-grid .service-card .service-icon {
  display:none !important;
}
.service-grid .service-card {
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  padding:42px 30px !important;
  text-align:center !important;
}
.service-grid .service-card h3,
.service-grid .service-card p,
.service-grid .service-card a {
  width:min(100%, 330px);
  text-align:center !important;
}
.service-grid .service-card h3 {
  margin:0 0 13px !important;
  color:#fffdf8 !important;
  font-size:clamp(30px, 2.45vw, 39px) !important;
  font-weight:800 !important;
  line-height:.96 !important;
  text-shadow:0 3px 18px rgba(0,0,0,.94), 0 0 1px rgba(255,255,255,.35) !important;
}
.service-grid .service-card p {
  min-height:0 !important;
  margin:0 0 26px !important;
  color:#e0e3e6 !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.58 !important;
  text-shadow:0 2px 13px rgba(0,0,0,.92) !important;
}
.service-grid .service-card a {
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin-top:0 !important;
  color:#fffaf3 !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-shadow:0 2px 11px rgba(0,0,0,.95) !important;
}
.service-grid .service-card a span {
  font-size:20px !important;
  font-weight:800 !important;
}

/* Gallery images have no visible hard frame. Uploaded photographs fade into the surrounding site background. */
.image-slot,
.hero-media,
.featured-card,
.job-card,
.job-showcase {
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}
.image-slot.is-live {
  background:transparent !important;
}
.image-slot.is-live::after {
  display:none !important;
}
.image-slot.is-live::before {
  z-index:2 !important;
  background:
    linear-gradient(90deg, rgba(9,10,12,.94) 0%, rgba(9,10,12,.14) 11%, transparent 20%, transparent 80%, rgba(9,10,12,.14) 89%, rgba(9,10,12,.94) 100%),
    linear-gradient(180deg, rgba(9,10,12,.78) 0%, rgba(9,10,12,.08) 13%, transparent 25%, transparent 68%, rgba(9,10,12,.14) 80%, rgba(9,10,12,.92) 100%) !important;
}
.image-slot.is-live > .cq-gallery-image,
.hero-media.is-live > .cq-gallery-slide,
.job-showcase.is-live > .cq-job-slide {
  -webkit-mask-image:radial-gradient(ellipse 108% 108% at 50% 50%, #000 61%, rgba(0,0,0,.98) 72%, rgba(0,0,0,.78) 83%, rgba(0,0,0,.36) 93%, transparent 100%);
  mask-image:radial-gradient(ellipse 108% 108% at 50% 50%, #000 61%, rgba(0,0,0,.98) 72%, rgba(0,0,0,.78) 83%, rgba(0,0,0,.36) 93%, transparent 100%);
}

/* On desktop, the slideshow shares the exact top and bottom baseline of the hero copy. */
@media (min-width:981px) {
  .hero .hero-layout {
    align-items:stretch !important;
  }
  .hero .hero-copy > .eyebrow,
  .hero .hero-points {
    display:none !important;
  }
  .hero .hero-media {
    min-height:0 !important;
    height:auto !important;
    align-self:stretch !important;
  }
}

@media (min-width:721px) {
  @keyframes cq-service-drift {
    0%, 100% { background-position:center, center, right -2% center; }
    50% { background-position:center, center, right -8% center; }
  }
  .service-grid .service-card::before {
    animation:cq-service-drift 10s ease-in-out infinite;
  }
  .service-grid .service-card:nth-child(2)::before { animation-delay:-1.7s; }
  .service-grid .service-card:nth-child(3)::before { animation-delay:-3.4s; }
  .service-grid .service-card:nth-child(4)::before { animation-delay:-5.1s; }
  .service-grid .service-card:nth-child(5)::before { animation-delay:-6.8s; }
  .service-grid .service-card:nth-child(6)::before { animation-delay:-8.5s; }
  .service-grid .service-card:hover::before { animation-play-state:paused; }
}

@media (prefers-reduced-motion: reduce) {
  .service-grid .service-card::before { animation:none !important; }
}

@media (max-width:720px) {
  .service-grid .service-card::before {
    background-position:center, center, right -8% center;
    background-size:cover, cover, auto 98%;
  }
  .service-grid .service-card {
    padding:36px 24px !important;
  }
  .service-grid .service-card h3 {
    font-size:32px !important;
  }
  .proof-strip .proof-grid > div:last-child { border-right:0 !important; }
  .image-slot.is-live::before {
    background:
      linear-gradient(90deg, rgba(9,10,12,.88) 0%, rgba(9,10,12,.08) 13%, transparent 24%, transparent 76%, rgba(9,10,12,.08) 87%, rgba(9,10,12,.88) 100%),
      linear-gradient(180deg, rgba(9,10,12,.68) 0%, rgba(9,10,12,.05) 14%, transparent 25%, transparent 70%, rgba(9,10,12,.12) 82%, rgba(9,10,12,.88) 100%) !important;
  }
}
