/* =====================================================================
   Page Hero — shared inner-page banner
   Depends on: tokens.css (--d3-*)
===================================================================== */

.b-hero {
  --b-hero-bg: url('../../images/contact.jpg');
  --b-hero-overlay: rgba(3, 16, 49, .68);
  --b-hero-min-h: 420px;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--b-hero-min-h);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  overflow: hidden;

  font-family: var(--d3-ff-body);
  color: var(--d3-white);

  background-image: var(--b-hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.b-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--b-hero-overlay);
}

/* ------------------------------------------------------------
   Wrapper — self-contained so the hero works outside .b-about.
   Flex column + align-items:center keeps every line of the title
   optically centred even if a page stylesheet resets margins
   (e.g. the legacy `.b-about h1 { margin: 0 }`).
------------------------------------------------------------ */
.b-hero .b-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--d3-maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------------------------------------
   Title
------------------------------------------------------------ */
.b-hero h1 {
  margin: 0;
  max-width: 32ch;
  color: var(--d3-white);
  font-family: var(--d3-ff-disp);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* ------------------------------------------------------------
   Supporting line
------------------------------------------------------------ */
.b-hero__sub {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
}

/* ------------------------------------------------------------
   Secondary line (category, product group, breadcrumb-ish)
------------------------------------------------------------ */
.b-hero__meta {
  margin: 1.1rem 0 0;
  font-family: var(--d3-ff-nav);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.b-hero__meta a {
  color: var(--d3-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  transition: border-color .2s, color .2s;
}

.b-hero__meta a:hover,
.b-hero__meta a:focus {
  color: var(--d3-white);
  border-bottom-color: var(--d3-brand);
}

/* ------------------------------------------------------------
   Modifiers
------------------------------------------------------------ */
.b-hero--flush {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  min-height: 0;
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 768px) {
  .b-hero {
    --b-hero-min-h: 300px;
    padding: clamp(3rem, 12vw, 4.5rem) 0;
  }

  .b-hero__sub {
    font-size: .98rem;
  }
}

@media (max-width: 480px) {
  .b-hero {
    --b-hero-min-h: 240px;
  }
}

/* ------------------------------------------------------------
   Print / high-contrast safety: keep the title readable
------------------------------------------------------------ */
@media print {
  .b-hero {
    min-height: 0;
    padding: 1.5rem 0;
    background-image: none;
    color: #000;
  }

  .b-hero::before {
    display: none;
  }

  .b-hero h1,
  .b-hero__sub,
  .b-hero__meta {
    color: #000;
  }
}