/* =========================================================
   FAQ ACCORDION SECTION
   ========================================================= */

.faq {
  background: #ffffff;
  padding: 72px 0 80px;
}

.faq__container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.faq__header {
  text-align: center;
  margin-bottom: 48px;
}

/* ---- List ---- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Item card ---- */
.faq__item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.faq__item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(46, 125, 50, 0.2);
}

.faq__item.faq__item--open {
  border-color: rgba(46, 125, 50, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 6px 28px rgba(46, 125, 50, 0.08);
}

/* ---- Question button ---- */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  transition: background 0.18s ease, color 0.18s ease;
}

.faq__question:hover {
  background: #f9fafb;
}

.faq__item--open .faq__question {
  color: #2e7d32;
  background: #f4faf5;
}

/* ---- Arrow icon ---- */
.faq__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d0d5dd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.22s ease,
              background 0.22s ease;
}

.faq__arrow::before,
.faq__arrow::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: #666;
  border-radius: 2px;
  transition: background 0.22s ease;
}

.faq__arrow::before {
  transform: translateX(-2px) rotate(-45deg);
  transform-origin: right center;
}

.faq__arrow::after {
  transform: translateX(2px) rotate(45deg);
  transform-origin: left center;
}

.faq__item--open .faq__arrow {
  transform: rotate(180deg);
  border-color: #2e7d32;
  background: #e8f5e9;
}

.faq__item--open .faq__arrow::before,
.faq__item--open .faq__arrow::after {
  background: #2e7d32;
}

/* ---- Answer panel ---- */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
  opacity: 0;
  padding: 0 22px;
}

.faq__answer p {
  font-size: 0.925rem;
  color: #555555;
  line-height: 1.75;
  margin: 0;
  padding-bottom: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 16px;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
  .faq {
    padding: 52px 0 60px;
  }

  .faq__container {
    padding: 0 16px;
  }

  .faq__header {
    margin-bottom: 36px;
  }

  .faq__question {
    font-size: 0.91rem;
    padding: 17px 18px;
  }

  .faq__answer {
    padding: 0 18px;
  }
}
