/* ============================================
   FAQ — Two-column accordion
   Title pinned left | Questions stacked right
   ============================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) 0 0;
  background: #F9FAFB;
}

/* Left-aligned title */
.faq__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  text-decoration: underline;
  max-width: 1200px;
  margin: 0 auto 16px auto;
  width: 100%;
  padding: 0 var(--spacing-xl);
}

/* Questions list - centered and constrained width */
.faq__list {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--spacing-xl);
}

/* Individual FAQ item */
.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  width: 100%;
  padding: var(--spacing-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.faq__question:hover {
  opacity: 0.6;
}

/* Chevron */
.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.faq__chevron svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
  fill: none;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

/* Answer: collapsed by default */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 350ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 250ms ease;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

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

.faq__answer-inner p {
  padding-bottom: var(--spacing-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0;
}

.faq__answer-inner ul {
  padding-bottom: var(--spacing-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.faq__answer-inner li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .faq__title {
    font-size: 1.75rem;
  }

  .faq__list {
    padding: 0 var(--spacing-md);
  }
}
