/*
  Page hero — reusable subpage header banner (breadcrumb + title over a
  full-bleed photo). Introduced with szerelvenygyartas.html, the first
  built subpage; reuse this file/class set for the other Megoldásaink
  pages and any future inner page rather than rebuilding a one-off hero.

  Shares the homepage hero's photo/overlay treatment (--color-overlay-navy
  at --overlay-hero-opacity, tokens.css) but shorter, with no banner strip
  beneath it — subpages don't carry the homepage's founding-year banner.
*/

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 34vw, 420px);
  display: flex;
  align-items: flex-end;
}

.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 77, 0.85);
}

.page-hero__content {
  position: relative;
  z-index: var(--z-elevated);
  width: 100%;
  padding-block: var(--space-6) var(--space-8);
}

.page-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-slate-200);
}

.page-hero__breadcrumb a {
  transition: color var(--duration-fast) var(--ease-out);
}

.page-hero__breadcrumb a:hover,
.page-hero__breadcrumb a:focus-visible {
  color: var(--color-white);
}

.page-hero__breadcrumb span[aria-current="page"] {
  color: var(--color-white);
}

.page-hero__title {
  margin-top: var(--space-4);
  max-width: 720px;
  color: var(--color-white);
  font-weight: var(--fw-black);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}

.page-hero__subline {
  max-width: 640px;
  margin-top: var(--space-4);
  color: var(--color-white);
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
  opacity: 0.92;
}

/* ---- Tablet / mobile (<= 768px) ---- */
@media (max-width: 768px) {
  .page-hero__content {
    padding-block: var(--space-5) var(--space-7);
  }
}

/* ---- Mobile (<= 480px) ---- */
@media (max-width: 480px) {
  .page-hero {
    min-height: 320px;
  }
}

/* A subline hidden with the `hidden` attribute (HIDDEN-ON-PURPOSE, e.g.
   minositeseink.html) keeps its space, so the title stays where it was
   instead of dropping to the bottom. visibility: hidden also removes it
   from the accessibility tree. Beats base.css `[hidden] { display: none
   !important }` on specificity. */
.page-hero__subline[hidden] {
  display: block !important;
  visibility: hidden;
}
