/* Truck Parts Superstore — depth-parallax hero carousel */
.tps-hero{
  position:relative;width:100%;overflow:hidden;background:#0a0b0d;
  height:clamp(460px,65vh,760px);
  font-family:'Jost',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:#fff;isolation:isolate;--tps-red:#e21f27;
}
.tps-hero *{box-sizing:border-box}
.tps-hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1}
/* darkening scrim for text legibility (text sits on the left) */
.tps-hero__scrim{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,7,9,.92) 0%,rgba(6,7,9,.8) 24%,rgba(6,7,9,.5) 48%,rgba(6,7,9,.14) 72%,rgba(6,7,9,0) 90%),
    linear-gradient(0deg,rgba(6,7,9,.5) 0%,rgba(6,7,9,0) 36%);
}
/* slides text */
.tps-hero__stage{position:absolute;inset:0;z-index:3;display:flex;align-items:center}
.tps-hero__wrap{width:100%;max-width:1240px;margin:0 auto;padding:0 clamp(20px,5vw,64px)}
.tps-hero__slides{position:relative;max-width:700px;text-align:left}
.tps-slide{
  position:absolute;top:50%;left:0;transform:translateY(-50%);width:100%;
  opacity:0;visibility:hidden;transition:opacity .5s ease;
}
.tps-slide.is-active{opacity:1;visibility:visible}
.tps-slide__eyebrow{
  display:inline-block;font-size:clamp(11px,1.5vw,13px);font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:#fff;background:var(--tps-red);
  padding:6px 13px;border-radius:3px;margin:0 0 16px;
  transform:translateY(14px);opacity:0;transition:transform .6s cubic-bezier(.2,.7,.2,1) .08s,opacity .6s ease .08s;
}
.tps-slide__title{
  margin:0 0 14px;font-weight:700;line-height:1.04;letter-spacing:-.01em;
  font-size:clamp(28px,4.4vw,56px);text-transform:uppercase;
  text-shadow:0 1px 4px rgba(0,0,0,.6),0 2px 34px rgba(0,0,0,.55);
  transform:translateY(18px);opacity:0;transition:transform .6s cubic-bezier(.2,.7,.2,1) .16s,opacity .6s ease .16s;
}
.tps-slide__sub{
  margin:0 0 26px;font-family:'Jost',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:clamp(15px,2vw,19px);line-height:1.5;font-weight:400;color:rgba(255,255,255,.92);
  max-width:30em;text-shadow:0 1px 3px rgba(0,0,0,.9),0 2px 18px rgba(0,0,0,.6);
  transform:translateY(18px);opacity:0;transition:transform .6s cubic-bezier(.2,.7,.2,1) .24s,opacity .6s ease .24s;
}
.tps-slide__cta{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'Jost',sans-serif;font-weight:600;font-size:clamp(14px,1.7vw,16px);
  letter-spacing:.06em;text-transform:uppercase;text-decoration:none;
  color:#fff;background:var(--tps-red);padding:14px 26px;border-radius:4px;
  transform:translateY(18px);opacity:0;transition:transform .6s cubic-bezier(.2,.7,.2,1) .32s,opacity .6s ease .32s,background .18s,box-shadow .18s;
  box-shadow:0 10px 26px rgba(226,31,39,.32);
}
.tps-slide__cta:hover{background:#c5171e;box-shadow:0 12px 30px rgba(226,31,39,.45);color:#fff}
.tps-slide__cta svg{width:17px;height:17px;transition:transform .2s}
.tps-slide__cta:hover svg{transform:translateX(3px)}
.tps-slide.is-active .tps-slide__eyebrow,
.tps-slide.is-active .tps-slide__title,
.tps-slide.is-active .tps-slide__sub,
.tps-slide.is-active .tps-slide__cta{transform:translateY(0);opacity:1}

/* controls */
.tps-hero__dots{
  position:absolute;z-index:4;left:50%;bottom:22px;transform:translateX(-50%);
  display:flex;gap:9px;align-items:center;
}
.tps-hero__wrap .tps-hero__dots{left:auto}
.tps-dot{
  width:30px;height:4px;border-radius:3px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.32);overflow:hidden;position:relative;transition:background .2s;
}
.tps-dot:hover{background:rgba(255,255,255,.5)}
.tps-dot__fill{position:absolute;inset:0;width:0;background:var(--tps-red);border-radius:3px}
.tps-dot.is-active{background:rgba(255,255,255,.28)}
.tps-arrow{
  position:absolute;z-index:4;top:50%;transform:translateY(-50%);
  width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.25);
  background:rgba(10,11,13,.32);backdrop-filter:blur(4px);color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s;
}
.tps-arrow:hover{background:rgba(226,31,39,.85);border-color:rgba(226,31,39,.9)}
.tps-arrow svg{width:20px;height:20px}
.tps-arrow--prev{left:18px}
.tps-arrow--next{right:18px}
.tps-hero__loader{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#0a0b0d;transition:opacity .5s;color:rgba(255,255,255,.4);font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.tps-hero__loader.is-hidden{opacity:0;pointer-events:none}

@media(max-width:860px){
  .tps-hero{height:clamp(440px,74vh,620px)}
  .tps-hero__scrim{background:linear-gradient(0deg,rgba(6,7,9,.82) 2%,rgba(6,7,9,.35) 45%,rgba(6,7,9,.12) 100%),linear-gradient(90deg,rgba(6,7,9,.45),rgba(6,7,9,0) 70%)}
  .tps-hero__stage{align-items:flex-end;padding-bottom:64px}
  .tps-hero__slides{max-width:100%;margin-left:0;text-align:left}
  .tps-slide__sub{margin-left:0}
  .tps-slide{position:absolute;top:auto;bottom:0;transform:none}
  .tps-slide.is-active{position:relative}
  .tps-arrow{display:none}
  .tps-hero__dots{bottom:20px}
}
@media(prefers-reduced-motion:reduce){
  .tps-slide,.tps-slide__eyebrow,.tps-slide__title,.tps-slide__sub,.tps-slide__cta{transition:opacity .3s ease}
  .tps-slide__eyebrow,.tps-slide__title,.tps-slide__sub,.tps-slide__cta{transform:none}
}
/* collapse the theme's empty page-banner (.custom-header) above the hero.
   this stylesheet only loads on the page that uses [tps_hero], so this is home-page only. */
.custom-header{padding:0 !important;margin:0 !important;min-height:0 !important;border:0 !important;height:auto !important}
/* beat theme overrides (Pitstop forces h2/headings dark + centred) */
.tps-hero .tps-slide__title{color:#fff !important;text-align:left !important;margin:0 0 14px !important;padding:0 !important;max-width:none !important}
.tps-hero .tps-slide__eyebrow{color:#fff !important}
.tps-hero .tps-slide__sub{color:rgba(255,255,255,.92) !important}
.tps-hero .tps-slide__cta{color:#fff !important}
.tps-hero .tps-slide__cta:hover{color:#fff !important}
