/* Claims Saathi — Page heroes and breadcrumbs
   -----------------------------------------------------------------------------
   Single owner for the inner-page hero and the breadcrumb trail.

   Hero styling used to live in layout.css, pages.css, visuals.css and
   responsive.css at once, under four different class names (page-hero,
   service-hero, stakeholder-hero, resources-hero). Those rules disagreed about
   which element was the grid, so the breadcrumb could land inside the grid and
   take the first cell. Everything now lives here, with one structure:

     section.page-hero[.page-hero--split]
       div.container
         nav.breadcrumb                 ← above the grid, never inside it
         div.page-hero__inner           ← the grid
           div.page-hero__content
           div.page-hero__media         ← only when --split

   Loaded after the other stylesheets so nothing else can fight it.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--gradient-glow), var(--gradient-hero);
  color: var(--white);
}

/* Soft light treatment, kept for any page that wants a lighter opening. */
.page-hero--soft {
  background: var(--gradient-soft);
  color: var(--text-primary);
}

.page-hero > .container {
  position: relative;
  z-index: var(--z-base);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
  padding-block: 0;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--border);
  margin-left: 0.1rem;
}

.breadcrumb__list a {
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.breadcrumb__list a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.breadcrumb__list [aria-current="page"] {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* On the dark hero the default navy text was invisible against the gradient. */
.breadcrumb--on-dark .breadcrumb__list {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb--on-dark .breadcrumb__list a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb--on-dark .breadcrumb__list a:hover {
  color: var(--white);
}

.breadcrumb--on-dark .breadcrumb__list [aria-current="page"] {
  color: var(--white);
}

.breadcrumb--on-dark .breadcrumb__list li:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.38);
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.page-hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

/* Stacked heroes keep a readable measure instead of stretching the container. */
.page-hero:not(.page-hero--split) .page-hero__content {
  max-width: 52rem;
}

.page-hero__content {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */

.page-hero__content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}

.page-hero__content .eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

.page-hero--soft .page-hero__content .eyebrow {
  background: rgba(8, 123, 211, 0.08);
  border-color: rgba(8, 123, 211, 0.16);
  color: var(--blue-700);
}

.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero--soft h1 {
  color: var(--text-primary);
}

.page-hero .lead {
  margin: var(--space-5) 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  max-width: 42rem;
}

.page-hero--soft .lead {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Meta row (reading time, review date)
   -------------------------------------------------------------------------- */

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.74);
}

.page-hero__meta strong {
  color: var(--white);
  font-weight: var(--fw-semibold);
}

.page-hero--soft .page-hero__meta {
  border-top-color: var(--border);
  color: var(--text-muted);
}

.page-hero--soft .page-hero__meta strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

/* Outline buttons need a light edge against the gradient. */
.page-hero:not(.page-hero--soft) .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.page-hero:not(.page-hero--soft) .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

.page-hero__media {
  min-width: 0;
  margin: 0;
}

.page-hero__media .media-frame {
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
}

.page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Two-column split
   -------------------------------------------------------------------------- */

@media (min-width: 960px) {
  .page-hero--split .page-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-hero--split h1 {
    max-width: 20ch;
  }

  .page-hero--split .lead {
    max-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 639px) {
  .page-hero {
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  .page-hero h1 {
    font-size: var(--fs-4xl);
  }

  .page-hero .lead {
    font-size: var(--fs-base);
  }

  .page-hero__actions {
    gap: var(--space-2);
  }

  .page-hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .breadcrumb__list {
    font-size: var(--fs-xs);
  }
}
