/**
 * FAQ section — Home Page only.
 * Enqueued by promkt_enqueue_home_faq_styles() in functions.php.
 *
 * Isolation strategy:
 *   - All visual rules use ".promkt-faq <child>" to reach specificity [0,2,0],
 *     beating typical theme class+element rules ([0,1,1]) without !important.
 *   - UA/theme defaults for <details>/<summary> are neutralized explicitly.
 *   - No selector outside this file's scope is touched.
 */

/* --- UA / theme reset for details+summary inside FAQ ---------------------- */
.promkt-faq details,
.promkt-faq summary {
  box-sizing: border-box;
}

.promkt-faq summary::marker {
  content: '';
  display: none;
}

.promkt-faq summary::-webkit-details-marker {
  display: none;
}

/* --- Layout --------------------------------------------------------------- */
.promkt-faq {
  background: #f5f7f4;
  padding: clamp(48px, 7vw, 96px) 16px;
}

.promkt-faq .promkt-faq__container {
  margin: 0 auto;
  max-width: 840px;
  width: 100%;
}

/* --- Heading -------------------------------------------------------------- */
.promkt-faq .promkt-faq__heading {
  color: #12213a;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}

/* --- Item (details) ------------------------------------------------------- */
.promkt-faq .promkt-faq__item {
  background: #ffffff;
  border: 1px solid rgba(18, 33, 58, 0.1);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 180ms ease;
}

.promkt-faq .promkt-faq__item:hover {
  box-shadow: 0 8px 24px rgba(18, 33, 58, 0.08);
}

.promkt-faq .promkt-faq__item[open] {
  border-color: rgba(42, 102, 78, 0.3);
  box-shadow: 0 8px 24px rgba(18, 33, 58, 0.08);
}

/* --- Question (summary) --------------------------------------------------- */
.promkt-faq .promkt-faq__question {
  align-items: center;
  color: #12213a;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.4;
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  user-select: none;
}

.promkt-faq .promkt-faq__question:focus-visible {
  outline: 2px solid rgba(42, 102, 78, 0.5);
  outline-offset: -2px;
}

.promkt-faq .promkt-faq__question::after {
  color: #2a664e;
  content: '+';
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
}

.promkt-faq .promkt-faq__item[open] > .promkt-faq__question::after {
  content: '−';
}

/* --- Answer --------------------------------------------------------------- */
.promkt-faq .promkt-faq__answer {
  border-top: 1px solid rgba(18, 33, 58, 0.08);
  color: #3d4f4a;
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
  padding: 18px 24px 24px;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 600px) {
  .promkt-faq .promkt-faq__question {
    font-size: 0.94rem;
    padding: 16px 18px;
  }

  .promkt-faq .promkt-faq__answer {
    font-size: 0.9rem;
    padding: 14px 18px 18px;
  }
}
