/* =========================
   Hero Banner Section
   Slick slider styled after thefirstokc.com:
   full-bleed slide image with a slow Ken Burns zoom, a dark gradient rising
   from the bottom, bottom-left aligned copy and round white dots.
========================= */
section#hero-banner.hero-banner {
  height: 90vh;
  padding: 0;
  position: relative;
  overflow: visible;
}

section#hero-banner .hero-container,
section#hero-banner .hero-slider,
section#hero-banner .slick-list,
section#hero-banner .slick-track,
section#hero-banner .slick-slide,
section#hero-banner .slick-slide > div,
section#hero-banner .slide-outer,
section#hero-banner .slide-bg,
section#hero-banner .slide-flex-wrapper {
  width: 100%;
  height: 100%;
}

section#hero-banner .hero-container {
  overflow: hidden;
}

section#hero-banner .slide-outer {
  position: relative;
  overflow: hidden;
}

section#hero-banner .hero-slider > .slick-slide:first-child {
  display: block;
  float: none;
}

/* Before slick initialises only the first slide should be visible. */
section#hero-banner .hero-slider:not(.slick-initialized) > .slick-slide:not(:first-child) {
  display: none;
}

/* -------- Slide background + Ken Burns -------- */
section#hero-banner .slide-bg {
  position: absolute;
  inset: 0;

}

section#hero-banner .slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.2);
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}

section#hero-banner .slick-active .slide-bg img {
  transform: scale(1);
}

section#hero-banner .slide-bg.desktop-bg {
  display: block;
}

section#hero-banner .slide-bg.mob-bg {
  display: none;
}

/* -------- Overlays --------
   .slide-overlay keeps the tint configured per slide in the admin;
   the ::after gradient is the fixed brand wash the reference design uses. */
section#hero-banner .slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

section#hero-banner .slide-outer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, var(--base-color) 0%, rgba(255, 255, 255, 0) 100%);
}

/* -------- Slide content -------- */
section#hero-banner .slide-flex-wrapper {
  position: relative;
  z-index: 2;
}

section#hero-banner .slide-container {
  max-width: 1560px;
  width: 100%;
  height: 100%;
  padding: 120px 15px 70px;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  text-align: left;
}

section#hero-banner .slide-content-box,
section#hero-banner .slide-content {
  display: block;
  width: 100%;
}

section#hero-banner .hero-title {
  margin: 0 0 10px;
}

section#hero-banner .hero-subtitle {
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 30px;
}

section#hero-banner .hero-content p:last-child {
  margin-bottom: 0;
}

section#hero-banner .section-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 35px;
}

/* -------- Dots -------- */
section#hero-banner ul.slick-dots {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  padding: 0 10px;
  margin: 0;
  list-style: none;
  text-align: center;
  z-index: 9;
}

section#hero-banner ul.slick-dots.hide-single-dot {
  display: none;
}

section#hero-banner ul.slick-dots li {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 8px;
  border-radius: 50%;
  overflow: hidden;
}

section#hero-banner ul.slick-dots li button {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 20px;
  text-align: center;
  background-color: var(--first-white);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--first-transition, 0.3s ease);
}

section#hero-banner ul.slick-dots li button::before {
  display: none;
}

section#hero-banner ul.slick-dots li.slick-active button,
section#hero-banner ul.slick-dots li button:hover {
  opacity: 1;
}

/* The reference hero navigates with dots only. */
section#hero-banner button.slick-arrow {
  display: none !important;
}
/* -------- Scroll-down chevron --------
   component-common.css renders .arrow as a 45px white circle with a bounce.
   The reference is a bare 16px chevron drawn from two borders, so the circle,
   the animation and the inner icon are all dropped here. */
section#hero-banner .bottom-section-link-wrapper {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
}

section#hero-banner .bottom-section-link {
  display: block;
  background: none;
  color: var(--first-white);
  opacity: 1;
}

section#hero-banner .bottom-section-link .arrow {
  width: 16px;
  height: 16px;
  background: none;
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0;
  transform: rotate(135deg);
  animation: none;
}

section#hero-banner .bottom-section-link .arrow svg {
  display: none;
}

/* -------- Ghost logo --------
   The outlined seal that straddles the bottom edge of the hero. The section is
   overflow:visible so it can hang into the next section, as on the live site. */
section#hero-banner::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 0;
  width: 17%;
  aspect-ratio: 389.055 / 392.515;
  z-index: 9;
  transform: translateY(25%);
  background: url("/wp-content/themes/first-v2/assets/images/first-ghost.svg") center / contain no-repeat;
  pointer-events: none;
}


/* =========================
   Responsive
========================= */
@media screen and (max-width: 992px) {
  section#hero-banner.hero-banner {
    height: 80vh;
  }

  section#hero-banner .slide-container {
    justify-content: center;
    padding: 100px 30px 70px;
    text-align: center;
  }

  section#hero-banner .section-buttons {
    justify-content: center;
  }

  section#hero-banner::after {
    width: 26%;
    right: 5%;
  }
}

@media screen and (max-width: 767px) {
  section#hero-banner::after {
    width: 34%;
    right: 4%;
    transform: translateY(35%);
  }

  section#hero-banner .slide-bg.mob-bg {
    display: block;
  }

  section#hero-banner .slide-bg.desktop-bg:not(.slider-mob) {
    display: none;
  }

  section#hero-banner .hero-title br {
    display: none;
  }

  section#hero-banner .hero-subtitle {
    letter-spacing: 2px;
  }

  section#hero-banner ul.slick-dots li,
  section#hero-banner ul.slick-dots li button {
    width: 14px;
    height: 14px;
  }

  section#hero-banner ul.slick-dots li {
    margin: 0 6px;
  }
}

/* =========================
   Hero Banner — Video Background
   Same shell as the slider hero: full-bleed embed, the brand gradient rising
   from the bottom and bottom-left copy. An iframe cannot object-fit, so the
   embed box is sized on one axis to the viewport and on the other to its 16:9
   partner value, with min-* forcing whichever axis would come up short.
========================= */
section#hero-banner.video-banner .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Poster and mobile still share the same box. */
section#hero-banner.video-banner .vimeo-thumbnail,
section#hero-banner.video-banner .slide-bg {
  position: absolute;
  inset: 0;
}

section#hero-banner.video-banner .vimeo-thumbnail img,
section#hero-banner.video-banner .slide-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

section#hero-banner.video-banner .slide-bg.mob-bg {
  display: none;
}

/* The embed sits above the poster once it paints. */
section#hero-banner.video-banner .video-iframe-wrapp,
section#hero-banner.video-banner .hero-wistia-background {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

section#hero-banner.video-banner .video-iframe-wrapp iframe,
section#hero-banner.video-banner .wistia_responsive_wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

section#hero-banner.video-banner .slide-overlay {
  z-index: 3;
}
.hero-bottom-after{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  z-index: 0;
  pointer-events: none;
}.hero-banner.video-banner .hero-bottom-after{
 z-index: 3;}

section#hero-banner.video-banner .video-container {
  position: relative;
  z-index: 5;
  max-width: 1560px;
  width: 100%;
  height: 100%;
  padding: 120px 15px 70px;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  text-align: left;
}

section#hero-banner.video-banner .video-content {
  display: block;
  width: 100%;
}

/* The reference video hero gives the subtitle far more air than the slider. */
section#hero-banner.video-banner .hero-subtitle {
  margin-bottom: 70px;
}

@media screen and (max-width: 1600px) {
  section#hero-banner.video-banner .hero-subtitle {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 992px) {
  section#hero-banner.video-banner .video-container {
    padding: 100px 30px 70px;
    text-align: center;
  }
}

/* Mobile matches the hero-8 video banner: a full-viewport still in place of the
   embed, with the copy held low rather than centred. Background video is wasted
   bandwidth and unreliable autoplay on phones. */
@media screen and (max-width: 767px) {
  section#hero-banner.video-banner,
  section#hero-banner.video-banner .video-wrapper {
    height: 100vh;
    min-height: 480px;
  }

  section#hero-banner.video-banner .video-iframe-wrapp,
  section#hero-banner.video-banner .vimeo-thumbnail,
  section#hero-banner.video-banner .hero-wistia-background,
  section#hero-banner.video-banner .wistia_responsive_padding {
    display: none;
  }

  section#hero-banner.video-banner .slide-bg.mob-bg {
    display: block;
  }

  section#hero-banner.video-banner .video-container {
    justify-content: flex-end;
    padding: 100px 30px 100px;
  }

  section#hero-banner.video-banner .hero-subtitle {
    margin-bottom: 20px;
  }

  section#hero-banner.video-banner .section-buttons {
    gap: 12px;
    margin-top: 18px;
  }
}

@media screen and (max-width: 575px) {
  section#hero-banner.video-banner .video-container {
    padding-bottom: 92px;
  }

  section#hero-banner.video-banner .section-buttons {
    flex-flow: column;
    align-items: center;
  }

  section#hero-banner.video-banner .section-buttons .btn,
  section#hero-banner.video-banner .section-buttons > a {
    width: 100%;
    max-width: 280px;
  }
}
