/* FAQ page styles */
body {
  margin: 0;
  background: #faf6f1;
  font-family: 'Montserrat', system-ui, sans-serif;
}

.faq-section {
  background: #faf6f1;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 6rem);
}

.faq-section__inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cta-accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.faq-section__headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--primary-blue);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.faq-list {
  border-top: 1px solid rgba(0, 71, 171, 0.15);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 71, 171, 0.15);
}

/* Question is now a button */
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.35;
  padding: 1.75rem 0;
  gap: 1rem;
  transition: color 0.2s var(--ease-standard);
}

.faq-item__question:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-item.is-open .faq-item__question {
  color: var(--cta-accent);
}

/* Chevron icon */
.faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.26s var(--ease-out);
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

/* Animated answer wrapper — grid-template-rows trick */
.faq-item__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease-in-out);
}

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

/* No-JS fallback: show answers */
html:not(.is-ready) .faq-item__answer-wrap {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.26s var(--ease-out) 0.06s, transform 0.26s var(--ease-out) 0.06s;
}

html:not(.is-ready) .faq-item__answer-inner {
  opacity: 1;
  transform: none;
}

.faq-item.is-open .faq-item__answer-inner {
  opacity: 1;
  transform: none;
}

.faq-item__answer {
  font-size: 1rem;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0;
  padding-bottom: 1.75rem;
}

@media (max-width: 480px) {
  .faq-item__question {
    padding: 1.5rem 0;
  }

  .faq-item__answer {
    padding-bottom: 1.5rem;
  }
}
