/* Homepage hero adapted from the supplied hero.html concept. */
.hero-navbar {
  position: fixed;
  inset: 34px 0 auto;
  z-index: 1000;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 7, 8, .58), rgba(5, 7, 8, .08));
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-navbar.scrolled {
  background: rgba(10, 12, 13, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-navbar .hero-nav {
  width: min(92%, 1360px);
  min-height: 94px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 26px;
}

.hero-navbar .brand,
.hero-navbar .brand:visited {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: #fff;
}

.hero-navbar .brand::before { content: none; display: none; }
.hero-navbar .brand > .brand-lockup,
.hero-navbar .brand-text { display: flex; }
.hero-navbar .brand-lockup { align-items: center; gap: 13px; }
.hero-navbar .brand-text { flex-direction: column; align-items: flex-start; gap: 4px; }

.hero-navbar .ray-logo {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.hero-navbar .brand-main {
  display: block;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .24em;
}

.hero-navbar .brand-sub {
  display: block;
  font-size: .57rem;
  line-height: 1;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .88;
}

.hero-navbar nav { justify-self: center; }
.hero-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.65vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-navbar .nav-links a,
.hero-navbar .nav-links a:visited {
  position: relative;
  display: block;
  padding: 9px 1px;
  color: rgba(255, 255, 255, .93);
  font-size: .83rem;
  white-space: nowrap;
}

.hero-navbar .nav-links a::after { bottom: 2px; height: 1px; background: #fff; }
.hero-navbar .nav-links a:hover,
.hero-navbar .nav-links a:focus-visible { color: #fff; }
.hero-navbar .nav-actions { justify-self: end; }

.hero-navbar .icon-btn {
  color: #fff;
  background: rgba(0, 0, 0, .12);
  border-color: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.hero-navbar .icon-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, .28);
  border-color: #fff;
}

.hero-navbar .cart-count { color: #111; background: #fff; }

.hero-new {
  position: relative;
  min-height: max(720px, 100svh);
  padding: 128px 0 42px;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .19), transparent 22%, transparent 72%, rgba(0, 0, 0, .22)),
    linear-gradient(90deg, rgba(12, 12, 11, .05), transparent 46%, rgba(6, 8, 9, .14)),
    url("hero_bim.webp") center / cover no-repeat;
}

.hero-new::before { content: none; }
.hero-new::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 20%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(9, 10, 10, .26));
}

.hero-new .hero-content {
  position: relative;
  z-index: 2;
  width: min(92%, 1360px);
  min-height: calc(max(720px, 100svh) - 170px);
  margin-inline: auto;
}

.hero-new .hero-copy {
  position: absolute;
  top: 13.5%;
  left: 14.4%;
  width: min(790px, 64vw);
  max-width: none;
  color: #101112;
}

.hero-new h1 {
  max-width: 790px;
  margin: 0;
  color: #101112;
  font-size: clamp(3.4rem, 5.25vw, 5.75rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}

.hero-new h1 > span { display: block; color: #101112; font-weight: 400; }
.hero-new h1 strong { display: inline; color: #fff; font-weight: 400; }

@media (min-width: 721px) {
  .hero-new h1 > span { white-space: nowrap; }
}
.hero-new .hero-support-row {
  width: min(790px, 64vw);
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 505px) 1fr;
  align-items: end;
  gap: 28px;
}

.hero-new .hero-text {
  max-width: 505px;
  margin: 0;
  color: #c8cbca;
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.hero-new .hero-cta {
  width: min(260px, 100%);
  min-height: 62px;
  margin: 0;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: #111;
  font-size: 1.05rem;
  font-weight: 750;
  transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.hero-new .hero-cta:hover,
.hero-new .hero-cta:focus-visible {
  color: #151719;
  background: #c8a96a;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(121, 96, 50, .24);
}

.hero-new .hero-cta-arrow { font-size: 1.5rem; font-weight: 400; line-height: 1; }
.hero-new .hero-side-note {
  position: absolute;
  top: 48%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, .9);
  font-size: .88rem;
  line-height: 1.4;
}

.hero-new .hero-side-note::after {
  content: "";
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, .58);
}

.hero-new .hero-stats {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(650px, 59vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: #fff;
  background: rgba(8, 10, 10, .25);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-new .hero-stat {
  min-width: 0;
  padding: 15px 19px;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.hero-new .hero-stat:last-child { border-right: 0; }
.hero-new .hero-stat-value {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: clamp(1.18rem, 1.8vw, 1.52rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-new .hero-stat-value .stat-number { color: inherit; font: inherit; }
.hero-new .rating-star {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  object-fit: contain;
}

.hero-new .hero-stat-label {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .77);
  font-size: .72rem;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .hero-navbar .hero-nav { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-navbar nav { order: 3; }
  .hero-navbar .nav-actions {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
  }
  .hero-navbar .menu-btn { display: grid; }
  .hero-navbar .nav-links {
    position: fixed;
    top: 128px;
    left: 4%;
    right: 4%;
    width: auto;
    max-height: calc(100dvh - 148px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    overflow-y: auto;
    background: rgba(242, 240, 239, .985);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
  }

  .hero-navbar .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-navbar .nav-links a,
  .hero-navbar .nav-links a:visited {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    color: #27383e;
    border-radius: 10px;
    font-size: .96rem;
    font-weight: 700;
  }

  .hero-navbar .nav-links a:hover,
  .hero-navbar .nav-links a:focus-visible { color: #27383e; background: rgba(21, 23, 25, .08); }
  .hero-navbar .nav-links a::after { display: none !important; }
  .hero-navbar .nav-links .region-nav { width: 100%; justify-content: center; }
  .hero-navbar .nav-links .region-nav a { width: auto; flex: 1 1 0; justify-content: center; }
  .hero-new .hero-copy { left: 7%; }
}

@media (max-width: 720px) {
  .hero-navbar .hero-nav { min-height: 76px; }
  .hero-navbar .ray-logo { width: 41px; height: 41px; flex-basis: 41px; }
  .hero-navbar .brand-main { font-size: 1.12rem; letter-spacing: .19em; }
  .hero-navbar .brand-sub { font-size: .45rem; letter-spacing: .24em; }
  .hero-navbar .nav-actions { gap: 8px; }
  .hero-navbar .icon-btn { width: 42px; height: 42px; }
  .hero-navbar .nav-links { top: 110px; max-height: calc(100dvh - 126px); }
  .hero-new {
    min-height: 810px;
    padding: 110px 0 26px;
    background-color: #626a73;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, .19), transparent 22%, transparent 72%, rgba(0, 0, 0, .22)),
      linear-gradient(90deg, rgba(12, 12, 11, .05), transparent 46%, rgba(6, 8, 9, .14)),
      url("hero_bim.webp");
    background-position: center, center, 37% bottom;
    background-size: 100% 100%, 100% 100%, auto 86%;
    background-repeat: no-repeat;
  }

  body.has-announcement .hero-new { padding-top: 110px; }
  .hero-new .hero-content { min-height: 674px; }
  .hero-new .hero-copy { top: 13%; left: 0; width: min(88%, 385px); }
  .hero-new h1 { max-width: 355px; font-size: clamp(2.75rem, 13vw, 4.15rem); line-height: .93; }
  .hero-new .hero-support-row { width: 100%; margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 22px; }
  .hero-new .hero-text { max-width: 350px; margin: 0; font-size: .95rem; line-height: 1.5; }
  .hero-new .hero-cta { width: 226px; min-height: 56px; margin-top: 25px; padding-inline: 21px; font-size: .95rem; }
  .hero-new .hero-side-note { display: none; }
  .hero-new .hero-stats {
    left: 0;
    right: auto;
    width: calc(100vw - 40px);
    max-width: 100%;
    overflow: hidden;
  }
  .hero-new .hero-stat { padding: 13px 10px; }
  .hero-new .hero-stat-value { min-height: 23px; font-size: clamp(.87rem, 3.8vw, 1.08rem); }
  .hero-new .hero-stat-value { white-space: normal; }
  .hero-new .rating-star { width: 19px; height: 19px; flex-basis: 19px; }
  .hero-new .hero-stat-label { font-size: .61rem; }
}

@media (max-width: 430px) {
  .announcement-bar { font-size: .54rem; letter-spacing: .02em; }
  .hero-navbar .brand-lockup { gap: 8px; }
  .hero-navbar .ray-logo { width: 36px; height: 36px; flex-basis: 36px; }
  .hero-navbar .brand-main { font-size: .94rem; }
  .hero-navbar .brand-sub { display: none; }
  .hero-navbar .icon-btn { width: 40px; height: 40px; }
  .hero-new {
    min-height: 770px;
    background-position: center, center, 37% bottom;
    background-size: 100% 100%, 100% 100%, auto 86%;
  }
  .hero-new .hero-content { min-height: 635px; }
  .hero-new .hero-copy { top: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-new .hero-cta,
  .hero-navbar,
  .hero-navbar .nav-links { transition: none; }
}
