/* Static replacement for the Slider Revolution hero.
   Hand-written for the WordPress migration - no plugin, no AJAX. */

.sm-hero {
  position: relative;
  overflow: hidden;
  height: 685px;
  background: #08172e;
  isolation: isolate;
}

.sm-hero__track {
  position: absolute;
  inset: 0;
}

.sm-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sm-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* keeps the white type legible over the photography */
.sm-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 23, 46, .82) 0%, rgba(8, 23, 46, .55) 45%, rgba(8, 23, 46, .15) 100%);
}

.sm-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.sm-hero__eyebrow {
  margin: 0 0 14px;
  color: #00b3ad;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sm-hero__title {
  margin: 0 0 28px;
  color: #fff;
  font-size: 64px;
  line-height: 1.12;
  font-weight: 700;
  max-width: 15ch;
}

.sm-hero__title span {
  display: block;
}

.sm-hero__title em {
  font-style: normal;
  color: #00b3ad;
}

.sm-hero__btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 4px;
  background: #00329d;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.sm-hero__btn:hover,
.sm-hero__btn:focus-visible {
  background: #de2068;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------- controls ---------------- */

.sm-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}

.sm-hero__nav:hover,
.sm-hero__nav:focus-visible {
  background: #00329d;
}

.sm-hero__nav--prev { left: 24px; }
.sm-hero__nav--next { right: 24px; }

.sm-hero__dots {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-hero__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.sm-hero__dots button.is-active {
  background: #00b3ad;
  transform: scale(1.35);
}

.sm-hero__nav:focus-visible,
.sm-hero__dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1240px) {
  .sm-hero { height: 500px; }
  .sm-hero__title { font-size: 48px; }
}

@media (max-width: 1024px) {
  .sm-hero { height: 400px; }
  .sm-hero__title { font-size: 38px; }
  .sm-hero__eyebrow { font-size: 16px; }
}

@media (max-width: 778px) {
  .sm-hero { height: 350px; }
  .sm-hero__title { font-size: 30px; max-width: 100%; }
  .sm-hero__btn { padding: 13px 28px; font-size: 15px; }
  .sm-hero__nav { width: 40px; height: 40px; font-size: 20px; }
  .sm-hero__nav--prev { left: 10px; }
  .sm-hero__nav--next { right: 10px; }
  .sm-hero__slide::after {
    background: linear-gradient(90deg, rgba(8, 23, 46, .85) 0%, rgba(8, 23, 46, .7) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hero__slide { transition: none; }
  .sm-hero__btn:hover { transform: none; }
}
