/*
 * FAQ - Frequently Asked Questions page
 * Accordion pattern using native details/summary, retro card styling
 */

body:has(.faq-page) > main.container {
  max-width: 100%;
  padding: 0;
}

/* --- FAQ Hero --- */

.faq-hero {
  text-align: center;
  padding: 56px 24px 32px;
}

.faq-hero h1 {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
  color: var(--ink);
}

.faq-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* --- FAQ Sections --- */

.faq-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
}

.faq-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 11.5px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 18px;
}

.faq-section h2::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--hairline);
}

/* --- FAQ Items (Accordion) --- */

.faq-item {
  margin-bottom: 12px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(42, 36, 25, 0.1);
}

/* Summary (question) */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}

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

.faq-item summary::marker {
  display: none;
  content: "";
}

/* Chevron (replaces Pico's ::after) */
.faq-item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2419' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

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

.faq-item summary:hover {
  background: var(--highlight-bg);
}

/* Answer content */
.faq-answer {
  padding: 0 18px 16px;
  animation: faqSlideDown 0.2s ease-out;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.faq-answer p + p {
  margin-top: 1em;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CTA Section --- */

.faq-cta {
  text-align: center;
  padding: 32px 24px 48px;
  max-width: 700px;
  margin: 0 auto;
}

.faq-cta p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

.faq-cta a {
  color: var(--ink);
}

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 11px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-link:hover {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.back-link:active {
  transform: translate(1px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
