/* ==========================================================================
   Pinplaces — FAQ
   Estilos específicos da página (complementa pinplaces.css)
   O acordeão (.faq-shell, .faq-list, .faq-item, .faq-trigger, .faq-question,
   .faq-chevron, .faq-answer, .faq-answer-inner) já é fornecido pelo DS.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Page Base
   -------------------------------------------------------------------------- */

.page-faq {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f7f7f8 100%);
}


/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.faq-hero {
  min-height: 320px;
  padding: 72px 16px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  overflow: hidden;
}

.faq-hero .hero-media::before {
  content: "";
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 12%),
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.12), transparent 14%),
    radial-gradient(circle at 65% 70%, rgba(37, 99, 235, 0.35), transparent 28%);
  transform: none;
}

.faq-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.45));
}

.faq-hero .hero-copy {
  padding-top: 100px;
}

.faq-hero .hero-copy h1,
.faq-hero .hero-copy p {
  color: #ffffff;
}


/* --------------------------------------------------------------------------
   3. Main & Layout
   -------------------------------------------------------------------------- */

.faq-main {
  padding: 0 0 88px;
}

.faq-layout-section {
  position: relative;
  margin-top: 56px;
  z-index: 2;
}

.faq-grid {
  gap: 32px;
}


/* --------------------------------------------------------------------------
   4. Sidebar — Categorias
   -------------------------------------------------------------------------- */

.faq-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.faq-nav-title {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.faq-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  color: var(--color-gray-700);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-nav-link .icon {
  width: 18px;
  height: 18px;
  color: var(--color-gray-500);
  transition: color 0.2s ease;
}

.faq-nav-link:hover {
  background: var(--color-gray-50);
  color: var(--color-chumbo);
}

.faq-nav-link:hover .icon {
  color: var(--color-brand-blue);
}

.faq-nav-link.is-active {
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue);
}

.faq-nav-link.is-active .icon {
  color: var(--color-brand-blue);
}


/* --------------------------------------------------------------------------
   5. Sidebar — Card de Ajuda
   -------------------------------------------------------------------------- */

.faq-help-card {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-help-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 24px 8px;
}

.faq-help-header h2 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-chumbo);
}

.faq-help-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-500);
}

.faq-help-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 24px 24px;
}

.faq-help-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue);
}

.faq-help-channel-icon .icon {
  width: 20px;
  height: 20px;
}

.faq-help-channel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.faq-help-channel-copy strong {
  font-size: 16px;
  color: var(--color-chumbo);
}

.faq-help-channel-copy span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-gray-500);
}


/* --------------------------------------------------------------------------
   6. Conteúdo — Categorias de FAQ
   -------------------------------------------------------------------------- */

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.faq-category {
  scroll-margin-top: 96px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.faq-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.faq-category-icon .icon {
  width: 20px;
  height: 20px;
}

.faq-category-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-chumbo);
}


/* --------------------------------------------------------------------------
   7. Acordeão — pequenos ajustes sobre o DS
   -------------------------------------------------------------------------- */

/* O DS já cobre .faq-item, .faq-trigger, .faq-question, .faq-chevron,
   .faq-answer e .faq-answer-inner. Mantemos o chevron alinhado ao ícone SVG
   genérico (que herda width/height do .icon do DS). */
.faq-content .faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   8. Media Queries
   -------------------------------------------------------------------------- */

/* ≤ 1199px — Tablet grande: layout vira coluna única */
@media (max-width: 1199px) {
  .faq-sidebar {
    position: static;
  }
}

/* ≤ 767px — Mobile */
@media (max-width: 767px) {
  .faq-hero {
    min-height: 280px;
    padding: 56px 16px;
  }

  .faq-hero .hero-copy h1 {
    font-size: 34px;
  }

  .faq-hero .hero-copy p {
    font-size: 17px;
  }

  .faq-main {
    padding: 0 0 72px;
  }

  .faq-layout-section {
    margin-top: 32px;
  }

  .faq-grid {
    gap: 24px;
  }

  .faq-content {
    gap: 36px;
  }

  .faq-category-title {
    font-size: 20px;
  }

  .faq-help-channel {
    margin: 0 20px 20px;
  }

  .faq-help-header {
    padding: 20px 20px 8px;
  }
}
