/*
 * JJD Consultants — Click-to-Select Hero Banners
 * This file intentionally overrides only the homepage hero area.
 */

.hero-selector {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: #eef5fb;
}

.hero-slides {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 610px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(245, 250, 255, 0.98) 0%,
      rgba(239, 247, 253, 0.94) 28%,
      rgba(227, 240, 250, 0.72) 48%,
      rgba(8, 40, 78, 0.18) 73%,
      rgba(3, 25, 55, 0.32) 100%
    );
}

.hero-slide-content {
  min-height: 610px;
  display: flex;
  align-items: center;
  padding-top: 55px;
  padding-bottom: 100px;
}

.hero-slide-copy {
  width: min(650px, 57%);
}

.hero-slide-copy h1,
.hero-slide-copy h2 {
  margin: 0;
  color: var(--navy-dark, #031f45);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(46px, 5vw, 73px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero-slide-copy h1 span,
.hero-slide-copy h2 span {
  color: var(--gold, #e7a51a);
}

.hero-slide-copy > p:not(.eyebrow) {
  max-width: 550px;
  margin: 0;
  color: #24364c;
  font-size: 18px;
  line-height: 1.72;
}

.hero-slide-copy .hero-actions {
  max-width: 560px;
  padding-right: 18px;
}

.hero-selector-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 20;
  pointer-events: none;
}

.hero-selector-controls .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-thumbnails {
  width: min(560px, 48%);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-right: 8px;
  pointer-events: auto;
}

.hero-thumbnail {
  position: relative;
  width: 76px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(2, 24, 54, 0.25);
  cursor: pointer;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 31, 69, 0.16);
  transition: background 0.2s ease;
}

.hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumbnail:hover,
.hero-thumbnail:focus-visible {
  opacity: 1;
  transform: translateY(-3px);
  outline: none;
}

.hero-thumbnail.is-active {
  opacity: 1;
  border-color: var(--gold, #e7a51a);
  transform: translateY(-4px);
  box-shadow: 0 9px 24px rgba(2, 24, 54, 0.34);
}

.hero-thumbnail.is-active::after,
.hero-thumbnail:hover::after {
  background: transparent;
}

.hero-selector-swoop {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -42px;
  height: 112px;
  z-index: 10;
  background: var(--navy-dark, #031f45);
  border-top: 7px solid var(--gold, #e7a51a);
  border-radius: 52% 48% 0 0 / 50% 55% 0 0;
  transform: rotate(1.2deg);
  pointer-events: none;
}

.hero-selector-swoop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 90px;
  background: #fff;
  border-radius: 55% 45% 0 0 / 35% 45% 0 0;
}

@media (max-width: 1100px) {
  .hero-slide-copy {
    width: min(650px, 61%);
  }

  .hero-slide-image {
    object-position: 60% center;
  }

  .hero-thumbnails {
    width: min(470px, 42%);
    gap: 9px;
  }

  .hero-thumbnail {
    width: 66px;
    height: 51px;
  }
}

@media (max-width: 820px) {
  .hero-selector,
  .hero-slides,
  .hero-slide,
  .hero-slide-content {
    min-height: 700px;
  }

  .hero-slide-image {
    object-position: 62% center;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(244, 250, 255, 0.97) 0%,
        rgba(239, 247, 253, 0.92) 58%,
        rgba(7, 44, 85, 0.36) 100%
      );
  }

  .hero-slide-content {
    align-items: flex-start;
    padding-top: 62px;
    padding-bottom: 178px;
  }

  .hero-slide-copy {
    width: 100%;
  }

  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    max-width: 95%;
    font-size: clamp(39px, 11vw, 57px);
  }

  .hero-slide-copy > p:not(.eyebrow) {
    max-width: 92%;
    font-size: 16px;
  }

  .hero-slide-copy .hero-actions {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-selector-controls {
    bottom: 70px;
  }

  .hero-selector-controls .container {
    justify-content: center;
  }

  .hero-thumbnails {
    width: auto;
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    padding-right: 0;
  }

  .hero-thumbnail {
    width: 58px;
    height: 47px;
    border-width: 2px;
  }

  .hero-selector-swoop {
    height: 90px;
    bottom: -33px;
  }
}

@media (max-width: 480px) {
  .hero-selector,
  .hero-slides,
  .hero-slide,
  .hero-slide-content {
    min-height: 760px;
  }

  .hero-slide-content {
    padding-top: 48px;
    padding-bottom: 185px;
  }

.hero-slide-image{
    object-position:70% center;
}

.hero-slide-image{

    filter:
        brightness(.92)
        contrast(1.08)
        saturate(1.05);

}

.hero-slide-overlay{
    background:
    linear-gradient(
        90deg,
        rgba(245,249,253,.95) 0%,
        rgba(245,249,253,.90) 35%,
        rgba(245,249,253,.72) 65%,
        rgba(245,249,253,.42) 100%
    );
}

  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: clamp(36px, 11vw, 49px);
  }

  .hero-selector-controls {
    bottom: 72px;
  }

  .hero-thumbnails {
    gap: 6px;
  }

  .hero-thumbnail {
    width: 49px;
    height: 42px;
  }
}


@media (min-width: 821px) and (max-width: 1250px) {
  .hero-slide-content {
    padding-bottom: 120px;
  }

  .hero-selector-controls {
    bottom: 67px;
  }

  .hero-thumbnails {
    width: 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-thumbnail {
    transition: none;
  }
}
