/*
 * ═══════════════════════════════════════════════════════════════
 *  LM Websolution — 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;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.34), 0 12px 28px rgba(15,31,68,0.14);
  transition: background 0.2s, color 0.2s, gap 0.2s, transform 0.22s, box-shadow 0.22s;
  animation: faqCtaPulse 3.1s ease-in-out infinite;
}

.faq-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(43,111,255,0.12) 42%, rgba(41,196,212,0.13) 52%, transparent 68%);
  transform: translateX(-125%) skewX(-16deg);
  transition: transform 0.62s ease;
}

.faq-cta-btn:hover {
  background: var(--accent);
  color: #ffffff;
  gap: 10px;
  transform: translateY(-3px);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.12), 0 18px 42px rgba(15,31,68,0.19);
  animation: none;
}

.faq-cta-btn:hover::before {
  transform: translateX(125%) skewX(-16deg);
}

.faq-cta-btn:active {
  transform: translateY(-1px) scale(0.985);
}

.faq-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(43,111,255,0.24), 0 18px 42px rgba(15,31,68,0.19);
  animation: none;
}

.faq-cta-btn:focus-visible::before {
  transform: translateX(125%) skewX(-16deg);
}

@keyframes faqCtaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.34), 0 12px 28px rgba(15,31,68,0.14);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 14px rgba(255,255,255,0), 0 16px 34px rgba(15,31,68,0.17);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-cta-btn {
    animation: none;
  }

  .faq-cta-btn::before {
    display: none;
  }
}

/* ── 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;
  }
}

@media (max-width: 480px) {
  .faq-section { padding: 32px 0 60px; }
  .faq-cta-box { padding: 1.75rem 1.25rem; }
  .faq-question { font-size: 13.5px; }
  .faq-trigger { padding: 1rem 1rem; gap: 0.75rem; }
  .faq-answer { padding: 0 1rem 1rem; font-size: 13.5px; }
}
