/* ============================================================
   FAQ PAGE — faq.css  (full redesign, fq- prefix)
   Depends on: variables.css, style.css
============================================================ */

/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */
.fq-hero {
  background: var(--bg-page);
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border);
}
.fq-hero__inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 24px;
}

/* Eyebrow */
.fq-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-soft); padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Heading */
.fq-hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: var(--text-primary);
  letter-spacing: -.03em; line-height: 1.12; margin: 0;
}
.fq-grad {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fq-hero__sub {
  font-size: .97rem; color: var(--text-muted);
  line-height: 1.75; max-width: 520px; margin: 0;
}

/* Stats row */
.fq-hero__stats {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 4px;
}
.fq-hero__stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 12px 28px;
}
.fq-hero__stat strong {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 800; color: var(--text-primary); line-height: 1;
}
.fq-hero__stat span { font-size: .68rem; color: var(--text-light); font-weight: 500; }
.fq-hero__stat-sep  { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────
   SEARCH BOX
───────────────────────────────────────────────────────── */
.fq-search { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.fq-search__box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px 14px 6px 18px;
  box-shadow: 0 4px 20px rgba(99,93,169,.07);
  transition: border-color .18s, box-shadow .18s;
}
.fq-search__box:focus-within {
  border-color: var(--purple);
  box-shadow: 0 4px 24px rgba(99,93,169,.14);
}
.fq-search__icon  { color: var(--text-light); flex-shrink: 0; }
.fq-search__input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: .97rem;
  color: var(--text-primary); min-height: 46px;
}
.fq-search__input::placeholder { color: var(--text-light); }
.fq-search__kbd {
  flex-shrink: 0; font-size: .65rem; font-weight: 600;
  color: var(--text-light); background: var(--bg-page);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 7px; font-family: var(--font-body);
  white-space: nowrap;
}

/* Hint pills */
.fq-search__hints {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  font-size: .78rem; color: var(--text-muted);
}
.fq-pill {
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  padding: 4px 13px; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.fq-pill:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }

/* ─────────────────────────────────────────────────────────
   BODY — two-column layout
───────────────────────────────────────────────────────── */
.fq-body { background: var(--bg-page); padding: 48px 0 72px; }
.fq-body__inner {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* ─────────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────────── */
.fq-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 14px;
}

.fq-sidebar__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fq-sidebar__heading {
  font-size: .67rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-light);
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  margin: 0;
}
.fq-sidebar__list {
  list-style: none; padding: 8px; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}

/* Nav buttons */
.fq-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  text-align: left; transition: background .15s, color .15s;
}
.fq-nav-btn:hover { background: var(--bg-page); }
.fq-nav-btn--active { background: var(--purple-soft) !important; }
.fq-nav-btn__icon  { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.fq-nav-btn__label {
  flex: 1; font-size: .83rem; font-weight: 500;
  color: var(--text-muted); line-height: 1.3;
}
.fq-nav-btn--active .fq-nav-btn__label { color: var(--purple); font-weight: 700; }
.fq-nav-btn__count {
  flex-shrink: 0; font-size: .67rem; font-weight: 700;
  background: var(--bg-page); color: var(--text-light);
  padding: 2px 7px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.fq-nav-btn--active .fq-nav-btn__count {
  background: var(--purple); color: #fff; border-color: var(--purple);
}

/* Contact card */
.fq-sidebar__contact {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.fq-sidebar__contact-emoji { font-size: 1.8rem; line-height: 1; }
.fq-sidebar__contact-title { font-family: var(--font-head); font-size: .87rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.fq-sidebar__contact-sub   { font-size: .76rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 6px; }

/* ─────────────────────────────────────────────────────────
   ACCORDION PANELS
───────────────────────────────────────────────────────── */
.fq-panels { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Group card */
.fq-group {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .2s;
}
.fq-group:hover { box-shadow: 0 4px 24px rgba(99,93,169,.07); }

.fq-group__head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}
.fq-group__icon  { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.fq-group__title {
  font-family: var(--font-head); font-size: .97rem;
  font-weight: 700; color: var(--text-primary); margin: 0; flex: 1;
}
.fq-group__count {
  font-size: .68rem; font-weight: 700; color: var(--purple);
  background: var(--purple-soft); padding: 2px 9px;
  border-radius: var(--radius-full);
}

/* Item list */
.fq-group__list { padding: 0 22px; }

.fq-item { border-bottom: 1px solid var(--border); }
.fq-item:last-child { border-bottom: none; }

/* Accordion button */
.fq-item__btn {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 17px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); text-align: left;
  transition: color .18s;
}
.fq-item__btn:hover .fq-item__q { color: var(--purple); }
.fq-item__btn[aria-expanded="true"] .fq-item__q { color: var(--purple); }

.fq-item__q {
  font-size: .93rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.45;
  transition: color .18s;
}

/* Chevron icon */
.fq-item__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-page); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-light);
  transition: background .18s, border-color .18s, color .18s, transform .22s;
}
.fq-item__btn:hover .fq-item__icon {
  background: var(--purple-soft); border-color: var(--purple-tint); color: var(--purple);
}
.fq-item__btn[aria-expanded="true"] .fq-item__icon {
  background: var(--purple); border-color: var(--purple); color: #fff;
  transform: rotate(180deg);
}

/* Answer body */
.fq-item__body { padding: 0 0 18px; }
.fq-item__answer {
  font-size: .88rem; color: var(--text-muted); line-height: 1.8;
  max-width: 68ch; padding-top: 2px;
}
.fq-item__answer > *:first-child { margin-top: 0; }
.fq-item__answer > *:last-child  { margin-bottom: 0; }
.fq-item__answer p    { margin: 0 0 10px; }
.fq-item__answer ul,
.fq-item__answer ol   { padding-left: 18px; margin: 0 0 10px; }
.fq-item__answer li   { margin: 0 0 5px; }
.fq-item__answer a    { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.fq-item__answer strong { color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────
   EMPTY / NO RESULTS
───────────────────────────────────────────────────────── */
.fq-empty, .fq-no-results {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; padding: 56px 24px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.fq-empty__icon  { font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.fq-empty__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.fq-empty__sub   { font-size: .875rem; color: var(--text-muted); margin: 0; max-width: 340px; }

/* ─────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────── */
.fq-cta { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 64px 0; }
.fq-cta__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
}
.fq-cta__left { display: flex; flex-direction: column; gap: 12px; max-width: 500px; }
.fq-cta__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple);
}
.fq-cta__title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--text-primary);
  letter-spacing: -.02em; line-height: 1.15; margin: 0;
}
.fq-cta__sub { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.fq-cta__btns {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 4px;
}
.fq-cta__email {
  font-size: .875rem; font-weight: 600; color: var(--purple);
  text-decoration: none; transition: color .18s;
}
.fq-cta__email:hover { color: var(--purple-dark); text-decoration: underline; }

/* Right: contact cards */
.fq-cta__right { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.fq-cta__card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-page); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 18px; min-width: 220px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.fq-cta__card:hover {
  border-color: var(--purple-tint);
  box-shadow: 0 4px 18px rgba(99,93,169,.09);
  transform: translateX(3px);
}
.fq-cta__card span { font-size: 1.3rem; flex-shrink: 0; }
.fq-cta__card div  { display: flex; flex-direction: column; gap: 1px; }
.fq-cta__card strong { font-size: .84rem; font-weight: 700; color: var(--text-primary); }
.fq-cta__card em     { font-style: normal; font-size: .72rem; color: var(--text-light); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fq-body__inner { grid-template-columns: 210px 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .fq-body__inner { grid-template-columns: 1fr; }
  .fq-sidebar {
    position: static;
    flex-direction: row; flex-wrap: wrap; gap: 8px;
  }
  .fq-sidebar__card { width: 100%; }
  .fq-sidebar__list { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .fq-sidebar__list li { flex-shrink: 0; }
  .fq-nav-btn { padding: 6px 12px; border-radius: var(--radius-full); }
  .fq-nav-btn__count { display: none; }
  .fq-sidebar__contact { display: none; }
  .fq-cta__inner { grid-template-columns: 1fr; gap: 32px; }
  .fq-cta__right { flex-direction: row; flex-wrap: wrap; }
  .fq-cta__card  { flex: 1; min-width: 160px; }
}
@media (max-width: 640px) {
  .fq-hero { padding: 72px 0 40px; }
  .fq-hero__stats { flex-direction: column; border-radius: var(--radius-md); }
  .fq-hero__stat  { padding: 10px 20px; width: 100%; }
  .fq-hero__stat-sep { width: 100%; height: 1px; }
  .fq-search__kbd  { display: none; }
  .fq-group__list  { padding: 0 14px; }
  .fq-group__head  { padding: 14px 16px; }
  .fq-cta { padding: 48px 0; }
}
