/* ============================================================
   FAQ Accordion Styles
   Add to: your-theme/assets/css/faq.css
   (or paste into your theme's main stylesheet)
   ============================================================ */

/* --- Page wrapper --- */
.faqs-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 190px 24px 80px;
}

/* --- Section block --- */
.faq-block {
  margin-bottom: 56px;
}

.faq-block__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 32px;
  color: #111111;
  letter-spacing: -0.02em;
}

/* --- Accordion list --- */
.faq-accordion {
  border-top: 1px solid #e2e2e2;
  max-width: 540px;
}

/* --- Individual FAQ item --- */
.faq-item {
  border-bottom: 1px solid #e2e2e2;
}

/* --- Trigger button --- */
.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: #111111;
  transition: color 0.2s ease;
}

.faq-item__trigger:hover {
  color: #555555;
}

.faq-item__trigger:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Question text --- */
.faq-item__question {
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 400;
  line-height: 1.45;
  flex: 1;
}

/* --- Arrow icon --- */
.faq-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: white;
  transition: background-color 0.2s ease;
}

.faq-item__icon svg {
  display: block;
  transition: transform 0.5s cubic-bezier(0.63, 0.05, 0.07, 1);
}

/* Arrow rotated when open */
.faq-item__trigger[aria-expanded="true"] .faq-item__icon svg {
  transform: rotate(180deg);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  /* background-color: #e8e8e8; */
}

/* --- Answer panel --- */
.faq-item__panel {
  overflow: hidden;
  /* JS controls display:none via the `hidden` attribute;
     the height animation is handled by JS toggling max-height */
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.63, 0.05, 0.07, 1);
}

/* When not hidden, allow height to expand */
.faq-item__panel:not([hidden]) {
  /* hidden attr removed by JS — max-height set inline by JS */
}

.faq-item__answer {
  padding-top: 0px;
  padding-right: clamp(15px, 4.2vw, 16px);
  padding-bottom: clamp(30px, 8.4vw, 32px);
  padding-left: clamp(15px, 4.2vw, 16px);
  color: #444444;
  font-size: clamp(14.5px, 3.9vw, 16px);
  line-height: 1.75;
}

.faq-item__answer p {
  margin: 0 0 1em;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer a {
  color: #111111;
  text-decoration: underline;
}

.faq-item__answer a:hover {
  color: #555555;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .faqs-page {
    padding: 110px 16px 60px;
  }

  @media (max-width: 1580px) {
    .faqs-page {
      padding: 160px 16px 60px;
    }


  .faq-item__trigger {
    padding: 18px 0;
  }
}
