/* ========================================================================
   Nimber — Perguntas Frequentes v68
   Página isolada, baseada em Bootstrap e no sistema visual Nimber.
   ======================================================================== */

.nimber-faq-page {
  --container: 1476px;
  --faq-ink: #172432;
  --faq-dark: #1d2c3a;
  --faq-blue: #5187a8;
  --faq-cyan: #00b0ff;
  --faq-soft: #edf3f6;
  --faq-gutter: clamp(20px, 4vw, 64px);
  --faq-content-max: var(--container);
  color: var(--faq-ink);
  background: #fff;
}

.nimber-faq-page .faq-page-container {
  width: 100%;
  max-width: calc(var(--faq-content-max) + (var(--faq-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--faq-gutter);
}

.nimber-faq-page .faq-hero > .faq-page-container {
  max-width: calc(var(--container-wide) + (var(--faq-gutter) * 2));
}

/* Header sólido --------------------------------------------------------- */
body.nimber-faq-page .site-header::before,
body.nimber-faq-page .site-header.is-scrolled::before {
  border-bottom-color: rgba(81, 134, 167, .10);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(23, 36, 50, .06);
  opacity: 1;
}

/* Hero ------------------------------------------------------------------ */
.nimber-faq-page .faq-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 430px;
  padding-top: 146px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #1b2d3b 0%, #254d64 52%, #568eae 100%);
  isolation: isolate;
}

.nimber-faq-page .faq-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 146px 0 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .018), transparent 48%);
  pointer-events: none;
}

.nimber-faq-page .faq-hero__row {
  min-height: 284px;
  padding-block: clamp(44px, 4vw, 62px);
}

.nimber-faq-page .faq-hero__title {
  color: #fff;
  font-size: clamp(30px, 2.55vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.nimber-faq-page .faq-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(56px, 4vw, 74px);
  align-items: center;
  gap: clamp(14px, 1.3vw, 24px);
  width: 100%;
  max-width: 900px;
  margin-left: auto;
}

.nimber-faq-page .faq-search input {
  width: 100%;
  height: clamp(58px, 4.1vw, 76px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 0 clamp(26px, 2.6vw, 48px);
  color: var(--faq-ink);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 36px rgba(12, 35, 51, .12);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .24em;
  outline: none;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}

.nimber-faq-page .faq-search input::placeholder { color: #8d969d; opacity: 1; }
.nimber-faq-page .faq-search input:focus {
  border-color: rgba(0, 176, 255, .76);
  box-shadow: 0 0 0 4px rgba(0, 176, 255, .14), 0 18px 42px rgba(12, 35, 51, .16);
}

.nimber-faq-page .faq-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 4vw, 74px);
  height: clamp(56px, 4vw, 74px);
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--faq-cyan);
  box-shadow: 0 12px 30px rgba(0, 176, 255, .28);
  font-size: clamp(16px, 1.1vw, 20px);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.nimber-faq-page .faq-search button:hover,
.nimber-faq-page .faq-search button:focus-visible {
  transform: translateY(-2px) scale(1.025);
  background: #009ee5;
  box-shadow: 0 16px 34px rgba(0, 176, 255, .38);
}

/* Topic grid ------------------------------------------------------------ */
.nimber-faq-page .faq-content {
  padding: clamp(70px, 6.4vw, 118px) 0 clamp(100px, 9vw, 172px);
  background: #fff;
}

.nimber-faq-page .faq-content > .faq-page-container {
  max-width: calc(var(--container-wide) + (var(--faq-gutter) * 2));
}

.nimber-faq-page .faq-topics { margin-inline: 0; }

.nimber-faq-page .faq-topic-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.45vw, 28px);
  width: 100%;
  min-height: clamp(82px, 5.8vw, 106px);
  border: 0;
  border-radius: 18px;
  padding: 12px clamp(20px, 1.7vw, 31px) 12px clamp(14px, 1.1vw, 20px);
  color: var(--faq-ink);
  background: linear-gradient(92deg, #f7fafb 0%, #eef3f6 100%);
  text-decoration: none;
  box-shadow: 0 9px 20px rgba(22, 45, 59, .08);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, background .35s ease;
}


.nimber-faq-page .faq-topic-card__icon,
.nimber-faq-page .faq-popular-column__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(135deg, #d8e8f0 0%, #f1f6f8 100%);
  box-shadow: 0 7px 16px rgba(42, 88, 112, .12);
}

.nimber-faq-page .faq-topic-card__icon {
  width: clamp(58px, 4vw, 72px);
  height: clamp(58px, 4vw, 72px);
}

.nimber-faq-page .faq-topic-card__icon img {
  width: clamp(38px, 2.8vw, 52px);
  height: auto;
}

.nimber-faq-page .faq-topic-card > span:last-child {
  max-width: 290px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.nimber-faq-page .faq-topic-card:hover,
.nimber-faq-page .faq-topic-card:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(92deg, #f9fbfc 0%, #e9f2f6 100%);
  box-shadow: 0 16px 30px rgba(22, 45, 59, .12);
  outline: none;
}

/* Popular questions ----------------------------------------------------- */
.nimber-faq-page .faq-popular-title {
  margin: clamp(70px, 7vw, 126px) 0 clamp(45px, 4.2vw, 76px);
  color: #060606;
  font-size: clamp(30px, 2.5vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.nimber-faq-page .faq-popular-grid { margin-inline: 0; }

.nimber-faq-page .faq-popular-column__heading {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.25vw, 23px);
  min-height: 68px;
  margin-bottom: 23px;
  padding: 0 8px 18px 0;
  border-bottom: 1px solid rgba(29, 44, 58, .58);
}

.nimber-faq-page .faq-popular-column__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.nimber-faq-page .faq-popular-column__icon img { width: 39px; height: auto; }

.nimber-faq-page .faq-popular-column h3 {
  margin: 0;
  color: #050505;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.nimber-faq-page .faq-popular-column ul {
  display: grid;
  gap: clamp(17px, 1.35vw, 24px);
  margin: 0;
  padding: 0 0 0 18px;
}

.nimber-faq-page .faq-popular-column li {
  color: #000;
  font-size: 18px;
  line-height: 1.45;
}

.nimber-faq-page .faq-popular-column a {
  color: #111;
  text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
  font-size: 16px;
}

.nimber-faq-page .faq-popular-column a:hover,
.nimber-faq-page .faq-popular-column a:focus-visible {
  color: var(--faq-blue);
  padding-left: 3px;
}

.nimber-faq-page .faq-search-item[hidden] { display: none !important; }

.nimber-faq-page .faq-empty {
  margin: 52px 0 0;
  color: #5d6b75;
  font-size: 18px;
  text-align: center;
}

/* Investor CTA ---------------------------------------------------------- */
.nimber-faq-page .faq-investor-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(330px, 28vw, 470px);
  overflow: hidden;
  color: #fff;
  background: #102533;
  isolation: isolate;
  box-shadow: 0 -18px 34px rgba(18, 47, 65, .09), 0 18px 34px rgba(18, 47, 65, .09);
}

.nimber-faq-page .faq-investor-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(9, 29, 42, .12);
}

.nimber-faq-page .faq-investor-cta__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nimber-faq-page .faq-investor-cta__content { padding-block: 76px; }

.nimber-faq-page .faq-investor-cta h2 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}

.nimber-faq-page .faq-investor-cta h2 strong { font-weight: 900; }

.nimber-faq-page .faq-investor-cta .button {
  min-width: 230px;
  min-height: 48px;
  padding-inline: 28px;
  border: 1px solid rgba(166, 244, 255, .72);
  box-shadow: 0 0 0 1px rgba(0, 216, 190, .16), 0 0 12px rgba(0, 219, 191, .58), 0 0 28px rgba(0, 185, 242, .48), 0 10px 24px rgba(0, 65, 89, .28);
  font-size: 11px;
  animation: faq-neon-pulse 2.8s ease-in-out infinite;
}

@keyframes faq-neon-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 216, 190, .14), 0 0 10px rgba(0, 219, 191, .48), 0 0 24px rgba(0, 185, 242, .40), 0 10px 24px rgba(0, 65, 89, .26); }
  50% { box-shadow: 0 0 0 1px rgba(193, 249, 255, .22), 0 0 16px rgba(0, 219, 191, .72), 0 0 36px rgba(0, 185, 242, .60), 0 12px 28px rgba(0, 65, 89, .30); }
}

.nimber-faq-page .newsletter--faq { background: #fff; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .nimber-faq-page .faq-hero {
    min-height: 382px;
    padding-top: 92px;
  }
  .nimber-faq-page .faq-hero::before { inset: 92px 0 0; }
  .nimber-faq-page .faq-hero__row { min-height: 290px; }
  .nimber-faq-page .faq-content { padding-bottom: 120px; }
  .nimber-faq-page .faq-topic-card > span:last-child { max-width: none; }
}

@media (max-width: 991.98px) {
  .nimber-faq-page .faq-hero {
    min-height: 376px;
    padding-top: 86px;
  }
  .nimber-faq-page .faq-hero::before { inset: 86px 0 0; }
  .nimber-faq-page .faq-hero__row { min-height: 290px; text-align: center; }
  .nimber-faq-page .faq-search { max-width: 760px; margin-inline: auto; }
  .nimber-faq-page .faq-popular-column { padding-bottom: 26px; }
  .nimber-faq-page .faq-popular-title { margin-top: 84px; }
}

@media (max-width: 767.98px) {
  .nimber-faq-page {
    --faq-gutter: 20px;
  }

  .nimber-faq-page .faq-hero {
    min-height: 366px;
    padding-top: 84px;
  }

  .nimber-faq-page .faq-hero::before { inset: 84px 0 0; }
  .nimber-faq-page .faq-hero__row {
    min-height: 282px;
    padding-block: 44px;
  }
  .nimber-faq-page .faq-hero__title { text-align: left; }

  .nimber-faq-page .faq-search {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 12px;
  }

  .nimber-faq-page .faq-search input {
    height: 58px;
    padding-inline: 23px;
    letter-spacing: .16em;
  }

  .nimber-faq-page .faq-search button { width: 58px; height: 58px; }
  .nimber-faq-page .faq-content { padding: 68px 0 92px; }
  .nimber-faq-page .faq-topic-card { min-height: 84px; border-radius: 18px; }
  .nimber-faq-page .faq-topic-card__icon { width: 58px; height: 58px; }
  .nimber-faq-page .faq-popular-title { margin: 78px 0 45px; }
  .nimber-faq-page .faq-popular-column__heading { min-height: 60px; }
  .nimber-faq-page .faq-popular-column ul { gap: 16px; }
  .nimber-faq-page .faq-investor-cta { min-height: 340px; }
  .nimber-faq-page .faq-investor-cta__content { padding-block: 64px; }
}

@media (max-width: 420px) {
  .nimber-faq-page .faq-search { grid-template-columns: minmax(0, 1fr) 54px; }
  .nimber-faq-page .faq-search input,
  .nimber-faq-page .faq-search button { height: 54px; }
  .nimber-faq-page .faq-search button { width: 54px; }
  .nimber-faq-page .faq-topic-card { gap: 14px; padding-right: 15px; }
  .nimber-faq-page .faq-topic-card > span:last-child { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nimber-faq-page .faq-topic-card,
  .nimber-faq-page .faq-search button,
  .nimber-faq-page .faq-investor-cta .button { transition: none !important; animation: none !important; }
}

/* Fase 9.6 — grades dinâmicas sem alterar o layout original ------------ */
.nimber-faq-page .faq-hero__row--search-only {
  justify-content: center;
}

.nimber-faq-page .faq-search-col--full .faq-search {
  margin-inline: auto;
}

.nimber-faq-page .faq-topics,
.nimber-faq-page .faq-popular-grid {
  justify-content: center;
}

.nimber-faq-page .faq-topics > .col,
.nimber-faq-page .faq-popular-grid > .col {
  min-width: 0;
}

.nimber-faq-page .faq-popular-column[hidden] {
  display: none !important;
}
