/* ============================================================================
   Homepage hero lead-form layout
   File: assets/css/lp-form-home.css
   Loaded after home.css and lp-form.css. Does not replace the bottom
   consultation form styles.
   ============================================================================ */

.hero:has(.hero__lead-card) {
  /* Slightly tighter vertical padding so the form stays near the fold */
  padding-block: clamp(6.5rem, 5.5rem + 3vw, 8.5rem) clamp(5.5rem, 4.5rem + 3vw, 8rem);
}

.hero:has(.hero__lead-card) .hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(1.75rem, 3vw, 3.25rem);
  align-items: center;
  text-align: left;
  max-width: 1280px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 1.24rem + 1.05vw, 2.25rem);
  min-width: 0;
}

/* Keep "So You Don't Have To" on one line in the narrower column */
.hero:has(.hero__lead-card) .hero__title {
  font-size: clamp(2.6rem, 1.85rem + 3vw, 5.15rem);
  max-width: 100%;
}

.hero__copy .hero__title,
.hero__copy .hero__subtitle {
  text-align: left;
}

.hero__copy .hero__actions {
  justify-content: flex-start;
}

.hero__lead-card {
  text-align: left;
  justify-self: end;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--nav-ease) 0.8s, transform 1.2s var(--nav-ease) 0.8s;
}

.hero.is-visible .hero__lead-card {
  opacity: 1;
  transform: translateY(0);
}

/* Hero success message — do not use .consultation__success here
   (consultation.js would grab this node instead of the bottom form). */
.lp-form-success {
  display:        none;
  flex-direction: column;
  align-items:    flex-start;
  gap:            1rem;
  padding:        0.35rem 0 0.15rem;
  background:     transparent;
}

.lp-form-success.visible {
  display: flex;
}

.lp-form-success .consultation__success-icon,
.lp-form-success .lp-form-success-icon {
  width:        2.5rem;
  height:       2.5rem;
  stroke:       var(--color-blue-electric);
  fill:         none;
  stroke-width: 1.5;
}

.lp-form-success .consultation__success-title,
.lp-form-success .lp-form-success-title {
  font-family: var(--font-serif);
  font-size:   var(--text-h4);
  font-weight: var(--fw-light);
  color:       var(--color-blue-darkest);
  line-height: 1.2;
  margin: 0;
}

.lp-form-success .consultation__success-body,
.lp-form-success .lp-form-success-body {
  font-family: var(--font-sans);
  font-size:   var(--text-base);
  color:       var(--color-blue);
  opacity:     0.65;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 960px) {
  .hero:has(.hero__lead-card) .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero__copy {
    align-items: center;
  }

  .hero__copy .hero__title,
  .hero__copy .hero__subtitle {
    text-align: center;
  }

  .hero__copy .hero__actions {
    justify-content: center;
  }

  .hero__lead-card {
    justify-self: center;
    max-width: 28rem;
  }

  /* Keep the scroll cue from overlapping the stacked form */
  .hero:has(.hero__lead-card) {
    padding-bottom: clamp(7rem, 6rem + 4vw, 9rem);
  }
}

@media (max-width: 480px) {
  .hero__lead-card {
    max-width: none;
  }
}

/* The centered scroll cue collides with the form card on desktop */
@media (min-width: 961px) {
  .hero:has(.hero__lead-card) .hero__scroll {
    display: none;
  }
}
