/**
 * FAQ Accordion — frontend
 * Tokens fall back to Pursuit Wealth Management brand values when
 * the theme custom properties are not present.
 */

.hfa-teaser,
.hfa-page,
.hfa-groups,
.hfa-accordion {
  --hfa-ink: var(--adv-ink, #333333);
  --hfa-text: var(--adv-text, #252525);
  --hfa-muted: var(--adv-text-muted, #5f5f5f);
  --hfa-accent: var(--adv-gold, #0071bc);
  --hfa-accent-hover: var(--adv-gold-bright, #2e8bc8);
  --hfa-border: var(--adv-border, #e6e6e6);
  --hfa-bg: var(--adv-cream-2, #f7f7f7);
  --hfa-white: var(--adv-white, #ffffff);
  --hfa-display: var(--font-display, "Crimson Pro", Georgia, "Times New Roman", serif);
  --hfa-body: var(--font-body, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --hfa-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}

/* -------------------------------------------------------------------------
   Homepage teaser
   ------------------------------------------------------------------------- */
.hfa-teaser {
  background: var(--hfa-bg);
  color: var(--hfa-text);
  font-family: var(--hfa-body);
  padding: clamp(4rem, 8vw, 8rem) 0;
  text-align: center;
}

.hfa-teaser__inner {
  width: 100%;
  max-width: var(--container-narrow, 1120px);
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
}

.hfa-teaser__eyebrow {
  display: inline-block;
  font-family: var(--hfa-body);
  font-size: var(--text-xs, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hfa-accent);
  margin: 0 0 1rem;
}

.hfa-teaser__title {
  font-family: var(--hfa-display);
  font-size: var(--text-2xl, clamp(2rem, 1.4rem + 2.6vw, 3.1rem));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hfa-ink);
  margin: 0;
}

.hfa-teaser__divider {
  width: 54px;
  height: 3px;
  background: var(--hfa-accent);
  border: 0;
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}

.hfa-teaser__description {
  font-size: var(--text-lg, 1.25rem);
  color: var(--hfa-muted);
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 40rem;
}

.hfa-teaser__button {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--hfa-body);
  font-size: var(--text-sm, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85em 1.8em;
  border-radius: var(--radius, 4px);
  border: 1.5px solid var(--hfa-accent);
  background: var(--hfa-accent);
  color: var(--hfa-white);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s var(--hfa-ease);
}

.hfa-teaser__button:hover {
  background: var(--hfa-ink);
  border-color: var(--hfa-ink);
  color: var(--hfa-white);
  transform: translateY(-2px);
}

.hfa-teaser__arrow {
  transition: transform 0.25s var(--hfa-ease);
}

.hfa-teaser__button:hover .hfa-teaser__arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   FAQ page
   ------------------------------------------------------------------------- */
.hfa-pagehero:not(.adv-pagehero) {
  position: relative;
  background: var(--hfa-ink);
  color: var(--hfa-white);
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hfa-pagehero:not(.adv-pagehero) .hfa-container,
.hfa-pagehero:not(.adv-pagehero) .adv-container {
  position: relative;
  z-index: 1;
}

.hfa-pagehero:not(.adv-pagehero) h1 {
  color: var(--hfa-white);
  font-family: var(--hfa-display);
  font-size: var(--text-2xl, clamp(2rem, 1.4rem + 2.6vw, 3.1rem));
  font-style: italic;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.hfa-pagehero:not(.adv-pagehero) p {
  color: rgba(247, 245, 241, 0.82);
  font-size: var(--text-lg, 1.25rem);
  max-width: 58ch;
  margin: 0;
}

.hfa-breadcrumb:not(.adv-breadcrumb) {
  font-size: var(--text-xs, 0.78rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hfa-accent-hover);
  margin-bottom: 1rem;
}

.hfa-breadcrumb:not(.adv-breadcrumb) a {
  color: rgba(247, 245, 241, 0.7);
  text-decoration: none;
}

.hfa-breadcrumb:not(.adv-breadcrumb) a:hover {
  color: var(--hfa-white);
}

.hfa-container {
  width: 100%;
  max-width: var(--container-narrow, 1120px);
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
}

.hfa-page-body:not(.adv-section) {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--hfa-white);
  color: var(--hfa-text);
  font-family: var(--hfa-body);
}

.hfa-page-intro {
  margin-bottom: 3rem;
  font-size: var(--text-lg, 1.25rem);
  color: var(--hfa-muted);
  line-height: 1.6;
}

.hfa-page-intro > *:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Category groups + accordion
   ------------------------------------------------------------------------- */
.hfa-group {
  margin-bottom: 3rem;
}

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

.hfa-group__title {
  font-family: var(--hfa-display);
  font-size: var(--text-xl, clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hfa-ink);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--hfa-accent);
}

.hfa-accordion__list {
  border-top: 1px solid var(--hfa-border);
}

.hfa-group .hfa-accordion__list {
  border-top: 0;
}

.hfa-item {
  border-bottom: 1px solid var(--hfa-border);
  padding: 0;
  margin: 0;
}

.hfa-item__summary {
  cursor: pointer;
  list-style: none;
  display: block;
  padding: 1.25rem 0;
  color: var(--hfa-ink);
  transition: color 0.2s var(--hfa-ease);
}

.hfa-item__summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hfa-item__summary::-webkit-details-marker,
.hfa-item__summary::marker {
  display: none;
  content: "";
}

.hfa-item__summary:hover,
.hfa-item[open] .hfa-item__summary {
  color: var(--hfa-accent);
}

.hfa-item__summary:focus {
  outline: none;
}

.hfa-item__summary:focus-visible {
  outline: 2px solid var(--hfa-accent);
  outline-offset: 4px;
}

.hfa-item__question {
  font-family: var(--hfa-display);
  font-size: var(--text-lg, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hfa-item__icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.hfa-item__icon-h,
.hfa-item__icon-v {
  position: absolute;
  background: var(--hfa-accent);
  border-radius: 1px;
}

.hfa-item__icon-h {
  width: 14px;
  height: 2px;
  left: 2px;
  top: 8px;
}

.hfa-item__icon-v {
  width: 2px;
  height: 14px;
  left: 8px;
  top: 2px;
  transform-origin: center;
  transition: transform 0.22s var(--hfa-ease), opacity 0.22s var(--hfa-ease);
}

.hfa-item[open] .hfa-item__icon-v {
  transform: scaleY(0);
  opacity: 0;
}

.hfa-item__body {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--hfa-muted);
  font-size: var(--text-base, 1.0625rem);
  line-height: 1.7;
}

.hfa-item__body > *:first-child {
  margin-top: 0;
}

.hfa-item__body > *:last-child {
  margin-bottom: 0;
}

.hfa-item__body a {
  color: var(--hfa-accent);
  text-decoration: none;
}

.hfa-item__body a:hover {
  color: var(--hfa-accent-hover);
}

@media (max-width: 600px) {
  .hfa-item__summary {
    padding: 1.1rem 0;
  }

  .hfa-item__summary-inner {
    gap: 1rem;
  }

  .hfa-item__question {
    font-size: 1.125rem;
  }

  .hfa-item__body {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfa-item__icon-v,
  .hfa-item__summary,
  .hfa-teaser__button,
  .hfa-teaser__arrow {
    transition: none;
  }
}
