/* ════════════════════════════════════════
   QNA — 자주 묻는 질문
   ════════════════════════════════════════ */

.qna-section {
  padding: 130px 52px 150px;
  max-width: 880px;
  margin: 0 auto;
}

.qna-header {
  text-align: center;
  margin-bottom: 72px;
}

.qna-header .section-eyebrow {
  justify-content: center;
}

.qna-header .section-title {
  margin-bottom: 0;
}

.qna-group {
  margin-bottom: 64px;
}

.qna-group:last-child {
  margin-bottom: 0;
}

.qna-group-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(139, 111, 71, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.qna-group-title::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── FAQ 아이템 ── */
.faq-item {
  border-bottom: 1px solid rgba(139, 111, 71, 0.12);
  border-radius: 10px;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(139, 111, 71, 0.12);
}

.faq-item.active {
  background: rgba(139, 111, 71, 0.05);
  box-shadow: inset 0 0 0 1px rgba(184, 154, 106, 0.18);
  border-color: transparent;
}

.faq-q {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 20px;
  font-family: 'Noto Serif KR', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.6;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-q:hover { color: var(--gold); }
.faq-item.active .faq-q { color: var(--gold); }

.faq-q-text {
  flex: 1;
}

.faq-q-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(139, 111, 71, 0.35);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-q-icon::before { width: 10px; height: 1.5px; }
.faq-q-icon::after { width: 1.5px; height: 10px; }

.faq-item.active .faq-q-icon {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(180deg);
}
.faq-item.active .faq-q-icon::before,
.faq-item.active .faq-q-icon::after {
  background: var(--white);
}
.faq-item.active .faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0); /* +를 -로 전환 */
}

/* ── 펼침 애니메이션: grid-template-rows 0fr → 1fr 트릭 ── */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-a-wrap {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-a {
  padding: 0 52px 26px 20px;
  font-size: 18px;
  line-height: 1.95;
  color: var(--brown-mid);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.faq-item.active .faq-a {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .qna-section {
    padding: 90px 24px 110px;
  }
  .qna-group-title {
    font-size: 19px;
  }
  .faq-q {
    font-size: 17px;
    padding: 20px 16px;
    gap: 14px;
  }
  .faq-q-icon {
    width: 22px;
    height: 22px;
  }
  .faq-a {
    font-size: 16px;
    padding: 0 16px 22px 16px;
  }
}
