/* ==========================================================================
   c_sufly_intro-card-slider_image-cards
   에이전시 (c) | sufly | 3장 이미지 카드 + 하단 글래스 텍스트
   ========================================================================== */

/* 로컬 --wd-* 는 전역 --bmt-* 로 연결만 한다 (값의 출처를 한 곳으로) */
.wd-intro-cards {
  --wd-primary: var(--bmt-accent);
  --wd-text-primary: var(--bmt-ink);
  --wd-text-inverse: var(--bmt-inverse);
  --wd-surface-light: var(--bmt-accent-tint);
  --wd-font-primary: var(--bmt-font);
  --wd-font-serif: var(--bmt-font);
  --wd-radius-lg: var(--bmt-radius-lg);
  --wd-duration-default: var(--bmt-duration);
}

/* --- Section --- */
.wd-intro-cards {
  padding: 120px 0;
  background-color: var(--wd-surface-light);
  font-family: var(--wd-font-primary);
}

.wd-intro-cards__inner {
  max-width: 1584px;
  width: 90%;
  margin: 0 auto;
}

/* --- Text --- */
.wd-intro-cards__text {
  text-align: center;
  margin-bottom: 82px;
}

.wd-intro-cards__subtitle {
  font-size: clamp(13px, 1.35vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wd-text-primary);
  margin-bottom: 26px;
}

.wd-intro-cards__title {
  font-size: clamp(27px, 2.71vw, 52px);
  line-height: 1.23;
  font-weight: 300;
  color: var(--wd-text-primary);
}

.wd-intro-cards__title b {
  font-weight: 700;
}

/* --- Card List --- */
.wd-intro-cards__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Card Item --- */
.wd-intro-cards__item {
  position: relative;
  border-radius: var(--wd-radius-lg);
  overflow: hidden;
  aspect-ratio: 218 / 280;
  transition: transform var(--wd-duration-default) ease;
  cursor: pointer;
}

.wd-intro-cards__item:hover {
  transform: translateY(-10px);
}

.wd-intro-cards__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Glass Label --- */
.wd-intro-cards__label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 41px 0;
  background-color: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.25vw, 24px);
  line-height: clamp(16px, 1.67vw, 32px);
  color: var(--wd-text-inverse);
  text-align: center;
  margin: 0;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1080px) {
  .wd-intro-cards {
    padding: 80px 0;
  }

  .wd-intro-cards__text {
    margin-bottom: 50px;
  }

  .wd-intro-cards__list {
    gap: 20px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
  .wd-intro-cards {
    padding: 50px 0;
  }

  .wd-intro-cards__inner {
    width: calc(100% - 30px);
  }

  .wd-intro-cards__text {
    text-align: left;
    margin-bottom: 30px;
  }

  .wd-intro-cards__subtitle {
    margin-bottom: 13px;
  }

  .wd-intro-cards__title {
    font-size: 24px;
  }

  .wd-intro-cards__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .wd-intro-cards__item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    border-radius: 16px;
  }

  .wd-intro-cards__label {
    padding: 20px 0;
  }
}
