/**
 * Pool Ready Home - FAQ page template
 * Search/jump/expand toolbar, category groups, closing support panel.
 * (The shared page banner lives in assets/css/page-banner.css, and each
 * question reuses the .prh-faq__item accordion from assets/css/faq.css.)
 */

/* ==========================================================================
   1. Toolbar: search, category jump links, expand all
   ========================================================================== */

.prh-faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--prh-space-4);
  margin-bottom: var(--prh-space-8);
  padding-bottom: var(--prh-space-6);
  border-bottom: var(--prh-border);
}

.prh-faq-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 22rem;
}

.prh-faq-search__icon {
  position: absolute;
  top: 50%;
  left: var(--prh-space-4);
  display: flex;
  color: var(--prh-grey-300);
  transform: translateY(-50%);
}

.prh-faq-search input[type="search"] {
  padding-left: calc(var(--prh-space-4) * 2 + 18px);
}

.prh-faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prh-space-2);
}

.prh-faq-jump a {
  border-radius: var(--prh-radius-pill);
  background: var(--prh-grey-50);
  padding: var(--prh-space-2) var(--prh-space-4);
  color: var(--prh-grey-500);
  font-size: var(--prh-fs-sm);
  font-weight: var(--prh-fw-medium);
  text-decoration: none;
  transition: background-color var(--prh-transition), color var(--prh-transition);
}

.prh-faq-jump a:hover {
  background: var(--prh-teal);
  color: var(--prh-white);
}

.prh-faq-expand {
  flex: 0 0 auto;
  border: var(--prh-border);
  border-radius: var(--prh-radius-pill);
  background: transparent;
  padding: var(--prh-space-2) var(--prh-space-4);
  color: var(--prh-ink);
  font-size: var(--prh-fs-sm);
  font-weight: var(--prh-fw-semibold);
  cursor: pointer;
  transition: border-color var(--prh-transition), color var(--prh-transition);
}

.prh-faq-expand:hover {
  border-color: var(--prh-teal);
  color: var(--prh-teal);
}

@media (max-width: 700px) {
  .prh-faq-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .prh-faq-search {
    max-width: none;
  }
}

/* ==========================================================================
   2. Category groups
   ========================================================================== */

.prh-faq-groups {
  max-width: 52rem;
  margin-inline: auto;
}

.prh-faq-group {
  margin-bottom: var(--prh-space-10);
}

.prh-faq-group:last-child {
  margin-bottom: 0;
}

.prh-faq-group__title {
  margin-bottom: var(--prh-space-4);
  color: var(--prh-teal);
  font-size: var(--prh-fs-h6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prh-faq-empty {
  max-width: 40rem;
  margin: var(--prh-space-8) auto 0;
  color: var(--prh-grey-500);
  font-size: var(--prh-fs-sm);
  text-align: center;
}

/* ==========================================================================
   3. Support panel
   ========================================================================== */

.prh-support__panel {
  max-width: 40rem;
  margin-inline: auto;
  border-radius: var(--prh-radius-xl);
  background: var(--prh-grey-50);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
}

.prh-support__text {
  margin-bottom: var(--prh-space-6);
  color: var(--prh-grey-500);
}

.prh-support__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--prh-space-5);
}

.prh-support__link {
  display: inline-flex;
  align-items: center;
  gap: var(--prh-space-2);
  color: var(--prh-ink);
  font-weight: var(--prh-fw-semibold);
  text-decoration: none;
}

.prh-support__link:hover {
  color: var(--prh-teal);
}

.prh-support__link svg {
  color: var(--prh-teal);
}
