/* ========================================
   FAQ Page Styles
   ======================================== */

/* --- Hero --- */
.faq-hero {
  padding: 80px 0 48px;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-light) 100%);
}

.faq-hero h1 {
  margin-bottom: 16px;
}

.faq-hero__subtitle {
  font-size: 1.125rem;
  color: var(--control-grey);
  max-width: 640px;
  margin: 0 auto;
}

.faq-hero__subtitle a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}

.faq-hero__subtitle a:hover {
  color: var(--orange-hover);
}

/* --- Search --- */
.faq-search {
  position: relative;
  max-width: 520px;
  margin: 32px auto 0;
}

.faq-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--control-grey);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search__input::placeholder {
  color: var(--control-grey);
}

.faq-search__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 104, 6, 0.15);
}

/* --- Category jump links --- */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.faq-categories__link {
  display: inline-block;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.faq-categories__link:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}

/* --- Accordion --- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__group {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.faq__group:last-child {
  margin-bottom: 0;
}

.faq__group-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 14px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__question:hover {
  color: var(--orange);
}

.faq__question:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--control-grey);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
  max-height: 1500px;
  padding: 0 24px 20px;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--control-grey);
  line-height: 1.7;
}

.faq__answer p + p {
  margin-top: 12px;
}

.faq__answer ol,
.faq__answer ul {
  list-style: decimal;
  padding-left: 22px;
  margin-top: 12px;
}

.faq__answer ul {
  list-style: disc;
}

.faq__answer li {
  font-size: 0.95rem;
  color: var(--control-grey);
  line-height: 1.7;
  margin-bottom: 6px;
}

.faq__answer strong {
  font-weight: 700;
  color: var(--text-dark);
}

.faq__answer a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}

.faq__answer a:hover {
  color: var(--orange-hover);
}

/* --- Search empty state --- */
.faq__no-results {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.faq__no-results p {
  font-size: 1rem;
  color: var(--control-grey);
}

.faq--no-results .faq__no-results {
  display: block;
}

.faq__group--hidden,
.faq__item--hidden {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .faq-hero {
    padding: 48px 0 32px;
  }

  .faq__question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq__item--open .faq__answer {
    padding: 0 18px 18px;
  }

  .faq-categories__link {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}
