/* ============================================================
   Capital Mortgages — Good questions (FAQ) page
   ============================================================ */

/* ---------- hero ---------- */
.faq-hero { padding: 64px 0 46px; }
.faq-hero.darkbg .eyebrow { color: var(--brand-ink); }
.faq-hero h1 { font-size: 54px; line-height: 1.06; }
.faq-hero.darkbg h1 { color: var(--on-dark); }
.faq-hero .sub { font-size: 18px; max-width: 58ch; margin-top: 18px; }
.faq-hero.darkbg .sub { color: var(--on-dark-soft); }

/* contents chips — jump to a category */
.faq-jump { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.faq-jump a {
  font-size: 13.5px; font-weight: 640; line-height: 1;
  padding: 9px 14px; border-radius: 999px;
  color: var(--on-dark);
  background: color-mix(in oklab, var(--on-dark), transparent 88%);
  border: 1px solid var(--dark-line);
  transition: background .15s ease, border-color .15s ease;
}
.faq-jump a:hover {
  background: color-mix(in oklab, var(--on-dark), transparent 80%);
  border-color: color-mix(in oklab, var(--on-dark), transparent 60%);
}

/* ---------- categories ---------- */
.faq-cats { display: grid; gap: 64px; max-width: 880px; margin: 0 auto; }
.faq-cat { scroll-margin-top: calc(var(--bar-h) + 16px); }
.faq-cat-head { display: grid; gap: 8px; margin-bottom: 24px; }
.faq-cat-head .k {
  font-size: 12.5px; font-weight: 660; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.faq-cat-head h2 { font-size: 28px; line-height: 1.14; letter-spacing: -0.01em; }

/* ---------- accordion (mirrors the home-page FAQ) ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0 26px; }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; font-size: 18px; font-weight: 620; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  color: var(--accent); font-size: 20px; font-weight: 460;
  transition: transform .18s ease; flex-shrink: 0;
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 22px; font-size: 17px; color: var(--ink-soft); max-width: 64ch; }
.faq-item .faq-a + .faq-a { padding-top: 14px; }
.faq-item .faq-a a { color: var(--accent); font-weight: 620; }
.faq-item .faq-a a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.faq-closing { margin-top: 84px; }
.faq-closing .card {
  display: grid; gap: 14px; justify-items: start;
  padding: 38px 40px; max-width: 880px; margin: 0 auto;
}
.faq-closing h2 { font-size: 27px; line-height: 1.16; }
.faq-closing p { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }
.faq-closing .faq-closing-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .faq-hero h1 { font-size: 38px; }
  .faq-cats { gap: 48px; }
  .faq-cat-head h2 { font-size: 24px; }
  .faq-closing .card { padding: 30px 24px; }
}
