/* Full-width service photography. Cancel the existing light-theme filter
   inside these dark opening sections, as the homepage video section does. */
.page-hero.service-photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: #080c12;
  color: #f7f8fa;
  filter: invert(1) hue-rotate(180deg);
}

.service-photo-hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  max-width: 1100px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%);
  mask-image: linear-gradient(90deg, transparent, #000 26%);
}

.service-photo-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 44%;
  filter: none !important;
}

.service-photo-hero--event .service-photo-hero__media img {
  object-position: 52% 34%;
}

.service-photo-hero--patrol .service-photo-hero__media img {
  object-position: 50% 35%;
}

.service-photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #080c12 0%, rgba(8,12,18,.98) 30%, rgba(8,12,18,.89) 45%, rgba(8,12,18,.68) 66%, rgba(8,12,18,.20) 100%),
    linear-gradient(180deg, rgba(8,12,18,.10), transparent 45%, rgba(8,12,18,.42));
}

.service-photo-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 660px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.service-photo-hero .crumbs {
  width: auto;
  margin: 0;
  padding: 0;
  color: #d1d7df;
  font-size: 13px;
  line-height: 1.6;
}

.service-photo-hero .crumbs a { color: inherit; }
.service-photo-hero .crumbs a:hover { color: #fff; }

.service-photo-hero__copy {
  width: 100%;
  max-width: 630px;
  margin-top: auto;
  margin-bottom: auto;
}

.service-photo-hero .eyebrow { color: #e2bd75; }
.service-photo-hero .eyebrow::before { background: #e2bd75; }

.service-photo-hero h1 {
  max-width: 630px;
  color: #f7f8fa;
  font-size: clamp(42px,4.5vw,66px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.service-photo-hero .lede {
  max-width: 590px;
  margin-top: 24px;
  color: #e1e5eb;
  font-size: clamp(18px,1.55vw,21px);
  line-height: 1.6;
}

.service-photo-hero .hero-actions { gap: 12px; }
.service-photo-hero .btn {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  background: rgba(8,12,18,.30);
  color: #fff;
  line-height: 1.4;
  text-align: center;
}

.service-photo-hero .btn:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.service-photo-hero .btn.primary {
  background: #f7f8fa;
  border-color: #f7f8fa;
  color: #080c12;
}

.service-photo-hero .btn.primary:hover {
  background: #e6e9ee;
  border-color: #e6e9ee;
}

.service-photo-hero a:focus-visible {
  outline: 3px solid #f7f8fa;
  outline-offset: 4px;
}

@media (min-width: 961px) and (max-width: 1100px) {
  .service-photo-hero__inner { min-height: 620px; }
  .service-photo-hero__copy { max-width: 580px; }
  .service-photo-hero h1 { font-size: clamp(42px,4.5vw,52px); }
}

@media (max-width: 960px) {
  .service-photo-hero__media {
    inset: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 520px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .service-photo-hero__media img { object-position: 50% 44%; }
  .service-photo-hero--event .service-photo-hero__media img {
    object-position: 50% 34%;
  }
  .service-photo-hero--patrol .service-photo-hero__media img {
    object-position: 50% 35%;
  }

  .service-photo-hero::after {
    background: linear-gradient(180deg, rgba(8,12,18,.18) 0, rgba(8,12,18,.28) 180px, rgba(8,12,18,.87) 280px, #080c12 470px);
  }

  .service-photo-hero__inner {
    min-height: 0;
    gap: 0;
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .service-photo-hero__copy {
    max-width: 630px;
    margin-top: 220px;
    margin-bottom: 0;
  }

  .service-photo-hero h1 { font-size: clamp(36px,6.3vw,50px); }
  .service-photo-hero .lede { font-size: 18px; line-height: 1.6; }
}

@media (max-width: 620px) {
  .service-photo-hero h1 { font-size: clamp(36px,8.8vw,46px); }
  .service-photo-hero .eyebrow { margin-bottom: 18px; }
  .service-photo-hero .lede { margin-top: 20px; font-size: 17px; }
  .service-photo-hero .hero-actions { flex-direction: column; margin-top: 26px; }
  .service-photo-hero .hero-actions .btn { width: 100%; }
}

@media (prefers-contrast: more) {
  .service-photo-hero::after { background: rgba(8,12,18,.92); }
  .service-photo-hero .lede, .service-photo-hero .crumbs { color: #fff; }
}
