/* ─────────────────────────────────────────
   FAQ Groups Block
   Figma: node 56348:29233 (desktop), 56348:29351 (mobile)
───────────────────────────────────────── */

.faq-groups {
  background-color: #FAF4E7;
  padding: 48px 0 100px;
  position: relative;
  overflow-x: clip;
}

/* ── Groups list ── */
.faq-groups__list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* ── Single group ── */
.faq-groups__group {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Group title ── */
.faq-groups__title {
  font-family: 'GT Flexa Trial', 'GT Flexa', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
  text-transform: capitalize;
  background: linear-gradient(173deg, #FF5F6D 2.88%, #FFC371 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: inline-block;
  align-self: flex-start;
}

/* ── Items wrapper ── */
.faq-groups__items {
  display: flex;
  flex-direction: column;
}

/* ── Single item (details) ── */
.faq-groups__item {
  border-bottom: 1px solid rgba(71, 85, 105, 0.24);
  padding-right: 16px;
}

/* ── Summary row ── */
.faq-groups__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
  transition: padding-bottom 0.35s ease;
}

/* When open: remove summary bottom padding — answer-inner provides gap + bottom */
.faq-groups__item[open] .faq-groups__summary {
  padding-bottom: 0;
}

/* ── Question text ── */
.faq-groups__question {
  flex: 1;
  font-family: 'Figtree', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: #2D4059;
}

/* ── +/− icon ── */
.faq-groups__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  display: block;
}

.faq-groups__icon::before,
.faq-groups__icon::after {
  content: '';
  position: absolute;
  background-color: rgba(45, 64, 89, 0.8);
  border-radius: 1px;
}

/* horizontal bar — always visible */
.faq-groups__icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

/* vertical bar — visible only when closed */
.faq-groups__icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-groups__item[open] .faq-groups__icon::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}

/* ── Answer ── */
.faq-groups__answer {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}

/* Open items live at natural height — no inline style needed */
.faq-groups__item[open] .faq-groups__answer {
  height: auto;
}

.faq-groups__answer-inner {
  padding-top: 16px;
  padding-bottom: 24px;
  padding-right: 160px;
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
  color: #2D4059;
}

.faq-groups__answer-inner p {
  margin: 0 0 0.75em;
}

.faq-groups__answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-groups a,
.faq-groups a:hover {
  color: #3978f2;
}

/* ── Decorative blurs ── */
.faq-groups__blur {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.faq-groups__blur--1 {
  width: 162px;
  height: 162px;
  left: -107px;
  top: 596px;
  background: radial-gradient(circle, rgba(255, 195, 113, 0.55) 0%, rgba(255, 195, 113, 0) 70%);
}

.faq-groups__blur--2 {
  width: 129px;
  height: 129px;
  right: 65px;
  top: 1536px;
  background: radial-gradient(circle, rgba(255, 195, 113, 0.55) 0%, rgba(255, 195, 113, 0) 70%);
}

/* ── Empty state ── */
.faq-groups__empty {
  color: #2D4059;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  opacity: 0.5;
}

/* ─────────────────────────────────────────
   Mobile — matches Figma node 56348:29351
───────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-groups {
    padding: 0 0 48px;
  }

  .faq-groups .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .faq-groups__list {
    gap: 48px;
  }

  .faq-groups__group {
    gap: 16px;
  }

  /* Icon aligns to top when question wraps to multiple lines */
  .faq-groups__summary {
    align-items: flex-start;
  }

  .faq-groups__icon {
    margin-top: 8px;
  }

  .faq-groups__answer-inner {
    padding-right: 0;
  }

  /* Hide decorative blurs on mobile */
  .faq-groups__blur {
    display: none;
  }
}
