/* ==========================================================================
   FAQ — pill accordion (closed state matches Figma: 70px tall, radius 60)
   ========================================================================== */

.faq-item {
  border: 1px solid var(--c-stone);
  border-radius: 35px;
  background: rgba(242, 242, 239, 0.7);
  transition: background-color 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.faq-item:hover {
  border-color: #e6e6e1;
}

.faq-item.is-open {
  background: #fff;
  border-color: #e7e7e2;
  box-shadow: 0 18px 40px -30px rgba(30, 43, 42, 0.35);
}

.faq-trigger {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 19px 9px 19px;
  text-align: left;
  color: var(--c-ink);
  font-weight: 600;
  font-size: clamp(1rem, 0.939rem + 0.259vw, 1.25rem);
  line-height: 1.25;
  border-radius: 35px;
}

.faq-trigger:focus-visible {
  outline-offset: -3px;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 999px;
  background: var(--c-teal);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}

.faq-icon img {
  width: 24px;
  height: 24px;
}

.faq-trigger:hover .faq-icon {
  background: #286a6a;
}

.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--c-gold);
}

/* Height animation without measuring: 0fr → 1fr */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

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

.faq-panel > div {
  overflow: hidden;
}

/* Keep closed answers out of the tab order / screen reader flow */
.faq-item:not(.is-open) .faq-panel > div {
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}

.faq-panel p {
  padding: 0 88px 22px 19px;
  color: rgba(51, 51, 51, 0.85);
  font-size: clamp(1rem, 0.97rem + 0.129vw, 1.125rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out);
}

.faq-item.is-open .faq-panel p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

@media (max-width: 639.98px) {
  .faq-panel p {
    padding-right: 19px;
  }
}
