/* ==========================================================================
   Engifted — home.css
   Hero slideshow recreates the engifted.com Slider Revolution timing:
   - slides cross-fade (in: opacity 0 → 1)
   - left photo enters from x:-50px (start 210ms, 1200ms), right photo from x:+50px (start 980ms, 1110ms)
   - "SHOP NOW" buttons drop in from y:-50px (start ~2400ms, 650–940ms)
   - hover: white text on #F16564; each slide holds ~7s
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #f8f8f8 url("/assets/img/brand/slider-bg-1177.webp") center / cover no-repeat;
}
.hero__stage {
  position: relative; max-width: 1240px; margin: 0 auto;
  aspect-ratio: 1240 / 757; max-height: calc(100vh - var(--header-h) - var(--announce-h));
  min-height: 420px;
}
.hero__slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.9vw, 24px);
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.hero__panel { position: relative; overflow: hidden; }
.hero__imglink { display: block; height: 100%; }
.hero__img, .hero__panel picture { width: 100%; height: 100%; object-fit: cover; }

.hero__panel--left .hero__img { transform: translate3d(-50px, 0, 0); opacity: 0; }
.hero__panel--right .hero__img { transform: translate3d(50px, 0, 0); opacity: 0; }
.hero__slide.is-active .hero__panel--left .hero__img {
  transform: none; opacity: 1; transition: transform 1.2s var(--ease-out) .21s, opacity 1.2s var(--ease-out) .21s;
}
.hero__slide.is-active .hero__panel--right .hero__img {
  transform: none; opacity: 1; transition: transform 1.11s var(--ease-out) .98s, opacity 1.11s var(--ease-out) .98s;
}
.hero__slide.is-active .hero__imglink:hover .hero__img { transform: scale(1.03); transition-delay: 0s; transition-duration: 1.2s; }

.hero__btn {
  position: absolute; left: 50%; bottom: 7%; z-index: 2;
  background: #fff; color: var(--c-ink); padding: 16px 38px; font-size: clamp(.8rem, 1.1vw, 1rem); letter-spacing: .2em;
  transform: translate3d(-50%, -50px, 0); opacity: 0;
}
.hero__slide.is-active .hero__btn {
  transform: translate3d(-50%, 0, 0); opacity: 1;
  transition: transform .94s var(--ease-out) 2.4s, opacity .94s var(--ease-out) 2.4s, background-color .3s, color .3s;
}
.hero__btn:hover { background: var(--c-accent-hover); color: #fff; }
.hero__badge {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(64px, 8vw, 112px); aspect-ratio: 1; /* always a perfect circle */
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%) scale(.6); opacity: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  pointer-events: none; /* decorative: clicks fall through to the photo underneath */
}
.hero__badge picture { display: contents; }
/* emblem-badge.png already has a 6% transparent margin on every side, so the glyph itself is
   ~64% of the circle's height. Nothing here clips: no overflow on the badge, contain on the img. */
.hero__emblem { display: block; height: 73%; width: auto; max-width: 73%; max-height: 73%; object-fit: contain; overflow: visible; flex: none; }
.hero__slide.is-active .hero__badge {
  transform: translate(-50%, -50%) scale(1); opacity: 1;
  transition: transform .92s var(--ease-out) 1.7s, opacity .92s var(--ease-out) 1.7s;
}

.hero__arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85);
  display: grid; place-items: center; opacity: 0; transition: opacity .3s, background-color .3s, color .3s;
}
.hero:hover .hero__arrow, .hero__arrow:focus-visible { opacity: 1; }
.hero__arrow:hover { background: var(--c-accent-hover); color: #fff; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; justify-content: center; gap: 10px;
  pointer-events: none; /* the full-width strip mustn't block the photo links; the dots themselves stay clickable */
}
.hero__dots button {
  width: 34px; height: 3px; border: 0; padding: 0; background: rgba(0,0,0,.25); transition: background-color .3s;
}
.hero__dots button[aria-selected="true"] { background: var(--c-ink); }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; pointer-events: none; }
.hero__dots button { pointer-events: auto; }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--c-accent); }
.hero__progress span.is-running { animation: hero-progress linear forwards; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }

/* ---------- Split sections (35% text / 65% image) ---------- */
.split {
  display: grid; grid-template-columns: 35% 65%; align-items: center;
  margin-top: clamp(30px, 8vw, 120px); overflow: hidden;
}
.split--reverse { grid-template-columns: 65% 35%; }
.split--reverse .split__text { order: 2; }
.split__text { padding: 0 clamp(20px, 3vw, 56px); text-align: center; }
.split__eyebrow {
  font-family: var(--f-display); font-size: clamp(.7rem, 1.08vw, 1rem); letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; margin-bottom: 1.2em;
}
.split__title { font-size: clamp(2.2rem, 4vw, 4.6rem); margin-bottom: .4em; }
.split .lead-caps { color: var(--c-text); max-width: 34ch; margin-left: auto; margin-right: auto; }
.split .btn--pill { margin-top: .8em; font-size: clamp(.9rem, 1.5vw, 1.35rem); padding: 14px 34px; }
.split__media img { width: 100%; height: auto; }

/* ---------- Banners ---------- */
.banner {
  position: relative; margin-top: clamp(40px, 8vw, 120px);
  display: grid; align-items: center; min-height: clamp(320px, 29.4vw, 620px); overflow: hidden;
}
.banner__bg, .banner__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__content { position: relative; z-index: 1; padding: 50px var(--gutter); text-align: center; }
.banner--center .banner__content { justify-self: center; }
.banner--right .banner__content { justify-self: end; width: min(56%, 900px); }
.banner__title { font-size: clamp(2.2rem, 4vw, 4.8rem); margin-bottom: .35em; }
.banner__sub { margin-bottom: 1.2em; }
.banner .btn--pill { font-size: clamp(1rem, 1.8vw, 1.6rem); letter-spacing: .1em; padding: 15px 50px; }
.banner--light .banner__title, .banner--light .banner__sub { color: var(--c-ink); }
.banner--dark .banner__title, .banner--dark .banner__sub { color: #fff; }
.banner--dark .banner__content { text-shadow: 0 2px 24px rgba(0,0,0,.25); }

/* ---------- Latest strip ---------- */
.latest { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.latest__head { text-align: center; margin-bottom: 40px; }
.latest__more { text-align: center; margin-top: 48px; }

/* ---------- Responsive (engifted.com breakpoints 1024 / 767) ---------- */
@media (max-width: 1024px) {
  .split__title { font-size: 3.9vw; }
}
@media (max-width: 767px) {
  .hero__stage { aspect-ratio: auto; height: 118vw; min-height: 0; max-height: none; }
  .hero__slide { gap: 6px; }
  .hero__btn { padding: 12px 18px; font-size: .7rem; letter-spacing: .14em; white-space: nowrap; }
  .hero__arrow { display: none; }

  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .split__text { padding: 36px 22px; }
  .split__eyebrow { font-size: 2.5vw; letter-spacing: .35em; }
  .split__title { font-size: 9.7vw; }
  .split .lead-caps { font-size: 3.5vw; letter-spacing: .06em; }
  .split .btn--pill { font-size: .9rem; }

  .banner { min-height: 440px; }
  .banner__bg img { object-position: 20% center; }
  .banner--right .banner__content { width: 100%; justify-self: stretch; }
  .banner::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); }
  .banner--dark::after { background: rgba(0,0,0,.45); }
  .banner__title { font-size: 9.7vw; }
  .banner .btn--pill { font-size: 1rem; padding: 14px 34px; }
}
