/* ─────────────────────────────────────────────────────────────
   16-section-faq.css
   Section: FAQ Accordion
   Smooth height-transition accordion. Sits before the final CTA.
───────────────────────────────────────────────────────────── */

#faq {
  background-color: #0A0A0A;
}

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

/* ── Accordion list ── */
.faq__list {
  list-style: none;
  border-top: 1px solid #1e1e1e;
}

/* ── Individual FAQ item ── */
.faq__item {
  border-bottom: 1px solid #1e1e1e;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#faq.visible .faq__item { opacity: 1; transform: translateY(0); }
#faq.visible .faq__item:nth-child(1) { transition-delay: 0.05s; }
#faq.visible .faq__item:nth-child(2) { transition-delay: 0.12s; }
#faq.visible .faq__item:nth-child(3) { transition-delay: 0.19s; }
#faq.visible .faq__item:nth-child(4) { transition-delay: 0.26s; }
#faq.visible .faq__item:nth-child(5) { transition-delay: 0.33s; }
#faq.visible .faq__item:nth-child(6) { transition-delay: 0.40s; }

/* ── Question button (the clickable trigger) ── */
.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
}

.faq__question-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq__question:hover .faq__question-text {
  color: #ffffff;
}

/* ── Plus / minus icon ── */
.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.35s ease;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: #888;
  border-radius: 1px;
  transition: background-color 0.25s ease, transform 0.35s ease, opacity 0.25s ease;
}

/* Horizontal bar */
.faq__icon::before {
  width: 10px;
  height: 1.5px;
}

/* Vertical bar (becomes hidden when open) */
.faq__icon::after {
  width: 1.5px;
  height: 10px;
}

/* Open state icon */
.faq__item.open .faq__icon {
  border-color: #C8F04A;
  background-color: rgba(200, 240, 74, 0.08);
  transform: rotate(45deg);
}

.faq__item.open .faq__icon::before,
.faq__item.open .faq__icon::after {
  background-color: #C8F04A;
}

/* ── Answer panel ── */
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item.open .faq__answer {
  max-height: 360px;
}

.faq__answer-inner {
  padding-bottom: 26px;
}

.faq__answer-inner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #777;
  line-height: 1.8;
}

.faq__answer-inner p + p {
  margin-top: 12px;
}
