/* ==========================================================================
   Component — Hero
   --------------------------------------------------------------------------
   Editorial page opener: kicker + headline inside one <h1>, a lead, a CTA
   group and an optional compact aside.

   <section class="hero" aria-labelledby="hero-title">
     <div class="container hero__grid">
       <div class="hero__content">
         <h1 class="hero__title" id="hero-title">
           <span class="hero__kicker type-eyebrow">…</span>
           <span class="hero__headline">
             <span class="hero__line">…</span> <span class="hero__line">…</span>
           </span>
         </h1>
         <p class="hero__lead">…</p>
         <div class="cluster hero__actions">…buttons…</div>
       </div>
       <aside class="hero__aside" aria-labelledby="…">…</aside>
     </div>
   </section>

   Variant: --page  for inner pages (Services, About…): the headline uses
   the h1 role instead of display, since it is usually a longer sentence.

   The kicker sits inside the <h1> so the heading carries the full meaning
   (who + what) for search engines and screen readers, while it still reads
   as a small label. .hero__line breaks onto its own line from md upward.
   WordPress: template-parts/hero.php
   ========================================================================== */

.hero {
  padding-block: var(--space-section-sm);
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 64em) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: end;
    gap: var(--space-9);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__kicker {
  color: var(--color-accent);
}

.hero__headline {
  font-family: var(--type-display-family);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-leading);
  letter-spacing: var(--type-display-tracking);
}

.hero--page .hero__headline {
  max-inline-size: 22ch;
  font-family: var(--type-h1-family);
  font-size: var(--type-h1-size);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-leading);
  letter-spacing: var(--type-h1-tracking);
}

@media (min-width: 48em) {
  .hero__line {
    display: block;
  }
}

.hero__lead {
  max-inline-size: 60ch;
  color: var(--color-text-secondary);
  font-size: var(--type-body-large-size);
  line-height: var(--type-body-large-leading);
}

.hero__actions {
  --cluster-space: var(--space-3);
  padding-block-start: var(--space-2);
}

/* --------------------------------------------------------------------------
   Aside — a quiet, bordered list (e.g. who the agency works with).
   -------------------------------------------------------------------------- */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-start: var(--space-5);
  border-block-start: var(--border-width-strong) solid var(--color-text-primary);
}

.hero__aside-list {
  display: flex;
  flex-direction: column;
}

.hero__aside-list li {
  padding-block: var(--space-3);
  border-block-end: var(--border-width) solid var(--color-border);
  color: var(--color-text-primary);
  font-size: var(--type-body-small-size);
  line-height: var(--leading-snug);
}

.hero__aside-list li:last-child {
  border-block-end: 0;
}

/* Links inside the aside list (e.g. an on-page index) */
.hero__aside-list a {
  color: inherit;
  text-decoration-color: transparent;
}

.hero__aside-list a:hover,
.hero__aside-list a:focus-visible {
  color: var(--color-link-hover);
  text-decoration-color: currentColor;
}
