/* =========================================================
   FAQ PAGE — faq.css
   Uses global.css variables: --bg, --ink, --muted, --border,
   --warm, --off, --edge. Fonts: Syne, DM Sans, JetBrains Mono
   ========================================================= */

/* CATEGORY NAV BAR */
.faq-cat-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.faq-cat-nav::-webkit-scrollbar {
  display: none;
}

.faq-cat-nav-inner {
  display: flex;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

.faq-cat-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 18px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}

.faq-cat-link:hover {
  color: var(--ink);
}

.faq-cat-link.active {
  color: var(--ink);
  border-bottom-color: var(--warm);
}

/* MAIN CONTENT */
.faq-main {
  padding: 0 0 100px;
}

/* CATEGORY SECTIONS */
.faq-category {
  padding: 80px 0 0;
  scroll-margin-top: 200px;
}

.faq-category + .faq-category {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.faq-cat-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.faq-cat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 2px;
  min-width: 72px;
}

.faq-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 12px;
}

.faq-cat-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

/* FAQ LIST & ITEMS */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  gap: 40px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--warm);
}

.faq-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--warm);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.9;
  padding-bottom: 28px;
  padding-right: 80px;
}

/* CTA SECTION */
.faq-cta-section {
  background: var(--ink);
  padding: 100px 0;
  margin-top: 80px;
}

.faq-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.faq-cta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-cta-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--warm);
}

.faq-cta-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  color: var(--bg);
  line-height: 1.1;
  margin-bottom: 20px;
}

.faq-cta-text {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 36px;
}

.faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.faq-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--warm);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-weight: 400;
}

.faq-cta-btn-primary::after {
  content: '→';
  font-size: 14px;
  line-height: 1;
}

.faq-cta-btn-primary:hover {
  background: #b8962e;
  border-color: #b8962e;
}

.faq-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}

.faq-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.faq-cta-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-cta-deco {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 12vw, 160px);
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.06em;
  user-select: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .faq-cat-nav-inner {
    padding: 0 28px;
  }

  .faq-cta-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-cta-right {
    display: none;
  }
}

@media (max-width: 767px) {
  .faq-cat-nav-inner {
    padding: 0 20px;
  }

  .faq-cat-link {
    padding: 16px 12px;
    font-size: 11px;
  }

  .faq-category {
    scroll-margin-top: 108px;
  }

  .faq-cat-header {
    flex-direction: column;
    gap: 16px;
  }

  .faq-cat-num {
    font-size: 36px;
  }

  .faq-answer p {
    padding-right: 0;
  }

  .faq-cta-section {
    padding: 72px 0;
  }

  .faq-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-cta-btn-primary,
  .faq-cta-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-cat-nav-inner { padding: 0 16px; }
  .faq-question { font-size: 14px; gap: 12px; }
  .faq-cta-section { padding: 56px 0; }
}

/* ── Large desktop (≥1440px) ──────────────────────────── */
@media (min-width: 1440px) {
  .faq-cat-nav-inner { max-width: 1400px; padding: 0 72px; }
  .faq-cat-link { padding: 22px 24px; font-size: 12px; }
  .faq-main { padding: 0 0 120px; }
  .faq-category { padding: 100px 0 0; scroll-margin-top: 250px; }
  .faq-cat-num { font-size: 64px; }
  .faq-cat-title { font-size: clamp(28px, 2.8vw, 42px); }
  .faq-question { font-size: 17px; padding: 32px 0; gap: 48px; }
  .faq-answer p { font-size: 17px; padding-right: 100px; }
  .faq-cta-section { padding: 120px 0; margin-top: 100px; }
  .faq-cta-title { font-size: clamp(32px, 3.2vw, 52px); }
  .faq-cta-deco { font-size: clamp(100px, 14vw, 200px); }
}

/* ── Ultrawide (≥1921px) ──────────────────────────────── */
@media (min-width: 1921px) {
  .faq-cat-nav-inner { max-width: var(--uw-wrap, 1800px); padding: 0 88px; }
  .faq-main { padding: 0 0 140px; }
  .faq-cta-section { padding: 140px 0; }
}
