/* ============================================
   위츠 Hero — Image Slider with Product Nav
   Archive: a1_ewits_hero_image-slider
   Original: https://www.ewits.co.kr
   ============================================ */

/* 로컬 --wd-* 는 전역 --bmt-* 로 연결만 한다 (값의 출처를 한 곳으로) */
.wd-hero {
  --wd-primary: var(--bmt-accent);
  --wd-text-inverse: var(--bmt-inverse);
  --wd-surface-dark: var(--bmt-surface-dark);
  --wd-font-primary: var(--bmt-font);
  --wd-font-secondary: var(--bmt-font);
  --wd-transition-custom: 0.6s cubic-bezier(0.4, 0, 0.2, 1);   /* 슬라이드 전용 */
}

/* ── Hero Container ── */
.wd-hero {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: var(--wd-surface-dark);
}

/* ── Background Images ── */
.wd-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wd-hero__bg ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-hero__bg-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wd-hero__bg-item div {
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1) rotate(0.0001deg);
  transition:
    transform 3s cubic-bezier(0.4, 0, 1, 1),
    opacity 2s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 2s cubic-bezier(0.23, 1, 0.32, 1);
  background-size: cover !important;
}

.wd-hero__bg-item--active div {
  visibility: visible;
  opacity: 1;
  transform: scale(1) rotate(0.0001deg);
}

/* ── Product Navigation (Bottom Columns) ── */
.wd-hero__nav {
  display: table;
  width: 100%;
  height: 100%;
  table-layout: fixed;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.wd-hero__nav-item {
  display: table-cell;
  position: relative;
  width: 33.33%;
  height: 100%;
  vertical-align: top;
}

.wd-hero__nav-item::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(5rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
  opacity: 0;
  content: '';
  transition: var(--wd-transition-custom);
}

.wd-hero__nav-item--active::before {
  transform: translateY(0);
  opacity: 1;
}

.wd-hero__nav-item > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.wd-hero__nav-inner {
  padding-bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.wd-hero__nav-title {
  font-family: var(--wd-font-secondary);
  font-size: 2.6rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--wd-transition-custom);
  margin: 0;
}

.wd-hero__nav-item--active .wd-hero__nav-title {
  color: var(--wd-primary);
}

/* ── Center Text Overlay ── */
.wd-hero__text {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.wd-hero__text-box {
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wd-hero__heading {
  font-family: var(--wd-font-primary);
  font-size: 7.6rem;
  font-weight: 700;
  color: var(--wd-text-inverse);
  margin: 0;
  line-height: 1.2;
}

.wd-hero__desc {
  margin-top: 3rem;
  font-family: var(--wd-font-primary);
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  font-weight: 300;
  color: var(--wd-text-inverse);
}

/* ── Text Reveal Animation ── */
.wd-txt-up {
  display: block;
  overflow-y: hidden;
}

.wd-txt-up span {
  position: relative;
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  transform: translate3d(0, 150%, 0);
}

.wd-hero__text--active .wd-txt-up span {
  animation: wd-text-up 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.wd-hero__text--active .wd-txt-delay02 span {
  animation-delay: 0.5s;
}

@keyframes wd-text-up {
  from { transform: translate3d(0, 150%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* ── Mobile Breakpoint ── */
.wd-m-br { display: none; }

@media (max-width: 800px) {
  .wd-hero__nav {
    position: absolute;
    height: 12rem;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
  }

  .wd-hero__nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.25);
    display: block;
    position: relative;
    width: 33.33%;
    height: 100%;
    box-sizing: border-box;
  }

  .wd-hero__nav-item::before {
    display: none;
  }

  .wd-hero__nav-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .wd-hero__nav-inner {
    padding-bottom: 0;
    justify-content: center;
  }

  .wd-hero__nav-title {
    font-size: 2rem;
    min-height: 2.6em;
    display: flex;
    align-items: center;
  }

  .wd-hero__text-inner {
    padding-bottom: 5rem;
  }

  .wd-hero__heading {
    font-size: 5.4rem;
    line-height: 1.2;
  }

  .wd-hero__desc {
    margin-top: 2.5rem;
    font-size: 2rem;
  }

  .wd-m-br {
    display: block;
  }
}

@media (max-width: 480px) {
  .wd-hero__nav {
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .wd-hero__nav-item {
    width: 50%;
    height: 12rem;
  }

  .wd-hero__nav-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}
