/* ===== FAQ ===== */
#faq {
  padding-top: 40px;
  padding-bottom: 40px;

  @media (max-width: 767px) {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.faq__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  text-transform: uppercase;
  margin-bottom: 60px;

  @media (max-width: 1200px) {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 40px;
  }

  @media (max-width: 767px) {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 20px;
  }
}

/* ===== Accordion list ===== */
.faq__list {
  display: flex;
  flex-direction: column;
}

/* ===== Accordion item ===== */
.faq__item {
  border: 1px solid var(--color-gray-light);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 4px;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;

  &:last-child {
    border-bottom: 1px solid var(--color-gray-light);
  }

  &.faq__item--open {
    background-color: #e3e3e3;
    border-color: #e3e3e3;
  }
}

/* ===== Trigger button ===== */
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;

  &:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  @media (max-width: 1200px) {
    padding: 16px 20px;
  }

  @media (max-width: 767px) {
    padding: 16px 12px;
  }
}

.faq__item.faq__item--open .faq__trigger {
  &:hover {
    background: none;
  }
}

.faq__num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: var(--color-gray);
  flex-shrink: 0;

  .faq__item--open & {
    color: var(--color-black);
  }

  @media (max-width: 1200px) {
    font-size: 15px;
    line-height: 24px;
  }

  @media (max-width: 767px) {
    display: none;
  }
}

.faq__right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 570px;
  flex-shrink: 0;

  @media (max-width: 1200px) {
    width: 515px;
  }

  @media (max-width: 767px) {
    width: 100%;
  }
}

.faq__question {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: var(--color-black);
  transition: color 0.35s ease;

  .faq__item--open & {
  }

  @media (max-width: 1200px) {
    font-size: 15px;
    line-height: 24px;
  }
}

/* Plus / Minus icons */
.faq__plus {
  display: block;
  flex-shrink: 0;

  .faq__item--open & {
    display: none;
  }
}

.faq__minus {
  display: none;
  flex-shrink: 0;

  .faq__item--open & {
    display: block;
  }
}

/* ===== Answer body — grid trick ===== */
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;

  .faq__item--open & {
    grid-template-rows: 1fr;
  }
}

.faq__body-inner {
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;

  @media (max-width: 767px) {
    justify-content: flex-start;
  }
}

.faq__answer {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-black);
  padding: 0 0 32px;

  @media (max-width: 767px) {
    width: 100%;
    padding: 0 12px 20px;
  }
}

.faq__answer p {
  margin-bottom: 15px;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}
