.page-header {
    width: 100%;
    height: 40vh; /* overwritten by JS if data-height exists */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 0;
  }


  .page-header[data-offset] {
    background-position-y: var(--image-offset, 0px);
  }

  .header-text {
    text-align: center;
    padding: 2rem;
    z-index: 1;
  }

  .header-text h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  }

  /* ===============================
   Public site – Parallax Header Overlay (logo positioning like webapp)
   =============================== */

/* Make parallax sections able to host overlay content */
.parallax {
  position: relative;
}

/* Optional dark overlay */
.parallax .header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* This is the overlay container (logo/text) */
.parallax .header-text {
  position: absolute;
  z-index: 2;
  padding: 0;
  margin: 0;
  text-align: center;

  /* default = center */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* POSITION PRESETS ---------------------------------- */
.parallax .header-text--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.parallax .header-text--center-left {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
}

.parallax .header-text--bottom-left {
  bottom: 6%;
  left: 5%;
  top: auto;
  transform: none;
  text-align: left;
}

.parallax .header-text--bottom-right {
  bottom: 6%;
  right: 5%;
  left: auto;
  top: auto;
  transform: none;
  text-align: right;
}

.parallax .header-text--bottom-center {
  bottom: 6%;
  left: 50%;
  top: auto;
  transform: translateX(-50%);
  text-align: center;
}

.parallax .header-text--top-left {
  top: 8%;
  left: 5%;
  transform: none;
  text-align: left;
}

.parallax .header-text--top-right {
  top: 8%;
  right: 5%;
  left: auto;
  transform: none;
  text-align: right;
}

/* LOGO SIZE CONTROL ---------------------------------- */
.parallax .header-logo {
  display: block;
  margin: 0 auto;
  width: 410px;
  height: auto;
  max-width: min(70vw, 410px);
  max-height: 110px;
  object-fit: contain;
}

/* Small screens: shrink logo */
@media (max-width: 600px) {
  .parallax .header-logo {
    width: 260px;
    max-height: 80px;
  }
}
