/* faq.css: the FAQ page (src\pages\faq.mjs, plan.md "## FAQ"). */

/* ---------- 1. the header: a dog waiting on its porch, full width; over the siding at its left, a white card with the
   search and the topics ---------- */
.fhero { padding: 12px 12px 0; }
.fhero__in { position: relative; display: grid; align-items: center; min-height: clamp(520px, calc(100svh - var(--header-h) - 70px), 680px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); }
.fhero__photo { position: absolute; inset: 0; }
.fhero__img { position: absolute; top: -1px; left: 0; width: 116%; height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 62%; }
.fhero__card { position: relative; z-index: 2; display: grid; gap: 0.85rem; box-sizing: border-box; width: min(440px, 33%); margin: 32px 0 32px clamp(20px, 3.4vw, 56px); padding: clamp(22px, 1rem + 1vw, 32px); border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow-l); }
.fhero__title { margin: 0; font-size: clamp(2rem, 1.2rem + 1.7vw, 2.85rem); line-height: 1.08; color: var(--c-ink); }
.fhero__line { margin: 0; color: var(--c-ink-soft); line-height: 1.5; }
.fhero__line a { font-weight: var(--fw-strong); color: var(--c-brand-text); white-space: nowrap; }
.fhero__field { display: flex; align-items: center; gap: 10px; margin-top: 0.25rem; padding: 0 16px; border: 2px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-white); }
.fhero__field:focus-within { border-color: var(--c-cobalt); }
.fhero__field > .icon { flex: none; width: 20px; height: 20px; color: var(--c-cobalt); }
.fhero__field input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; font: 400 1.05rem var(--font-text); color: var(--c-ink); }
.fhero__field input::placeholder { color: color-mix(in srgb, var(--c-ink) 45%, transparent); }
.fhero__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fhero__chip { padding: 7px 13px; border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-paper); font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-ink); cursor: pointer; }
.fhero__chip:hover { border-color: var(--c-cobalt); }
.fhero__chip:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.fhero__chip[aria-pressed="true"] { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-brand); }
.fhero__count { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.fhero__count a { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-strong); color: var(--c-brand-text); }
.fhero__count .icon { width: 16px; height: 16px; }
@media (max-width: 1099px) { .fhero__card { width: min(440px, 40%); } .fhero__img { width: 125%; } }
@media (max-width: 899px) {
  .fhero { padding: 8px 8px 0; }
  .fhero__in { display: block; min-height: 0; overflow: visible; background: none; }
  .fhero__photo { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 22px; }
  .fhero__img { left: 0; width: 100%; object-position: 50% 70%; }
  .fhero__card { width: auto; margin: -2.25rem 6px 0; padding: 20px 18px; }
}

/* ---------- 2. five questions to ask any fence company: the checklist card over a shopper at her kitchen table ---------- */
.five__head { margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.five__stage { aspect-ratio: 2 / 1; box-shadow: var(--shadow-m); }
.five__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.five__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 679px) {
  .five__stage { aspect-ratio: 4 / 5.8; --fc-compact: 1; }
  .five__img { object-position: 74% 50%; }
}

/* ---------- 3. the questions: the accordion, filtered by the header's search and topics ---------- */
.faq__item[hidden] { display: none; }
.faq__item p a { font-weight: var(--fw-strong); color: var(--c-brand-text); white-space: nowrap; }
.faq__none { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--c-white); color: var(--c-ink); }
.faq__none a { font-weight: var(--fw-strong); color: var(--c-brand-text); }

/* ---------- 4. the close: the business's own print of Julie with three Labs, beside the form ---------- */
.fclose__media { display: grid; justify-items: center; }
.fclose__print { width: min(100%, 520px); }
.fclose__print .loop { --loop-inset: -14px; --loop-r: 16px; }
