/* LX FAQ – Frontend Accordion */

/* ─── Reset ─────────────────────────────────────────────── */

.lx-faq,
.lx-faq * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── CSS Variables ──────────────────────────────────────── */

:root {
  --lx-accent:        #8dc640;
  --lx-accent-dark:   #7ab536;
  --lx-accent-bg:     rgba(141, 198, 64, .08);
  --lx-accent-border: rgba(141, 198, 64, .25);
  --lx-dk:            #0a0a0a;
  --lx-body:          #555;
  --lx-muted:         #777;
  --lx-bg:            #f7f8f6;
  --lx-white:         #fff;
  --lx-border:        #e5e5e5;
  --lx-radius:        14px;
}

/* ─── Wrapper ────────────────────────────────────────────── */

.lx-faq {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 100px 9%;
  overflow-x: hidden;
}

.lx-faq-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ─── Left column: header ────────────────────────────────── */

.lx-faq-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lx-accent-dark);
  margin-bottom: 20px;
}

.lx-faq-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lx-accent);
}

.lx-faq-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--lx-dk);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.lx-faq-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--lx-body);
  margin-bottom: 36px;
}

/* ─── CTA button ─────────────────────────────────────────── */

.lx-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lx-dk);
  border: none;
  border-radius: 60px;
  text-decoration: none;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  overflow: hidden;
}

.lx-faq-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lx-accent);
  border-radius: 60px;
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.lx-faq-cta:hover::before {
  transform: translateX(0);
}

.lx-faq-cta span,
.lx-faq-cta svg {
  position: relative;
  z-index: 1;
}

.lx-faq-cta svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  transition: transform .3s ease;
}

.lx-faq-cta:hover svg {
  transform: translateX(3px);
}

.lx-faq-cta:hover {
  box-shadow: 0 8px 28px rgba(141, 198, 64, .25);
  color: #fff;
}

/* ─── Accordion list ─────────────────────────────────────── */

.lx-faq-left {
  min-width: 0;
}

.lx-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.lx-faq-item {
  background: var(--lx-white);
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.lx-faq-item:hover {
  border-color: var(--lx-accent-border);
}

.lx-faq-item.open {
  border-color: var(--lx-accent);
  box-shadow: 0 4px 24px rgba(141, 198, 64, .1);
}

/* ─── Question button ────────────────────────────────────── */

.lx-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 20px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--lx-dk);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .25s ease;
  gap: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.lx-faq-q:hover,
.lx-faq-q:focus,
.lx-faq-q:active {
  color: var(--lx-accent-dark);
  background: none;
  outline: none;
}

.lx-faq-q span {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

/* ─── Toggle icon ────────────────────────────────────────── */

.lx-faq-q-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lx-accent-bg);
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.lx-faq-q-ico svg {
  width: 14px;
  height: 14px;
  stroke: var(--lx-accent-dark);
  stroke-width: 2;
  fill: none;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.lx-faq-item.open .lx-faq-q-ico {
  background: var(--lx-accent);
}

.lx-faq-item.open .lx-faq-q-ico svg {
  stroke: #fff;
  transform: rotate(45deg);
}

/* ─── Answer panel ───────────────────────────────────────── */

.lx-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.16, 1, .3, 1);
}

.lx-faq-a-inner {
  padding: 0 24px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--lx-body);
  max-width: 560px;
  word-break: break-word;
}

.lx-faq-a-inner p {
  margin: 0 0 12px;
}

.lx-faq-a-inner p:last-child {
  margin-bottom: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .lx-faq {
    padding: 72px 6%;
  }

  .lx-faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .lx-faq {
    padding: 56px 24px;
  }

  .lx-faq-q {
    font-size: 14.5px;
    padding: 18px 20px;
  }

  .lx-faq-a-inner {
    padding: 0 20px 20px;
    max-width: 100%;
  }
}

/* ─── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .lx-faq-cta,
  .lx-faq-cta::before,
  .lx-faq-item,
  .lx-faq-q,
  .lx-faq-q-ico,
  .lx-faq-q-ico svg,
  .lx-faq-a {
    transition: none !important;
  }
}