/* ===========================
   FAQ PAGE
=========================== */

/* Hero */
.faq-hero {
  padding: 120px 0 64px;
  background: var(--bg-dark);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.faq-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 10px 0 16px;
}
.faq-hero h1 span { color: var(--accent); }
.faq-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Layout */
.faq-main { padding: 64px 0 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar TOC */
.faq-toc {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.faq-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.faq-toc ul { display: flex; flex-direction: column; gap: 4px; }
.faq-toc a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.4;
}
.faq-toc a:hover,
.faq-toc a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Accordion list */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-heading);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-answer p { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.faq-answer strong { color: var(--text-heading); }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--accent-hover); }

/* List styles inside answers */
.faq-ul, .faq-ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-ul { list-style: disc; }
.faq-ol { list-style: decimal; }
.faq-ul li, .faq-ol li { color: var(--text); font-size: 0.93rem; line-height: 1.6; }

/* Tag cloud */
.faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-tags span {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Service grid */
.faq-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.faq-service-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.faq-service-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.faq-service-icon svg { width: 18px; height: 18px; color: var(--accent); }
.faq-service-card h3 { font-size: 0.88rem; font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }
.faq-service-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Pricing table */
.faq-pricing-table {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.faq-pricing-row:last-child { border-bottom: none; }
.faq-pricing-label { font-size: 0.88rem; color: var(--text); }
.faq-pricing-value { font-size: 0.88rem; font-weight: 600; }
.faq-pricing-value.accent { color: var(--accent); }

/* Tip box */
.faq-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px !important;
  font-size: 0.88rem !important;
  color: var(--text) !important;
}
.faq-tip svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* CTA row inside answers */
.faq-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Bottom CTA section */
.faq-cta-section {
  margin-top: 80px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.faq-cta-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.faq-cta-inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.faq-cta-inner .faq-cta-row { justify-content: center; }

/* Responsive */
@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-toc {
    position: static;
    display: none; /* hide on mobile to save space */
  }
}
@media (max-width: 600px) {
  .faq-hero { padding: 100px 0 48px; }
  .faq-question { font-size: 0.92rem; padding: 16px 18px; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-service-grid { grid-template-columns: 1fr 1fr; }
}
