/* [jd_hero] lightweight RevSlider-style hero */
.jd-hero {
  --jd-hero-h: 819px;
  --jd-bullet: #fcfce5;
  --jd-bullet-hover: #f4b237;
  --jd-title: #e6e6e6;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--jd-hero-h);
  overflow: hidden;
  background: #1a1a1a;
  /* mimic RevSlider sitting under sticky header */
  margin-top: -80px;
}

.jd-hero__viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.jd-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
}

.jd-hero.is-ready .jd-hero__slide {
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.jd-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.jd-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.jd-hero__media picture,
.jd-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.jd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 8% 60px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0) 70%
  );
}

.jd-hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: "Yeseva One", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 66px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--jd-title);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.jd-hero__title span {
  display: block;
}

.jd-hero__bullets {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jd-hero__bullet {
  --btn-height: 24px;
  --btn-padding: 0;
  --btn-brd-radius: 0;
  --btn-brd-width: 0;
  --btn-brd-color: transparent;
  --btn-bgcolor: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
  opacity: 1;
  cursor: pointer;
}

.jd-hero__bullet::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #bababa;
  border-radius: 999px;
  box-sizing: border-box;
  background: var(--jd-bullet);
  pointer-events: none;
  transition: background-color 0.25s ease;
}

.jd-hero__bullet:hover::after,
.jd-hero__bullet:focus-visible::after,
.jd-hero__bullet.is-active::after {
  background: var(--jd-bullet-hover);
}

.jd-hero__bullet:focus-visible {
  outline: none;
}

@media (max-width: 767px) {
  .jd-hero {
    --jd-hero-h: 750px;
    margin-top: -60px;
  }

  .jd-hero__overlay {
    padding: 90px 6% 120px;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.45) 70%
    );
  }

  .jd-hero__title {
    font-size: 40px;
    text-align: center;
    max-width: 12ch;
  }

  .jd-hero__bullets {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jd-hero__slide {
    transition: none;
  }
}

/* 24px hit area so the 12px ring passes the touch-target audit. */
.jd-hero .jd-hero__bullets > li {
  display: flex !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 24px !important;
  flex-shrink: 0 !important;
}

.jd-hero .jd-hero__bullets > li > button.jd-hero__bullet,
.jd-hero .jd-hero__bullets > li > button.jd-hero__bullet:hover,
.jd-hero .jd-hero__bullets > li > button.jd-hero__bullet:focus,
.jd-hero .jd-hero__bullets > li > button.jd-hero__bullet:focus-visible,
.jd-hero .jd-hero__bullets > li > button.jd-hero__bullet.is-active {
  --btn-height: 24px;
  --btn-padding: 0;
  --btn-brd-radius: 0;
  --btn-brd-width: 0;
  --btn-bgcolor: transparent;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  flex: 0 0 24px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.jd-hero .jd-hero__bullet::after,
.jd-hero button.jd-hero__bullet::after {
  content: "" !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #bababa !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  background: var(--jd-bullet) !important;
  background-color: var(--jd-bullet) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.jd-hero button.jd-hero__bullet:hover::after,
.jd-hero button.jd-hero__bullet:focus-visible::after,
.jd-hero button.jd-hero__bullet.is-active::after {
  background: var(--jd-bullet-hover) !important;
  background-color: var(--jd-bullet-hover) !important;
}
