/* ============================================================
   FAQ ACCORDION FIX
   Overrides Framer's fixed-height / overflow-hidden defaults
   so the custom JS toggle works correctly.
   ============================================================ */

/* --- Outer wrappers: let height grow naturally --- */
#faqs .framer-86z70m-container,
#faqs .framer-SqIAO {
  height: auto !important;
  overflow: visible !important;   /* Framer sets overflow:hidden – must undo */
}

/* --- Each FAQ item container --- */
#faqs .esteem-faq-item {
  height: auto !important;
  overflow: visible !important;   /* Allow the answer to flow below the item */
  cursor: pointer;
}

/* --- Inner content column --- */
#faqs .esteem-faq-item .framer-1yvhhbg {
  gap: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

/* ── ANSWER PANEL (hidden by default) ── */
#faqs .esteem-faq-item .framer-1fiznb2 {
  /* Pull out of Framer's absolute positioning */
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  /* Reset Framer's translateX(-50%) inline transform */
  transform: none !important;

  display: flex !important;
  width: 100% !important;
  padding: 0 !important;

  /* Hidden state */
  max-height: 0;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;

  transition:
    max-height 350ms cubic-bezier(.2, .8, .2, 1),
    opacity 260ms ease,
    padding-top 350ms ease,
    visibility 0s linear 350ms;
}

/* ── When open: reveal answer ── */
#faqs .esteem-faq-item.is-open .framer-1yvhhbg {
  gap: 16px !important;
}

#faqs .esteem-faq-item.is-open .framer-1fiznb2 {
  max-height: 400px;            /* generous cap; increase if answers are longer */
  padding-top: 4px !important;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
  transition:
    max-height 350ms cubic-bezier(.2, .8, .2, 1),
    opacity 260ms ease,
    padding-top 350ms ease,
    visibility 0s linear 0s;
}

/* ── Answer text wrapper ── */
#faqs .esteem-faq-item .framer-1gp89n4 {
  width: 100% !important;
  flex: 1 1 auto !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
}

/* ── Toggle icon button transitions ── */
#faqs .esteem-faq-item .framer-kiabgh,
#faqs .esteem-faq-item .framer-1ku4baz,
#faqs .esteem-faq-item .framer-sxfbde {
  transition: transform 280ms ease, background-color 280ms ease;
}

/* Open state: accent colour on the toggle button */
#faqs .esteem-faq-item.is-open .framer-kiabgh {
  background-color: #c8ff3d !important;
}

/* Rotate the vertical bar to make the + become a × / − */
#faqs .esteem-faq-item.is-open .framer-sxfbde {
  transform: rotate(-180deg) scaleY(0) !important;
}

/* Keyboard focus ring */
#faqs .esteem-faq-item .framer-kiabgh:focus-visible {
  outline: 3px solid #c8ff3d;
  outline-offset: 3px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  #faqs .esteem-faq-item {
    padding: 20px !important;
  }

  #faqs .esteem-faq-item.is-open .framer-1fiznb2 {
    max-height: 500px;
  }
}

/* ── Reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  #faqs .esteem-faq-item .framer-1fiznb2,
  #faqs .esteem-faq-item .framer-kiabgh,
  #faqs .esteem-faq-item .framer-1ku4baz,
  #faqs .esteem-faq-item .framer-sxfbde {
    transition: none;
  }
}

/* ============================================================
   CUSTOM ACCORDION STYLING (FOR STATIC HTML IN INDEX.HTML)
   ============================================================ */
.esteem-faq-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.esteem-faq-box .esteem-faq-item {
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

.esteem-faq-trigger {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  border: 0;
  background: transparent;
  color: #111;
  font-family: var(--esteem-font-heading, inherit);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}

.esteem-faq-trigger:focus-visible {
  outline: 3px solid rgba(120, 168, 0, 0.45);
  outline-offset: 4px;
}

.esteem-faq-question {
  flex: 1 1 auto;
}

.esteem-faq-icon-wrapper {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f3ed;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(.2, .8, .2, 1);
}

.esteem-faq-icon-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: #111;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), background-color 0.3s ease;
}

.esteem-faq-icon-line.vertical {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Open states */
.esteem-faq-item.is-open .esteem-faq-icon-wrapper {
  background-color: #c8ff3d;
}

.esteem-faq-item.is-open .esteem-faq-icon-line.vertical {
  transform: translate(-50%, -50%) rotate(0deg) scaleY(0);
}

/* Content expansion */
.esteem-faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 350ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease;
}

.esteem-faq-content[aria-hidden="false"] {
  pointer-events: auto;
}

.esteem-faq-answer-inner {
  padding: 0 48px 24px 2px;
}

.esteem-faq-answer-inner p {
  max-width: 760px;
  margin: 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 809px) {
  .esteem-faq-trigger {
    min-height: 68px;
    font-size: 18px;
  }
  .esteem-faq-answer-inner {
    padding-right: 36px;
  }
}

