/* FAQ page — new design: header banner + standalone accordion list.
   Reuses .hero__logo (hero.css), .faq-item / .site-footer (sections.css). */

.faq-page {
  background: var(--brand-white, #fffffe);
}

/* ========== Header banner ========== */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 34vw, 440px);
  overflow: hidden;
  background: #05060f;
  isolation: isolate;
}

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

/* Left-to-right scrim so the title stays legible over the streaks */
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(5, 6, 15, 0.88) 0%,
    rgba(5, 6, 15, 0.55) 38%,
    rgba(5, 6, 15, 0) 72%
  );
}

.page-hero__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--section-max, 1440px);
  padding: 40px var(--section-pad-x);
  margin: 0 auto;
}

.page-hero__cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 56px;
  padding: 0 24px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #161615;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e8e8e7;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(85, 85, 85, 0.05);
}

.page-hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  width: 100%;
  max-width: var(--section-max, 1440px);
  padding: 8px var(--section-pad-x) 56px;
  margin: 0 auto;
}

.page-hero__title {
  max-width: 640px;
  margin: 0;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  color: #fffffe;
  letter-spacing: -0.01em;
}

.page-hero__subtitle {
  max-width: 520px;
  margin: 0;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 254, 0.74);
}

/* Social buttons in the banner */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-hero__social {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fffffe;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.page-hero__social:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-hero__social svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ========== FAQ list (standalone, centered) ========== */
.faq-page__list {
  width: 100%;
  max-width: var(--section-max, 1440px);
  padding: clamp(32px, 4vw, 56px) var(--section-pad-x) clamp(72px, 9vw, 130px);
  margin: 0 auto;
}

/* Topic filter pills */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0 0 clamp(36px, 5vw, 52px);
}

.faq-filter {
  padding: 9px 18px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-muted, #6b7280);
  white-space: nowrap;
  cursor: pointer;
  background: #fffffe;
  border: 1px solid #e3e3e1;
  border-radius: 999px;
}

.faq-filter--active {
  color: #fffffe;
  background: var(--fg-primary, #161615);
  border-color: var(--fg-primary, #161615);
}

.faq-groups {
  width: 100%;
  margin: 0;
}

.faq-group + .faq-group {
  margin-top: clamp(48px, 6vw, 72px);
}

.faq-group__title {
  margin: 0 0 4px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--fg-primary, #161615);
  letter-spacing: -0.01em;
}

.faq-page__list .faq__list {
  max-width: none;
}

.faq-page__list .faq-item__answer a {
  color: var(--brand-blue, #2f6bff);
  text-decoration: none;
}

.faq-page__list .faq-item__answer a:hover {
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .page-hero {
    min-height: clamp(280px, 56vw, 380px);
  }

  /* Center the logo; drop the Bridge Now button on mobile */
  .page-hero__nav {
    justify-content: center;
    padding: 28px var(--section-pad-x);
  }

  .page-hero__cta {
    display: none;
  }

  /* Center the hero text on mobile */
  .page-hero__content {
    align-items: center;
    padding-bottom: 36px;
    text-align: center;
  }

  .page-hero__title {
    max-width: none;
  }

  .page-hero__subtitle {
    max-width: none;
    font-size: 16px;
  }

  .page-hero__actions {
    justify-content: center;
  }

  /* Filter pills: single horizontal row, swipeable, with a soft right-edge
     fade so the next pill trails off cleanly instead of hard-cutting. */
  .faq-filters {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--section-pad-x)) clamp(28px, 6vw, 40px);
    padding: 0 var(--section-pad-x);
    -webkit-mask-image: linear-gradient(
      to right,
      #000 calc(100% - 40px),
      transparent
    );
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }

  .faq-filters::-webkit-scrollbar {
    display: none;
  }

  .faq-filter {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }
}
