/* ==============================================================================
   AEO FAQ SECTION STYLESHEET
   Mohd Irshad Portfolio & SaaS Platform
   ============================================================================== */

.faq-section {
  padding: 4.5rem 0 4.5rem;
  width: 100%;
  position: relative;
}

.faq-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.faq-header-wrapper {
  margin-bottom: 2.8rem;
}

.faq-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.faq-main-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 0.5rem 0;
}

.faq-title-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.faq-wavy-accent {
  display: flex;
  justify-content: center;
  margin: 0.3rem 0 0.8rem;
}

.faq-subtitle-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* Accordion List */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}

.faq-item[open] {
  border-color: #ddd6fe;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.6rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background-color: #faf5ff;
}

.faq-q-number {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  color: #7c3aed;
  background: #ede9fe;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-q-text {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
  line-height: 1.4;
  text-align: left;
}

.faq-item[open] .faq-q-text {
  color: #7c3aed;
}

.faq-chevron-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-chevron-icon {
  transform: rotate(180deg);
  background: #ede9fe;
  color: #7c3aed;
}

.faq-answer {
  padding: 0 1.6rem 1.35rem 4.4rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px dashed #f1f5f9;
  padding-top: 1rem;
}

.faq-answer strong {
  color: #0f172a;
  font-weight: 700;
}

/* Bottom CTA */
.faq-bottom-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 22px;
  padding: 2.2rem 2.4rem;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.faq-bottom-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.faq-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.faq-cta-text h3 {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.faq-cta-text p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.faq-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-faq-consult {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-faq-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

.btn-faq-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #22c55e;
  color: #ffffff;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-faq-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .faq-main-title {
    font-size: 1.85rem;
  }
  .faq-answer {
    padding-left: 1.6rem;
  }
  .faq-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-cta-actions {
    width: 100%;
  }
  .btn-faq-consult, .btn-faq-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
