/* =============================================================================
   FD Homepage Hero
   =============================================================================
   The top strip that sits directly below the nav on the homepage.

   Markup lives in homepage-hero.html (pasted as a Raw HTML block on the
   homepage). This file is enqueued by functions.php on the front page only.

   The hero animates in on load: a staggered rise (eyebrow → headline →
   subline → actions) with the accent rule drawing itself in. Motion is
   disabled for prefers-reduced-motion users.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   Wrapper
   ----------------------------------------------------------------------------- */

.fd-hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;

  /* A whisper of warmth behind the hero so it reads as an arrival, not just
     another dark band. Very subtle — remove if you prefer flat. */
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(196, 152, 107, 0.06) 0%,
      rgba(196, 152, 107, 0.015) 40%,
      rgba(31, 29, 26, 0) 70%
    );
}

@media (min-width: 600px) {
  .fd-hero {
    padding: 4rem 2rem 4.5rem;
  }
}

@media (min-width: 900px) {
  .fd-hero {
    padding: 5rem 2rem 5.5rem;
  }
}


/* -----------------------------------------------------------------------------
   Entrance animation — staggered rise, matches Salient's easing feel
   ----------------------------------------------------------------------------- */

@keyframes fd-hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fd-hero-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.fd-hero__eyebrow,
.fd-hero__headline,
.fd-hero__subline,
.fd-hero__actions {
  animation: fd-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fd-hero__eyebrow  { animation-delay: 0.05s; }
.fd-hero__headline { animation-delay: 0.18s; }
.fd-hero__subline  { animation-delay: 0.34s; }
.fd-hero__actions  { animation-delay: 0.5s; }

/* The accent rule under the eyebrow draws itself in */
.fd-hero__eyebrow::after {
  transform-origin: 50% 50%;
  animation: fd-hero-rule 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@media (prefers-reduced-motion: reduce) {
  .fd-hero__eyebrow,
  .fd-hero__headline,
  .fd-hero__subline,
  .fd-hero__actions,
  .fd-hero__eyebrow::after {
    animation: none;
  }
}


/* -----------------------------------------------------------------------------
   Small eyebrow label above the headline (optional — the bit of bronze)
   ----------------------------------------------------------------------------- */

.fd-hero__eyebrow {
  display: inline-block;
  font-family: var(--fd-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fd-accent);
  margin: 0 0 1.5rem 0;
}

/* Short accent rule under the eyebrow */
.fd-hero__eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(
    90deg,
    rgba(196, 152, 107, 0),
    var(--fd-accent),
    rgba(196, 152, 107, 0)
  );
}


/* -----------------------------------------------------------------------------
   Headline — the hook
   ----------------------------------------------------------------------------- */

.fd-hero__headline {
  font-family: var(--fd-font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fd-text-strong);
  margin: 0 auto 1.25rem;
  max-width: 26rem;
  letter-spacing: -0.01em;
}

@media (min-width: 600px) {
  .fd-hero__headline {
    font-size: 2.3rem;
    max-width: 30rem;
  }
}

@media (min-width: 900px) {
  .fd-hero__headline {
    font-size: 2.7rem;
    max-width: 34rem;
  }
}


/* -----------------------------------------------------------------------------
   Sub-line — the framing
   ----------------------------------------------------------------------------- */

.fd-hero__subline {
  font-family: var(--fd-font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--fd-text-muted);
  margin: 0 auto 2.25rem;
  max-width: 32rem;
}

@media (min-width: 900px) {
  .fd-hero__subline {
    font-size: 1.2rem;
    margin-bottom: 2.75rem;
  }
}


/* -----------------------------------------------------------------------------
   Actions — primary (Where to start) + secondary (newsletter)
   ----------------------------------------------------------------------------- */

.fd-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 600px) {
  .fd-hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Primary action — solid-ish bronze-bordered button */
.fd-hero__btn-primary {
  display: inline-block;
  font-family: var(--fd-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fd-bg);
  background: var(--fd-accent);
  border: 1px solid var(--fd-accent);
  padding: 0.85rem 1.75rem;
  border-radius: var(--fd-card-radius);
  text-decoration: none;
  transition: background var(--fd-transition), border-color var(--fd-transition), transform var(--fd-transition);
}

.fd-hero__btn-primary:hover {
  background: var(--fd-accent-strong);
  border-color: var(--fd-accent-strong);
  color: var(--fd-bg);
  transform: translateY(-1px);
}

/* Secondary action — quiet text link with underline accent */
.fd-hero__btn-secondary {
  display: inline-block;
  font-family: var(--fd-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fd-text-muted);
  border: none;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  position: relative;
  transition: color var(--fd-transition);
}

.fd-hero__btn-secondary::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.55rem;
  height: 1px;
  background: var(--fd-accent);
  opacity: 0;
  transition: opacity var(--fd-transition);
}

.fd-hero__btn-secondary:hover {
  color: var(--fd-text-strong);
}

.fd-hero__btn-secondary:hover::after {
  opacity: 0.7;
}
