/**
 * FAQ — acordeão integrado ao tema Toque de Sereia.
 * Usa variáveis definidas em assets/css/main.css.
 */

.toque-faq-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px) 0 clamp(48px, 8vw, 96px);
}

.toque-faq-page__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 44px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.toque-faq-page__header.is-revealed {
  opacity: 1;
  transform: none;
}

.toque-faq-page__header span {
  color: var(--toque-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.toque-faq-page__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.02;
  max-width: 16ch;
}

.toque-faq-page__header p {
  margin: 0;
  max-width: 58ch;
  color: rgba(24, 50, 64, 0.78);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.75;
}

.toque-faq-page__empty {
  padding: 28px 24px;
  border-radius: var(--toque-radius-md);
  background: var(--toque-seafoam-soft);
  border: var(--toque-border);
  color: rgba(24, 50, 64, 0.82);
}

.toque-faq-page__footer-wrap {
  margin-top: clamp(40px, 7vw, 72px);
  padding-top: 8px;
}

/* --- Acordeão --- */
.toque-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toque-faq__item {
  border: var(--toque-border);
  border-radius: var(--toque-radius-md);
  background: #fff;
  box-shadow: var(--toque-shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.toque-faq__item.is-open {
  border-color: rgba(10, 131, 131, 0.28);
  box-shadow: var(--toque-shadow);
}

.toque-faq__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.toque-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--toque-slate);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.toque-faq__question:hover,
.toque-faq__question:focus-visible {
  color: var(--toque-teal-dark);
  background: rgba(185, 224, 223, 0.18);
  outline: none;
}

.toque-faq__question-text {
  flex: 1;
}

/* Ícone + / − */
.toque-faq__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(30, 66, 90, 0.14);
  background: var(--toque-seafoam-soft);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.toque-faq__icon::before,
.toque-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--toque-teal);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toque-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.toque-faq__item.is-open .toque-faq__icon {
  background: var(--toque-teal);
  border-color: var(--toque-teal);
}

.toque-faq__item.is-open .toque-faq__icon::before,
.toque-faq__item.is-open .toque-faq__icon::after {
  background: #fff;
}

.toque-faq__item.is-open .toque-faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}

.toque-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.toque-faq__answer-inner {
  padding: 0 22px 22px;
  color: rgba(24, 50, 64, 0.84);
  font-size: 0.98rem;
  line-height: 1.8;
}

.toque-faq__answer-inner p:first-child {
  margin-top: 0;
}

.toque-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

.toque-faq__answer-inner a {
  color: var(--toque-teal-dark);
  font-weight: 600;
}

.toque-faq__answer-inner a:hover {
  color: var(--toque-teal);
}

.toque-faq__answer-inner ul,
.toque-faq__answer-inner ol {
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  .toque-faq-page {
    width: min(100%, calc(100% - 28px));
    padding-top: 24px;
  }

  .toque-faq__question {
    padding: 16px 16px;
    gap: 12px;
  }

  .toque-faq__answer-inner {
    padding: 0 16px 18px;
  }

  .toque-faq__icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}
