/* ================================================================
   JUNTOS SAÚDE — DÚVIDAS FREQUENTES (FAQ)
   Depende de home.css: tokens (:root), reset, .sc, header .sh,
   footer .ft, botões .btn-* e .sec-label.
================================================================ */

html { scroll-padding-top: 7rem; }

/* ================================================================
   HERO
================================================================ */
.faq-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.75rem 0 8.75rem;
  background: linear-gradient(160deg, #0D1B2A 0%, #11253D 58%, #0D1B2A 100%);
}
.faq-hero__decor {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -130px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  opacity: 0.5;
  pointer-events: none;
}
.faq-hero__decor svg { width: 100%; height: 100%; }

.faq-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.faq-hero__title {
  margin-top: 0.15rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.045em;
  color: #fff;
}
.faq-hero__title em { font-style: normal; font-weight: 600; color: var(--sky); }
.faq-hero__sub {
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ================================================================
   BUSCA
================================================================ */
.faq-search {
  position: relative;
  width: min(100%, 33rem);
  margin-top: 0.85rem;
}
.faq-search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.faq-search__field > i,
.faq-search__field > svg {
  position: absolute;
  left: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--ink-soft);
  stroke-width: 2;
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  height: 3.5rem;
  padding: 0 3rem 0 3.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,0.55);
  transition: box-shadow 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.faq-search input::placeholder { color: var(--fog); font-weight: 400; }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-search input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,0.55), 0 0 0 4px rgba(111,182,242,0.25);
}
.faq-search__clear {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.faq-search__clear:hover { background: #fde3e3; color: #dc2626; }
.faq-search__clear i, .faq-search__clear svg { width: 1rem; height: 1rem; }
.faq-search__status {
  min-height: 1.1rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--sky);
}

/* ================================================================
   LAYOUT PRINCIPAL
================================================================ */
.faq-main {
  position: relative;
  z-index: 2;
  padding-bottom: 5.5rem;
  background: var(--bg-light);
}
.faq-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: center;
  gap: 2.25rem;
  margin-top: -5.5rem;
  align-items: start;
}

/* ================================================================
   NAVEGAÇÃO LATERAL (CATEGORIAS)
================================================================ */
.faq-side {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.faq-side__card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.25rem;
  box-shadow: 0 24px 48px -28px rgba(13,27,42,0.4);
}
.faq-side__title {
  display: block;
  margin: 0 0 0.95rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.faq-side__nav { display: flex; flex-direction: column; gap: 0.2rem; }
.faq-side__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.faq-side__link i, .faq-side__link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: var(--fog);
  stroke-width: 2;
  transition: color 0.18s;
}
.faq-side__link span { flex: 1; min-width: 0; }
.faq-side__link:hover {
  background: var(--bg-soft);
  color: var(--blue);
}
.faq-side__link:hover i, .faq-side__link:hover svg { color: var(--blue); }
.faq-side__link.is-active {
  background: var(--blue);
  color: #fff;
}
.faq-side__link.is-active i, .faq-side__link.is-active svg { color: #fff; }

/* Card de ajuda no rodapé da barra lateral */
.faq-side__help {
  background: linear-gradient(155deg, #0D1B2A 0%, #15294A 100%);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 24px 48px -28px rgba(13,27,42,0.55);
}
.faq-side__help-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(111,182,242,0.14);
  border: 1px solid rgba(111,182,242,0.25);
  margin-bottom: 0.3rem;
}
.faq-side__help-icon i, .faq-side__help-icon svg {
  width: 1.25rem; height: 1.25rem; color: var(--sky); stroke-width: 2;
}
.faq-side__help strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.faq-side__help p {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--mist);
}
.faq-side__help-btn {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.18s;
}
.faq-side__help-btn:hover { background: var(--blue-h); transform: translateY(-1px); }
.faq-side__help-btn i, .faq-side__help-btn svg { width: 1rem; height: 1rem; }

/* ================================================================
   CONTEÚDO — CATEGORIAS E PERGUNTAS
================================================================ */
.faq-content { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.faq-cat {
  scroll-margin-top: 7rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: 1.85rem 2rem 0.75rem;
  box-shadow: 0 24px 48px -30px rgba(13,27,42,0.4);
}
.faq-cat.is-hidden { display: none; }

.faq-cat__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line-light);
}
.faq-cat__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,0.09);
  border: 1px solid rgba(37,99,235,0.16);
}
.faq-cat__icon i, .faq-cat__icon svg {
  width: 1.4rem; height: 1.4rem; color: var(--blue); stroke-width: 2;
}
.faq-cat__head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-cat__head p {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Item / acordeão ---------- */
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-cat .faq-item:last-child { border-bottom: 0; }
.faq-item.is-hidden { display: none; }

.faq-item__head { font: inherit; }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.18s;
}
.faq-item__q span { flex: 1; min-width: 0; line-height: 1.45; }
.faq-item__q:hover { color: var(--blue); }
.faq-item__q:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.faq-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: transform 0.3s ease;
}
.faq-item__icon i, .faq-item__icon svg { width: 1.3rem; height: 1.3rem; stroke-width: 2.25; }
.faq-item.is-open .faq-item__q { color: var(--blue); }
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

/* Painel de resposta — animação de altura via grid */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; min-height: 0; }
.faq-item__a-body { padding: 0.1rem 0 1.4rem; }

/* ---------- Conteúdo da resposta ---------- */
.faq-item__a-body p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.faq-item__a-body p + p { margin-top: 0.7rem; }
.faq-item__a-body p strong { font-weight: 700; color: var(--ink-mid); }
.faq-item__a-body p em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.85;
}

.faq-sub {
  margin-top: 1rem !important;
  margin-bottom: 0.55rem;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue) !important;
}

.faq-item__a-body ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 0.55rem 0 0.2rem;
}
.faq-item__a-body ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-item__a-body ul li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sky);
}
.faq-item__a-body ul li strong { font-weight: 700; color: var(--ink-mid); }
.faq-item__a-body ul.faq-cols {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
}
.faq-item__a-body p + .faq-sub { margin-top: 1.1rem !important; }

/* Chip de telefone / WhatsApp dentro da resposta */
.faq-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.22);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.faq-phone:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.faq-phone i, .faq-phone svg { width: 1rem; height: 1rem; stroke-width: 2.4; }

/* ---------- Estado vazio (busca sem resultados) ---------- */
.faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--line-light);
  border-radius: var(--r-lg);
}
.faq-empty__icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  margin-bottom: 0.35rem;
}
.faq-empty__icon i, .faq-empty__icon svg { width: 1.5rem; height: 1.5rem; color: var(--fog); }
.faq-empty strong { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.faq-empty p { font-size: 0.9rem; color: var(--ink-soft); max-width: 24rem; line-height: 1.6; }

/* ================================================================
   SEÇÃO DE CONTATO
================================================================ */
.faq-contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem 0;
  background: linear-gradient(160deg, #0D1B2A 0%, #11253D 60%, #0D1B2A 100%);
}
.faq-contact__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 12% 30%, rgba(37,99,235,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 35% 55% at 88% 75%, rgba(111,182,242,0.22) 0%, transparent 70%);
}
.faq-contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.faq-contact__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: #fff;
}
.faq-contact__title em { font-style: normal; font-weight: 600; color: var(--sky); }
.faq-contact__desc {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mist);
}
.faq-contact__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.faq-contact__channels {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.6rem;
}
.faq-contact__channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.2s;
}
.faq-contact__channels a:hover { color: #fff; }
.faq-contact__channels i, .faq-contact__channels svg {
  width: 0.95rem; height: 0.95rem; color: var(--sky); stroke-width: 2;
}

/* ================================================================
   BOTÃO VOLTAR AO TOPO
================================================================ */
.faq-totop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(37,99,235,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.18s;
}
.faq-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.faq-totop:hover { background: var(--blue-h); }
.faq-totop i, .faq-totop svg { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }

/* ================================================================
   RESPONSIVO — 960px
================================================================ */
@media (max-width: 960px) {
  html { scroll-padding-top: 10.5rem; }

  .faq-hero { padding: 3rem 0 7rem; }
  .faq-main { padding-bottom: 4rem; }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: -4.5rem;
  }

  /* Barra lateral vira faixa de chips horizontal e fixa abaixo do header */
  .faq-side {
    position: sticky;
    top: 74px;
    z-index: 90;
  }
  .faq-side__card {
    padding: 0.7rem 0.75rem;
    box-shadow: 0 16px 26px -20px rgba(13,27,42,0.4);
  }
  .faq-side__title { display: none; }
  .faq-side__nav {
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
  }
  .faq-side__nav::-webkit-scrollbar { display: none; }
  .faq-side__link {
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
  }
  .faq-side__link span { flex: none; }
  .faq-side__link.is-active { border-color: var(--blue); }
  .faq-side__help { display: none; }

  .faq-cat { scroll-margin-top: 10.5rem; padding: 1.5rem 1.4rem 0.5rem; }
  .faq-cat__head { gap: 0.85rem; }
}

/* ================================================================
   RESPONSIVO — 640px
================================================================ */
@media (max-width: 640px) {
  .faq-hero { padding: 2.5rem 0 6.5rem; }
  .faq-cat { padding: 1.35rem 1.15rem 0.4rem; }
  .faq-cat__head h2 { font-size: 1.08rem; }
  .faq-item__q { font-size: 0.94rem; gap: 0.8rem; }
  .faq-item__a-body ul.faq-cols { grid-template-columns: 1fr; }
  .faq-totop { right: 1rem; bottom: 1rem; }
}

/* ================================================================
   MOVIMENTO REDUZIDO
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .faq-item__a { transition: none; }
  .faq-item__icon { transition: none; }
  .faq-totop { transition: opacity 0.2s, visibility 0.2s; }
  html { scroll-behavior: auto; }
}
