/* ==========================================================================
   Gagner — help center layout (help-center.html)
   Extends css/styles.css: load that first for tokens, header, footer, buttons.
   ========================================================================== */

.help-hero {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  text-align: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.help-hero h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.help-hero p {
  margin: 14px auto 32px;
  max-width: 46ch;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}
.help-search {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.help-search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-softer);
}
.help-search input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 15px 18px 15px 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-ambient);
}
.help-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* category quick-nav */
.help-categories { padding: 56px 0 8px; }
.help-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .help-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .help-cat-grid { grid-template-columns: repeat(4, 1fr); } }
.help-cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.help-cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.help-cat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-cat-icon svg { width: 18px; height: 18px; }
.help-cat-card h3 { font-size: 14.5px; font-weight: 700; color: var(--text); }
.help-cat-card span { font-size: 12.5px; color: var(--text-softer); }

/* faq sections */
.help-faqs { padding: 64px 0 100px; }
.help-faq-section { margin-bottom: 48px; scroll-margin-top: calc(var(--nav-height) + 20px); }
.help-faq-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}
.help-faq-section-title .help-cat-icon { width: 30px; height: 30px; }
.help-faq-section-title .help-cat-icon svg { width: 15px; height: 15px; }

.help-faq-item {
  border-bottom: 1px solid var(--border);
}
.help-faq-item:first-child { border-top: 1px solid var(--border); }
.help-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.help-faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--text-softer);
  border-bottom: 1.5px solid var(--text-softer);
  transform: rotate(45deg);
  transition: transform .2s;
}
.help-faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); }
.help-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.help-faq-answer > div { overflow: hidden; }
.help-faq-item.is-open .help-faq-answer { grid-template-rows: 1fr; }
.help-faq-answer p {
  padding: 0 4px 20px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 68ch;
}

.help-empty { text-align: center; padding: 40px 20px; color: var(--text-softer); font-size: 15px; }

.help-cta {
  margin-top: 20px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--contrast-bg);
  color: #fff;
  text-align: center;
}
.help-cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.help-cta p { color: rgba(255,255,255,0.7); font-size: 14.5px; margin-bottom: 24px; }
.help-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.help-cta .btn-tertiary { border-color: rgba(255,255,255,0.3); color: #fff; }
.help-cta .btn-tertiary:hover { background: rgba(255,255,255,0.1); }
