/* ============================================================
   PC-Duo FAQ Section — faq.css
   Modern accordion, AEO-ready semantic markup
   Brand colour: PC-Duo blue #4888C7
   ============================================================ */

/* ---------- Section shell ---------- */
.faq-section {
  background: #f8f9fa;
  padding: 70px 0 80px;
  border-bottom: 1px solid #e4e8ec;
}

.faq-section__heading {
  text-align: center;
  margin-bottom: 10px;
}

.faq-section__subheading {
  text-align: center;
  color: #637080;
  font-size: 1.05em;
  margin-bottom: 48px;
}

/* ---------- Accordion list ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

/* ---------- Individual item ---------- */
.faq-item {
  background: #ffffff;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 18px rgba(72, 136, 199, 0.10);
  border-color: #b8d2ef;
}

.faq-item.is-open {
  border-color: #4888C7;
  box-shadow: 0 4px 22px rgba(72, 136, 199, 0.14);
}

/* ---------- Question button ---------- */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  gap: 16px;
  transition: color 0.2s ease;
  /* font-size / color inherited from .sectiontext */
  font-weight: 700;
}

.faq-question:focus {
  outline: 2px solid #4888C7;
  outline-offset: -2px;
  border-radius: 10px;
}

.faq-item.is-open .faq-question {
  color: #4888C7;
}

/* ---------- Chevron icon ---------- */
.faq-question__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #c8d8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.25s ease, background 0.25s ease;
}

.faq-question__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #637080;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

.faq-item.is-open .faq-question__icon {
  background: #4888C7;
  border-color: #4888C7;
  transform: rotate(180deg);
}

.faq-item.is-open .faq-question__icon svg {
  stroke: #ffffff;
}

/* ---------- Answer panel ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s ease;
}

.faq-answer__inner {
  padding: 16px 24px 22px;
  line-height: 1.75;
  border-top: 1px solid #eef2f5;
  /* font-size / color inherited from .sectiontext */
}

/* ---------- Left accent bar on open ---------- */
.faq-item.is-open {
  border-left: 4px solid #4888C7;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .faq-section {
    padding: 50px 0 60px;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-answer__inner {
    padding: 14px 18px 18px;
  }
}
