/* ========================================
   Thermomix FAQ Accordion Section
   ======================================== */

.thermomix-faq {
  position: relative;
}

.thermomix-faq__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

@media (min-width: 1024px) {
  .thermomix-faq__inner {
    gap: var(--space-3xl);
  }
}

/* Heading */
.thermomix-faq__heading-wrapper {
  text-align: left;
  width: 100%;
}

.thermomix-faq__heading {
  margin: 0;
  line-height: 1.23;
}

/* Accordion */
.thermomix-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* FAQ Item */
.thermomix-faq__item {
  border-bottom: 1px solid var(--clr-border-dark);
  padding-bottom: var(--space-lg);
}

.thermomix-faq__item:last-child {
  border-bottom: none;
}

/* Question Button */
.thermomix-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.thermomix-faq__question:hover {
  color: var(--clr-primary);
}

.thermomix-faq__question span {
  flex: 1;
  line-height: 1.6;
}

/* Icon */
.thermomix-faq__icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: currentColor;
  transition: transform 0.3s ease;
  margin-top: 8px;
}

.thermomix-faq__question--active .thermomix-faq__icon {
  transform: rotate(180deg);
}

/* Answer Wrapper */
.thermomix-faq__answer-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thermomix-faq__answer-wrapper[aria-hidden="false"] {
  max-height: 1000px; /* Large enough for any answer */
}

/* Answer */
.thermomix-faq__answer {
  padding-top: var(--space-md);
  padding-right: var(--space-2xl);
  line-height: 1.6;
  margin: 0;
}

/* Focus States */
.thermomix-faq__question:focus {
  outline: 2px solid var(--clr-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.thermomix-faq__question:focus:not(:focus-visible) {
  outline: none;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
  .thermomix-faq__inner {
    gap: var(--space-2xl);
  }

  .thermomix-faq__accordion {
    gap: var(--space-md);
  }

  .thermomix-faq__item {
    padding-bottom: var(--space-md);
  }

  .thermomix-faq__answer {
    padding-right: var(--space-lg);
  }
}

@media (max-width: 767px) {
  .thermomix-faq__inner {
    gap: var(--space-xl);
  }

  .thermomix-faq__question {
    gap: var(--space-sm);
  }

  .thermomix-faq__answer {
    padding-right: 0;
  }
}

