/* Corafter Phase 16 — service detail hero repair.
   Full-bleed poster belongs to the hero canvas, not the centered content container.
   Shared service template means all eight service pages receive the same correction. */

.service-page {
  overflow: clip;
}

.service-page .service-hero {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: calc(100vh - var(--cora-header-offset, 72px)) !important;
  height: calc(100svh - var(--cora-header-offset, 72px)) !important;
  min-height: 620px !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #061638 !important;
}

/* The old decorative elements caused the visible floating bubbles and wave. */
.service-page .service-hero > .hero-orb,
.service-page .service-hero > .hero-grid,
.service-page .service-hero > .wave,
.service-page .service-hero .service-art-backdrop,
.service-page .service-hero .service-hero-3d-stack,
.service-page .service-hero .service-main-3d,
.service-page .service-hero .hero-mini-3d,
.service-page .service-hero .lottie-shell,
.service-page .service-hero .service-float {
  display: none !important;
}

/* Make the visual a direct full-hero layer rather than a child constrained by .container. */
.service-page .service-hero > .service-hero-grid {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(34px, 5vh, 58px) max(24px, calc((100vw - 1180px) / 2)) !important;
}

.service-page .service-hero .service-hero-visual {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

.service-page .service-hero .service-poster-frame {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
}

.service-page .service-hero .service-poster-frame img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: 68% center !important;
  filter: none !important;
  animation: none !important;
}

.service-page .service-hero .service-poster-frame::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(4, 17, 49, .99) 0%,
      rgba(4, 20, 55, .97) 24%,
      rgba(4, 22, 61, .86) 43%,
      rgba(4, 22, 61, .45) 62%,
      rgba(4, 22, 61, .12) 100%),
    linear-gradient(0deg, rgba(3, 15, 44, .38) 0%, transparent 34%, rgba(3, 15, 44, .08) 100%) !important;
}

.service-page .service-hero .service-hero-copy {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 1 620px !important;
  width: min(54%, 620px) !important;
  max-width: 620px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
}

.service-page .service-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(18px, 2.5vh, 30px) !important;
  color: rgba(211, 228, 255, .76) !important;
  font-size: .82rem !important;
  line-height: 1.5;
}

.service-page .service-hero .breadcrumb a {
  color: inherit !important;
  text-decoration: none;
}

.service-page .service-hero .eyebrow {
  margin: 0 0 14px !important;
  color: #8dc4ff !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  line-height: 1.5;
}

.service-page .service-hero h1 {
  max-width: 12ch !important;
  margin: 0 0 22px !important;
  color: #fff !important;
  font-family: var(--font-display, Manrope, sans-serif) !important;
  font-size: clamp(2.65rem, 4.45vw, 4.8rem) !important;
  font-weight: 800 !important;
  line-height: 1.015 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
  overflow-wrap: normal;
}

.service-page .service-hero .service-hero-copy h1::after {
  display: none !important;
  content: none !important;
}

.service-page .service-hero .service-hero-lead {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(229, 239, 255, .9) !important;
  font-size: clamp(1rem, 1.16vw, 1.16rem) !important;
  line-height: 1.75 !important;
}

.service-page .service-hero .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 26px 0 0 !important;
}

.service-page .service-hero .hero-actions .btn {
  flex: 0 0 auto;
  min-height: 48px;
  white-space: nowrap;
}

.service-page .service-hero .service-hero-trust {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 16px !important;
  margin-top: 22px !important;
  color: rgba(207, 225, 255, .85) !important;
  font-size: .78rem !important;
  line-height: 1.6;
}

.service-page .service-hero .service-hero-trust span {
  white-space: normal;
}

/* Keep service content below the hero independent from the decorative hero shape. */
.service-page .service-signature {
  margin-top: 0 !important;
}

@media (max-width: 1100px) {
  .service-page .service-hero > .service-hero-grid {
    padding-inline: 36px !important;
  }
  .service-page .service-hero .service-hero-copy {
    width: min(60%, 590px) !important;
    flex-basis: 590px !important;
  }
  .service-page .service-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.25rem) !important;
  }
  .service-page .service-hero .service-poster-frame img {
    object-position: 65% center !important;
  }
}

@media (max-width: 760px) {
  .service-page .service-hero {
    height: auto !important;
    min-height: calc(100svh - var(--cora-header-offset, 72px)) !important;
    max-height: none !important;
  }
  .service-page .service-hero > .service-hero-grid {
    position: relative !important;
    align-items: center !important;
    min-height: calc(100svh - var(--cora-header-offset, 72px)) !important;
    height: auto !important;
    padding: 42px 24px 46px !important;
  }
  .service-page .service-hero .service-hero-copy {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 590px !important;
  }
  .service-page .service-hero .service-poster-frame img {
    object-position: 65% center !important;
  }
  .service-page .service-hero .service-poster-frame::after {
    background:
      linear-gradient(90deg, rgba(4,17,49,.97) 0%, rgba(4,22,61,.86) 58%, rgba(4,22,61,.58) 100%),
      linear-gradient(0deg, rgba(3,15,44,.48), transparent 60%) !important;
  }
  .service-page .service-hero h1 {
    max-width: 12ch !important;
    font-size: clamp(2.45rem, 9vw, 3.7rem) !important;
    line-height: 1.04 !important;
  }
  .service-page .service-hero .service-hero-lead {
    max-width: 43ch !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 420px) {
  .service-page .service-hero > .service-hero-grid {
    padding-inline: 20px !important;
  }
  .service-page .service-hero .breadcrumb {
    gap: 6px;
    font-size: .75rem !important;
  }
  .service-page .service-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem) !important;
  }
  .service-page .service-hero .hero-actions .btn {
    min-height: 46px;
    padding-inline: 17px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .service-page .service-hero .service-hero-copy { width: min(54%, 590px) !important; }
  .service-page .service-hero h1 { font-size: clamp(2.45rem, 4vw, 3.9rem) !important; margin-bottom: 15px !important; }
  .service-page .service-hero .breadcrumb { margin-bottom: 14px !important; }
  .service-page .service-hero .hero-actions { margin-top: 18px !important; }
  .service-page .service-hero .service-hero-trust { margin-top: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-hero *,
  .service-page .service-hero *::before,
  .service-page .service-hero *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
