/* ============================================================
   BEYOND BRAIN HEALTH — FAQ Page
   Prefix: fq-
   Requires: global.css, header.css
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
body { background: var(--bg-dark); }

.fq-hero {
  background: var(--bg-dark);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.fq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,88,89,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(1,68,37,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.fq-hero-inner {
  max-width: var(--max-mid);
  margin: 0 auto;
  padding: 0 var(--section-px);
  position: relative;
}

.fq-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(251, 122, 2, 0.18);
  border: 1px solid rgba(251, 122, 2, 0.35);
  color: var(--brand-orange-light);
  font-family: var(--font-ui);
  font-size: var(--type-cap);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--s6);
}

.fq-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: var(--lh-display);
  color: var(--text-inverse);
  margin-bottom: var(--s4);
  letter-spacing: var(--ls-tight);
}

.fq-hero h1 em {
  font-style: italic;
  color: var(--brand-mint);
}

.fq-hero-sub {
  font-size: var(--type-lead);
  color: var(--text-inverse-dim);
  max-width: 560px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s8);
}

.fq-hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.fq-anchor {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-inverse-dim);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.fq-anchor:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
}

.fq-anchor--primary {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--text-inverse);
  font-weight: 600;
}

.fq-anchor--primary:hover {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
  color: var(--text-inverse);
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.fq-filter-bar {
  background: var(--soft-white);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) 0;
  position: sticky;
  top: 72px; /* clears the bbh-navbar */
  z-index: 80;
}

.fq-filter-inner {
  max-width: var(--max-mid);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
}

.fq-filter-label {
  font-family: var(--font-ui);
  font-size: var(--type-cap);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: var(--s1);
  white-space: nowrap;
  flex-shrink: 0;
}

.fq-filter-btn {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.fq-filter-btn:hover {
  background: var(--teal-wash);
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.fq-filter-btn.fq-active {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--text-inverse);
}

/* ============================================================
   FAQ BODY
   ============================================================ */

.fq-body {
  background: var(--soft-white);
  padding: var(--s16) 0 var(--s20);
}

.fq-body-inner {
  max-width: var(--max-mid);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ── Group ─── */

.fq-group {
  margin-bottom: var(--s16);
}

.fq-group-header {
  margin-bottom: var(--s6);
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--border);
}

.fq-group-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-teal);
  line-height: var(--lh-heading);
  margin-bottom: var(--s1);
}

.fq-group-sub {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ── Accordion ─── */

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

.fq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.fq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
}

.fq-item summary::-webkit-details-marker {
  display: none;
}

.fq-q-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--lh-card);
  flex: 1;
  transition: color var(--t-fast);
}

.fq-item summary:hover .fq-q-text {
  color: var(--brand-teal);
}

.fq-item[open] summary .fq-q-text {
  color: var(--brand-teal);
}

.fq-q-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--teal-wash);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.fq-q-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--brand-teal);
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--t-base);
}

.fq-item[open] .fq-q-icon {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}

.fq-item[open] .fq-q-icon svg {
  stroke: var(--text-inverse);
  transform: rotate(45deg);
}

/* ── Answer ─── */

.fq-answer {
  padding: 0 var(--s10) var(--s6) 0;
}

.fq-answer p {
  font-family: var(--font-ui);
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s3);
}

.fq-answer p:last-child {
  margin-bottom: 0;
}

.fq-answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.fq-answer a {
  color: var(--mint-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}

.fq-answer a:hover {
  color: var(--brand-teal);
}

.fq-answer-tag {
  display: inline-block;
  background: var(--orange-wash, rgba(251,122,2,0.07));
  color: var(--orange-dark);
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-tag);
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--s3);
}

/* ============================================================
   STILL HAVE QUESTIONS BLOCK
   ============================================================ */

.fq-still-q {
  background: var(--brand-forest);
  border-radius: var(--r-lg);
  padding: var(--s10) var(--s12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s8);
  align-items: center;
  margin-top: var(--s12);
  position: relative;
  overflow: hidden;
}

.fq-still-q::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: radial-gradient(ellipse at 100% 50%, rgba(0,88,89,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.fq-still-q-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--s2);
  line-height: var(--lh-heading);
}

.fq-still-q-sub {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--text-inverse-dim);
  line-height: var(--lh-relaxed);
  max-width: 480px;
}

.fq-still-q-links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: relative;
  flex-shrink: 0;
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.fq-cta-strip {
  background: var(--bg-dark);
  padding: var(--s20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fq-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(1,68,37,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.fq-cta-inner {
  max-width: var(--max-mid);
  margin: 0 auto;
  padding: 0 var(--section-px);
  position: relative;
}

.fq-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-ui);
  font-size: var(--type-cap);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-mint);
  margin-bottom: var(--s4);
}

.fq-cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--s3);
  line-height: var(--lh-heading);
}

.fq-cta-strip p {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  color: var(--text-inverse-dim);
  max-width: 460px;
  margin: 0 auto var(--s8);
  line-height: var(--lh-relaxed);
}
.bbh-btn-ghost-light{
    color: var(--soft-white);
    text-align: center;
    text-decoration: underline;
  }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .fq-filter-bar {
    top: 60px;
  }

  .fq-still-q {
    grid-template-columns: 1fr;
    padding: var(--s8);
    gap: var(--s6);
  }

  .fq-still-q-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fq-answer {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .fq-hero-anchors {
    gap: var(--s2);
  }

  .fq-q-text {
    font-size: 1.05rem;
  }

  .fq-still-q-links {
    flex-direction: column;
  }

  .fq-still-q-links .bbh-btn-primary,
  .fq-still-q-links .bbh-btn-ghost-light {
    text-align: center;
  }
}