/* -------------------- FAQ section -------------------- */
/* Full-width single column — questions span the container side-to-side */
.faq {
  display: block;
}
.faq-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  flex: 1;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F6F1 100%);
  position: relative;
  box-shadow: var(--hi-top), var(--shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.faq-toggle::before {
  /* horizontal bar */
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  /* vertical bar — collapses to form an X (matches with horizontal becoming flat) */
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-toggle {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(180deg);
}
.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after { background: #FFFFFF; }
.faq-item[open] .faq-toggle::after {
  /* hide the vertical so we get a clean minus when open */
  transform: translate(-50%, -50%) scaleY(0);
}
.faq-item summary:hover .faq-q { color: var(--primary-dark); }
.faq-item summary:hover .faq-toggle { border-color: var(--primary); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-a {
  /* Padding lives on the inner <p>, not here. The wrapper needs to be
     able to shrink to 0px cleanly during the close animation; if it
     owned the padding, border-box would compress it awkwardly at the
     end of the transition (the "first-line lag" stutter). */
  padding: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}
.faq-a p {
  margin: 0;
  padding-bottom: 1.4rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-toggle, .faq-toggle::before, .faq-toggle::after { transition: none; }
}

