/* ---------- FAQ ----------
 * Native <details>/<summary> accordion: works without JavaScript, keyboard and screen-reader friendly.
 * A <div role="region"> (not <section>) so the alternating section backgrounds keep their order. */
.faq { background: #fff; }
.faq__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--color-border); padding-top: clamp(3rem, 7vw, 5rem); }
.faq.section { padding-top: 0; }
/* Phones: intro → questions → "still have a question?". Desktop: intro and the card on the left, questions on the right. */
@container page (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(2rem, 5vw, 4rem); }
  .faq__intro { grid-column: 1; grid-row: 1; }
  .faq__ask { grid-column: 1; grid-row: 2; }
  .faq__qs { grid-column: 2; grid-row: 1 / span 2; }
}
.faq__lead { margin-top: 1rem; max-width: 34ch; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }

/* "Still have a question?" card */
.faq__ask {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border);
}
.faq__ask-title { font-weight: 700; color: var(--color-navy); font-size: 1.05rem; }
.faq__ask p { margin-top: .3rem; color: var(--color-text-muted); font-size: .95rem; line-height: 1.5; }
.faq__ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; }
.faq__ask-actions .btn { padding: .85rem 1.4rem; }
.faq__ask-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-weight: 600; color: var(--color-navy); text-decoration: none; }
.faq__ask-link:hover { color: var(--orange-text, var(--color-orange)); }
.faq__ask-link svg { width: 1.1rem; height: 1.1rem; color: var(--color-orange); }

/* Accordion */
.faq__list { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: 1rem 0;
  font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--color-navy);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--orange-text, var(--color-orange)); }
.faq__item summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: 6px; }
/* plus → minus */
.faq__item summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background:
    linear-gradient(var(--color-orange), var(--color-orange)) center / .8rem 2px no-repeat,
    linear-gradient(var(--color-orange), var(--color-orange)) center / 2px .8rem no-repeat,
    #FFF3E8;
  transition: transform .25s var(--ease), background-size .25s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(180deg);
  background-size: .8rem 2px, 2px 0, auto;
}
.faq__answer { padding: 0 2.5rem 1.25rem 0; color: var(--color-text-muted); line-height: 1.7; }
.faq__answer a { color: var(--orange-text, var(--color-orange)); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* ---------- First 5 questions, the 6th fades out, then "Show all 16 questions" ----------
   Same on every screen size: on desktop this makes the list about as tall as the intro + card beside it. */
.faq__more { display: none; }
.faq__list.is-collapsed { position: relative; }
.faq__list.is-collapsed .faq__item:nth-child(n+7) { display: none; }
.faq__list.is-collapsed .faq__item:nth-child(6) { pointer-events: none; border-bottom-color: transparent; }
.faq__list.is-collapsed .faq__item:nth-child(6) summary::after { visibility: hidden; }
.faq__list.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.75rem; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%);
}
.faq__more:not([hidden]) {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 3rem; margin-top: .5rem; padding: .75rem 1.25rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); background: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--color-navy); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.faq__more:hover { border-color: var(--color-orange); }
.faq__more:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.faq__more svg { width: 1.15rem; height: 1.15rem; color: var(--color-orange); transition: transform .25s var(--ease); }
.faq__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__more[aria-expanded="true"] { margin-top: 1.5rem; }
/* Small laptops / tablets in landscape: the left column wraps more, so show one more question to match it */
@container page (min-width: 960px) and (max-width: 1199px) {
  .faq__list.is-collapsed .faq__item:nth-child(n+7) { display: block; }
  .faq__list.is-collapsed .faq__item:nth-child(n+8) { display: none; }
  .faq__list.is-collapsed .faq__item:nth-child(6) { pointer-events: auto; border-bottom-color: var(--color-border); }
  .faq__list.is-collapsed .faq__item:nth-child(6) summary::after { visibility: visible; }
  .faq__list.is-collapsed .faq__item:nth-child(7) { pointer-events: none; border-bottom-color: transparent; }
  .faq__list.is-collapsed .faq__item:nth-child(7) summary::after { visibility: hidden; }
}
