/* faq.css: the FAQ page (plan.md, FAQ). A café owner at her counter as a wide band, the search straddling its foot, the
   topics under it; the questions by topic (the shared FAQ items, components.css); the close beside a landscaper
   between jobs, the chat's first question answered over the hedge. */

/* ---------- hero ---------- */
.fqh { padding: clamp(2.25rem, 1rem + 3.4vw, 4.25rem) 0 0; }
.fqh__head { max-width: 46rem; margin: 0 auto var(--space-5); text-align: center; }
.fqh__title { margin: 0; font: 800 var(--fs-display)/1 var(--font-display); letter-spacing: -0.035em; }
.fqh__line { max-width: 34em; margin: var(--space-3) auto 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.5; color: var(--c-ink-soft); text-wrap: balance; }
.fqh__band { position: relative; height: clamp(300px, 30vw, 420px); overflow: hidden; border-radius: var(--radius-xl); background: var(--c-sand); box-shadow: var(--shadow-m); }
.fqh__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* the search straddles the band's foot, a little more on it than off */
.fqh__find { position: relative; z-index: 1; max-width: 760px; margin: -40px auto 0; }
.fqh__search { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 26px; border: 2px solid var(--c-paper); border-radius: 999px; background: var(--c-paper); box-shadow: var(--shadow-l); }
.fqh__search:focus-within { border-color: var(--c-brand); }
.fqh__search svg { flex: none; width: 24px; height: 24px; color: var(--c-brand-text); }
.fqh__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 1.125rem/1 var(--font-ui); color: var(--c-ink); outline: none; }
.fqh__search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fqh__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-3); }
.fqh__topic { min-height: 44px; padding: 10px 18px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 700 0.95rem/1 var(--font-ui); cursor: pointer; transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear; }
.fqh__topic:hover { background: var(--c-brand-light); }
.fqh__topic[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }

/* ---------- the questions ---------- */
.fqq { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--section-y); }
.fqq__wrap { max-width: calc(880px + 2 * var(--gutter)); }
.fqq__status { min-height: 1.5em; margin: 0 0 var(--space-3); font-size: var(--fs-small); color: var(--c-ink-soft); text-align: center; }
.fqq__group + .fqq__group { margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem); }
.fqq__group[hidden], .fqq__empty[hidden] { display: none; }
.fqq__title { margin: 0 0 var(--space-3); font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.fqq .faq__a a, .fqq__empty a { color: var(--c-brand-text); font-weight: 700; }
.fqq__empty { padding: var(--space-4); border-radius: 22px; background: var(--c-paper); border: 1px solid var(--c-line); text-align: center; }
.fqq__empty p { margin: 0; }
.fqq__empty-title { margin-bottom: 6px !important; font: 800 1.3rem/1.2 var(--font-display); }

/* ---------- close ---------- */
.fqc { background: var(--c-sand); }
.fqc__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-5) clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.fqc__words .lead { margin-top: var(--space-3); }
.fqc__cta { margin-top: var(--space-4); }
.fqc__contact { display: inline-flex; margin-top: var(--space-3); }
.fqc__frame { position: relative; }
.fqc__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
/* the chat over the hedge, clear of his face (right of the middle) */
.fqc__box { position: absolute; left: 22px; top: 22px; width: min(320px, 46%); height: 300px; }
.fqc__box .fqc__scene { height: 100%; }
.fqc__stop { position: absolute; top: 14px; right: 14px; }

@media (max-width: 1099.98px) {
  .fqc__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .fqh__head { margin-bottom: var(--space-4); }
  .fqh__band { height: 260px; }
  .fqh__find { margin-top: -34px; }
  .fqh__search { height: 62px; padding: 0 18px; }
  .fqh__search input { font-size: 1rem; }
  .fqh__topics { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .fqh__topic { flex: none; white-space: nowrap; }

  .fqc__photo { aspect-ratio: 4 / 5; object-position: 70% 30%; }
  .fqc__box { position: relative; left: auto; top: auto; width: 100%; max-width: 360px; height: 300px; margin: -160px auto 0; }
  .fqc__stop { top: 12px; right: 12px; }
}
