/* faq.css — FAQ / SSS accordion section */

/* ══════════════════════════════
   SECTION
══════════════════════════════ */
.faq {
  padding: 6rem 2rem;
  position: relative;
  background-color: var(--bg-primary);
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* ══════════════════════════════
   WRAPPER
══════════════════════════════ */
.faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ══════════════════════════════
   ACCORDION ITEM
══════════════════════════════ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.faq-item.is-open {
  border-color: rgba(124,92,62, 0.45);
  box-shadow: 0 0 0 1px rgba(124,92,62, 0.15),
              0 4px 20px rgba(124,92,62, 0.12);
}

/* ── Question button ── */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color 0.25s ease, background 0.25s ease;
}

.faq-question:hover {
  color: var(--text-primary);
  background: rgba(124,92,62, 0.06);
}

.faq-item.is-open .faq-question {
  color: var(--text-primary);
  background: rgba(124,92,62, 0.08);
}

/* ── Chevron icon ── */
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.35s ease, color 0.25s ease;
}

.faq-chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* ── Answer panel ── */
.faq-answer {
  /* Height animated via JS (maxHeight trick) */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 600px) {
  .faq {
    padding: 4rem 1.2rem;
  }

  .faq-question {
    font-size: 0.91rem;
    padding: 1rem 1.1rem;
  }

  .faq-answer-inner {
    padding: 0 1.1rem 1.1rem;
    padding-top: 0.85rem;
  }
}
