/* ════════════════════════════════════════════
   FAQ.CSS — Accordion with smooth animation
════════════════════════════════════════════ */

#faq {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.faq-hd {
  text-align: center;
  margin-bottom: 52px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Item ── */
.faq-item {
  border-bottom: 1px solid var(--border-solid);
  transition: background 0.2s;
  border-radius: 6px;
}
.faq-item:first-child {
  border-top: 1px solid var(--border-solid);
}
.faq-item.open {
  background: rgba(37, 99, 235, 0.025);
}

/* ── Question button ── */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 12px 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* touch target */
}
.faq-q:hover {
  color: var(--accent);
}
.faq-item.open .faq-q {
  color: var(--accent);
}

/* ── +/× icon ── */
.faq-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.faq-item.open .faq-ico {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: rotate(45deg);
}

/* ── Answer — smooth max-height animation ── */
.faq-a {
  overflow: hidden;
  max-height: 0;
  padding: 0 44px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.84;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              padding-bottom 0.42s ease;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 22px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .faq-q {
    font-size: 14px;
    padding-right: 0;
  }
  .faq-a {
    padding-right: 0;
  }
}
