/* ============================================================
   שאלות ותשובות (page-faq.php) - לפי הפיגמה. בסיס #f5f5f5.
============================================================ */
.faq-hero { text-align: center; padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: var(--space-8, 2rem); }
.faq-hero__title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; color: var(--color-ink, #1a1714); margin: 0 0 var(--space-4, 1rem); }
.faq-hero__sub { font-size: 1.1875rem; color: #4a4a4a; line-height: 1.6; max-width: 640px; margin: 0 auto; }

.faq-body { padding-bottom: clamp(3rem, 7vw, 6rem); }
.faq-inner { max-width: 880px; margin: 0 auto; }

/* tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .faq-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}
/* טאבים - פיגמה node 1:902: מלבן מעוגל (radius ~10px), בורדר עדין, רקע שקוף.
   פעיל = בורדר כהה (#242424) + טקסט כהה מודגש. לא ליים (הנחיית גיא). */
.faq-tab {
  padding: 13px 28px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: transparent;
  color: #7a7a7a;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap; /* מונע שינוי לעיגולים במובייל */
  transition: color .15s ease, border-color .15s ease;
}

@media (max-width: 480px) {
  .faq-tab {
    padding: 11px 18px;
    font-size: .875rem;
  }
}
.faq-tab:hover { color: var(--color-ink, #1a1714); border-color: #a8a8a8; }
/* טאב פעיל: מתאר כהה כבפיגמה (לא ליים) */
.faq-tab.is-active {
  background: transparent;
  border-color: #242424;
  color: #242424;
  font-weight: 700;
}
.faq-tab:focus-visible { outline: 2px solid var(--color-ink, #1a1714); outline-offset: 2px; }

/* אקורדיון - פיגמה node 1:902: כרטיס לבן מעוגל. סגור = בורדר עדין בהיר.
   פתוח = בורדר כהה (#424242) סביב כל הכרטיס, בלי accent ליים. */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  position: relative;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.is-open {
  border-color: #424242;
}
.faq-item[hidden] { display: none; }

.faq-item__q { margin: 0; }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}
.faq-item__text {
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-ink, #1a1714);
  line-height: 1.4;
}
.faq-item.is-open .faq-item__text { font-weight: 700; }

/* אייקון +/- : בשמאל (order אחרון = שמאל ב-RTL) + גודל קנוני 16px בכל האתר (גיא 12.7) */
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px; height: 16px;
  order: 2;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-ink, #1a1714);
  border-radius: 2px;
  transition: opacity .25s ease, transform .25s ease;
}
.faq-item__icon::before { /* horizontal */
  top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%);
}
.faq-item__icon::after { /* vertical */
  left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
}
.faq-item.is-open .faq-item__icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

/* sliding answer (grid-rows 0fr -> 1fr for smooth height) */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .faq-item__answer { transition: none; }
  .faq-item__icon::before,
  .faq-item__icon::after { transition: none; }
}
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner {
  overflow: hidden;
  font-size: .9375rem;
  color: #4a4a4a;
  line-height: 1.7;
}
.faq-item__answer-inner > * { margin: 0; padding: 0 24px 24px; }
.faq-item__answer-inner > *:first-child { padding-top: 2px; }

/* CTA */
.faq-cta { text-align: center; margin-top: clamp(3rem, 6vw, 5rem); position: relative; }
/* זוהר ליים רך ומטושטש מאחורי ה-CTA */
.faq-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 86%);
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(195, 232, 91, 0.20) 0%, rgba(195, 232, 91, 0.0) 70%);
  filter: blur(56px);
  z-index: 0;
  pointer-events: none;
}
.faq-cta > * { position: relative; z-index: 1; }
.faq-cta__title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; color: var(--color-ink, #1a1714); margin: 0 0 10px; }
.faq-cta__sub { font-size: 1.0625rem; color: #6b6b6b; margin: 0 0 var(--space-6, 1.5rem); }

.faq-empty { text-align: center; color: #8a8a8a; padding: 40px 0; }

@media (max-width: 560px) {
  .faq-item__btn { padding: 18px 18px; }
  .faq-item__answer-inner > * { padding-inline: 18px; }
}
