/* ─── TOGGLE MOBILE / DESKTOP ──────────────────────────────── */
@media (min-width: 1200px) {

  .hero-section,
  .m-faq-section,
  .m-cta-section {
    display: none !important;
  }
}

@media (max-width: 1199px) {

  .fq-banner-section,
  .fq-main-section,
  .fq-cta-section {
    display: none !important;
  }
}

body {
  overflow-x: hidden;
}

/* BANNER */
.fq-banner-section {
  position: relative;
  width: 1920px;
  height: 464px;
  background: #fff;
  margin-top: -130px
}

.fq-banner-section::before,
.fq-banner-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 464px;
  background: #fff;
  z-index: 2
}

.fq-banner-section::before {
  left: 0
}

.fq-banner-section::after {
  right: 0
}

.fq-banner {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 1872px;
  height: 440px;
  overflow: hidden
}

.fq-banner-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.fq-banner-img {
  position: absolute;
  width: 100%;
  height: 303.93%;
  left: 0;
  top: -66.08%;
  object-fit: cover;
  max-width: none
}

.fq-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--branco) 33%, var(--azul-escuro));
  mix-blend-mode: multiply;
  pointer-events: none
}

.fq-banner-title {
  position: absolute;
  left: 136px;
  top: 313px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 72px;
  line-height: 72px;
  color: var(--branco);
  white-space: nowrap
}

/* FAQ SECTION */
.fq-main-section {
  position: relative;
  width: 1920px;
  min-height: 1210px;
  padding-bottom: 200px
}

.fq-main-title {
  position: absolute;
  left: 320px;
  top: 151px;
  width: 800px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 72px;
  color: var(--azul-escuro)
}

.fq-main-text {
  position: absolute;
  left: 1200px;
  top: 181px;
  width: 400px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--preto)
}

/* Setas de navegacao */
.fq-arrows {
  position: absolute;
  left: 346px;
  top: 450px;
  display: flex;
  flex-direction: column;
  gap: 40px
}

/* Categorias lado esquerdo */
.fq-categories {
  position: absolute;
  left: 386px;
  top: 450px;
  height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px
}

.fq-cat-item {
  display: flex;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s
}

.fq-cat-item:not(.active) {
  opacity: 0.55
}

.fq-cat-item:hover:not(.active) {
  opacity: 0.8
}

.fq-cat-icon-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-sizing: border-box
}

.fq-cat-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.2s
}

/* ATIVO: o wrapper fica com fundo azul puro, e a imagem SVG interna fica puramente branca */
.fq-cat-item.active .fq-cat-icon-wrap {
  background: #377EFF
}

.fq-cat-item.active .fq-cat-icon {
  filter: brightness(0) invert(1)
}

.fq-cat-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #377EFF;
  width: 169px
}

.fq-cat-item.hidden-cat {
  display: none !important
}

/* Painéis de accordions por categoria */
.fq-cat-panel {
  display: none
}

.fq-cat-panel.active {
  display: flex;
  flex-direction: column;
  gap: 16px
}


/* FAQ accordions */
.fq-accordion-wrap {
  position: absolute;
  left: 800px;
  top: 450px;
  width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.fq-accordion {
  border: 2px solid #377EFF;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  text-align: left;
  box-sizing: border-box
}

.fq-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  background: transparent;
  gap: 16px;
  box-sizing: border-box
}

.fq-accordion-question {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #377EFF;
  text-align: left;
  margin: 0
}

.fq-accordion-chevron {
  width: 12px;
  height: 6px;
  transition: transform 0.3s;
  flex-shrink: 0
}

.fq-accordion-body {
  padding-top: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  display: none;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  margin: 0
}

.fq-accordion.open .fq-accordion-body {
  display: block
}

.fq-accordion.open .fq-accordion-chevron {
  transform: rotate(180deg)
}

/* CTA */
.fq-cta-section {
  position: relative;
  width: 1920px;
  height: 760px
}

.fq-cta-inner {
  position: absolute;
  left: 24px;
  top: 0;
  width: 1800px;
  height: 560px
}

.fq-cta-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 560px;
  object-fit: cover
}

.fq-cta-title {
  position: absolute;
  left: 1200px;
  top: 100px;
  width: 536px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 72px;
  color: var(--azul-escuro)
}

.fq-cta-text {
  position: absolute;
  left: 1360px;
  top: 294px;
  width: 376px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--preto)
}

.fq-cta-btn {
  position: absolute;
  left: 1360px;
  top: 394px
}

/* MOBILE STYLES */
.m-banner-wrap {
  position: relative;
  width: calc(100% - 32px);
  max-width: 100%;
  height: 320px;
  margin: 0 auto;
  overflow: hidden
}

.m-banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.m-banner-img {
  position: absolute;
  width: 274%;
  height: 100%;
  left: -87%;
  top: 0;
  object-fit: cover;
  max-width: none
}

.m-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 24, 70, 0.3) 0%, rgba(10, 24, 70, 0.85) 100%);
  pointer-events: none
}

.m-banner-title {
  position: absolute;
  bottom: 32px;
  left: 24px;
  font-family: Syne, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 32px;
  color: var(--branco);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45)
}

.m-faq-section {
  padding: 32px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px
}

.m-faq-section .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #102662;
  margin: 0;
}

.m-faq-section .body-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

.m-faq-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-faq-cats::-webkit-scrollbar {
  display: none;
}

.m-faq-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s
}

.m-faq-cat.active {
  opacity: 1
}

.m-faq-cat-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-sizing: border-box
}

.m-faq-cat-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.2s
}

.m-faq-cat.active .m-faq-cat-icon-wrap {
  background: #377EFF
}

.m-faq-cat.active .m-faq-cat-icon {
  filter: brightness(0) invert(1)
}

.m-faq-cat-label {
  font-family: Inter, sans-serif;
  font-size: 10px;
  line-height: 14px;
  color: var(--azul-escuro);
  text-align: center
}

.m-faq-list {
  display: flex;
  flex-direction: column;
}

.m-faq-item {
  border: 2px solid #377EFF;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.m-faq-item:last-child {
  margin-bottom: 0;
}

.m-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-family: Syne, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #377EFF;
  cursor: pointer;
  list-style: none
}

.m-faq-item summary::-webkit-details-marker {
  display: none
}

.m-faq-item summary::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #377EFF;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s
}

.m-faq-item[open] summary::after {
  transform: rotate(180deg)
}

.m-faq-answer {
  padding: 0 16px 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--preto);
  margin: 0
}

.m-cta-section {
  padding: 40px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px
}

.m-cta-img-wrap {
  width: 100%;
  max-width: 100%;
  height: 220px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%)
}

.m-cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.m-cta-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px
}

/* ─── RESPONSIVE DESKTOP (≥ 1200 px) ─────────────────────────────────────────
   Converte posições e larguras fixas (base 1920 px) em proporcionais ao viewport,
   alinhando o padrão das outras páginas do tema.
   Tipografia fluida (clamp) já definida no <style> inline de page-faqs.php.     */
@media (min-width: 1200px) {

  /* FAQ MAIN ─────────────────────────────────────────────────────────────── */
  .fq-main-section {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto
  }

  /* 320 / 1920 = 16.667 % ; 800 / 1920 = 41.667 % */
  .fq-main-title {
    left: 16.667%;
    width: 41.667%
  }

  /* 1200 / 1920 = 62.5 % ; 400 / 1920 = 20.833 % */
  .fq-main-text {
    left: 62.5%;
    width: 20.833%
  }

  /* 346 / 1920 = 18.021 % */
  .fq-arrows {
    left: 18.021%
  }

  /* 386 / 1920 = 20.104 % */
  .fq-categories {
    left: 20.104%
  }

  /* Ícone fluido — padrão das outras páginas */
  .fq-cat-icon-wrap {
    width: clamp(56px, 4.17vw, 80px);
    height: clamp(56px, 4.17vw, 80px)
  }

  /* Label: largura proporcional ao viewport (169px base 1920px) */
  .fq-cat-label {
    width: clamp(120px, 8.8vw, 169px)
  }

  /* 800 / 1920 = 41.667 % ; 720 / 1920 = 37.5 % */
  .fq-accordion-wrap {
    left: 41.667%;
    width: 37.5%
  }

  /* CTA SECTION — o conteúdo usa Tailwind fluid; anular dimensões fixas */
  .fq-cta-section {
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin-left: auto;
    margin-right: auto
  }
}