/* ==========================================================================
   LP02 · UNIT 1 · HERO — copy + lead form
   --------------------------------------------------------------------------
   Navy field lit by a low "horizon" glow. Copy at inline-start; at
   inline-end the lead form card. The page's core metaphor lives on the
   card: a compact relationship bridge (advisor → Fatorly → client) rests
   on its top edge — the form is now the platform the relationship
   stands on. Card styles: components/lead-form.css.
   ========================================================================== */

.phero {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 100svh;
  padding-block-start: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-block-end: clamp(3.5rem, 8vw, 6rem);
  background-color: var(--c-navy);
  isolation: isolate;
}

/* Horizon glow + soft side light (own clip layer) */
.phero__decor {
  background:
    radial-gradient(ellipse 70% 45% at 50% 115%, rgba(0, 169, 182, 0.42), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 10%, rgba(1, 62, 106, 0.9), transparent 70%),
    linear-gradient(180deg, #02113A 0%, #021746 100%);
}

/* Thin horizon line where the glow meets the field */
.phero__horizon {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 14%;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 169, 182, 0.45), transparent);
}

.phero__grid {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  align-items: center;
}

@media (min-width: 48rem) {
  .phero__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* ---------------------------------------------------------------------------
   Copy
   --------------------------------------------------------------------------- */
.phero__content {
  display: grid;
  gap: var(--space-lg);
  justify-items: center;
  text-align: center;
}

@media (min-width: 48rem) {
  .phero__content {
    justify-items: start;
    text-align: start;
  }
}

.phero__title {
  max-inline-size: 17ch;
  color: var(--c-on-dark);
}

/* Word spans created by phero.js for the blur-in headline */
.phero__word {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.phero__sub {
  max-inline-size: 34rem;
  color: var(--c-on-dark-body);
}

.phero__actions {
  margin-block-start: var(--space-xs);
  inline-size: 100%;
}

@media (min-width: 30rem) {
  .phero__actions {
    inline-size: auto;
  }
}

@media (min-width: 48rem) {
  .phero__actions {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------------------
   Form column (shared lead-form component — components/lead-form.css)
   The compact relationship bridge sits on the card's top edge, so the
   column reserves room above the card.
   --------------------------------------------------------------------------- */
.phero__form {
  padding-block-start: 2.5rem;
  scroll-margin-block-start: calc(var(--header-h) + 1rem);
}

/* The country popup may extend past the hero's lower edge; keep the hero
   painted above the next section so the list is never covered. */
.phero {
  z-index: 2;
}

/* ---------------------------------------------------------------------------
   Pre-animation states (JS motion only)
   --------------------------------------------------------------------------- */
.js-motion .phero__title {
  visibility: hidden; /* revealed by phero.js once words are split */
}

.js-motion .phero [data-phero-anim] {
  opacity: 0;
}
