/* ═══════════════════════════════════════
   VOICE — voice.css (v3)
   daphone-landing-page

   2026-04-21 v3 변경 (v2 → v3):
     ★ 섹션 배경 #fff → #000 (브랜드 통일)
     ★ 헤드 제목 색상 반전 (#1a1a1a → #fff)
     ★ 배경 장식(골드 그라디언트 포인트) 추가
     ★ 카드는 노란 배경 유지 (원본 그대로)

   의존:
     - JS: voice.js (섹션/카드 양방향 토글)
     - HTML: .voice > .voice__head + .voice__grid > .voice__card * 4
═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   섹션 컨테이너 (검정 배경)
═══════════════════════════════════════ */
.voice {
  position: relative;
  width: 100%;
  padding: 120px 9%;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
}

/* 배경 장식 (은은한 골드 포인트) */
.voice::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════
   헤드 영역 (라벨 + 제목)
═══════════════════════════════════════ */
.voice__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.voice__label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold, #c9a84c);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.voice__title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0;
  word-break: keep-all;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.voice__title em {
  font-style: normal;
  color: var(--gold, #c9a84c);
}

/* 헤드 진입 애니 */
.voice.is-active .voice__label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.voice.is-active .voice__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════
   그리드 (4카드 가로 고정)
═══════════════════════════════════════ */
.voice__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ═══════════════════════════════════════
   카드 (노란 그라디언트 배경 — 원본 유지)
═══════════════════════════════════════ */
.voice__card {
  position: relative;
  background: linear-gradient(180deg, #fef5d6 0%, #fde8a5 100%);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 460px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);

  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.3s ease;
}

.voice__card:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

/* ── 카드 순차 진입 ── */
.voice.is-active .voice__card {
  opacity: 1;
  transform: translateX(0);
}

.voice.is-active .voice__card:nth-child(1) {
  transition-delay: 0.5s;
}
.voice.is-active .voice__card:nth-child(2) {
  transition-delay: 0.65s;
}
.voice.is-active .voice__card:nth-child(3) {
  transition-delay: 0.8s;
}
.voice.is-active .voice__card:nth-child(4) {
  transition-delay: 0.95s;
}

/* ═══════════════════════════════════════
   카드 내부: 이미지
═══════════════════════════════════════ */
.voice__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* ═══════════════════════════════════════
   카드 내부: 질문 (제목)
═══════════════════════════════════════ */
.voice__question {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.45;
  letter-spacing: -0.015em;
  word-break: keep-all;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.voice__question em {
  font-style: normal;
  color: #8a6d1f;
}

/* ═══════════════════════════════════════
   카드 내부: 설명
═══════════════════════════════════════ */
.voice__desc {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a4a4a;
  line-height: 1.65;
  letter-spacing: -0.005em;
  word-break: keep-all;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ═══════════════════════════════════════
   카드 내부: 답변 (골드 하이라이트 박스)
═══════════════════════════════════════ */
.voice__answer {
  margin: auto 0 0;
  padding: 14px 16px;
  background: rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.voice__answer em {
  font-style: normal;
  font-weight: 900;
  color: #6b5416;
}

/* ═══════════════════════════════════════
   카드 내부 텍스트 순차 진입
   (JS 가 카드에 .is-visible 추가)
═══════════════════════════════════════ */
.voice__card.is-visible .voice__image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.voice__card.is-visible .voice__question {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.voice__card.is-visible .voice__desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.voice__card.is-visible .voice__answer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

/* ═══════════════════════════════════════
   반응형
═══════════════════════════════════════ */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .voice {
    padding: 100px 7%;
  }
  .voice__grid {
    gap: 16px;
  }
  .voice__card {
    padding: 22px 18px;
    min-height: 420px;
  }
  .voice__question {
    font-size: 0.95rem;
  }
  .voice__desc {
    font-size: 0.8rem;
  }
  .voice__answer {
    font-size: 0.82rem;
    padding: 12px 14px;
  }
}

/* 모바일 (768px 이하) — 2x2 그리드 */
@media (max-width: 768px) {
  .voice {
    padding: 80px 5%;
  }
  .voice__head {
    margin-bottom: 40px;
  }
  .voice__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .voice__card {
    padding: 20px 16px;
    min-height: 400px;
    gap: 14px;
    border-radius: 16px;
  }
  .voice__question {
    font-size: 0.95rem;
  }
  .voice__desc {
    font-size: 0.8rem;
    line-height: 1.55;
  }
  .voice__answer {
    font-size: 0.82rem;
    padding: 12px 14px;
  }
}

/* 초소형 (480px 이하) — 1열 */
@media (max-width: 480px) {
  .voice {
    padding: 60px 5%;
  }
  .voice__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .voice__card {
    min-height: auto;
    padding: 24px 20px;
  }
  .voice__image {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════
   접근성 (prefers-reduced-motion)
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .voice__label,
  .voice__title,
  .voice__card,
  .voice__image,
  .voice__question,
  .voice__desc,
  .voice__answer {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
