/* FAQ — light premium accordion section (pre-footer) */
.section-faq {
  --faq-green: var(--forest);
  --faq-green-soft: var(--forest2);
  --faq-gold: #C7A96B;
  --faq-text: var(--light-text);
  --faq-muted: var(--light-muted);
  --faq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --faq-anim-ms: 300ms;
  --faq-toggle-ms: 200ms;

  position: relative;
  overflow: hidden;
  background-color: #f3f5f1;
  color: var(--faq-text);
}

/* Cannabis leaf pattern — matches Partner Clubs (.section-clubs) */
.section-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/clubs-section-pattern.jpg');
  background-repeat: repeat;
  background-size: 520px auto;
  background-position: center top;
  opacity: 0.58;
  pointer-events: none;
  z-index: 0;
}

.section-faq::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(243, 245, 241, 0.22) 0%, rgba(248, 249, 246, 0.28) 100%);
  pointer-events: none;
  z-index: 0;
}

.section-faq > * {
  position: relative;
  z-index: 1;
}

.faq-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-faq .sec-label {
  font-size: calc(0.6rem + 2px);
}

.section-faq .sec-title {
  font-size: clamp(calc(2.2rem + 2px), calc(6vw + 2px), calc(4.5rem + 2px));
}

.faq-inner .sec-desc {
  max-width: 640px;
  font-size: calc(0.9rem + 2px);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
}

.faq-group-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: calc(1.05rem + 2px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faq-green-soft);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--light-border);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(75, 99, 50, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-question {
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: calc(0.92rem + 2px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--faq-text);
}

.faq-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: calc(1.25rem + 2px);
  font-weight: 400;
  line-height: 1;
  color: var(--faq-green);
  transition: transform var(--faq-toggle-ms) var(--faq-ease);
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--faq-anim-ms) var(--faq-ease),
    opacity calc(var(--faq-anim-ms) - 40ms) var(--faq-ease);
}

.faq-panel[hidden] {
  display: none;
}

.faq-item.is-open .faq-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  margin: 0;
  padding: 0 0 0.95rem;
  font-size: calc(0.86rem + 2px);
  line-height: 1.7;
  color: var(--faq-muted);
}

.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--light-border);
}

.faq-cta-lead {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: calc(1.15rem + 2px);
  font-style: italic;
  color: var(--faq-text);
}

.section-faq .faq-cta-btn {
  font-size: calc(0.72rem + 2px);
  box-shadow: 0 4px 20px rgba(75, 99, 50, 0.18);
}

@media (max-width: 599px) {
  .faq-trigger {
    padding: 0.75rem 0;
  }

  .faq-question {
    font-size: calc(0.88rem + 2px);
  }

  .faq-answer {
    font-size: calc(0.84rem + 2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-faq {
    --faq-anim-ms: 0ms;
    --faq-toggle-ms: 0ms;
  }

  .faq-toggle {
    transition: none;
  }
}
