/* ==========================================================================
   12-faq.css — Accordion FAQ
   ========================================================================== */

.faq {
  background-color: var(--color-paper);
  padding-block: var(--space-120);
}

.faq__headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 20, 'wght' 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: var(--space-48);
}

/* --------------------------------------------------------------------------
   Accordion list
   -------------------------------------------------------------------------- */
.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-green-muted);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-green-muted);
}

/* Question row — clickable */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: var(--space-24);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq__question-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: 'opsz' 24, 'SOFT' 40, 'wght' 600;
  line-height: 1.3;
  color: var(--color-ink);
  flex: 1;
}

/* Toggle icon — Inter + symbol, rotates to × when open */
.faq__toggle {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-rust);
  flex-shrink: 0;
  line-height: 1;
  display: inline-block;
  transition: transform 250ms ease;
  user-select: none;
}

.faq__item.is-open .faq__toggle {
  transform: rotate(45deg);
}

/* Answer body — max-height animation */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

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

.faq__answer-inner {
  padding-bottom: var(--space-24);
}

.faq__answer-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink);
  opacity: 0.80;
}

.faq__answer-inner p + p {
  margin-top: var(--space-16);
}

/* Focus ring on button */
.faq__question:focus-visible {
  outline: 3px solid var(--color-rust);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .faq {
    padding-block: var(--space-80);
  }

  .faq__headline {
    font-size: 28px;
    margin-bottom: var(--space-32);
  }

  .faq__question-text {
    font-size: 17px;
  }
}
