/* ============================================================
   InTheMude — FAQ page styles
   Page-specific only. Inherits ALL tokens, header, footer,
   buttons, sections, and motion from /styles.css.
   Accessible disclosures built on native <details>/<summary>.
   Dark, intimate, editorial — no new colors, only brand tokens.
   ============================================================ */

/* Disclosure stack */
.faq-list {
  display: grid;
  gap: var(--sp-3);
}

/* A single disclosure — a quiet card that warms on hover/open */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color var(--t-med) var(--ease),
    background var(--t-med) var(--ease);
}

.faq-item:hover {
  border-color: var(--brass-line);
}

.faq-item[open] {
  border-color: var(--brass-line);
  background: var(--bg-raise-2);
}

/* The clickable question row */
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  cursor: pointer;
  list-style: none;            /* hide default marker (standards) */
  user-select: none;
  transition: color var(--t-fast) var(--ease);
}

/* Hide the default disclosure triangle across engines */
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary::marker {
  content: "";
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.faq-q {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: -0.005em;
}

.faq-item:hover .faq-q,
.faq-item[open] .faq-q {
  color: var(--cream);
}

/* Brass +/– toggle mark, drawn with pseudo-elements (no icon font) */
.faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease);
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--brass);
  transform: translate(-50%, -50%);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}

/* the vertical stroke of the plus — rotated away when open */
.faq-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item:hover .faq-mark {
  border-color: var(--brass);
}

.faq-item[open] .faq-mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] .faq-mark {
  transform: rotate(180deg);
}

/* The answer body */
.faq-a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: calc(-1 * var(--sp-1));
  padding-top: var(--sp-4);
}

.faq-a p {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.66;
}

.faq-a p + p {
  margin-top: var(--sp-3);
}

.faq-a strong {
  color: var(--cream);
  font-weight: 600;
}

.faq-a em {
  color: var(--brass);
  font-style: italic;
}

.faq-cta {
  margin-top: var(--sp-4);
}

/* Gentle open animation — respects reduced-motion via global rule */
.faq-item[open] .faq-a {
  animation: faqReveal var(--t-med) var(--ease);
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Closing CTA card */
.faq-closer {
  text-align: center;
  background:
    radial-gradient(130% 110% at 50% 0%, rgba(122, 30, 44, 0.20), transparent 65%),
    var(--bg-raise);
}

.faq-closer h2 {
  margin-top: var(--sp-3);
}

.faq-closer .lead {
  margin: var(--sp-4) auto 0;
  max-width: 540px;
}

.faq-closer .hero__actions {
  justify-content: center;
}

@media (max-width: 600px) {
  .faq-item > summary {
    padding: var(--sp-4);
  }
  .faq-a {
    padding-inline: var(--sp-4);
  }
}
