/*
 * ═══════════════════════════════════════════════════════════════
 *  LM Websolutions — FAQ Page
 *  faq.css — Accordion styles
 * ═══════════════════════════════════════════════════════════════
 */

/* ── Section ──────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
  padding: 60px 0 120px;
}

/* ── Category label ───────────────────────────────────────────── */
.faq-category {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 2rem;
  margin-top: 3.5rem;
}

.faq-category:first-of-type {
  margin-top: 0;
}

/* ── Accordion list ───────────────────────────────────────────── */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}

/* ── Accordion item ───────────────────────────────────────────── */
.faq-item {
  border: 1.5px solid rgba(10, 10, 10, 0.08);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item.faq-open {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(15, 31, 68, 0.14);
}

/* ── Trigger button ───────────────────────────────────────────── */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.375rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 13px;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.35;
  flex: 1;
}

/* ── Icon ─────────────────────────────────────────────────────── */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 31, 68, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.22s ease, transform 0.3s ease;
}

.faq-item.faq-open .faq-icon {
  background: var(--navy);
  color: #ffffff;
  transform: rotate(45deg);
}

/* ── Answer body ──────────────────────────────────────────────── */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.faq-open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 1.5rem 1.375rem;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.55);
}

.faq-answer a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.faq-answer a:hover {
  color: var(--accent);
}

/* ── Bottom CTA ───────────────────────────────────────────────── */
.faq-cta-box {
  max-width: 760px;
  margin-top: 3.5rem;
  padding: 2.5rem 2rem;
  background: var(--navy);
  border-radius: 20px;
  text-align: center;
}

.faq-cta-box p:first-child {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.faq-cta-box p:last-of-type {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, gap 0.2s;
}

.faq-cta-btn:hover {
  background: var(--accent);
  color: #ffffff;
  gap: 10px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 0 80px;
  }

  .faq-question {
    font-size: 14px;
  }

  .faq-trigger {
    padding: 1.125rem 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem 1.125rem;
  }
}
