/* MediBay R04 hero revision — homepage only. Approved logo assets are unchanged. */
#mb-wireframe .r4-immersive-hero {
  min-height: clamp(730px, calc(100svh - 84px), 900px);
  background: #102330;
}
#mb-wireframe .r4-immersive-hero .mb-arrival-shade {
  background:
    linear-gradient(180deg, rgba(9,24,37,.8) 0%, rgba(9,24,37,.28) 22%, transparent 44%, rgba(9,24,37,.32) 100%),
    linear-gradient(90deg, rgba(9,24,37,.91) 0%, rgba(9,24,37,.74) 33%, rgba(9,24,37,.26) 64%, rgba(9,24,37,.06) 100%);
}
#mb-wireframe .r4-hero-nav {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 24px 56px;
  gap: 26px;
}
/* Logo sits directly on the hero image; a faint dark fade behind the nav keeps it legible without a solid box or glow. */
#mb-wireframe .r4-hero-nav .mb-brand {
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-height: 0;
}
#mb-wireframe .r4-hero-nav .mb-original-logo { width: 56px; height: 56px; }
/* Subtle dark fade behind the whole nav so the logo and links read clearly over busy parts of the photo. */
#mb-wireframe .r4-hero-nav::after {
  content: "";
  position: absolute;
  inset: -10px -56px 40% -56px;
  background: linear-gradient(180deg, rgba(9,24,37,.62) 0%, rgba(9,24,37,.22) 58%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
#mb-wireframe .r4-hero-nav nav { gap: 28px; }
#mb-wireframe .r4-hero-nav nav>button {
  color: #fff;
  text-shadow: 0 1px 8px rgba(3,14,24,.25);
}
#mb-wireframe .r4-hero-nav nav>.r4-nav-patient {
  color: #fff;
  border-color: rgba(255,255,255,.65);
  background: rgba(9,24,37,.23);
}
#mb-wireframe .r4-hero-nav nav>.r4-menu {
  color: #fff;
  border-color: rgba(255,255,255,.65);
  background: rgba(9,24,37,.23);
}
#mb-wireframe .r4-hero-nav nav>button:hover { background: rgba(255,255,255,.08); }
#mb-wireframe .r4-hero-nav nav>button:focus-visible,
#mb-wireframe .r4-immersive-hero .r4-hero-link:focus-visible {
  outline: 3px solid #c6fff4;
  outline-offset: 5px;
}
#mb-wireframe .r4-immersive-hero .mb-arrival-copy {
  flex: 1;
  justify-content: center;
  padding: 38px 56px 72px;
  max-width: 730px;
}
#mb-wireframe .r4-immersive-hero h1 {
  font-size: clamp(52px,5.55vw,78px);
  line-height: 1.04;
  letter-spacing: -2.6px;
}
/* Navigation focuses this non-interactive heading for assistive technology, not as an input. */
#mb-wireframe .r4-immersive-hero h1[tabindex="-1"]:focus { outline: none; }
#mb-wireframe .r4-immersive-hero .mb-arrival-copy>p {
  max-width: 440px;
  font-size: 21px;
  line-height: 1.65;
  margin: 26px 0 32px;
}
#mb-wireframe .r4-immersive-hero .mb-arrival-bottom { padding: 0 56px 28px; }
@media (max-width:1050px) {
  #mb-wireframe .r4-hero-nav { padding: 22px 36px; }
  #mb-wireframe .r4-hero-nav nav { gap: 20px; }
  #mb-wireframe .r4-hero-nav .mb-original-logo { width: 50px; height: 50px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-copy { padding: 40px 36px 64px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-bottom { padding: 0 36px 26px; }
}
@media (max-width:760px) {
  #mb-wireframe .r4-immersive-hero { min-height: clamp(660px, calc(100svh - 100px), 820px); }
  #mb-wireframe .r4-hero-nav { padding: 18px 22px; gap: 14px; }
  #mb-wireframe .r4-hero-nav .mb-brand { padding: 0; border-radius: 0; }
  #mb-wireframe .r4-hero-nav .mb-original-logo { width: 44px; height: 44px; }
  #mb-wireframe .r4-hero-nav::after { inset: -8px -22px 44% -22px; }
  #mb-wireframe .r4-hero-nav .mb-original-logo { width: 44px; height: 44px; }
  #mb-wireframe .r4-hero-nav nav { gap: 14px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-media img { object-position: 66% center; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-shade {
    background: linear-gradient(180deg, rgba(9,24,37,.78) 0%, rgba(9,24,37,.18) 23%, rgba(9,24,37,.64) 45%, rgba(9,24,37,.95) 80%);
  }
  #mb-wireframe .r4-immersive-hero .mb-arrival-copy {
    padding: 125px 25px 36px;
    justify-content: flex-end;
    max-width: none;
  }
  #mb-wireframe .r4-immersive-hero h1 { font-size: 49px; line-height: 1.06; letter-spacing: -1.7px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-copy>p { font-size: 18px; max-width: 370px; margin: 22px 0 26px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-bottom { padding: 0 25px 24px; }
}
@media (max-width:380px) {
  #mb-wireframe .r4-hero-nav { padding: 16px; gap: 10px; }
  #mb-wireframe .r4-hero-nav .mb-original-logo { width: 40px; height: 40px; }
  #mb-wireframe .r4-hero-nav nav { gap: 8px; }
  #mb-wireframe .r4-immersive-hero h1 { font-size: 42px; letter-spacing: -1.3px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-copy { padding: 100px 20px 30px; }
  #mb-wireframe .r4-immersive-hero .mb-arrival-bottom { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  #mb-wireframe .r4-immersive-hero { scroll-behavior: auto; }
}
