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

@layer site {

/* the hero: their video's first frame, 780px tall, the button at the bottom left */
.cl-hero { position: relative; height: 780px; overflow: hidden; background: var(--site-dark); }
.cl-hero__img { width: 100%; height: 100%; object-fit: cover; }
.cl-hero__in { position: absolute; left: 69px; bottom: 112px; }
.cl-hero__band { position: absolute; left: 0; right: 0; bottom: 0; }


/* the six series tiles: 476px squares, 6px apart, their orange capitals over a 20% shade */
.cl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 20px 0 30px; }
.cl-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: var(--site-accent); }
.cl-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cl-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.cl-tile:hover .cl-tile__img { transform: scale(1.03); }
.cl-tile__body { position: absolute; left: 30px; bottom: 30px; z-index: 1; display: grid; justify-items: start; gap: 11px; }
.cl-tile__h { font: 700 34px/40.8px var(--site-font-heading); letter-spacing: 0.01em; text-transform: uppercase; }
.cl-tile__btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 25px;
  background: #080808; color: #FFFFFF; font: 600 15px/24px var(--site-font-button); text-transform: uppercase;
}
.cl-tile:hover .cl-tile__btn { background: var(--site-accent); color: var(--site-accent-fg); }

/* the wide photo band */
.cl-wide { position: relative; display: block; height: 300px; margin-bottom: 30px; overflow: hidden; }
.cl-wide__img { width: 100%; height: 100%; object-fit: cover; }
.cl-wide__h {
  position: absolute; left: 70px; top: 188px;
  font: 700 38px/41.8px var(--site-font-heading); letter-spacing: 0.01em; text-transform: uppercase; color: var(--site-accent);
}
.cl-wide:hover .cl-wide__h { text-decoration: underline; text-underline-offset: 4px; }


/* the strip of three promises */
.cl-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 36px; background: var(--site-soft);
  border-top: 1px solid var(--site-soft-line); border-bottom: 1px solid var(--site-soft-line);
}
.cl-benefit { display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 32px 40px; min-height: 121px; }
.cl-benefit + .cl-benefit { border-left: 1px solid var(--site-soft-line); }
.cl-benefit__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: var(--site-bg); border: 1px solid rgba(25, 25, 25, 0.1); box-shadow: 0 3px 12px rgba(25, 25, 25, 0.06); color: var(--site-accent);
}
.cl-benefit__h { display: block; font: 700 13px/16.25px var(--site-font-heading); letter-spacing: 0.06em; text-transform: uppercase; }
.cl-benefit__p { display: block; margin-top: 7px; font: 500 13px/17.4px var(--site-font-body); color: var(--site-fg); }
.cl-benefit__p--phone { display: none; }
/* the dark page: the promise icon's box ruled like the band */
:root[data-parts-theme="dark"] .cl-benefit__icon { border-color: var(--site-soft-line); }

@media (max-width: 979.98px) {
  .cl-hero { height: 580px; }
  .cl-hero__in { left: 19px; bottom: 296px; }
  .cl-tiles { grid-template-columns: 1fr; }
  .cl-tile__h { font-size: 27.2px; line-height: 32.64px; }
  .cl-tile__btn { height: 41.6px; padding: 0 25px; font-size: 13.5px; }
  .cl-wide__h { left: 20px; top: auto; bottom: 20px; font-size: 24px; line-height: 26px; }
  .cl-benefits { grid-template-columns: 1fr; padding: 0 20px; }
  .cl-benefit { justify-content: flex-start; padding: 20px 4px; min-height: 80px; }
  .cl-benefit + .cl-benefit { border-left: 0; border-top: 1px solid var(--site-soft-line); }
  .cl-benefit__p--wide { display: none; }
  .cl-benefit__p--phone { display: block; }
  .cl-benefit__icon { width: 40px; height: 40px; }
}

}
