/* ==========================================================================
   Perguntas frequentes (/faq) · classes .fq-*
   O layout carrega este arquivo em todas as páginas: tudo usa o prefixo .fq-.
   Hero com busca + prévia de conversa (pergunta real do banco) sobre a cápsula de vidro;
   corpo com índice de temas fixo à esquerda e acordeões de vidro agrupados por tema.
   ========================================================================== */

/* ------------------------------------------------------------ hero */
.fq-hero { padding: 48px var(--pad-x) 52px; overflow: hidden; }
.fq-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.fq-copy { padding: 6px 0 4px; }
.fq-hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; margin: 0; max-width: 620px; }
.fq-hero h1 .grad { padding-bottom: .06em; }
.fq-hero .lead { margin: 20px 0 0; max-width: 540px; text-wrap: balance; }

/* busca em pílula de vidro */
.fq-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px; min-height: 60px; margin-top: 30px; padding: 6px 8px 6px 20px;
  border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid #fff;
  box-shadow: var(--inset), 0 18px 40px -26px rgba(76,62,170,.5), 0 0 0 1px rgba(31,36,55,.06);
  transition: box-shadow .25s, background-color .25s;
}
.fq-search:focus-within { background: #fff; box-shadow: var(--inset), 0 18px 40px -26px rgba(76,62,170,.5), 0 0 0 2px rgba(124,92,255,.55), 0 0 0 6px rgba(124,92,255,.12); }
.fq-search-ico { display: grid; place-items: center; color: var(--violet); flex: none; }
.fq-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.fq-search input::placeholder { color: #6B7186; }
.fq-search input::-webkit-search-cancel-button { cursor: pointer; }
.fq-search-count { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--violet-strong); background: var(--violet-bg); white-space: nowrap; }
.fq-tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--subtle-text); }
.fq-tries > span { margin-right: 2px; font-weight: 500; }
.fq-tries .chip { color: var(--text); }
.fq-tries .chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }

/* visual: cápsula de vidro atrás de uma prévia de conversa + cartão do WhatsApp + bolha com estrela */
.fq-visual { position: relative; height: 430px; }
.fq-glow { position: absolute; left: 52%; top: 48%; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(167,139,250,.32), rgba(91,140,255,.12) 62%, transparent); pointer-events: none; }
.fq-capsule {
  position: absolute; z-index: 0; width: 330px; height: auto; right: -22px; top: -40px; rotate: 34deg;
  filter: saturate(.8) brightness(1.04) drop-shadow(0 34px 44px rgba(109, 74, 255, .2));
  animation: floaty 10s ease-in-out infinite; pointer-events: none;
}
.fq-chat {
  position: absolute; z-index: 2; left: 0; top: 74px; width: 360px;
  padding: 16px 16px 18px; border-radius: 24px;
  background: rgba(255,255,255,.52);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--inset), 0 30px 60px -30px rgba(76,62,170,.48);
}
.fq-chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.fq-chat-mark { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px rgba(124,92,255,.14); }
.fq-chat-mark .mark { width: 22px; height: 22px; }
.fq-chat-name { display: grid; line-height: 1.25; }
.fq-chat-name strong { font-size: 14px; color: var(--ink); }
.fq-chat-name small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle-text); font-weight: 500; }
.fq-chat-name .live-dot { width: 6px; height: 6px; }
.fq-msg { position: relative; max-width: 88%; margin: 0; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; border-radius: 18px; }
.fq-msg-q { margin-left: auto; width: fit-content; color: #fff; font-weight: 600; background: linear-gradient(120deg, #8B5CF6, #6E72FF 60%, #5B8CFF); border-bottom-right-radius: 6px; box-shadow: 0 12px 24px -16px rgba(109,74,255,.8); }
.fq-msg-a { margin-top: 10px; color: var(--text); background: rgba(255,255,255,.92); border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px rgba(31,36,55,.05), 0 10px 22px -18px rgba(76,62,170,.5); }

.fq-fc-wa { right: -8px; bottom: 26px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s; }
.fq-fc-wa:hover { background: rgba(255,255,255,.92); box-shadow: var(--inset), var(--shadow-hover); }
.fq-wa-logo { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #E6F8EE; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.fq-wa-logo img { width: 24px; height: 24px; }
.fq-fc-txt { display: grid; line-height: 1.3; }
.fq-fc-txt small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fq-fc-wa strong { font-size: 16px; letter-spacing: -0.02em; }
.fq-fc-txt em { font-style: normal; font-size: 12.5px; color: var(--subtle-text); font-weight: 500; }
.fq-fc-arrow { width: 32px; height: 32px; margin-left: 4px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(31,36,55,.06); transition: background-color .25s, color .25s; }
.fq-fc-arrow .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.fq-fc-wa:hover .fq-fc-arrow { background: var(--ink); color: #fff; }
.fq-fc-wa:hover .fq-fc-arrow .icon { transform: rotate(45deg); }
.fq-star { width: 64px; height: 64px; left: 54%; top: 6px; }

/* ------------------------------------------------------------ corpo: índice de temas + grupos */
.fq-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 52px; align-items: start; }
.fq-aside { position: sticky; top: 108px; display: grid; gap: 16px; }
.fq-nav-label { margin: 0 0 10px; padding-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-strong); }
.fq-nav ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fq-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px 0 8px; border-radius: 14px;
  font-size: 14.5px; font-weight: 500; color: var(--text);
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.fq-nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.fq-nav a.is-active, .fq-nav a[aria-current="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 10px 22px -16px rgba(76,62,170,.5), 0 0 0 1px rgba(31,36,55,.05); }
.fq-nav .ico-xs { box-shadow: none; }
.fq-nav-name { flex: 1; min-width: 0; }
.fq-nav-count { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(31,36,55,.05); }
.fq-nav a.is-active .fq-nav-count { color: var(--violet-strong); background: var(--violet-bg); }
.fq-nav a.is-empty { opacity: .45; }
.fq-help { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.6); border: 1px solid #fff; box-shadow: var(--inset), var(--shadow-card); }
.fq-help p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.fq-help strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }

.fq-groups { min-width: 0; }
.fq-group { scroll-margin-top: 110px; }
.fq-group + .fq-group { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.fq-groups > .fq-group.is-first-visible { margin-top: 0; padding-top: 0; border-top: 0; }
.fq-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fq-group-txt { flex: 1; min-width: 0; }
.fq-group-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.fq-group-head p { margin: 3px 0 0; font-size: 14.5px; color: var(--muted); }
.fq-group-count { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px var(--line); }
.fq-list { max-width: none; margin: 0; }
.fq-list .faq-item summary { min-height: 62px; padding: 14px 18px 14px 22px; }
.fq-list .faq-body { padding: 0 22px 20px; }
.fq-list .faq-item[hidden] { display: none; }

.fq-empty { display: grid; justify-items: center; gap: 14px; padding: 44px 24px; text-align: center; border-radius: var(--r-card); background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1.5px rgba(124,92,255,.18); }
.fq-empty[hidden] { display: none; }
.fq-empty p { margin: 0; max-width: 440px; color: var(--muted); }
.fq-empty strong { display: block; color: var(--ink); margin-bottom: 2px; }
.fq-empty .btn-row { justify-content: center; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1220px) {
  .fq-hero h1 { font-size: 48px; }
  .fq-chat { width: 330px; }
  .fq-capsule { width: 290px; }
  .fq-layout { grid-template-columns: 228px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1080px) {
  .fq-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fq-hero h1 { font-size: 46px; }
  .fq-visual { max-width: 560px; width: 100%; margin: 0 auto; height: 380px; }
  .fq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fq-aside { position: static; }
  .fq-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .fq-nav-label { display: none; }
  .fq-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad-x) * -1); padding: 4px var(--pad-x) 8px; }
  .fq-nav ul::-webkit-scrollbar { display: none; }
  .fq-nav li { flex: none; }
  .fq-nav a { min-height: 44px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(31,36,55,.05); }
  .fq-help { display: none; }
}
@media (max-width: 860px) {
  .fq-hero h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .fq-hero { padding: 26px var(--pad-x) 26px; }
  .fq-hero h1 { font-size: 35px; line-height: 1.07; }
  .fq-hero .lead { margin-top: 14px; font-size: 16px; }
  .fq-search { min-height: 54px; margin-top: 22px; padding: 4px 6px 4px 16px; }
  .fq-search input { height: 42px; }
  .fq-search-count { height: 30px; padding: 0 10px; font-size: 12px; }
  .fq-tries { gap: 6px; margin-top: 12px; }
  .fq-tries > span { width: 100%; }
  .fq-visual { height: 356px; }
  .fq-glow { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .fq-capsule { width: 190px; right: -30px; top: -14px; }
  .fq-chat { top: 10px; width: min(300px, 88%); padding: 12px 12px 14px; border-radius: 20px; }
  .fq-chat-top { padding-bottom: 10px; margin-bottom: 10px; }
  .fq-chat-mark { width: 30px; height: 30px; }
  .fq-chat-mark .mark { width: 18px; height: 18px; }
  .fq-msg { font-size: 13px; padding: 8px 12px; }
  .fq-fc-wa { right: 0; bottom: 0; padding: 10px 12px 10px 10px; gap: 10px; border-radius: 18px; }
  .fq-wa-logo { width: 38px; height: 38px; border-radius: 12px; }
  .fq-wa-logo img { width: 21px; height: 21px; }
  .fq-fc-wa strong { font-size: 15px; }
  .fq-star { width: 48px; height: 48px; left: auto; right: 4px; top: 176px; }

  .fq-layout { gap: 20px; }
  .fq-group + .fq-group { margin-top: 26px; padding-top: 26px; }
  .fq-group-head { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .fq-group-head .ico { width: 40px; height: 40px; }
  .fq-group-head h2 { font-size: 21px; margin-top: 1px; }
  .fq-group-head p { font-size: 14px; }
  .fq-group-count { display: none; }
  .fq-list .faq-item summary { min-height: 56px; padding: 13px 14px 13px 16px; font-size: 15px; }
  .fq-list .faq-body { padding: 0 16px 16px; font-size: 14.5px; }
  .fq-empty { padding: 32px 18px; }
  .fq-empty .btn-row .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .fq-hero h1 { font-size: 31px; }
  .fq-fc-txt em { display: none; }
}
