/* DealEdge hero carousel */
.de-hero {
  position: relative;
  background: #071c33;
  color: #fff;
}
.de-hero__viewport {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  height: clamp(650px, calc(100vh - var(--sticky-offset, 116px)), 820px);
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}
.de-hero__track {
  position: absolute;
  inset: 0;
}
.de-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(3%);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.de-hero__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}
.de-hero__slide.is-exit {
  opacity: 0;
  transform: translateX(-3%);
  z-index: 1;
}
.de-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.de-hero__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.de-hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.de-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 28, 51, calc(0.28 + var(--hero-overlay, 0.6))) 0%, rgba(7, 28, 51, var(--hero-overlay, 0.6)) 48%, rgba(7, 28, 51, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 28, 51, 0.18) 0%, rgba(7, 28, 51, 0.52) 100%);
}
.de-hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 48px 72px 120px;
}
.de-hero__copy {
  max-width: 640px;
  text-align: left;
}
.de-hero__copy.is-center { text-align: center; margin-inline: auto; }
.de-hero__label {
  display: inline-block;
  color: #c89b3c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.de-hero h1,
.de-hero h2,
.de-hero__heading {
  color: #fff;
}
.de-hero__heading {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 13em;
}
.de-hero__copy.is-center .de-hero__heading { max-width: none; }
.de-hero__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 48ch;
  margin-bottom: 28px;
}
.de-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.de-hero__slide.is-active .de-hero__copy {
  animation: deHeroIn 0.7s ease both;
}

.de-hero__nav {
  position: absolute;
  top: 46%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 28, 51, 0.35);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.de-hero__nav:hover, .de-hero__nav:focus-visible {
  background: #c89b3c;
  color: #071c33;
  border-color: #c89b3c;
}
.de-hero__nav--prev { left: 18px; }
.de-hero__nav--next { right: 18px; }

.de-hero__dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.de-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  padding: 0;
}
.de-hero__dot.is-active {
  width: 28px;
  background: #c89b3c;
}
.de-hero__dot:focus-visible,
.de-hero__nav:focus-visible {
  outline: 2px solid #c89b3c;
  outline-offset: 3px;
}

.de-hero__search {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  padding-bottom: 8px;
}
.de-hero__search .search-panel { box-shadow: 0 18px 50px rgba(7, 28, 51, 0.16); }

.hero-trust-strip {
  background: #071c33;
  color: rgba(255, 255, 255, 0.88);
  padding: 28px 0 36px;
}
.hero-trust-strip .trust-row { margin-top: 0; }
.hero-trust-strip .channel-note { margin-top: 14px; color: rgba(255, 255, 255, 0.72); }

@keyframes deHeroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .de-hero__viewport {
    min-height: 650px;
    height: 700px;
  }
  .de-hero__content {
    align-items: flex-end;
    text-align: center;
    padding: 36px 28px 72px;
  }
  .de-hero__copy {
    text-align: center;
    margin: 0 auto;
    max-width: 36rem;
  }
  .de-hero__heading { max-width: none; }
  .de-hero__desc { margin-inline: auto; }
  .de-hero__actions { justify-content: center; }
  .de-hero__nav {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 38px;
    height: 38px;
  }
  .de-hero__nav--prev { left: 12px; }
  .de-hero__nav--next { left: 56px; right: auto; }
  .de-hero__dots {
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
  }
  .de-hero__overlay {
    background:
      linear-gradient(180deg, rgba(7, 28, 51, 0.22) 0%, rgba(7, 28, 51, calc(0.28 + var(--hero-overlay, 0.6))) 72%);
  }
  .de-hero__search {
    margin-top: 0;
    padding: 16px 0 8px;
    background: #f8f5ef;
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .de-hero__content { padding-left: 96px; }
}

@media (max-width: 375px) {
  .de-hero__viewport { height: 660px; }
  .de-hero__heading { font-size: 2.05rem; }
  .de-hero__desc { font-size: 0.98rem; }
}

@media (max-width: 360px) {
  .de-hero__content { padding-left: 16px; padding-right: 62px; }
  .de-hero__viewport { height: 650px; }
  .de-hero__actions .btn { width: 100%; }
}

@media (min-width: 1440px) {
  .de-hero__viewport {
    height: clamp(650px, calc(100vh - var(--sticky-offset, 116px)), 860px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .de-hero__slide,
  .de-hero__slide.is-exit,
  .de-hero__slide.is-active .de-hero__copy {
    transition: none;
    animation: none;
    transform: none;
  }
}
