/* ==========================================================================
   Seção de Dúvidas Frequentes (FAQ) - Acordeão Interativo e Animado
   ========================================================================== */

.faq {
  padding-block: 104px 96px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: flex-start;
}

.faq-heading-col {
  position: sticky;
  top: 100px;
}

.faq h2 {
  font-family: var(--display, 'Jost', sans-serif);
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.faq h2 span {
  color: var(--sand);
}

.faq > div > p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #d7bea6;
  max-width: 32ch;
}

.faq .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--sand);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(237, 200, 164, 0.3);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.faq .text-link:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.faq-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--cream);
  transition: color 0.25s ease;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.faq-item summary:hover .faq-question {
  color: #fff2e3;
}

.faq-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(237, 200, 164, 0.08);
  border: 1px solid rgba(237, 200, 164, 0.22);
  color: var(--sand);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.faq-item summary:hover .faq-icon-wrap {
  background: rgba(237, 200, 164, 0.18);
  border-color: rgba(237, 200, 164, 0.45);
  color: var(--cream);
}

.faq-item .plus-icon {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado Aberto / Em Abertura */
.faq-item[open] .faq-question,
.faq-item.is-opening .faq-question {
  color: var(--sand);
  font-weight: 500;
}

.faq-item[open] .faq-icon-wrap,
.faq-item.is-opening .faq-icon-wrap {
  transform: rotate(45deg);
  background: rgba(200, 137, 94, 0.25);
  border-color: var(--sand);
  color: #fff;
}

.faq-item.is-closing .faq-icon-wrap {
  transform: rotate(0deg);
  background: rgba(237, 200, 164, 0.08);
  border-color: rgba(237, 200, 164, 0.22);
  color: var(--sand);
}

.faq-content {
  overflow: hidden;
}

.faq-content-inner {
  padding-bottom: 24px;
  padding-right: 32px;
  animation: faqFadeIn 0.35s ease forwards;
}

.faq-content-inner p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #dfc7b1;
  margin: 0;
}

.faq-item.is-closing .faq-content-inner {
  animation: faqFadeOut 0.2s ease forwards;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Responsividade */
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 75px;
  }
  .faq-heading-col {
    position: static;
  }
  .faq > div > p {
    max-width: 100%;
  }
}

@media (max-width: 580px) {
  .faq {
    padding-block: 60px 48px;
    gap: 32px;
  }
  .faq h2 {
    font-size: clamp(2.1rem, 8.5vw, 2.6rem);
    line-height: 1.15;
  }
  .faq > div > p {
    font-size: 13.5px;
    margin-top: 14px;
    line-height: 1.65;
  }
  .faq .text-link {
    margin-top: 20px;
    font-size: 13px;
  }
  .faq-item summary {
    font-size: 14px;
    padding: 18px 0;
    gap: 14px;
  }
  .faq-icon-wrap {
    width: 28px;
    height: 28px;
  }
  .faq-icon-wrap .plus-icon {
    width: 12px;
    height: 12px;
  }
  .faq-content-inner {
    padding-bottom: 20px;
    padding-right: 12px;
  }
  .faq-content-inner p {
    font-size: 13.5px;
    line-height: 1.75;
  }
}
