/* ===== FAQ Component ===== */
.faq {
  --faq-icon-color: rgba(255, 255, 255, 0.9);
  --faq-icon-active: var(--color-blue-mid, #24D3A7);
  --faq-text-active: var(--color-blue-mid, #24D3A7);

  padding: clamp(24px, 4vw, 48px) 16px;
  background: var(--color-bg, #0c0a22);
  color: var(--color-white, #fff);
}
.faq__container { max-width: 980px; margin: 0 auto; display: flex; gap: 2vw}
.faq__heading {
  font-size: clamp(20px, 2.6vw, 30px);
  margin: 0 0 20px;
  font-weight: 600;
  opacity: 70%;
  white-space: nowrap;
  text-wrap-mode: nowrap;
}

.faq__item {  }
.faq__title { margin: 0; }

.faq__button {
  appearance: none; border: 0; background: transparent; width: 100%;
  display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 12px;
  text-align: right; padding: 18px 0; cursor: pointer;
  color: var(--color-white, #fff);
  font-size: clamp(14px, 1.6vw, 18px); line-height: 1.7;
}
.faq__button:hover .faq__question { opacity: .95; }
.faq__button:hover .faq__chev { opacity: 1; }
.faq__button:focus-visible {
  outline: 2px solid var(--color-green-teal, #24D3A7);
  outline-offset: 3px; border-radius: 8px;
}

/* آیکن: رنگ از currentColor می‌آید تا بتواند ترنزیشن داشته باشد */
.faq__chev {
  display: inline-flex;
  color: var(--faq-icon-color);
  transform: rotate(0deg);
  transition: transform .25s ease, color .25s ease, opacity .2s ease;
  opacity: .9;
  height: 100%;
}
.faq__chev svg { display:block; margin: auto;}
.faq__question { transition: color .25s ease, opacity .2s ease;font-size: 24px;font-weight: 600; }

/* حالت باز */
.faq__item.is-open .faq__chev { transform: rotate(90deg); color: var(--faq-icon-active); }
.faq__item.is-open .faq__question { color: var(--faq-text-active); }

/* پنل با انیمیشن ارتفاع */
.faq__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__content {
    padding: 0 36px 18px 0;
    color: rgba(255, 255, 255, .6);
    font-size: 24px;
    line-height: 40px;
    font-weight: 400;
}

@media (max-width: 640px) {
  .faq__button { padding: 16px 0; font-weight: 600; font-size: 18px; }
  .faq__content { padding-right: 32px; font-size: 16px;
      font-weight: 400;
      line-height: 30px;}
  .faq__container{
      flex-direction: column;
  }
    .faq__heading{
        font-size: 26px;
        opacity: 1;
        font-weight: 600;
    }
    .faq__question{
        font-size: 18px;
        font-weight: 600;
    }
}

/* کاربرانی که کاهش حرکت خواسته‌اند */
@media (prefers-reduced-motion: reduce) {
  .faq__chev, .faq__question, .faq__panel { transition: none !important; }
}
