/* ===========================================================================
   Elev8 Depictions - premium "flare" layer over the Top Cars Telford base.
   Adapted from 21st.dev patterns (tilt-card spotlight, scroll-reveal, count-up),
   rebuilt in vanilla + tuned to the brand (red #cc0000, ink, white, Poppins).
   Everything is additive; nothing here is required for the page to function.
   =========================================================================== */

/* ---- scroll reveal (only hides once JS arms it, so a no-JS/failed load still
        shows all content: fail-safe against the blank-reveal trap) ---- */
html.e8-armed .e8-reveal{
  opacity:0;
  transform:translateY(26px);
  filter:blur(5px);
  transition:opacity .8s cubic-bezier(.16,1,.3,1),
             transform .8s cubic-bezier(.16,1,.3,1),
             filter .8s ease;
  will-change:opacity, transform;
}
html.e8-armed .e8-reveal.e8-in{ opacity:1; transform:none; filter:none; }
@media (prefers-reduced-motion:reduce){
  html.e8-armed .e8-reveal{ opacity:1 !important; transform:none !important; filter:none !important; transition:none !important; }
}

/* ---- premium car cards: hover lift, image zoom, 3D tilt + cursor spotlight ---- */
.list-box-wrapper{ transition:box-shadow .35s ease; }
@media (hover:hover) and (min-width:901px){
  .list-box-wrapper{ will-change:transform; transform-style:preserve-3d; border-radius:4px; }
  .list-box-wrapper:hover{ box-shadow:0 26px 55px -18px rgba(0,0,0,.55); z-index:3; }
  .list-box-wrapper .car-full-view,
  .list-box-wrapper .imgspin,
  .list-box-wrapper .list-box-view{ overflow:hidden; }
  .list-box-wrapper .stock-imgs,
  .list-box-wrapper .imgspin img{ transition:transform .6s cubic-bezier(.16,1,.3,1); }
  .list-box-wrapper:hover .stock-imgs,
  .list-box-wrapper:hover .imgspin img{ transform:scale(1.07); }
  .list-box-wrapper .e8-spot{
    position:absolute; inset:0; pointer-events:none; z-index:4;
    opacity:0; transition:opacity .3s ease; border-radius:inherit;
  }
  .list-box-wrapper:hover .e8-spot{ opacity:1; }
}

/* ---- micro-interactions: lift + red glow on the primary CTAs ---- */
@media (hover:hover){
  .btn.btn-outline,
  .search-btn-landing, .budget_search_btn,
  .car-detail-btn a, .car-reserve-btn,
  .flip-button-box a, .enquiry_btn, .apply-btn, .see-sm span{
    transition:transform .2s ease, box-shadow .28s ease, background-color .25s ease, color .2s ease !important;
  }
  .btn.btn-outline:hover,
  .search-btn-landing:hover, .budget_search_btn:hover,
  .car-detail-btn a:hover, .flip-button-box a:hover, .enquiry_btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 26px -10px rgba(204,0,0,.55);
  }
}

/* ---- Elev8 trust band (injected on the homepage) ---- */
.e8-trust{
  background:#111;
  color:#fff;
  padding:34px 20px;
}
.e8-trust-inner{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  text-align:center;
}
.e8-trust-item{ padding:8px 10px; position:relative; }
.e8-trust-item + .e8-trust-item::before{
  content:""; position:absolute; left:0; top:18%; height:64%; width:1px;
  background:rgba(255,255,255,.14);
}
.e8-trust-num{
  font-family:inherit; font-weight:800; line-height:1;
  font-size:clamp(2rem, 5vw, 3.1rem); color:#fff; letter-spacing:-.02em;
}
.e8-trust-num .e8-accent{ color:#e30613; }
.e8-trust-label{
  margin-top:9px; font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.62); font-weight:600;
}
@media (max-width:760px){
  .e8-trust-inner{ grid-template-columns:repeat(2,1fr); gap:22px 10px; }
  .e8-trust-item:nth-child(3)::before,
  .e8-trust-item:nth-child(2n+1)::before{ display:none; }
  .e8-trust{ padding:26px 16px; }
}
