/* Homepage conversion fold — lacaralarm.com only.
   The Impala stays the photo. Copy sits ON it so LA Car Alarm, the
   Viper $269 / Compustar $499 lead, and Call / Text / Quote read in the
   first viewport instead of under a full-bleed 16:9 wall.
   City and contact banners keep the stacked .hero-banner rules. */

body.page-home .hero-banner--fold{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:calc(100svh - 10rem);
  height:auto;
  padding:0;
  overflow:hidden;
  background:#000;
}

body.page-home .hero-banner--fold .hero-banner-photo{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:auto;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#000;
  line-height:0;
}

body.page-home .hero-banner--fold .hero-banner-photo picture{
  display:block;
  width:100%;
  height:100%;
}

body.page-home .hero-banner--fold .hero-banner-photo img{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:center 58%;
  background:#000;
}

/* Night scrim: keep the brighter Impala, put type on the dark pavement. */
body.page-home .hero-banner--fold::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(10,14,20,.10) 32%, rgba(10,14,20,.42) 58%, rgba(10,14,20,.88) 100%),
    linear-gradient(90deg, rgba(10,14,20,.38) 0%, rgba(10,14,20,.10) 46%, transparent 72%);
}

body.page-home .hero-banner--fold > .container{
  position:relative;
  z-index:2;
  width:100%;
}

body.page-home .hero-banner--fold .hero-banner-copy{
  position:relative;
  z-index:2;
  max-width:36rem;
  padding:20px 0 28px;
}

body.page-home .hero-banner--fold .hero-banner-copy .hero-brand,
body.page-home .hero-banner--fold .hero-banner-copy h1{
  text-shadow:0 1px 16px rgba(0,0,0,.65);
}

body.page-home .hero-banner--fold .hero-banner-copy .lead{
  color:#F5F5F5;
  text-shadow:0 1px 14px rgba(0,0,0,.7);
}

@media (min-width: 720px){
  body.page-home .hero-banner--fold .hero-banner-copy{ padding:24px 0 32px; }
}

@media (max-width: 1120px){
  /* Wrapping topbar + header measured 226px at 390×844. Copy clears the sticky bar. */
  body.page-home .hero-banner--fold{
    min-height:calc(100svh - 14.25rem);
  }
  body.page-home .hero-banner--fold .hero-banner-copy{
    padding-bottom:calc(72px + 16px);
  }
}

@supports not (height: 100svh){
  body.page-home .hero-banner--fold{ min-height:calc(100vh - 10rem); }
  @media (max-width: 1120px){
    body.page-home .hero-banner--fold{ min-height:calc(100vh - 14.25rem); }
  }
}

/* Phone: keep the overlay copy, but do not landscape-crop the 9:16 mobile
   hero. The photo sizes to its file so any baked-in title stays in frame. */
@media (max-width: 767px){
  body.page-home .hero-banner--fold{
    display:block;
    min-height:0;
    overflow:visible;
  }
  body.page-home .hero-banner--fold .hero-banner-photo{
    position:relative;
    inset:auto;
    height:auto;
    overflow:visible;
  }
  body.page-home .hero-banner--fold .hero-banner-photo picture,
  body.page-home .hero-banner--fold .hero-banner-photo img{
    width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
  }
  body.page-home .hero-banner--fold::after{
    display:none;
  }
}
