/* Inner-page hero only | Tariq Amir | 2026-11-24
   Whole-image presentation, edge-to-edge width, natural aspect ratios.
   Other pages/cards/services remain unchanged. */

/* One actual image, not a cover background behind a duplicate contained image. */
section.inner-hero-photo.hero-by-service {
  position:relative!important;
  isolation:isolate;
  display:grid!important;
  grid-template-areas:"hero";
  grid-template-columns:minmax(0,1fr);
  align-items:stretch!important;
  padding:0!important;
  margin:0!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden;
  background:#142737!important;
  background-image:none!important;
}
section.inner-hero-photo.hero-by-service:before {
  display:none!important;
  content:none!important;
  background-image:none!important;
  animation:none!important;
  transform:none!important;
}
section.inner-hero-photo.hero-by-service>.inner-hero-visual {
  grid-area:hero;
  display:block;
  position:relative;
  z-index:0;
  width:100%;
  height:auto;
  min-width:0;
  align-self:stretch;
  background:#142737;
  overflow:hidden;
}
section.inner-hero-photo.hero-by-service>.inner-hero-visual>img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  min-width:0;
  object-fit:contain!important;
  object-position:center center!important;
  animation:none!important;
  transform:none!important;
  filter:none!important;
  opacity:1;
  image-rendering:auto;
}
/* Existing editable copy stays over the hero, with a readable dark left-side veil. */
section.inner-hero-photo.hero-by-service:after {
  grid-area:hero;
  content:"";
  display:block!important;
  position:relative!important;
  inset:auto!important;
  width:100%;
  height:100%;
  align-self:stretch;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(5,19,32,.92) 0%,rgba(5,19,32,.75) 30%,rgba(5,19,32,.27) 62%,rgba(5,19,32,.07) 100%)!important;
  animation:none!important;
  transform:none!important;
}
section.inner-hero-photo.hero-by-service>.inner-hero-grid {
  grid-area:hero;
  position:relative!important;
  z-index:2!important;
  align-self:center;
  width:calc(100% - 40px);
  max-width:1220px;
  min-height:0!important;
  height:auto!important;
  margin:0 auto;
  padding:clamp(24px,3.5vw,60px) 0!important;
}
section.inner-hero-photo.hero-by-service .inner-photo{display:none!important}
@media (max-width:680px){
  /* On narrow screens show the complete photo first, then the original title and copy.
     This prevents faces/tools and long headings from competing for the same small area. */
  section.inner-hero-photo.hero-by-service{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:auto!important;
  }
  section.inner-hero-photo.hero-by-service>.inner-hero-visual{
    order:0;
    width:100%;
    height:auto;
    flex:none;
  }
  section.inner-hero-photo.hero-by-service:after{display:none!important;content:none!important}
  section.inner-hero-photo.hero-by-service>.inner-hero-grid{
    order:1;
    align-self:center;
    width:calc(100% - 34px);
    max-width:1220px;
    padding:30px 0 34px!important;
    margin:0 auto;
  }
  section.inner-hero-photo.hero-by-service h1{font-size:clamp(1.85rem,7.2vw,2.5rem)!important}
}
@media(prefers-reduced-motion:reduce){
  section.inner-hero-photo.hero-by-service>.inner-hero-visual>img{
    animation:none!important;transition:none!important;transform:none!important;
  }
}

/* Full-bleed correction only: inner hero sections must not inherit container gutters.
   Natural image ratios prevent blank sides while retaining the complete photograph. */
section.inner-hero-photo.hero-by-service {
  box-sizing:border-box;width:100%!important;max-width:none!important;
  margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;
}
section.inner-hero-photo.hero-by-service>.inner-hero-visual {
  box-sizing:border-box;width:100%!important;max-width:none!important;
  padding:0!important;margin:0!important;
}
section.inner-hero-photo.hero-by-service>.inner-hero-visual>img {
  width:100%!important;height:auto!important;max-width:none!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;
}
