/* site\assets\css\pages\faq.css: the FAQ page (plan.md, FAQ), the director's. Tokens from design\system.css only.
   Grounds (D1): the header green, the questions on the tint, the close dark. */

.faq-topic, #close { scroll-margin-top: calc(var(--bar-h) + 16px); }
[data-kit-scene="sequence"] [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }

/* ---------- hero: the words, the search and the topics on the green; the owner's calm photo framed ---------- */
.faq-hero { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.faq-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-hero__title { max-width: 13ch; font-size: var(--fs-display); text-wrap: balance; }
.faq-hero__line { margin-top: var(--space-3); font-size: calc(var(--fs-body) * 1.12); }
.faq-search { position: relative; max-width: 560px; margin-top: var(--space-5); }
.faq-search__ico { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--c-ink-soft); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.faq-search__input { box-sizing: border-box; width: 100%; height: 58px; padding: 0 18px 0 50px; border: 2px solid var(--c-ink); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: 500 1.05rem/1.2 var(--font-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--c-ink) 55%, transparent); -webkit-appearance: none; appearance: none; }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-paper); outline-offset: 2px; }
.faq-count { margin-top: var(--space-2); font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 600; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.faq-topics__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); font-weight: 700; text-decoration: none; box-shadow: 0 2px 0 color-mix(in srgb, var(--c-ink) 35%, transparent); transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.faq-topics__link:hover { transform: translateY(-2px); background: var(--c-brand-light); }
.faq-topics__blk { width: 16px; height: 16px; }
.faq-hero__pic { margin: 0; }
.faq-hero__frame { aspect-ratio: 1 / 1.05; box-shadow: var(--shadow-l); }
.faq-hero__frame img { object-position: 64% 30%; }

/* ---------- the questions, a work-order card per topic ---------- */
.faq-list__in { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); max-width: calc(920px + 2 * var(--gutter)); }
.faq-topic { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); }
.faq-topic[hidden] { display: none; }
.faq-topic__strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--c-line); background: var(--c-paper-alt); font-size: var(--fs-h3); }
.faq-topic__count { flex: none; font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-brand-text); }
.faq-topic__list { padding: 0 22px; }
.faq-topic .qa__item:first-child { border-top: 0; }
.faq-topic .qa__item:last-child { border-bottom: 0; }
.faq-topic .qa__item[hidden] { display: none; }

/* ---------- close: a booked job starting at a front door, on the dark green ---------- */
.faq-close__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-close__pic { position: relative; margin: 0; height: clamp(420px, 38vw, 540px); }
.faq-close__frame { position: absolute; inset: 0; }
.faq-close__frame img { object-position: 50% 20%; }
/* low in the middle, over the porch (the faces in the photo's top fifth) */
.faq-close__job { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: min(290px, 60%); transform: translateX(-50%); }
.faq-close__stop { left: calc(50% + min(145px, 30%) + 10px); bottom: 24px; }
.faq-close__words { display: grid; justify-items: start; gap: var(--space-3); }
.faq-close__words .head__title { font-size: var(--fs-h2); text-wrap: balance; }
.faq-close__blk { width: 30px; height: 30px; }
.faq-close__words .part-cta { margin-top: var(--space-2); }

@media (max-width: 900px) {
  .faq-hero__in, .faq-close__in { grid-template-columns: minmax(0, 1fr); }
  .faq-hero__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .faq-hero__title { font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.6rem); }
  .faq-search { margin-top: var(--space-4); }
  .faq-topics { gap: 8px; margin-top: var(--space-3); }
  .faq-topics__link { min-height: 40px; padding: 0 12px 0 10px; font-size: 0.95rem; }
  .faq-topic__strip { padding: 12px 16px; }
  .faq-topic__list { padding: 0 16px; }
  .faq-close__pic { height: 420px; }
  .faq-close__job { width: min(260px, 66%); }
  .faq-close__stop { left: auto; right: 12px; bottom: 24px; }
}
