/* DGMT SG Hero 1.4: scoped production styles; original layout retained. */
.sg-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  font-family: Poppins, Arial, sans-serif;
}
.sg-hero *, .sg-hero *::before, .sg-hero *::after { box-sizing: border-box; }
.sg-hero .sg-hero__slide { position: relative; height: clamp(520px, 60vw, 800px); overflow: hidden; }
.sg-hero .sg-hero__bg {
  position: absolute;
  inset: -1px;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform: scale(1);
}
.sg-hero .sg-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .47), rgba(0, 0, 0, .04));
}
.sg-hero .sg-hero__canvas {
  position: relative;
  z-index: 2;
  width: min(1170px, 100%);
  height: 100%;
  margin: 0 auto;
}
.sg-hero .sg-hero__layer {
  position: absolute;
  z-index: var(--sg-z, 5);
  left: var(--sg-x, 10px);
  top: var(--sg-y, 260px);
  color: var(--sg-text-color, #fff) !important;
  background-color: var(--sg-text-bg, transparent);
  padding: var(--sg-padding, 0);
  font-family: var(--sg-font-family, Poppins), Arial, sans-serif;
  font-size: var(--sg-font-size, 18px);
  font-weight: var(--sg-font-weight, 400);
  line-height: var(--sg-line-height, 1.5);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  margin: 0;
  overflow-wrap: break-word;
  max-width: calc(100% - 24px);
}
.sg-hero .sg-hero__layer--label { display: inline-block; text-transform: uppercase; white-space: nowrap; }
.sg-hero .sg-hero__layer--title { max-width: 960px; }
.sg-hero .sg-hero__layer--desc { max-width: 810px; }
/* First slide remains legible when JavaScript/Splide cannot load. */
.sg-hero--carousel:not(.is-initialized) .splide__slide:not(:first-child) { display: none; }
.sg-hero--carousel:not(.is-initialized) .splide__track { overflow: hidden; }
.sg-hero--carousel:not(.is-initialized) .splide__list { list-style: none; padding: 0; margin: 0; }
.sg-hero--carousel.is-initialized .splide__list, .sg-hero--carousel.is-initialized .splide__slide { min-height: 0; }
@keyframes sg-hero-panzoom { from { transform: scale(1); } to { transform: scale(var(--sg-zoom, 1.09)); } }
/* Single-slide service heroes continue using CSS zoom on visibility.
   Carousel backgrounds are zoomed by JS independently of active-slide status
   so the outgoing image cannot snap smaller before the fade completes. */
.sg-hero--single.sg-hero--visible .sg-hero__bg {
  animation: sg-hero-panzoom var(--sg-zoom-duration, 9000ms) linear both;
}
@keyframes sg-hero-enter-up { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sg-hero-enter-fade { from { opacity: 0; } to { opacity: 1; } }
.sg-hero--single.sg-hero--visible .sg-hero__layer--title,
.sg-hero--carousel.is-initialized .splide__slide.is-active .sg-hero__layer--title {
  animation: sg-hero-enter-up 380ms ease-out 260ms both;
}
.sg-hero--single.sg-hero--visible .sg-hero__layer--label,
.sg-hero--carousel.is-initialized .splide__slide.is-active .sg-hero__layer--label {
  animation: sg-hero-enter-fade 300ms ease-out 540ms both;
}
.sg-hero--single.sg-hero--visible .sg-hero__layer--desc,
.sg-hero--carousel.is-initialized .splide__slide.is-active .sg-hero__layer--desc {
  animation: sg-hero-enter-up 420ms ease-out 910ms both;
}
.sg-hero .splide__arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
}
.sg-hero .splide__arrow svg { fill: #fff; width: 19px; height: 19px; }
.sg-hero .splide__arrow--prev { left: 15px; }
.sg-hero .splide__arrow--next { right: 15px; }
.sg-hero .splide__arrow:focus-visible, .sg-hero .splide__pagination__page:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sg-hero .splide__pagination {
  position: absolute; z-index: 10; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 9px; margin: 0; padding: 0; list-style: none;
}
.sg-hero .splide__pagination__page {
  display: block; width: 9px; height: 9px; border: 0; padding: 0;
  background: rgba(255,255,255,.55); border-radius: 50%; cursor: pointer;
}
.sg-hero .splide__pagination__page.is-active { background: #fff; transform: scale(1.2); }
@media (max-width: 980px) {
  .sg-hero .sg-hero__slide { height: 520px; }
  .sg-hero .sg-hero__canvas { width: 100%; padding: 42px 9% 60px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
  .sg-hero .sg-hero__layer {
    position: static; left: auto; top: auto; display: block;
    font-size: min(var(--sg-font-size, 18px), 6.3vw);
    line-height: 1.2;
    max-width: 100%; width: auto; white-space: normal;
  }
  .sg-hero .sg-hero__layer--label { width: max-content; font-size: min(var(--sg-font-size, 14px), 3.5vw); order: 1; }
  .sg-hero .sg-hero__layer--title { font-size: clamp(27px, 6vw, 54px); order: 2; }
  .sg-hero .sg-hero__layer--desc { font-size: clamp(13px, 2vw, 18px); order: 3; line-height: 1.6; }
}
@media (max-width: 600px) {
  .sg-hero .sg-hero__slide { height: 430px; }
  .sg-hero .sg-hero__canvas { padding: 30px 26px 54px; gap: 12px; }
  .sg-hero .sg-hero__layer--title { font-size: clamp(26px, 7vw, 40px); }
  .sg-hero .sg-hero__layer--desc { font-size: 14px; }
  .sg-hero .splide__arrow { width: 30px; height: 30px; }
  .sg-hero .splide__arrow--prev { left: 5px; }
  .sg-hero .splide__arrow--next { right: 5px; }
}
/* Standard Splide toggle: visible pause/resume control for the continuous carousel. */
.sg-hero .sg-hero__toggle {
  position: absolute;
  z-index: 12;
  right: 16px;
  bottom: 12px;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255, 255, 255, .75);
  color: #fff;
  border-radius: 6px;
  padding: 5px 9px;
  min-height: 28px;
  font: 600 12px/1.2 Arial, sans-serif;
  cursor: pointer;
}
.sg-hero .sg-hero__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sg-hero .splide__toggle__play, .sg-hero .splide__toggle__pause { display: none; }
.sg-hero .sg-hero__toggle.is-active .splide__toggle__pause { display: inline; }
.sg-hero .sg-hero__toggle:not(.is-active) .splide__toggle__play { display: inline; }
/* Respect the visitor's reduced-motion preference, without a QA URL override. */
@media (prefers-reduced-motion: reduce) {
  .sg-hero .sg-hero__bg,
  .sg-hero .sg-hero__layer {
    animation: none !important;
    transform: none !important;
  }
}
