/* V16 FINAL HERO OVERRIDE - uses the seven approved full banner PNG files.
   Put the PNG files in /public_html/assets/hero-v15/ with these exact names. */

:root{--hero-final-ratio:2048/682}

body.home-v7 .home-hero,
body.premium-v8--about .hero-v6,
body.premium-v8--estate .hero-v6,
body.premium-v8--finance .hero-v6,
body.premium-v8--catalog .hero-v6,
body.premium-v8--news .hero-v6,
body.premium-v8--contact .hero-v6{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:var(--hero-final-ratio)!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
  overflow:hidden!important;
}

body.home-v7 .home-hero{background-image:url('/assets/hero-v15/hero-home.png')!important}
body.premium-v8--about .hero-v6{background-image:url('/assets/hero-v15/hero-about.png')!important}
body.premium-v8--estate .hero-v6{background-image:url('/assets/hero-v15/hero-estate.png')!important}
body.premium-v8--finance .hero-v6{background-image:url('/assets/hero-v15/hero-finance.png')!important}
body.premium-v8--catalog .hero-v6{background-image:url('/assets/hero-v15/hero-surveys.png')!important}
body.premium-v8--news .hero-v6{background-image:url('/assets/hero-v15/hero-news.png')!important}
body.premium-v8--contact .hero-v6{background-image:url('/assets/hero-v15/hero-contact.png')!important}

/* Disable all legacy generated/background portrait layers. */
body.home-v7 .home-hero:before,
body.home-v7 .home-hero:after,
body.premium-v8--about .hero-v6:before,
body.premium-v8--about .hero-v6:after,
body.premium-v8--estate .hero-v6:before,
body.premium-v8--estate .hero-v6:after,
body.premium-v8--finance .hero-v6:before,
body.premium-v8--finance .hero-v6:after,
body.premium-v8--catalog .hero-v6:before,
body.premium-v8--catalog .hero-v6:after,
body.premium-v8--news .hero-v6:before,
body.premium-v8--news .hero-v6:after,
body.premium-v8--contact .hero-v6:before,
body.premium-v8--contact .hero-v6:after,
body.premium-v8--about .hero-v6__inner:after,
body.premium-v8--estate .hero-v6__inner:after,
body.premium-v8--finance .hero-v6__inner:after,
body.premium-v8--catalog .hero-v6__inner:after,
body.premium-v8--news .hero-v6__inner:after,
body.premium-v8--contact .hero-v6__inner:after{
  content:none!important;
  display:none!important;
}

/* Keep the real HTML for accessibility, but do not draw it over the baked banner. */
body.home-v7 .home-hero__logo,
body.home-v7 .home-hero__slogan,
body.home-v7 .home-hero__copy>h1,
body.home-v7 .home-hero__role,
body.home-v7 .home-hero__lead,
body.premium-v8--about .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--estate .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--finance .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--catalog .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--news .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--contact .hero-v6__copy>*:not(.button):not(.news-filter),
body.premium-v8--about .hero-v6__portrait,
body.premium-v8--estate .hero-v6__portrait,
body.premium-v8--finance .hero-v6__portrait,
body.premium-v8--catalog .hero-v6__portrait,
body.premium-v8--news .hero-v6__portrait,
body.premium-v8--contact .hero-v6__portrait{
  opacity:0!important;
  visibility:hidden!important;
}

/* Make the hero inner layer fill the banner so invisible click targets can be aligned to baked buttons. */
body.home-v7 .home-hero__inner,
body.premium-v8--about .hero-v6__inner,
body.premium-v8--estate .hero-v6__inner,
body.premium-v8--finance .hero-v6__inner,
body.premium-v8--catalog .hero-v6__inner,
body.premium-v8--news .hero-v6__inner,
body.premium-v8--contact .hero-v6__inner{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.home-v7 .home-hero__copy,
body.premium-v8--about .hero-v6__copy,
body.premium-v8--estate .hero-v6__copy,
body.premium-v8--finance .hero-v6__copy,
body.premium-v8--catalog .hero-v6__copy,
body.premium-v8--news .hero-v6__copy,
body.premium-v8--contact .hero-v6__copy{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}

/* HOME: two invisible click targets over the two baked buttons. */
body.home-v7 .home-hero__actions{
  position:absolute!important;
  left:4.10%!important;
  top:73.75%!important;
  width:52.4%!important;
  height:13.5%!important;
  display:flex!important;
  gap:2.0%!important;
  margin:0!important;
  padding:0!important;
}
body.home-v7 .home-hero__actions .home-button{
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  pointer-events:auto!important;
}
body.home-v7 .home-hero__actions .home-button:first-child{width:49.7%!important}
body.home-v7 .home-hero__actions .home-button:last-child{width:46.8%!important}

/* ESTATE + FINANCE: invisible click target over the baked CTA button. */
body.premium-v8--estate .hero-v6__copy>.button,
body.premium-v8--finance .hero-v6__copy>.button{
  position:absolute!important;
  left:4.10%!important;
  top:73.1%!important;
  width:28.7%!important;
  height:14.6%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  visibility:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  pointer-events:auto!important;
}
body.premium-v8--finance .hero-v6__copy>.button{width:22.2%!important}

/* NEWS: invisible click targets over the four baked filter buttons. */
body.premium-v8--news .news-filter{
  position:absolute!important;
  left:4.10%!important;
  top:75.6%!important;
  width:49.5%!important;
  height:11.8%!important;
  display:flex!important;
  gap:1.35%!important;
  margin:0!important;
  padding:0!important;
  visibility:visible!important;
}
body.premium-v8--news .news-filter .button{
  flex:1 1 0!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  visibility:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  pointer-events:auto!important;
}

/* Avoid the older responsive hero rules from reintroducing portrait/text layers. */
@media(max-width:1120px){
  body.home-v7 .home-hero,
  body.premium-v8--about .hero-v6,
  body.premium-v8--estate .hero-v6,
  body.premium-v8--finance .hero-v6,
  body.premium-v8--catalog .hero-v6,
  body.premium-v8--news .hero-v6,
  body.premium-v8--contact .hero-v6{height:auto!important;min-height:0!important;aspect-ratio:var(--hero-final-ratio)!important}
}
