/* ── FAQ SECTION ──────────────────────────────────────────── */

.faq-section {
  padding: 110px var(--page-px);
  background: var(--off-white);
  color: var(--black);
}

.faq-section--dark {
  background: var(--gray-90);
  color: var(--white);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

/* ── Left column ─────────────────────────────────────────── */

.faq-meta {
  position: sticky;
  top: 120px;
}

.faq-eyebrow {
  margin-bottom: 16px;
}

.faq-heading {
  font-family: 'Geist', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.faq-section--dark .faq-heading {
  color: var(--white);
}

.faq-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-40);
  max-width: 340px;
  margin-bottom: 32px;
}

.faq-section--dark .faq-desc {
  color: var(--gray-20);
}

/* ── Accordion list ──────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--gray-10);
}

.faq-section--dark .faq-item {
  border-top-color: var(--gray-60);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--gray-10);
}

.faq-section--dark .faq-item:last-child {
  border-bottom-color: var(--gray-60);
}

/* ── Trigger button ──────────────────────────────────────── */

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.faq-question-text {
  font-family: 'Geist', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}


/* ── Plus / minus icon ───────────────────────────────────── */

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

/* ── Answer reveal ───────────────────────────────────────── */

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-40);
  padding-bottom: 24px;
  max-width: 600px;
}

.faq-section--dark .faq-answer {
  color: var(--gray-20);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1023px) {
  .faq-section {
    padding: 80px 40px;
  }
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq-meta {
    position: static;
  }
  .faq-desc {
    max-width: none;
  }
}

@media (max-width: 599px) {
  .faq-section {
    padding: 64px clamp(18px, 5vw, 32px);
  }
  .faq-question {
    padding: 20px 0;
  }
}
