/* Perguntas Frequentes - page-owned styles */

.faq-page {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  padding-block: var(--space-2xl) var(--space-3xl);
}

@media (min-width: 768px) {
  .faq-page {
    padding-inline: var(--container-padding-desktop);
  }
}

/* Hero */
.faq-hero {
  margin-block-end: var(--space-2xl);
}

.faq-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.faq-hero__text {
  max-width: 65ch;
  min-width: 0;
}

.faq-hero__title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-leading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-block-end: var(--space-md);
}

.faq-hero__subtitle {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-leading);
  font-weight: 400;
  margin-block-end: 0;
}

.faq-hero__sticker {
  justify-self: start;
  align-self: start;
}

@media (min-width: 768px) {
  .faq-hero__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .faq-hero__text {
    grid-column: 1 / span 8;
  }

  .faq-hero__sticker {
    grid-column: 10 / span 2;
    justify-self: end;
  }
}

/* Intro */
.faq-intro {
  margin-block-end: var(--space-2xl);
}

.faq-intro__content {
  max-width: 70ch;
  min-width: 0;
}

.faq-intro__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: 600;
  margin-block-end: var(--space-md);
}

.faq-intro__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  margin-block-end: 0;
}

/* FAQ groups */
.faq-group {
  margin-block-end: var(--space-2xl);
}

.faq-group__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 70ch;
  min-width: 0;
}

.faq-group__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: 600;
  margin-block-end: 0;
}

.faq-group__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
}

.faq-card {
  background-color: var(--color-paper);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.faq-card--peach {
  background-color: var(--color-peach);
}

.faq-card--sage {
  background-color: var(--color-sage);
}

.faq-card__question {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-leading);
  font-weight: 600;
  margin-block-end: var(--space-sm);
}

.faq-card__answer {
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  margin-block-end: 0;
}

.faq-card__answer a {
  color: var(--color-plum);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.faq-card__answer a:hover {
  color: var(--color-plum-dark);
}

/* CTA blocks */
.faq-cta {
  margin-block-end: var(--space-2xl);
}

.faq-cta--contact {
  background-color: var(--color-peach);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.faq-cta--join {
  background-color: var(--color-plum);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.faq-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 50ch;
  margin-inline: auto;
  text-align: center;
}

.faq-cta--join .faq-cta__content {
  max-width: 60ch;
}

.faq-cta__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: 600;
  margin-block-end: 0;
  color: var(--color-ink);
}

.faq-cta--join .faq-cta__title {
  color: var(--color-paper);
}

.faq-cta__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  margin-block-end: 0;
  color: var(--color-ink);
}

.faq-cta--join .faq-cta__text {
  color: var(--color-paper);
}

.faq-cta__button {
  margin-block-start: var(--space-sm);
}

/* Note */
.faq-note {
  border-inline-start: 3px solid var(--color-plum);
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
}

.faq-note__content {
  max-width: 70ch;
  min-width: 0;
}

.faq-note__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: 600;
  margin-block-end: var(--space-md);
}

.faq-note__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  margin-block-end: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-page {
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .faq-hero__content {
    gap: var(--space-md);
  }

  .faq-hero__sticker {
    justify-self: start;
  }

  .faq-cta {
    padding: var(--space-lg);
  }

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

  .faq-cta--join .faq-cta__content {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
  }
}
