/* cl-home.css: Roush's home (templates/home.html), written from their measurements at 1440 and in the 390
   phone stage: each section keeps their height.
   Every rule sits in @layer site (cl-site.css: the layer order). */
@layer base, kit, site;

@layer site {

.cl-h2 { font: 400 44px/52px var(--site-font-heading); letter-spacing: 2.2px; text-transform: uppercase; text-align: center; color: var(--site-fg); }

/* their three red slashes */
.cl-slashes { display: flex; gap: 12px; height: 55px; padding-left: 12px; }
.cl-slashes i { display: block; width: 24px; height: 100%; background: var(--site-accent); transform: skewX(-24deg); }

/* ---------- hero: the still of their video ---------- */
.cl-hero { position: relative; height: 750px; background: var(--site-hero-bg) var(--cl-hero) center / cover no-repeat; color: var(--site-on-dark); }
.cl-hero__box { position: absolute; left: 60px; top: 109px; width: 580px; }
.cl-hero__h { margin-top: 30px; font: 400 64px/68px var(--site-font-heading); letter-spacing: 5px; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.cl-hero__btn { margin-top: 35px; min-width: 180px; }
.cl-hero__band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }

/* ---------- Performance Parts tiles ---------- */
.cl-parts { background: var(--site-card); padding: 65px 0 50px; height: 737.6px; }
.cl-parts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 440px)); gap: 30px; justify-content: center; margin-top: 30px; padding: 0 16px; }
.cl-tile__a { position: relative; display: flex; flex-direction: column; align-items: center; height: 247.6px; padding-top: 59.6px; color: var(--site-on-dark); overflow: hidden; }
.cl-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-tile__a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 75%); }
.cl-tile__h, .cl-tile__btn { position: relative; z-index: 1; }
.cl-tile__h { font: 400 44px/52px var(--site-font-heading); letter-spacing: 2.2px; text-transform: uppercase; }
.cl-tile__btn { margin-top: 30px; min-width: 187px; }
.cl-tile__a:hover .cl-tile__btn::before { background: var(--site-accent); border-color: var(--site-accent); }

/* ---------- phones: their 390 stage ---------- */
@media (max-width: 979.98px) {
  .cl-h2 { font-size: 30px; line-height: 36px; letter-spacing: 1.5px; }
  .cl-slashes { height: 35px; gap: 8px; padding-left: 8px; }
  .cl-slashes i { width: 16px; }

  .cl-hero { height: auto; padding-top: 450px; background-size: auto 450px; background-position: 72% top; background-color: var(--site-dark); }
  .cl-hero__box { left: 30px; top: 46px; width: 330px; }
  .cl-hero__h { margin-top: 36px; font-size: 34px; line-height: 38px; letter-spacing: 2px; }
  .cl-hero__btn { margin-top: 50px; min-width: 144px; min-height: 40px; }
  .cl-hero__band { position: static; }

  .cl-parts { height: 1390.8px; padding: 25px 15px 0; }
  .cl-parts__grid { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; padding: 0; }
  .cl-tile__a { height: 202.3px; padding-top: 51px; }
  .cl-tile__h { font-size: 30px; line-height: 36px; letter-spacing: 1.5px; }
  .cl-tile__btn { margin-top: 23px; min-width: 151px; min-height: 40px; }
}

}
