/* ==========================================================================
   FAQ Page Styles — Broadleaf Commerce
   Matches parent theme design tokens (Manrope, brand greens, spacing)
   ========================================================================== */

.faq-page {
  padding: 160px 0 0 0;
  font-family: 'Manrope', sans-serif;
  color: var(--Text-text-primary, #001708);
}

.faq-page__container {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.faq-page__title {
    font-family: 'Bookmania', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 100%;
    margin: 0 0 56px;
    color: var(--Text-text-primary, #001708);
    text-align: center;
  }

/* Section
   ========================================================================== */

.faq-section {
  margin-bottom: 56px;
}

.faq-section__title {
  font-family: 'Bookmania', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 110%;
  color: var(--Text-text-primary, #001708);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--Green-green-100, #B2DF00);
}

/* FAQ Item (accordion)
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--Neutral-gray-200, #E6E8EB);
}

.faq-item__question {
  margin: 0;
  font-size: 1rem;
}

.faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--Text-text-primary, #001708);
  gap: 1rem;
  letter-spacing: 0.18px;
}

.faq-item__toggle:hover {
  color: var(--Brand-leaf-green, #038C33);
}

.faq-item__toggle:focus-visible {
  outline: 3px solid var(--Brand-leaf-green, #038C33);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  color: var(--Brand-leaf-green, #038C33);
}

.faq-item__toggle[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

/* Answer panel */

.faq-item__answer {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
}

.faq-item__answer[hidden] {
  display: block;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

.faq-item__answer.is-open {
  max-height: 200rem;
  opacity: 1;
  visibility: visible;
}

.faq-item__answer-content {
  padding: 0 0 24px;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.18px;
  color: var(--Text-text-body, rgba(0, 23, 8, 0.80));
}

.faq-item__answer-content p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.18px;
  color: var(--Text-text-body, rgba(0, 23, 8, 0.80));
}

.faq-item__answer-content p:last-child {
  margin-bottom: 0;
}

.faq-item__answer-content strong {
  color: var(--Text-text-primary, #001708);
}

.faq-item__answer-content a {
  color: var(--Brand-leaf-green, #038C33);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item__answer-content a:hover {
  color: var(--Text-text-primary, #001708);
}

.faq-item__answer-content a:focus-visible {
  outline: 3px solid var(--Brand-leaf-green, #038C33);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .faq-page {
    padding-top: 100px;
  }

  .faq-page__container {
    padding: 48px 24px 80px;
  }

  .faq-page__title {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .faq-section {
    margin-bottom: 40px;
  }

  .faq-section__title {
    font-size: 24px;
  }

  .faq-item__toggle {
    font-size: 16px;
    padding: 16px 0;
    letter-spacing: 0.16px;
  }

  .faq-item__answer-content,
  .faq-item__answer-content p {
    font-size: 16px;
    letter-spacing: 0.16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq-item__icon {
    transition: none;
  }

  .faq-item__answer {
    transition: none;
  }
}

/* High contrast */
@media (forced-colors: active) {
  .faq-item__toggle:focus-visible {
    outline: 3px solid LinkText;
  }

  .faq-section__title {
    border-bottom-color: CanvasText;
  }
}

/* Print */
@media print {
  .faq-page {
    padding-top: 0;
  }

  .faq-item__answer[hidden] {
    display: block;
    max-height: none;
    opacity: 1;
    visibility: visible;
  }

  .faq-item__icon {
    display: none;
  }
}

/*  Flower pattern: full-page, right side  */

.faq-page {
	    position: relative;
}

.faq-page::before {
	    content: "";
	    position: absolute;
	    top: -80px;
	        right: 0;
	            width: 100%;
	    
	    bottom: 0;
	        background-image: url(../../broadleaf/dist/7b8de5835c67ff4c2f740dbce79cf8a9.png);
	                background-size: auto 220%;
	    background-repeat: no-repeat;
	    background-position: top right;
	    opacity: 0.10;
	    pointer-events: none;
	    z-index: 0;
}

.faq-page__container {
	    position: relative;
	    z-index: 1;
}

/*  Header: centred text  */

.faq-page__header {
	    text-align: center;
	    padding-bottom: 40px;
}

.faq-page__intro {
	    max-width: 680px;
	    margin: 16px auto 0;
	    font-size: 18px;
	    line-height: 160%;
	    color: var(--Text-text-primary, #001708);
	    text-align: center;
}

@media (max-width: 768px) {
	.faq-page::before {
		        width: 70%;
		        right: -40px;
		        top: -20px;
		        opacity: 0.10;
	}
	
	.faq-page__intro {
		        font-size: 16px;
	}
}