/* FAQs: entrada, filtros, acordeão e chamada final. */

.fq-hero {
  position: relative;
  overflow: hidden;
  background: #F3F3EF;
  border-bottom: 1px solid rgba(10, 10, 10, .08);
}
.fq-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10, 10, 10, .14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 92%);
}
.fq-hero-glow {
  position: absolute; top: -220px; right: -140px; width: 620px; height: 620px;
  border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 74, 255, .2), transparent 66%);
}
.fq-mark {
  position: absolute; top: -12%; right: 2%;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(280px, 34vw, 520px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 74, 255, .16);
  transform: rotate(8deg);
  pointer-events: none; user-select: none;
}
.fq-hero-in { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 64px; }

.fq-kicker {
  margin: 0 0 22px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #3D3D3A;
}
.fq-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(54px, 9vw, 132px); line-height: .88; letter-spacing: -.06em;
  color: #0A0A0A;
}
.fq-dot { color: var(--accent); }

.fq-hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 28px 40px;
  margin-top: 36px;
}
.fq-hero-lead {
  margin: 0; max-width: 540px;
  font-size: 20px; line-height: 1.5; color: #2B2B29;
}

.fq-search {
  position: relative; flex: 0 1 440px; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 10, 10, .12); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(10, 10, 10, .08);
  transition: border-color .25s, box-shadow .25s;
}
.fq-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(10, 10, 10, .1), 0 0 0 4px rgba(0, 74, 255, .12);
}
.fq-search svg { flex: none; color: #767671; }
.fq-search input {
  flex: 1; min-width: 0;
  padding: 11px 0; border: 0; background: none; outline: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 500; color: #0A0A0A;
}
.fq-search input::placeholder { color: #767671; opacity: 1; }
.fq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fq-clear {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #F3F3EF; color: #0A0A0A; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.fq-clear:hover { background: #0A0A0A; color: #FFFFFF; }
.fq-clear[hidden] { display: none; }

.fq-body { background: #FFFFFF; padding: 72px 0 120px; }
.fq-wrap {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  align-items: start; gap: 64px;
}

.fq-side {
  position: sticky; top: 104px;
  display: flex; flex-direction: column; gap: 26px;
}
.fq-side-label {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #767671;
}
.fq-cats { display: flex; flex-direction: column; gap: 4px; }
.fq-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; color: #3D3D3A;
  transition: background .22s, color .22s;
}
.fq-cat span {
  flex: none; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #767671; background: #F3F3EF;
  transition: background .22s, color .22s;
}
.fq-cat:hover { background: #F3F3EF; }
.fq-cat.is-active { background: #0A0A0A; color: #FFFFFF; }
.fq-cat.is-active span { background: rgba(255, 255, 255, .16); color: #FFFFFF; }

.fq-help {
  padding: 20px; border: 1px solid rgba(10, 10, 10, .1); border-radius: 16px;
  background: #F7F7F4;
}
.fq-help-title {
  margin: 0 0 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: #0A0A0A;
}
.fq-help-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #55554F; }
.fq-help-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--accent);
  text-decoration: none;
}
.fq-help-link span { transition: transform .25s; }
.fq-help-link:hover span { transform: translateX(3px); }

.fq-main { min-width: 0; }
.fq-group[hidden] { display: none; }
.fq-group + .fq-group { margin-top: 56px; }
.fq-group-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 6px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 10, 10, .14);
}
.fq-group-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; color: var(--accent);
}
.fq-group-head h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: #0A0A0A;
}
.fq-group-count {
  margin-left: auto; flex: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #767671;
}

.fq-item { border-bottom: 1px solid rgba(10, 10, 10, .12); }
.fq-item summary {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 2px;
  list-style: none; cursor: pointer;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-num {
  flex: none; min-width: 26px; padding-top: 2px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: #767671;
}
.fq-q {
  flex: 1; min-width: 0;
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: #0A0A0A;
  transition: color .22s;
}
.fq-item summary:hover .fq-q { color: var(--accent); }
.fq-icon {
  position: relative; flex: none; width: 34px; height: 34px;
  border: 1px solid rgba(10, 10, 10, .2); border-radius: 999px;
  transition: background .3s, border-color .3s, transform .3s;
}
.fq-icon::before, .fq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; border-radius: 2px; background: #0A0A0A;
  transform: translate(-50%, -50%);
  transition: transform .3s, background .3s;
}
.fq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-item[open] .fq-icon { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.fq-item[open] .fq-icon::before, .fq-item[open] .fq-icon::after { background: #FFFFFF; }
.fq-item[open] .fq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

.fq-a p {
  margin: 0; padding: 0 46px 24px 46px; max-width: 780px;
  font-size: 16.5px; line-height: 1.65; color: #3D3D3A;
}
.fq-item[open] .fq-a p { animation: fq-reveal .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.fq-empty {
  margin-bottom: 32px; padding: 56px 24px; text-align: center;
  border: 1px dashed rgba(10, 10, 10, .2); border-radius: 20px; background: #F7F7F4;
}
.fq-empty[hidden] { display: none; }
.fq-empty-title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #0A0A0A;
}
.fq-empty-text { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: #55554F; }
.fq-empty-reset {
  border: 0; border-bottom: 2px solid var(--accent); padding: 2px 0; background: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--accent);
}

.fq-cat:focus-visible, .fq-item summary:focus-visible, .fq-clear:focus-visible,
.fq-empty-reset:focus-visible, .fq-help-link:focus-visible, .fq-cta-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Chamada final */
.fq-cta { background: #FFFFFF; padding: 0 0 120px; }
.fq-cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
  padding: 56px; border-radius: 32px;
  background: #0A0A0A; color: #FFFFFF;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.fq-cta-card::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 480px; height: 480px;
  border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 74, 255, .38), transparent 65%);
}
.fq-cta-copy { position: relative; z-index: 1; max-width: 680px; }
.fq-cta-kicker {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #8FB0FF;
}
.fq-cta-copy h2 {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.03em;
}
.fq-cta-copy > p:last-child { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: #BDBDB8; }
.fq-cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.fq-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 26px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.fq-cta-btn:hover { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; transform: translateY(-2px); }
.fq-cta-btn.is-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.fq-cta-btn.is-ghost:hover { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; }

/* Tablet: filtros passam a barra horizontal fixa */
@media (max-width: 980px) {
  .fq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fq-side {
    position: sticky; top: 81px; z-index: 12;
    margin: 0 -32px; padding: 12px 32px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 10, 10, .08);
    flex-direction: row; align-items: center; gap: 0;
  }
  .fq-side-label, .fq-help { display: none; }
  .fq-cats { flex-direction: row; width: 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .fq-cats::-webkit-scrollbar { display: none; }
  .fq-cat {
    flex: none; width: auto; white-space: nowrap;
    padding: 9px 14px; border: 1px solid rgba(10, 10, 10, .14); border-radius: 999px;
    font-size: 14px;
  }
  .fq-cat span { background: transparent; padding: 0; }
  .fq-cat.is-active span { background: transparent; color: #8FB0FF; }
  .fq-group:first-of-type { margin-top: 26px; }
}

@media (max-width: 860px) {
  .fq-hero .pg-wrap, .fq-body .pg-wrap, .fq-cta .pg-wrap { padding-left: 20px; padding-right: 20px; }
  .fq-side { top: 67px; margin: 0 -20px; padding: 10px 20px; }
  .fq-body { padding: 40px 0 84px; }
  .fq-hero-in { padding-top: 48px; padding-bottom: 48px; }
  .fq-title { font-size: clamp(48px, 13vw, 82px); }
  .fq-mark { display: none; }
  .fq-hero-foot { margin-top: 26px; gap: 22px; }
  .fq-hero-lead { font-size: 18px; }
  .fq-search { flex-basis: 100%; }

  .fq-group + .fq-group { margin-top: 44px; }
  .fq-group-count { display: none; }
  .fq-item summary { gap: 12px; padding: 19px 0; }
  .fq-num { min-width: 22px; font-size: 12px; }
  .fq-q { font-size: 17.5px; }
  .fq-icon { width: 32px; height: 32px; }
  .fq-a p { padding: 0 0 22px 34px; font-size: 16px; }

  .fq-cta { padding-bottom: 84px; }
  .fq-cta-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 38px 26px; border-radius: 26px; }
  .fq-cta-copy h2 { font-size: clamp(30px, 8vw, 40px); }
  .fq-cta-actions { width: 100%; }
  .fq-cta-btn { flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .fq-hero-in { padding-top: 36px; padding-bottom: 40px; }
  .fq-kicker { margin-bottom: 16px; font-size: 12px; }
  .fq-title { font-size: clamp(44px, 14vw, 64px); line-height: .9; }
  .fq-hero-lead { font-size: 17px; line-height: 1.48; }
  .fq-search { padding-left: 16px; }

  .fq-group-head { gap: 10px; padding-bottom: 12px; }
  .fq-group-head h2 { font-size: 26px; }
  .fq-q { font-size: 17px; }
  .fq-empty { padding: 42px 20px; }
}

@media (max-width: 420px) {
  .fq-title { font-size: 42px; }
  .fq-search input { font-size: 15px; }
  .fq-cat { padding: 8px 12px; font-size: 13px; }
  .fq-group-head h2 { font-size: 24px; }
  .fq-item summary { gap: 10px; padding: 17px 0; }
  .fq-q { font-size: 16.5px; }
  .fq-icon { width: 30px; height: 30px; }
  .fq-a p { padding-left: 32px; font-size: 15.5px; }
  .fq-cta-card { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .fq-item[open] .fq-a p { animation: none; }
  .fq-cat, .fq-icon, .fq-q, .fq-cta-btn, .fq-help-link span { transition: none; }
}
