/* ==========================================================================
   FixDebtUSA — FAQ Page
   Loaded only by faq.html, on top of theme.css + style.css + home.css.
   Reuses every hp-* class (header, footer, buttons, section rhythm)
   verbatim; sections unique to this page — the search hero, the category
   tab bar, the accordion list, and the twin CTA cards — get their own
   fq-* classes here. Content is rendered by assets/js/faq-data.js, not
   hand-written in the HTML, so these rules target JS-generated markup.
   ========================================================================== */

/* Marks the current section's nav trigger green, and highlights the matching
   dropdown row — same treatment as about.css / why-us.css use on their pages. */
.hp-nav__link--active,
.hp-nav__link--active .hp-nav__caret {
  color: hsl(var(--hp-green));
}

.hp-dropdown .hp-dropdown__item--active {
  background-color: hsl(var(--hp-mint-soft));
  color: hsl(var(--hp-green));
}

/* --------------------------------------------------------------------------
   1. Hero — dark gradient band, search bar, wave foot
   -------------------------------------------------------------------------- */

.fq-hero {
  position: relative;
  padding-block: 3.5rem 6rem;
  background: linear-gradient(135deg, hsl(var(--hp-green-deep)), hsl(142 55% 34%));
  text-align: center;
  overflow: hidden;
}

.fq-hero__inner {
  position: relative;
  z-index: 1;
}

.home .fq-hero__title {
  color: #fff;
  font-size: clamp(1.875rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.fq-hero__title em {
  position: relative;
  font-style: italic;
  font-weight: 600;
  color: hsl(150 60% 78%);
}

.fq-hero__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.05em;
  height: 0.08em;
  border-radius: 999px;
  background-color: hsl(150 60% 78% / .55);
}

.fq-hero__lede {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.6;
  color: hsl(0 0% 100% / .82);
}

.fq-search {
  position: relative;
  max-width: 30rem;
  margin: 0 auto 1.25rem;
}

.fq-search i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  translate: 0 -50%;
  color: hsl(var(--hp-body));
  font-size: 1rem;
  pointer-events: none;
}

.fq-search input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 2.75rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: hsl(var(--hp-ink));
  box-shadow: var(--hp-shadow-lift);
}

.fq-search input:focus {
  outline: 3px solid hsl(0 0% 100% / .4);
  outline-offset: 2px;
}

.fq-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fq-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: hsl(0 0% 100% / .8);
}

.fq-hero__trust i { color: hsl(150 55% 68%); }

.fq-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 5rem;
  z-index: 0;
}

@media (min-width: 768px) {
  .fq-hero { padding-block: 4.5rem 7.5rem; }
  .fq-hero__wave { height: 7rem; }
}

/* --------------------------------------------------------------------------
   2. Category tab bar
   -------------------------------------------------------------------------- */

.fq-tabs-wrap {
  background-color: #fff;
  border-bottom: 1px solid hsl(var(--hp-line));
  padding-block: 1.25rem;
}

.fq-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}

.fq-tabs::-webkit-scrollbar {
  display: none;            /* Chrome, Safari, modern Edge */
}

.fq-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border: 1px solid hsl(var(--hp-line));
  border-radius: 999px;
  background-color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--hp-ink));
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.fq-tab__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--tint-bg, hsl(var(--hp-mint)));
  color: var(--tint-fg, hsl(var(--hp-green-dark)));
  font-size: 0.75rem;
}

.fq-tab__count {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background-color: hsl(var(--hp-mint));
  color: hsl(var(--hp-green-dark));
  font-size: 0.6875rem;
  font-weight: 800;
}

.fq-tab[aria-pressed="true"] {
  background-color: hsl(var(--hp-ink));
  border-color: hsl(var(--hp-ink));
  color: #fff;
}

.fq-tab[aria-pressed="true"] .fq-tab__icon {
  background-color: hsl(0 0% 100% / .18);
  color: #fff;
}

.fq-tab[aria-pressed="true"] .fq-tab__count {
  background-color: hsl(0 0% 100% / .18);
  color: #fff;
}

/* Tints cycle across the seven categories */
.fq-tint-0 { --tint-bg: hsl(var(--hp-mint)); --tint-fg: hsl(var(--hp-green-dark)); }
.fq-tint-1 { --tint-bg: hsl(210 75% 94%); --tint-fg: hsl(210 65% 45%); }
.fq-tint-2 { --tint-bg: hsl(265 60% 95%); --tint-fg: hsl(265 50% 50%); }
.fq-tint-3 { --tint-bg: hsl(350 75% 95%); --tint-fg: hsl(350 65% 50%); }
.fq-tint-4 { --tint-bg: hsl(168 65% 92%); --tint-fg: hsl(168 60% 32%); }
.fq-tint-5 { --tint-bg: hsl(30 85% 94%);  --tint-fg: hsl(28 75% 45%); }
.fq-tint-6 { --tint-bg: hsl(235 65% 95%); --tint-fg: hsl(235 55% 52%); }

/* --------------------------------------------------------------------------
   3. FAQ list
   -------------------------------------------------------------------------- */

.fq-list-section { padding-block: 3.5rem; }

.fq-category-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto 1.75rem;
}

.fq-category-head__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 1rem;
  background: linear-gradient(140deg, hsl(var(--hp-green)), hsl(var(--hp-green-dark)));
  color: #ffffff !important;
  box-shadow: 0 4px 12px hsl(var(--hp-green) / .25);
}

.fq-category-head__icon i,
.fq-category-head__icon svg,
.fq-category-head__icon path,
.fq-category-head__icon i::before {
  font-size: 1.25rem;
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.fq-category-head h2 {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.fq-category-head span {
  font-size: 0.875rem;
  color: hsl(var(--hp-body));
}

.fq-accordion {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
}

.fq-item {
  border: 1px solid hsl(var(--hp-line));
  border-left: 3px solid transparent;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: var(--hp-shadow-card);
  overflow: hidden;
  transition: border-color .15s ease;
}

.fq-item.is-open { border-left-color: hsl(var(--hp-green)); }

.fq-item__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
}

.fq-item__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: hsl(var(--hp-mint));
  color: hsl(var(--hp-green-dark));
  font-size: 0.6875rem;
  font-weight: 800;
}

.fq-item__label {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--hp-ink));
}

.fq-item__chevron {
  flex-shrink: 0;
  color: hsl(var(--hp-body));
  font-size: 0.9375rem;
  transition: transform .18s ease, color .18s ease;
}

.fq-item.is-open .fq-item__chevron {
  transform: rotate(180deg);
  color: hsl(var(--hp-green));
}

.fq-item__panel { display: none; }

.fq-item.is-open .fq-item__panel { display: block; }

.fq-item__panel p {
  padding: 0 1.35rem 1.25rem 3.9rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--hp-body));
}

.fq-empty {
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.5rem;
  text-align: center;
  color: hsl(var(--hp-body));
}

/* --------------------------------------------------------------------------
   4. Twin CTA cards
   -------------------------------------------------------------------------- */

.fq-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 62rem;
  margin-inline: auto;
}

.fq-cta-card {
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
}

.fq-cta-card--dark {
  background: linear-gradient(135deg, hsl(var(--hp-green-deep)), hsl(142 55% 32%));
  color: hsl(0 0% 100% / .85);
  box-shadow: var(--hp-shadow-lift);
}

.fq-cta-card--light {
  background-color: #fff;
  border: 1px solid hsl(var(--hp-line));
  box-shadow: var(--hp-shadow-card);
}

.fq-cta-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
}

.fq-cta-card--dark .fq-cta-card__icon {
  background-color: hsl(0 0% 100% / .14);
  color: #fff;
}

.fq-cta-card--light .fq-cta-card__icon {
  background-color: hsl(var(--hp-mint));
  color: hsl(var(--hp-green-dark));
}

.home .fq-cta-card--dark h2 { color: #fff; }

.fq-cta-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.65rem;
}

.fq-cta-card > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.fq-cta-card--light > p { color: hsl(var(--hp-body)); }

.fq-cta-card__ticks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.fq-cta-card__ticks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.fq-cta-card--dark .fq-cta-card__ticks i { color: hsl(150 55% 68%); }
.fq-cta-card--light .fq-cta-card__ticks { color: hsl(var(--hp-ink)); }
.fq-cta-card--light .fq-cta-card__ticks i { color: hsl(var(--hp-green)); }

.fq-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fq-cta-card__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.fq-cta-card__form input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border: 1px solid hsl(var(--hp-line));
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.fq-cta-card__form input:focus {
  outline: 0;
  border-color: hsl(var(--hp-green));
  box-shadow: 0 0 0 3px hsl(var(--hp-green) / .18);
}

.fq-cta-card__foot {
  font-size: 0.75rem;
  color: hsl(var(--hp-body));
}

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .fq-cta-card__ticks { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .fq-ctas { grid-template-columns: repeat(2, 1fr); }
}
