/* Full-width homepage visual banner above existing hero content */
.homepage-top-visual-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #eaf6fb;
}

.homepage-top-visual-banner img {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 720px);
  object-fit: cover;
  object-position: center center;
}

.homepage-top-visual-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 34, 73, 0.00) 58%, rgba(4, 34, 73, 0.08) 100%);
}

@media (max-width: 760px) {
  .homepage-top-visual-banner img {
    height: clamp(360px, 82vw, 620px);
    object-position: center center;
  }
}


/* Editable text/CTA layer for the top homepage banner */
.homepage-top-visual-banner {
  isolation: isolate;
}

.homepage-top-visual-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 34, 73, 0.70) 0%, rgba(4, 34, 73, 0.48) 28%, rgba(4, 34, 73, 0.16) 54%, rgba(4, 34, 73, 0.00) 74%);
}

.homepage-top-visual-banner::after {
  z-index: 2;
}

.homepage-top-banner-content {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, calc(100% - 48px));
  color: #ffffff;
}

.homepage-top-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.homepage-top-banner-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #96d8c6;
  box-shadow: 0 0 0 5px rgba(150, 216, 198, 0.18);
}

.homepage-top-banner-content h1 {
  margin: 0;
  max-width: 11ch;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.052em;
  text-shadow: 0 12px 34px rgba(4, 34, 73, 0.24);
}

.homepage-top-banner-content p:not(.homepage-top-banner-eyebrow) {
  max-width: 44ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.68;
}

.homepage-top-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--aim-navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.homepage-top-banner-cta:hover,
.homepage-top-banner-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

@media (max-width: 760px) {
  .homepage-top-visual-banner::before {
    background:
      linear-gradient(180deg, rgba(4, 34, 73, 0.68) 0%, rgba(4, 34, 73, 0.38) 46%, rgba(4, 34, 73, 0.08) 78%);
  }

  .homepage-top-banner-content {
    left: 22px;
    right: 22px;
    top: 42px;
    transform: none;
    width: auto;
  }

  .homepage-top-banner-content h1 {
    max-width: 10.5ch;
    font-size: clamp(38px, 11vw, 54px);
  }

  .homepage-top-banner-content p:not(.homepage-top-banner-eyebrow) {
    max-width: 31ch;
    font-size: 15px;
    line-height: 1.58;
  }

  .homepage-top-banner-cta {
    min-height: 48px;
    padding: 0 22px;
  }
}

@media (max-width: 420px) {
  .homepage-top-banner-content {
    top: 30px;
  }

  .homepage-top-banner-content h1 {
    font-size: 36px;
  }

  .homepage-top-banner-content p:not(.homepage-top-banner-eyebrow) {
    font-size: 14px;
  }
}


/* Accessibility/readability correction for top hero text and CTA */
.homepage-top-visual-banner::before {
  background:
    linear-gradient(90deg, rgba(4, 34, 73, 0.82) 0%, rgba(4, 34, 73, 0.68) 32%, rgba(4, 34, 73, 0.28) 58%, rgba(4, 34, 73, 0.04) 78%) !important;
}

.homepage-top-banner-content h1,
.homepage-top-banner-content p,
.homepage-top-banner-eyebrow {
  color: #ffffff !important;
}

.homepage-top-banner-content h1 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.homepage-top-banner-content p:not(.homepage-top-banner-eyebrow) {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.homepage-top-banner-cta {
  min-width: 190px;
  color: #042249 !important;
  background: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}



.homepage-top-banner-cta:focus-visible {
  outline: 3px solid #96d8c6;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .homepage-top-visual-banner::before {
    background:
      linear-gradient(180deg, rgba(4, 34, 73, 0.78) 0%, rgba(4, 34, 73, 0.62) 48%, rgba(4, 34, 73, 0.18) 82%) !important;
  }

  .homepage-top-banner-content {
    max-width: 86%;
  }

  .homepage-top-banner-content h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
  }

  .homepage-top-banner-cta {
    min-width: 178px;
    width: auto;
    padding: 0 24px;
  }
}

@media (max-width: 420px) {
  .homepage-top-banner-cta {
    min-width: 168px;
  }
}
