/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FAQ SECTION — Premium Accordion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Section Background ─────────────────────────── */
.faq-section {
  position: relative;
  background: #ffffff;
}

.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* ── Decorative Blobs ───────────────────────────── */
.faq-blob-1 {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.faq-blob-2 {
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ── FAQ Card ───────────────────────────────────── */
.faq-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.faq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Active glow */
.faq-card.faq-active {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 8px 32px rgba(99, 102, 241, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-card.faq-active:hover {
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.12),
    0 12px 40px rgba(99, 102, 241, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ── Question Button ────────────────────────────── */
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: -2px;
  border-radius: 20px;
}

/* Number badge */
.faq-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: #6366f1;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.35s ease;
}

.faq-active .faq-number {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* Question text */
.faq-question-text {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.faq-active .faq-question-text {
  color: #4f46e5;
}

/* Plus/minus icon */
.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #64748b;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before {
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Active icon → minus */
.faq-active .faq-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.faq-active .faq-icon::before,
.faq-active .faq-icon::after {
  background: #6366f1;
}

.faq-active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* ── Answer Panel ───────────────────────────────── */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-active .faq-answer {
  grid-template-rows: 1fr;
}

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

.faq-answer-content {
  padding: 0 26px 24px 78px;
  font-size: 14px;
  line-height: 1.75;
  color: #64748b;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease 0.05s,
    transform 0.35s ease 0.05s;
}

.faq-active .faq-answer-content {
  opacity: 1;
  transform: translateY(0);
}

/* ── Maintenance Badge Special ──────────────────── */
.faq-maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(234, 88, 12, 0.06) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ea580c;
  letter-spacing: 0.02em;
}

.faq-maintenance-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Fade-up animation for cards ────────────────── */
.faq-fade-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-fade-item.faq-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .faq-question {
    padding: 18px 20px;
    gap: 12px;
  }

  .faq-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 10px;
  }

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

  .faq-answer-content {
    padding: 0 20px 20px 64px;
    font-size: 13px;
  }

  .faq-icon {
    width: 26px;
    height: 26px;
  }

  .faq-icon::before,
  .faq-icon::after {
    width: 10px;
  }

  .faq-card {
    border-radius: 16px;
  }
}
