/* ============================================================
   07. START: FAQ
   FAQ accordion, questions, answers and icons
   ============================================================ */
/* ---------- FAQ MAIN ---------- */

.faq {
  padding: 40px 0;
}

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

.faq-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
}

.faq-lead {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ---------- FAQ LIST / ITEMS ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--surface);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--surface);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition-fast);
}

.faq-item__summary:hover,
.faq-item__summary:focus {
  background: rgba(31, 63, 108, 0.04);
}

/* ---------- FAQ QUESTION / ICON / BODY / ANSWER ---------- */

.faq-item__question {
  flex: 1;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: var(--muted);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 20px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-item__answer {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  opacity: 0.45;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq-item__icon::before {
  inset: 50% 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  inset: 0 50%;
  width: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.faq-item[open] .faq-item__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq-item__body {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(44, 36, 28, 0.08);
}

.faq-item__answer {
  padding-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4a433b;
}

.faq-item__answer p {
  margin: 0 0 0.65em;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   END: FAQ
   ============================================================ */
