/* Shared service-page hero system */
.service-detail-page {
  color: #11151d;
  background: #ffffff;
}

.service-hero {
  --parallax-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 760px;
  margin: 0;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy-900);
}

.service-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(1, 4, 12, 0.64);
  content: "";
  pointer-events: none;
}

.service-hero__backdrop {
  position: absolute;
  z-index: 0;
  top: -6%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 112%;
  object-fit: cover;
  object-position: var(--service-hero-position, center center);
  transform: translate3d(0, var(--parallax-y), 0) scale(1.04);
  transform-origin: center;
  will-change: transform;
}

.service-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--content-width);
  margin-inline: auto;
  padding: calc(var(--header-height) + 5rem) 0 9rem;
}

.service-hero__content {
  width: min(100%, 720px);
  animation: service-hero-enter 720ms ease-out both;
}

.service-hero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-blue-400);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(3.4rem, 6.8vw, 6.3rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 0.96;
  text-wrap: balance;
}

@media (min-width: 961px) {
  .remote-guarding-page .service-hero__content {
    width: min(100%, 1120px);
  }

  .remote-guarding-page .service-hero h1 {
    max-width: 1120px;
    font-size: clamp(3.4rem, 4.25vw, 4.4rem);
    line-height: 1.03;
  }

  .remote-guarding-page .service-hero h1 span {
    display: block;
    white-space: nowrap;
  }
}

.service-hero__summary {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.service-button {
  min-width: 238px;
  min-height: 58px;
  padding-inline: 1.4rem;
  font-weight: 700;
}

.service-button--primary {
  color: var(--color-white);
  background: rgb(5, 167, 223);
  border-color: rgb(5, 167, 223);
}

.service-button--primary:hover {
  color: var(--color-white);
  background: #078fbe;
  border-color: #078fbe;
}

.service-button--secondary {
  color: var(--color-white);
  background: rgba(2, 6, 17, 0.72);
  border-color: rgba(255, 255, 255, 0.62);
}

.service-button--secondary:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.service-breadcrumb {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--color-white);
  background: #075c94;
}

.service-breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: var(--content-width);
  min-height: 68px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.service-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.35;
}

.service-breadcrumb li:not(:last-child)::after {
  margin-inline: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  content: "/";
}

.service-breadcrumb a {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 0.22em;
}

.service-breadcrumb a:hover {
  text-decoration-color: var(--color-white);
}

@keyframes service-hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .service-hero {
    min-height: 720px;
  }

  .service-hero__inner {
    align-items: end;
    padding-block: calc(var(--header-height) + 4rem) 9rem;
  }

  .service-hero__backdrop {
    object-position: var(--service-hero-position-tablet, 52% center);
  }
}

@media (max-width: 700px) {
  .service-breadcrumb {
    display: none;
  }

  .service-hero {
    min-height: 700px;
  }

  .service-hero::before {
    background: rgba(1, 4, 12, 0.68);
  }

  .service-hero__backdrop {
    object-position: var(--service-hero-position-mobile, 45% center);
  }

  .service-hero__inner {
    align-items: end;
    padding-block: calc(var(--header-height) + 3rem) 10.5rem;
  }

  .service-hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    line-height: 0.98;
  }

  .service-hero__summary {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .service-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-button {
    width: 100%;
    min-width: 0;
  }

  .service-breadcrumb__inner {
    min-height: 76px;
  }

  .service-breadcrumb li {
    font-size: 0.88rem;
  }
}

@media (max-width: 600px) {
  .service-hero h1 {
    font-size: clamp(2.75rem, 13vw, 3.65rem);
  }

  .service-hero.service-hero--homepage-mobile {
    height: auto;
    min-height: 0;
  }

  .service-hero.service-hero--homepage-mobile::before {
    background: rgba(1, 4, 12, 0.64);
  }

  .service-hero.service-hero--homepage-mobile .service-hero__backdrop {
    top: 0;
    height: 100%;
    transform: none;
    will-change: auto;
  }

  .service-hero.service-hero--homepage-mobile .service-hero__inner {
    align-items: center;
    min-height: 0;
    padding-block: calc(var(--header-height) + 3.25rem) 3.5rem;
  }

  .service-detail-page .service-hero.service-hero--homepage-mobile h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    line-height: 1.08;
  }

  .service-hero.service-hero--homepage-mobile .service-hero__summary {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .service-hero.service-hero--homepage-mobile .service-hero__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.6rem;
  }

  .service-hero.service-hero--homepage-mobile .service-button {
    width: auto;
    min-width: 0;
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    border-radius: 4px;
    font-size: 0.9rem;
  }

  .service-detail-page.security-guard-page {
    --service-hero-position-mobile: 55% center;
  }

  .service-detail-page.mobile-patrol-page {
    --service-hero-position-mobile: 65% center;
  }

  .service-detail-page.concierge-security-page {
    --service-hero-position-mobile: 28% center;
  }

  .service-detail-page.event-security-page {
    --service-hero-position-mobile: 50% center;
  }

  .service-detail-page.fire-watch-page {
    --service-hero-position-mobile: 53% center;
  }
}

@media (max-width: 430px) {
  .service-hero {
    min-height: 740px;
  }

  .service-hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.25rem);
  }

  .service-breadcrumb li:not(:last-child)::after {
    margin-inline: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero__content {
    animation: none;
  }

  .service-hero__backdrop {
    transition: none;
    transform: none;
  }
}
