/* ========================================================= PÁGINA FAQ ========================================================= */

.faq-page {
  width: 100%;
  min-height: 100vh;
  padding: 3.25rem 1.25rem 4.5rem;
  background:
    var(--mesh-teal),
    var(--mesh-soft),
    var(--bg-page);
}

.faq-container {
  width: 100%;
  max-width: var(--form-width);
  margin: 0 auto;
}

/* ========================================================= VOLTAR ========================================================= */

.faq-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.875rem;
  transition: color var(--ease-premium), transform var(--ease-premium);
}

.faq-back-link:hover {
  color: var(--brand-teal);
  transform: translateX(-2px);
}

.faq-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
}

/* ========================================================= HEADER ========================================================= */

.faq-header {
  position: relative;
  margin-bottom: 1.875rem;
  padding-bottom: 1.5rem;
}

/* Marcador decorativo teal→dourado acima do título (acento premium) */
.faq-header::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.25rem;
  margin-bottom: 1.125rem;
  border-radius: var(--r-pill);
  background: var(--grad-line);
}

.faq-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.25rem;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--grad-line);
}

.faq-header h1 {
  font-size: 2.125rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.faq-header p {
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================================= FAQ LISTA ========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--card-highlight);
  transition: border-color var(--ease-premium), box-shadow var(--ease-premium), transform var(--ease-premium);
}

/* Fio teal→dourado no topo do item aberto (acento discreto) */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-line);
  opacity: 0;
  transition: opacity var(--ease-premium);
}

.faq-item:hover {
  border-color: rgba(0, 101, 78, 0.2);
  box-shadow: var(--shadow-md), var(--card-highlight);
  transform: translateY(-3px);
}

.faq-item.is-open {
  background: var(--surface);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-lg), var(--card-highlight);
}

.faq-item:hover::before {
  opacity: 0.45;
}

.faq-item.is-open::before,
.faq-item.is-open:hover::before {
  opacity: 1;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--ease-premium);
}

.faq-item.is-open .faq-question span:first-child,
.faq-question:hover span:first-child {
  color: var(--brand-teal);
}

.faq-chevron {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--brand-light);
  transition: transform var(--ease-premium), color var(--ease-premium), background var(--ease-premium), box-shadow var(--ease-premium);
}

/* Anel de luz interno (brilho sutil de tile) */
.faq-chevron::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.faq-question:hover .faq-chevron {
  color: var(--brand-teal);
  transform: translateY(-1px);
}

.faq-item.is-open .faq-chevron {
  color: #ffffff;
  background: var(--grad-teal);
  box-shadow: var(--tile-shadow);
  transform: translateY(-1px) scale(1.04);
}

/* ========================================================= RESPOSTA ========================================================= */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer-content p {
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================================= FOOTER ========================================================= */

.faq-footer {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.faq-footer p {
  font-size: 0.8125rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-muted);
}

.faq-footer a {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--ease-premium);
}

.faq-footer a:hover {
  color: var(--brand-teal-600);
  text-decoration: underline;
}

/* ========================================================= RESPONSIVO ========================================================= */

@media (max-width: 768px) {
  .faq-page {
    padding: 2.25rem 1rem 3.5rem;
  }

  .faq-container {
    max-width: 100%;
  }

  .faq-back-link {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .faq-header {
    margin-bottom: 1.625rem;
    padding-bottom: 1.25rem;
  }

  .faq-header h1 {
    font-size: 1.6875rem;
    margin-bottom: 0.625rem;
  }

  .faq-header p {
    font-size: 0.875rem;
  }

  .faq-question {
    padding: 1.125rem 1rem;
  }

  .faq-question span:first-child {
    font-size: 0.875rem;
  }

  .faq-answer-content {
    padding: 0 1rem 1.125rem;
  }

  .faq-answer-content p {
    font-size: 0.875rem;
  }

  .faq-footer {
    margin-top: 2.125rem;
    padding-top: 1.5rem;
  }

  .faq-footer p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .faq-page {
    padding: 1.875rem 0.875rem 2.75rem;
  }

  .faq-back-link {
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .faq-back-icon {
    font-size: 1rem;
  }

  .faq-header h1 {
    font-size: 1.5rem;
  }

  .faq-header p {
    font-size: 0.8125rem;
  }

  .faq-question {
    padding: 1rem 0.875rem;
  }

  .faq-question span:first-child {
    font-size: 0.8125rem;
  }

  .faq-chevron {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.9375rem;
  }

  .faq-answer-content {
    padding: 0 0.875rem 1rem;
  }

  .faq-answer-content p {
    font-size: 0.8125rem;
    line-height: 1.65;
  }
}
