/* ============================================================
   page-hero.css — inner practice-area page hero
   Text-forward (no cutout): kicker, confident headline, subline,
   CTAs, over a calm faded Jacksonville skyline.
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background-image: url("../../images/office-2880w.webp");
  background-size: cover;
  background-position: center 38%;
  filter: saturate(0.6) brightness(1.02);
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .page-hero__skyline {
    background-image: url("../../images/office-960w.webp");
  }
}
.page-hero__skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 74, 107, 0.26), rgba(246, 243, 236, 0.10));
  mix-blend-mode: multiply;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* variants: swap in the homepage skyline, and a taller hero */
.page-hero--home-skyline .page-hero__skyline {
  background-image: url("../../images/jacksonville-skyline-2880w.webp");
  background-position: center 42%;
}
@media (max-width: 900px) {
  .page-hero--home-skyline .page-hero__skyline {
    background-image: url("../../images/jacksonville-skyline-960w.webp");
  }
}
.page-hero--tall .page-hero__inner { padding-block: clamp(4.5rem, 10vw, 8rem); }
/* let the subline run the full hero width (one line on desktop) */
.page-hero--wide-sub .page-hero__subtitle { max-width: none; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: var(--space-4);
  text-wrap: balance;
}
.page-hero__title em { font-style: italic; color: var(--blue); }

/* Topic eyebrow inside the h1 (render.php): renders exactly like the
   standalone <p class="eyebrow"> above the heading. The span resets what it
   would otherwise inherit from the h1, and its bottom margin replaces the
   h1's top margin. */
.page-hero__title--topic { margin-top: 0; }
.page-hero__title--topic > span { display: block; }
.page-hero__title--topic > .eyebrow {
  line-height: 1.65;
  text-wrap: wrap;
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  margin-top: var(--space-4);
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 42rem;
}

.page-hero__actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Entrance on load ---------- */
.page-hero__inner > * {
  opacity: 0;
  animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.page-hero__inner > *:nth-child(1) { animation-delay: 0.08s; }
.page-hero__inner > *:nth-child(2) { animation-delay: 0.18s; }
.page-hero__inner > *:nth-child(3) { animation-delay: 0.30s; }
.page-hero__inner > *:nth-child(4) { animation-delay: 0.42s; }
/* h1 with the topic eyebrow: its two lines take the first two steps, so the
   subtitle and buttons keep their third and fourth */
.page-hero__title--topic { opacity: 1; animation: none; }
.page-hero__title--topic > span {
  opacity: 0;
  animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.page-hero__title--topic > .eyebrow { animation-delay: 0.08s; }
.page-hero__title--topic > .page-hero__title-text { animation-delay: 0.18s; }
.page-hero__title--topic + .page-hero__subtitle,
.page-hero__title--topic + .page-hero__actions { animation-delay: 0.30s; }
.page-hero__title--topic + .page-hero__subtitle + .page-hero__actions { animation-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) {
  .page-hero__inner > *,
  .page-hero__title--topic > span { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; }
}
