/* FAQ page - layers on top of /home.css (uses its design tokens) */

.faq-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(6px, 2vw, 16px);
  text-align: center;
}

.faq-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 12px 0 0;
}

.faq-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 52ch;
}

.faq-layout {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 220px minmax(0, 1fr);
  margin: clamp(26px, 5vw, 48px) auto 0;
}

/* Sticky category jump list */
.faq-toc {
  align-self: start;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 24px;
}

.faq-toc a {
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}
.faq-toc a:hover { border-color: var(--plum); color: var(--plum); }

.faq-group { margin-bottom: clamp(28px, 4vw, 44px); scroll-margin-top: 24px; }

.faq-group h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item[open] { border-color: var(--plum); }

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 20px 22px;
}

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

.faq-item summary .toggle {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--mint-deep);
  display: grid;
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 700;
  height: 30px;
  line-height: 1;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  width: 30px;
}

.faq-item[open] summary .toggle {
  background: var(--plum);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item .answer {
  color: var(--muted);
  line-height: 1.62;
  padding: 0 22px 20px;
}

.faq-item .answer p { margin: 0 0 12px; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item .answer a { color: var(--plum); font-weight: 700; }

.faq-contact {
  background: linear-gradient(180deg, #fff, var(--mint));
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 8px;
  padding: 26px;
  text-align: center;
}

.faq-contact h3 { font-size: 1.2rem; margin: 0 0 6px; }
.faq-contact p { color: var(--muted); margin: 0; }
.faq-contact a { color: var(--plum); font-weight: 800; }

@media (max-width: 760px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: static;
  }
  .faq-toc a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem;
    padding: 8px 14px;
  }
}
