/* Young Corporation — homepage/hero.css
   Extracted from style.css. Depends on global/global.css tokens. */

/* Hero slider: full-bleed rounded image stage, copy card bottom-left, brand thumbs bottom-right */
.hero-slider { padding: 0; }
.hero-slider__stage {
  position: relative; overflow: hidden;
  min-height: 80vh; background: var(--navy);
  isolation: isolate;
}
.hero-slider__slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .7s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1); transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-slide__img { transform: scale(1.12); }
.hero-slider__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,15,35,.05) 0%, rgba(8,15,35,.1) 55%, rgba(8,15,35,.55) 100%);
}

/* Container-aligned layer for copy + thumbnails */
.hero-slider__inner {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  width: min(var(--maxw), 100%); margin-inline: auto;
}
.hero-slider__inner > * { pointer-events: auto; }

/* Copy card */
.hero-slider__copy {
  position: absolute; left: 24px; bottom: clamp(1.4rem, 2.5vw, 2.2rem); z-index: 2;
  width: min(46%, 520px);
  color: #fff;
}
.hero-slider__text { font-size: clamp(.95rem, 1.2vw, 1.06rem); line-height: 1.5; color: #fff; margin: 0 0 1.4rem; max-width: 42ch; text-shadow: 0 1px 12px rgba(8,15,35,.7); }
.hero-slider__controls { display: flex; align-items: center; gap: 1.2rem; }
.hero-slider__progress { flex: 1; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.hero-slider__progress > span { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.hero-slider__arrows { display: flex; gap: .6rem; }
.hero-slider__arrow {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff;
  font-size: 1.05rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hero-slider__arrow:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Brand thumbnails / selectors */
.hero-slider__thumbs {
  position: absolute; right: 24px; bottom: clamp(1rem, 2vw, 1.6rem); z-index: 2;
  display: flex; gap: .8rem;
}
.hero-thumb {
  position: relative; width: clamp(130px, 12vw, 168px); height: clamp(84px, 9vw, 104px);
  border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden;
  background: var(--navy); color: #fff; text-align: left;
  box-shadow: 0 6px 20px rgba(8,15,35,.35);
  opacity: .72; transform: translateY(0); transition: opacity .25s ease, box-shadow .25s ease, outline-color .25s ease;
  outline: 2px solid transparent; outline-offset: 0;
}
.hero-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,35,0) 30%, rgba(8,15,35,.8) 100%); }
.hero-thumb__meta { position: absolute; left: .7rem; bottom: .55rem; z-index: 1; display: flex; flex-direction: column; line-height: 1.2; }
.hero-thumb__meta b { font-family: var(--font-display); font-size: .9rem; }
.hero-thumb__meta small { font-size: .72rem; color: #cdd6ea; }
.hero-thumb:hover { opacity: 1; }
.hero-thumb.is-active { opacity: 1; outline-color: #fff; box-shadow: 0 8px 26px rgba(8,15,35,.5); }
.hero-thumb:focus-visible { outline-color: var(--sky); }

@media (max-width: 900px) {
  .hero-slider__copy { width: min(60%, 460px); }
  .hero-slider__thumbs .hero-thumb:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .hero-slider__stage { min-height: 80vh; }
  .hero-slider__copy { width: calc(100% - 48px); bottom: 6rem; }
  .hero-slider__thumbs { right: 16px; left: 16px; justify-content: center; overflow-x: auto; }
  .hero-thumb { width: 108px; height: 66px; }
  .hero-slider__thumbs .hero-thumb:nth-child(n+3) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide__img, .hero-slide.is-active .hero-slide__img { transform: none; transition: none; }
  .hero-slider__progress > span { transition: none; }
}
