/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.jj-faq {
  background: #ffffff;
  padding: 86px 0;
}

.jj-faq .jj-faq__title.jj-section__title {
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #101418;
}

.jj-faq .jj-faq__title-accent.jj-section__accent {
  display: block;
  margin-top: 2px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.jj-faq__list {
  border-top: 1px solid #d5dbe3;
}

.jj-faq__item {
  border-bottom: 1px solid #d5dbe3;
}

.jj-faq__heading {
  margin: 0;
}

.jj-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #101418;
  transition: color 0.2s ease;
}

.jj-faq__trigger:hover {
  color: var(--color-accent);
}

.jj-faq__trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.jj-faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.jj-faq__icon::before,
.jj-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.jj-faq__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.jj-faq__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.jj-faq__item.is-open .jj-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.jj-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.jj-faq__item.is-open .jj-faq__panel {
  grid-template-rows: 1fr;
}

.jj-faq__panel-inner {
  overflow: hidden;
}

.jj-faq__answer {
  margin: 0;
  padding: 0 40px 24px 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #475467;
}

@media (max-width: 640px) {
  .jj-faq {
    padding: 56px 0;
  }

  .jj-faq .jj-faq__title.jj-section__title {
    margin: 0 0 24px;
    font-size: 28px;
  }

  .jj-faq .jj-faq__title-accent.jj-section__accent {
    font-size: 42px;
    line-height: 1.08;
  }

  .jj-faq__trigger {
    padding: 20px 0;
    gap: 16px;
    font-size: 18px;
    min-height: 48px;
  }

  .jj-faq__answer {
    padding: 0 12px 20px 0;
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jj-faq__panel,
  .jj-faq__icon::before,
  .jj-faq__icon::after {
    transition: none;
  }
}
