/*
  AW China Access V33 launch refinements
  - improves subpage hero readability
  - aligns heading scale with the homepage
  - protects mobile navigation and long headings
*/

body.cba-page .hero-overlay,
body.cba-page .cs12-hero::before,
body.cba-page .v19-hero::before {
  opacity: 1;
}

body.cba-page .hero-overlay {
  background: linear-gradient(90deg, rgba(5, 26, 36, .88) 0%, rgba(5, 26, 36, .66) 52%, rgba(5, 26, 36, .42) 100%);
}

body.cba-page .hero-copy,
body.cba-page .hero-inner,
body.cba-page .cs12-hero-grid,
body.cba-page .v19-hero-grid {
  position: relative;
  z-index: 3;
}

body.cba-page .hero-copy h1,
body.cba-page .hero-inner h1,
body.cba-page .cs12-hero h1,
body.cba-page .v19-hero h1 {
  color: #fff;
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}

body.cba-page .hero-copy p,
body.cba-page .hero-inner > p,
body.cba-page .cs12-hero p,
body.cba-page .v19-hero-copy p {
  color: rgba(255, 255, 255, .88);
}

body.cba-page .brand {
  white-space: nowrap;
}

.form-success {
  margin-top: 18px;
  color: #8a2d42;
  font-weight: 700;
}

@media (max-width: 760px) {
  body.cba-page .hero-copy h1,
  body.cba-page .hero-inner h1,
  body.cba-page .cs12-hero h1,
  body.cba-page .v19-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1;
  }

  body.cba-page .site-nav {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  body.cba-page .hero,
  body.cba-page .cs12-hero,
  body.cba-page .v19-hero {
    min-height: auto;
  }

  body.cba-page .request-form input,
  body.cba-page .request-form select,
  body.cba-page .request-form textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
