/* ─────────────────────────────────────────────────────────────────────────────
   Traffic Plan — FAQ (template-faq.php)
   Accordion întrebări frecvente, grupat pe categorii.
   ───────────────────────────────────────────────────────────────────────────── */

.tp-faq-section {
  padding: var(--sp-16, 4rem) 0;
  background: var(--tp-white);
}

.tp-faq-section__list {
  max-width: 820px;
  margin: 0 auto;
}

/* ─── Categorie ──────────────────────────────────────────────────────────── */
.tp-faq-group {
  margin-bottom: var(--sp-12, 3rem);
}

.tp-faq-group:last-child {
  margin-bottom: 0;
}

.tp-faq-group__title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2, 0.5rem);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-green-500);
  margin-bottom: var(--sp-4, 1rem);
}

.tp-faq-group__title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── Item accordion ─────────────────────────────────────────────────────── */
.tp-faq-item {
  background: var(--tp-white);
  border: 1px solid var(--tp-gray-100);
  border-radius: var(--radius-md, 8px);
  margin-bottom: var(--sp-3, 0.75rem);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tp-faq-item:hover {
  border-color: var(--tp-green-400);
}

.tp-faq-item.is-open {
  border-color: var(--tp-green-500);
  box-shadow: 0 6px 20px rgba(91, 154, 60, 0.08);
}

.tp-faq-item__heading {
  margin: 0;
  font-size: inherit;
}

/* Întrebare — buton full width */
.tp-faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4, 1rem);
  width: 100%;
  padding: var(--sp-4, 1rem) var(--sp-5, 1.25rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--tp-navy-900);
  transition: color 0.2s ease;
}

.tp-faq-item__question:hover {
  color: var(--tp-green-600);
}

.tp-faq-item__question:focus-visible {
  outline: 2px solid var(--tp-green-500);
  outline-offset: -2px;
  border-radius: var(--radius-md, 8px);
}

/* Icon „+" → „×" la deschidere */
.tp-faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.tp-faq-item__icon::before,
.tp-faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--tp-green-500);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.tp-faq-item__icon::before {
  width: 14px;
  height: 2px;
}

.tp-faq-item__icon::after {
  width: 2px;
  height: 14px;
}

.tp-faq-item.is-open .tp-faq-item__icon {
  transform: rotate(45deg);
}

/* Răspuns — panou animat */
.tp-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.tp-faq-item__answer-text {
  margin: 0;
  padding: 0 var(--sp-5, 1.25rem) var(--sp-5, 1.25rem);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--tp-gray-700);
}

/* Fără animație pentru utilizatorii care preferă mișcare redusă */
@media (prefers-reduced-motion: reduce) {
  .tp-faq-item__answer,
  .tp-faq-item__icon {
    transition: none;
  }
}

/* ─── Desktop ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .tp-faq-section {
    padding: var(--sp-20, 5rem) 0;
  }

  .tp-faq-item__question {
    padding: var(--sp-5, 1.25rem) var(--sp-6, 1.5rem);
    font-size: var(--fs-lg);
  }

  .tp-faq-item__answer-text {
    padding: 0 var(--sp-6, 1.5rem) var(--sp-6, 1.5rem);
  }
}
