/* Minimal styles — layout/behavior Tailwind cannot drive from JS alone */

html {
  scroll-behavior: smooth;
}

/* Challenges carousel */
.carousel__track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__card {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .carousel__card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1024px) {
  .carousel__card {
    flex: 0 0 calc((100% - 2rem) / var(--cards-per-view, 3));
  }
}

body.nav-open {
  overflow: hidden;
}

/* Connect modal */
body.connect-modal-open,
body.lead-modal-open {
  overflow: hidden;
}

#lead-detail-modal:not([hidden]) {
  display: flex;
}

#connect-modal:not([hidden]) {
  display: flex;
}

/* FAQ */
.faq-item--open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item--open .faq-answer {
  display: block;
}

/* Insight article prose */
.insight-prose__heading {
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid #074907;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.insight-prose__heading:first-child {
  margin-top: 0;
}

.insight-prose__paragraph {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.insight-prose__paragraph + .insight-prose__heading {
  margin-top: 2.5rem;
}

/* WhatsApp FAB — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    transition: none;
  }

  .whatsapp-fab:hover {
    transform: none;
  }
}
