/**
 * HYPRO FAQ block — styles.
 * Loaded on frontend and in the block editor canvas.
 */

.hypro-faq {
  background: var(--hypro-off-white, #f4f3ef);
  padding: 100px 24px;
}

.hypro-faq__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */

.hypro-faq__header {
  text-align: center;
  margin-bottom: 64px;
}

.hypro-faq__eyebrow {
  font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hypro-blue, #1526be);
  margin: 0 0 12px;
}

.hypro-faq__heading {
  font-family: var(--hypro-font-display, 'Yumex', sans-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--hypro-near-black, #0c0c0a);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Accordion items ──────────────────────────────────────── */

.hypro-faq__item {
  border-bottom: 1px solid rgba(12, 12, 10, 0.1);
}

.hypro-faq__item:first-child {
  border-top: 1px solid rgba(12, 12, 10, 0.1);
}

.hypro-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
}

.hypro-faq__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hypro-near-black, #0c0c0a);
  line-height: 1.4;
  flex: 1;
}

.hypro-faq__icon {
  flex-shrink: 0;
  color: var(--hypro-muted, #6b6b68);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}

.hypro-faq__trigger.is-open .hypro-faq__icon {
  transform: rotate(180deg);
}

.hypro-faq__trigger:hover .hypro-faq__question {
  color: var(--hypro-blue, #1526be);
}

/* ── Answer panel ─────────────────────────────────────────── */

.hypro-faq__answer {
  overflow: hidden;
  /* Closed state — JS opens by setting an inline max-height. */
  max-height: 0;
  transition: max-height 0.35s ease;
}

.hypro-faq__answer p {
  padding-bottom: 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--hypro-muted, #6b6b68);
  font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
  margin: 0;
}

/* ── Footer CTA ───────────────────────────────────────────── */

.hypro-faq__footer {
  text-align: center;
  margin-top: 60px;
}

.hypro-faq__footer-pre {
  font-size: 1rem;
  color: var(--hypro-muted, #6b6b68);
  font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
  margin: 0 0 24px;
}

.hypro-faq__cta {
  display: inline-block;
  background: var(--hypro-blue, #1526be);
  color: #fff;
  padding: 16px 40px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--hypro-font-ui, 'DM Sans', sans-serif);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.hypro-faq__cta:hover {
  opacity: 0.88;
  color: #fff;
}

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

@media (max-width: 600px) {
  .hypro-faq {
    padding: 72px 20px;
  }

  .hypro-faq__header {
    margin-bottom: 48px;
  }

  .hypro-faq__trigger {
    padding: 18px 0;
  }
}
