/* =========================================================================
   Spec G: FAQ page rebuild.

   Breaks the page out of "wall of closed drawers" into grouped sections
   with visual moments between them (proof strip, real event photo, verified
   stat block) and a designed accordion. Loads after main.css so equal
   specificity selectors here win; see site/content/faq.html for markup.
   ========================================================================= */

:root { interpolate-size: allow-keywords; }

/* ---------- Grouped question sections ---------- */
.faq-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border-dark);
}
.faq-group__index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}
.faq-group__head h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Accordion: more generous rows, clearer affordance, smooth
   open/close on browsers that support ::details-content height animation
   (interpolate-size above); everywhere else it still opens/closes
   correctly, just without the animation. ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--color-accent); }
.faq-item[open] { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1.4rem 1.7rem;
  font-size: 1.08rem;
  gap: var(--space-3);
}
.faq-item summary .faq-icon {
  width: 26px;
  height: 26px;
  border-width: 1.5px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq-item[open] summary .faq-icon { background: var(--color-accent); }
.faq-item[open] summary .faq-icon::before,
.faq-item[open] summary .faq-icon::after { background: var(--color-black); }
.faq-item .faq-body { padding: 0 1.7rem 1.6rem; font-size: 1.02rem; line-height: 1.6; }
.faq-item .faq-body a { color: var(--color-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.faq-item .faq-body a:hover { color: var(--color-accent); }

.faq-item::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--ease), content-visibility 0.3s var(--ease) allow-discrete;
}
.faq-item[open]::details-content { height: auto; }

/* ---------- Visual break 1: proof strip (real named review) ---------- */
.faq-proof {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.faq-proof__mark {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}
.faq-proof__quote {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.4;
  max-width: 62ch;
  margin-inline: auto;
}
.faq-proof__name {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ---------- Visual break 2: real event photography ---------- */
.faq-photo-break { position: relative; }
.faq-photo-break__media {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}
.faq-photo-break__media img { width: 100%; height: 100%; object-fit: cover; }
.faq-photo-break__caption {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}
@media (max-width: 640px) {
  .faq-photo-break__media { aspect-ratio: 4 / 5; }
}

/* ---------- Visual break 3: verified stat block ---------- */
.faq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.faq-stat__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  color: var(--color-accent);
  line-height: 1;
}
.faq-stat__label {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
@media (max-width: 700px) {
  .faq-stats { grid-template-columns: 1fr; gap: var(--space-3); }
}
