/* 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 / inquiry form page */
body.lead-modal-open {
  overflow: hidden;
}

.contact-inquiry__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-inquiry__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    gap: 2.5rem;
  }
}

.contact-inquiry__examples {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.contact-inquiry__examples h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
}

.connect-form-panel {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .connect-form-panel {
    padding: 2rem;
  }
}

.connect-form-panel::before {
  content: "";
  display: block;
  height: 4px;
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: 1rem 1rem 0 0;
  background: var(--bg-gradient);
}

@media (min-width: 640px) {
  .connect-form-panel::before {
    margin: -2rem -2rem 1.5rem;
  }
}

.connect-form__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.connect-form {
  margin-top: 1rem;
}

.connect-form__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.connect-form__input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #0f172a;
  outline: none;
}

.connect-form__input:focus {
  border-color: #437eeb;
  box-shadow: 0 0 0 2px rgba(67, 126, 235, 0.2);
}

select.connect-form__input {
  background: #fff;
}

.connect-form__required {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.connect-form__optional {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.connect-form__notes {
  min-height: 7.5rem;
  resize: vertical;
}

.connect-form__error {
  margin-top: 0.75rem;
}

.connect-form__submit {
  margin-top: 0.75rem;
  justify-content: center;
}

.connect-form__success {
  margin-top: 1rem;
  text-align: center;
}

.connect-form__success-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

#lead-detail-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 #437eeb;
  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;
  }
}
