/* ============================================================
   CGB – FAQ Section Block
   Native <details>/<summary> accordion. No JS required.
   ============================================================ */

.cgb-faq-section {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--cgb-light-bg, #f8fbfa);
  font-family: var(--cgb-body-font, inherit);
  color: var(--pfd-text-dark, #091015);
}

.cgb-faq-section .container {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Header ── */
.cgb-faq-section__header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.cgb-faq-section__eyebrow {
  display: inline-block;
  font-family: var(--cgb-body-font, inherit);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cgb-main, #DBAB6B);
  margin-bottom: 12px;
}

.cgb-faq-section__heading {
  font-family: var(--cgb-heading-font, inherit);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--pfd-near-black, #091015);
}

.cgb-faq-section__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--pfd-text-primary, #4a5560);
  max-width: 640px;
  margin: 0 auto;
}

/* ── List ── */
.cgb-faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Item (details) ── */
.cgb-faq-section__item {
  background: #fff;
  border: 1px solid rgba(28, 42, 53, 0.08);
  border-radius: var(--cgb-radius, 8px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cgb-faq-section__item:hover {
  border-color: rgba(219, 171, 107, 0.4);
}

.cgb-faq-section__item[open] {
  border-color: var(--cgb-main, #DBAB6B);
  box-shadow: 0 4px 16px rgba(28, 42, 53, 0.06);
}

/* ── Summary (question) ── */
.cgb-faq-section__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--cgb-heading-font, inherit);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pfd-near-black, #091015);
  min-height: 48px; /* WCAG 2.5.5 */
  user-select: none;
}

/* Hide default disclosure marker across browsers */
.cgb-faq-section__question::-webkit-details-marker { display: none; }
.cgb-faq-section__question::marker { content: ''; }

.cgb-faq-section__question:focus-visible {
  outline: 3px solid var(--cgb-main, #DBAB6B);
  outline-offset: -3px;
}

.cgb-faq-section__question-text {
  flex: 1;
}

.cgb-faq-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(219, 171, 107, 0.12);
  color: var(--cgb-main, #DBAB6B);
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.cgb-faq-section__item[open] .cgb-faq-section__icon {
  transform: rotate(180deg);
  background: var(--cgb-main, #DBAB6B);
  color: #fff;
}

/* ── Answer ── */
.cgb-faq-section__answer {
  padding: 0 24px 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pfd-text-primary, #4a5560);
}

.cgb-faq-section__answer > *:first-child { margin-top: 0; }
.cgb-faq-section__answer > *:last-child  { margin-bottom: 0; }

.cgb-faq-section__answer p {
  margin: 0 0 12px;
}

.cgb-faq-section__answer a {
  color: var(--cgb-main, #DBAB6B);
  text-decoration: underline;
}

.cgb-faq-section__answer strong {
  color: var(--pfd-near-black, #091015);
}

.cgb-faq-section__answer ul,
.cgb-faq-section__answer ol {
  margin: 0 0 12px 20px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .cgb-faq-section__question {
    padding: 16px 18px;
    font-size: 17px;
  }
  .cgb-faq-section__answer {
    padding: 0 18px 18px;
    font-size: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cgb-faq-section__item,
  .cgb-faq-section__icon {
    transition: none;
  }
}
