/* =============================================
   FAQ PAGE — PyroMaster Pro
   ============================================= */

/* ---- Hero ---- */
.faq-hero {
  padding: 140px 0 60px;
  background: linear-gradient(160deg, #0A0A0F 0%, #12121A 60%, #0d1a00 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,26,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.faq-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,107,26,0.12);
  border: 1px solid rgba(255,107,26,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF6B1A;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.faq-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.faq-hero h1 span { color: #FF6B1A; }
.faq-hero-desc {
  color: #B0B0C3;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Search Box */
.faq-search-box {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.faq-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #808097;
  pointer-events: none;
}
.faq-search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search-input::placeholder { color: #505070; }
.faq-search-input:focus {
  border-color: rgba(255,107,26,0.5);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.1);
}
.faq-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #808097;
  cursor: pointer;
  display: none;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.2s;
}
.faq-search-clear:hover { color: #fff; }
.faq-search-clear.visible { display: flex; }

/* ---- Layout ---- */
.faq-main {
  padding: 4rem 0 6rem;
}
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Category Nav (Sidebar) ---- */
.faq-cat-nav {
  position: sticky;
  top: 100px;
}
.faq-cat-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #808097;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.faq-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #B0B0C3;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  margin-bottom: 4px;
}
.faq-cat-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.faq-cat-btn.active { background: rgba(255,107,26,0.12); color: #FF6B1A; }
.faq-cat-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #808097;
  padding: 0.15em 0.5em;
  border-radius: 100px;
}
.faq-cat-btn.active .faq-cat-count-badge {
  background: rgba(255,107,26,0.2);
  color: #FF6B1A;
}

/* ---- FAQ Content ---- */
.faq-content {}
.faq-group { margin-bottom: 3rem; }
.faq-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-group-title span { color: #FF6B1A; }

.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: rgba(255,107,26,0.3); }
.faq-item.open { border-color: rgba(255,107,26,0.35); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
  gap: 1rem;
}
.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-item.open .faq-question { background: rgba(255,107,26,0.05); }

.faq-q-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}
.faq-item.open .faq-q-text { color: #FF6B1A; }

.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: #808097;
  transition: transform 0.3s ease, color 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #FF6B1A; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 1000px; }

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: #B0B0C3;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  margin: 0 1.25rem;
}
.faq-answer-inner strong { color: #fff; }
.faq-answer-inner a { color: #FF6B1A; text-decoration: none; }
.faq-answer-inner a:hover { text-decoration: underline; }

/* No results */
.faq-no-results {
  text-align: center;
  padding: 4rem 0;
  display: none;
}
.faq-no-results.visible { display: block; }
.faq-no-results p { color: #808097; font-size: 1rem; margin: 0.5rem 0; }
.faq-no-results a { color: #FF6B1A; text-decoration: none; font-weight: 600; }

/* ---- Still Need Help ---- */
.faq-cta-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.faq-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .faq-cta-grid { grid-template-columns: 1fr; } }
.faq-cta-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.faq-cta-card:hover { border-color: rgba(255,107,26,0.35); transform: translateY(-4px); }
.faq-cta-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.faq-cta-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 0.6rem; }
.faq-cta-desc { font-size: 0.85rem; color: #B0B0C3; line-height: 1.6; margin: 0 0 1.25rem; }
.faq-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF6B1A;
  text-decoration: none;
}
.faq-cta-link:hover { text-decoration: underline; }
.faq-counter-strip {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: #808097;
}
.faq-counter-strip strong { color: #fff; }
