/* ── FAQ Section ────────────────────────────────────────────────────── */

.ips-faq {
  background-color: var(--ink-surface);
  border-top: 1px solid var(--ink-border);
  position: relative;
}

/* Diagonal line texture background */
.ips-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.008) 40px,
    rgba(255,255,255,0.008) 41px
  );
  pointer-events: none;
  z-index: 0;
}

.ips-faq .ips-container {
  position: relative;
  z-index: 1;
}

/* FAQ list */
.ips-faq__list {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 64px;
}

/* Individual item */
.ips-faq__item {
  border-bottom: 1px solid var(--ink-border);
}

.ips-faq__item:first-child {
  border-top: 1px solid var(--ink-border);
}

/* Question button */
.ips-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  color: var(--ink-text);
  transition: color 0.25s;
}

.ips-faq__question:hover {
  color: var(--ink-gold);
}

.ips-faq__item.is-open .ips-faq__question {
  color: var(--ink-gold);
}

.ips-faq__q-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* Plus / minus icon */
.ips-faq__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.ips-faq__icon-plus,
.ips-faq__icon-minus {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.ips-faq__icon-minus {
  opacity: 0;
  transform: rotate(-90deg);
}

.ips-faq__item.is-open .ips-faq__icon-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.ips-faq__item.is-open .ips-faq__icon-minus {
  opacity: 1;
  transform: rotate(0);
}

/* Answer panel */
.ips-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-out-expo);
}

.ips-faq__answer:not([hidden]) {
  display: block;
}

.ips-faq__item.is-open .ips-faq__answer {
  max-height: 400px;
}

.ips-faq__answer-inner {
  padding: 0 0 28px;
}

/* Animated gold underline on expand */
.ips-faq__answer-line {
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ink-gold), var(--ink-gold-light), transparent);
  margin-bottom: 16px;
  transition: width 0.5s var(--ease-out-expo) 0.1s;
}

.ips-faq__item.is-open .ips-faq__answer-line {
  width: 100%;
}

.ips-faq__answer p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.85;
}

/* Bottom CTA */
.ips-faq__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ips-faq__cta p {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ips-faq__q-text { font-size: 15px; }
}
