/* ===================================================================
   we-verifi — FAQ page styles. Extends we-verifi-brand.css and
   site.css (load both first) — reuses --graphite, --cloud, --hairline,
   --muted, --indigo, --radius, --font-display/body/mono rather than
   redefining them.

   The accordion itself uses native <details>/<summary> — no JavaScript
   needed for expand/collapse, and it's keyboard-navigable and screen-
   reader-friendly by default. This file only styles the "+" indicator
   and the open/closed states; the browser handles the actual toggling.
   =================================================================== */

/* ---------- intro ---------- */

.faq-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 24px;
}

.faq-hero .section-label {
  padding: 0;
  margin-bottom: 18px;
}

.faq-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin: 0 0 16px;
}

.faq-hero .lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

/* ---------- accordion ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 32px 56px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--indigo);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none; /* remove default disclosure triangle */
}

.faq-item summary::-webkit-details-marker {
  display: none; /* Safari/Chrome-specific default marker removal */
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-item__question {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--graphite);
  line-height: 1.4;
}

/* The "+" indicator — a plain CSS cross built from two pseudo-elements
   rather than an image, so it can rotate smoothly into an "×" on open
   with nothing but a transform. */
.faq-item__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--indigo);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 14px; }

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

/* ---------- answer ---------- */

.faq-item__answer {
  padding: 0 0 22px;
}

.faq-item__answer p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.faq-item__answer strong {
  color: var(--graphite);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-item__answer {
    animation: faq-rise 0.25s ease both;
  }
  @keyframes faq-rise {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- closing CTA ---------- */

.faq-cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 32px 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-cta p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--graphite);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .faq-hero { padding: 48px 20px 20px; }
  .faq-list { padding: 8px 20px 40px; }
  .faq-cta { padding: 4px 20px 56px; }
  .faq-item { padding: 4px 18px; }
}