/* ============================================================
   FAQ Accordion — Custom CSS
   Conectivo
   ============================================================ */

.faq-accordion {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

@media only screen and (max-width: 767px) {
  .faq-accordion {
    flex-direction: column;
    gap: 0px;
  }
}

.faq-accordion__col {
  flex: 1;
  min-width: 0;
}

/* ── Item ────────────────────────────────────────────────── */
/* No overflow:hidden here — it forces a repaint on hover causing a flash.
   Border-radius is handled per child element instead. */
.faq-accordion__item {
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ── Question (button) ───────────────────────────────────── */
.faq-accordion__question {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px;
  background: #f7a167;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    border-radius 0s 0.35s; /* delay radius reset until panel is closed */
}

.faq-accordion__question:hover {
  background: #f08d50;
}

.faq-accordion__question[aria-expanded="true"] {
  border-radius: 8px 8px 0 0;
  transition:
    background 0.2s ease,
    border-radius 0s; /* instant radius on open */
}

.faq-accordion__question-text {
  flex: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

/* ── Chevron ─────────────────────────────────────────────── */
.faq-accordion__chevron {
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion__question[aria-expanded="true"] .faq-accordion__chevron {
  transform: rotate(180deg);
}

/* ── Answer panel ────────────────────────────────────────── */
.faq-accordion__answer {
  display: grid;
  grid-template-rows: 0fr;
  background: #f8f6e9;
  border-radius: 0 0 8px 8px;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion__answer[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

/* overflow:hidden clips children (including their padding) to 0 at grid-template-rows:0fr.
   Padding must be on the inner content wrapper — NOT on this element — otherwise
   the element's own padding-box bleeds through even at 0fr. */
.faq-accordion__answer-inner {
  overflow: hidden;
}

.faq-accordion__answer-content {
  padding: 20px 20px 24px;
}

.faq-accordion__answer-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.faq-accordion__answer-content p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #0c0c0b;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .faq-accordion {
    flex-direction: column;
  }

  .faq-accordion__item {
    margin-bottom: 12px;
  }
}
