/* ============================================================
   WOODLEY COLLISION — FAQ PAGE
   Reuses the shared .faq accordion and .cta-banner. This file
   adds: the hero (centered heading + search bar) and the topic
   layout (topic heading on the left, accordion on the right).
   ============================================================ */

/* ---- Hero ---- */
.faq-hero {
  padding-top: 0;
  padding-bottom: 80px;
}
.faq-hero__inner {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
}
.faq-hero__title {
  font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.875rem);   /* 40 -> 62px */
  font-weight: 600;
  line-height: 1.06;
  color: var(--gray-900);
  text-align: center;
  max-width: 960px;
}
.faq-hero__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  text-align: center;
  max-width: 600px;
}

/* Search row: field + button */
.faq-hero__search {
  display: flex;
  gap: var(--sp-12);
  margin-top: var(--sp-4);
}
.faq-hero__field {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: 343px;
  height: 54px;
  padding: var(--sp-12) var(--sp-16);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-hero__field:focus-within {
  border-color: var(--gray-400);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.faq-hero__field svg { width: 20px; height: 20px; color: #8d8d8d; flex-shrink: 0; }
.faq-hero__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-body);    /* 16px */
  line-height: var(--lh-snug);
  color: var(--gray-900);
}
.faq-hero__input::placeholder { color: #8d8d8d; }
.faq-hero__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faq-hero__btn { width: 100px; flex-shrink: 0; justify-content: center; }

/* ---- Topics ---- */
.faq-topics {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.faq-topic {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.faq-topic__head {
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.faq-topic__title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);   /* 20 -> 24px */
  font-weight: 600;
  line-height: 1.18;
  color: var(--gray-900);
}
.faq-topic__desc {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.faq-topic__list { flex: 1 1 auto; min-width: 0; }

/* Search highlight */
.faq-mark {
  background: #ffe49b;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* No-results message */
.faq-no-results {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: -32px;          /* sit closer under the (now-empty) topics */
  padding-bottom: 120px;
  font-size: var(--fs-body);
  color: #555;
  text-align: center;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .faq-topics { gap: 52px; padding-bottom: 60px; }
  .faq-topic { flex-direction: column; gap: var(--sp-24); }
  .faq-topic__head { flex: initial; }
}
@media (max-width: 600px) {
  .faq-hero { padding-bottom: 60px; }
  .faq-hero__title { font-size: clamp(2.125rem, 1.75rem + 1.6vw, 2.25rem); line-height: 1.1; }
  .faq-hero__search { flex-direction: column; width: 100%; }
  .faq-hero__field { width: 100%; height: 48px; }
  .faq-hero__btn { width: 100%; }
}
