/* ==========================================================================
   Why Somerset County — sub-page chrome
   The hero photo with the header overlaid, and the breadcrumb beneath it. Every
   section's landing and sub-pages share this; only the accent changes, so the
   section stylesheet sets --ws-section-accent (Fun amber, Life green) and this
   file never names a colour of its own.
   Loaded after css/styles.css, before the section stylesheet.
   Design reference: the section comps, page 1 of each
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero — full-bleed photo, header overlaid, amber rule instead of a wave
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Comp: photo runs 147 - 715 with the header band overlaid on its top third,
     so the hero box is 714 tall. The title centres in the open area below the
     swoop's dip (262 - 714 at 1440), not in the hero box as a whole. */
  min-height: clamp(420px, 49.58vw, 714px);
  padding-bottom: clamp(74px, 12.15vw, 175px);
  background: #1d3b2a;
  border-bottom: clamp(5px, .56vw, 8px) solid var(--ws-section-accent);
  overflow: hidden;
}
.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
/* The comp darkens the hero photo; solved at rgba(0,0,0,.23) by regressing the
   rendered page against the placed image. */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .23);
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 1; width: 100%; }

.page-hero__title {
  margin: 0;
  font-family: var(--ws-font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.944vw, 6.25rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .35);
}

/* "FUN" is amber with a white outline copy offset up-left, as on the Home hero */
/* inline-block, so the absolutely-positioned outline copy anchors to this
   element's own text box. As a plain inline it anchored to the line box top,
   which threw the vertical offset far past the intended -.06em. */
.page-hero__accent {
  position: relative;
  display: inline-block;
  color: var(--ws-section-accent);
  text-shadow: none;
}
.page-hero__accent::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  transform: translate(-.06em, -.06em);
  color: transparent;
  -webkit-text-stroke: .03em #fff;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb-bar { padding: clamp(12px, 1.4vw, 20px) 0; }

.breadcrumb-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .875rem;
  color: #939598;
}
.breadcrumb-bar__list li + li::before {
  content: ">";
  margin-right: .5em;
  color: #939598;
}
.breadcrumb-bar__list a { color: #939598; text-decoration: none; }
.breadcrumb-bar__list a:hover { color: var(--ws-teal); text-decoration: underline; }
.breadcrumb-bar__list [aria-current="page"] { font-weight: 700; color: var(--ws-section-accent); }
