/* NOONEVA: homepage hero slider. The photo fills the hero, and fades into white under the text. */
.nv-hs {
  --nv-hs-dark: #063F2D;
  --nv-hs-green: #167A34;
  --nv-hs-text: #3A4A43;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  color: var(--nv-hs-dark);
  font-family: Inter, sans-serif;
}
/* Each photo's framing: on desktop, then below desktop width. */
body .nv-hs .nv-hs-dyson { --nv-hs-pos: 100%; --nv-hs-pos-m: 75%; }
body .nv-hs .nv-hs-shark { --nv-hs-pos: 50%; --nv-hs-pos-m: 90%; }
body .nv-hs .nv-hs-bissell { --nv-hs-pos: 50%; --nv-hs-pos-m: 75%; }
body .nv-hs .nv-hs-copy, body .nv-hs .nv-hs-inner { display: block; }
body .nv-hs .nv-hs-photo { max-width: none; }
body .nv-hs .nv-hs-btn p { margin: 0; color: inherit; font: inherit; }
body .nv-hs .nv-hs-btn .e-svg-base, body .nv-hs .nv-hs-btn svg { width: 20px; height: 20px; }
/* Elementor makes every container full width. These size to their content. */
body .nv-hs .nv-hs-btn { width: auto; flex: none; }
body .nv-hs .nv-hs-stage { position: relative; overflow: hidden; }

/* All slides share one grid cell, so the tallest sets the height and nothing jumps. */
body .nv-hs .nv-hs-slides { display: grid; }
body .nv-hs .nv-hs-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  /* The height of a 16 / 6 photo at full width. */
  min-height: clamp(440px, 37.5vw, 720px);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease, visibility 0s linear 800ms;
}
body .nv-hs .nv-hs-slide.nv-hs-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms ease, visibility 0s;
}
body .nv-hs .nv-hs-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--nv-hs-pos, 50%) center;
  /* The photo itself fades out, so the white under the text is the plain background, whatever the photo. */
  -webkit-mask-image: linear-gradient(90deg, transparent 41%, #000 49%);
  mask-image: linear-gradient(90deg, transparent 41%, #000 49%);
}

body .nv-hs .nv-hs-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  /* Clear of the left arrow and of the dots. */
  padding: 24px 24px 56px clamp(84px, 7.5vw, 180px);
}
/* Ends before the photo begins, at any width above the stacked layout. */
body .nv-hs .nv-hs-copy { max-width: min(600px, 33vw); }
body .nv-hs .nv-hs-title {
  margin: 0 0 16px;
  color: var(--nv-hs-dark);
  font-size: clamp(34px, 3.3vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
}
body .nv-hs .nv-hs-sub {
  margin: 0 0 24px;
  color: var(--nv-hs-text);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.45;
}
body .nv-hs .nv-hs-actions { display: flex; flex-wrap: wrap; gap: 14px; }
body .nv-hs .nv-hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 52px;
  padding: 8px 20px;
  border: 2px solid var(--nv-hs-green);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
body .nv-hs .nv-hs-btn-main { background: var(--nv-hs-green); color: #fff; }
body .nv-hs .nv-hs-btn-main:hover { background: var(--nv-hs-dark); border-color: var(--nv-hs-dark); color: #fff; }
body .nv-hs .nv-hs-btn-alt { background: #fff; color: var(--nv-hs-dark); }
body .nv-hs .nv-hs-btn-alt:hover { background: #E6F2E8; color: var(--nv-hs-dark); }
body .nv-hs .nv-hs-note {
  margin: 16px 0 0;
  color: var(--nv-hs-text);
  font-size: 13px;
  line-height: 1.45;
}

body .nv-hs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body .nv-hs button { margin: 0; border: 0; cursor: pointer; font: inherit; }

/* Controls appear only once the script runs. Without it, the first slide stays readable alone. */
body .nv-hs .nv-hs-arrow, body .nv-hs .nv-hs-controls { display: none; }
body .nv-hs.nv-hs-ready .nv-hs-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nv-hs-dark);
  box-shadow: 0 4px 16px rgba(6, 63, 45, .22);
  transform: translateY(-50%);
}
body .nv-hs .nv-hs-arrow:hover { background: #E6F2E8; }
body .nv-hs .nv-hs-prev { left: 16px; }
body .nv-hs .nv-hs-next { right: 16px; }

body .nv-hs.nv-hs-ready .nv-hs-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  transform: translateX(-50%);
}
body .nv-hs .nv-hs-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  color: var(--nv-hs-dark);
}
body .nv-hs .nv-hs-toggle svg { width: 18px; height: 18px; }
body .nv-hs .nv-hs-toggle .nv-hs-i-play { display: none; }
body .nv-hs.nv-hs-paused .nv-hs-toggle .nv-hs-i-play { display: block; }
body .nv-hs.nv-hs-paused .nv-hs-toggle .nv-hs-i-pause { display: none; }
body .nv-hs .nv-hs-dots { display: flex; }
body .nv-hs .nv-hs-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  padding: 0;
  background: none;
}
body .nv-hs .nv-hs-dot::before {
  content: "";
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 2px solid var(--nv-hs-dark);
  border-radius: 50%;
}
body .nv-hs .nv-hs-dot[aria-current="true"]::before { background: var(--nv-hs-green); border-color: var(--nv-hs-green); }

body .nv-hs :focus-visible { outline: 3px solid var(--nv-hs-green); outline-offset: 2px; }

/* Photos in the 3 / 2 format fill the right of the hero, so they show whole at this height. */
body .nv-hs .nv-hs-photo-side {
  left: auto;
  right: 0;
  width: 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 15%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 15%);
}

/* Below this width the text sits inside the hero: the photo fades into dark green at its base, under the text. */
@media (max-width: 1099px) {
  .nv-hs { --nv-hs-photo-h: 62vw; background: var(--nv-hs-dark); }
  body .nv-hs .nv-hs-slide { display: block; min-height: 0; background: var(--nv-hs-dark); }
  body .nv-hs .nv-hs-photo, body .nv-hs .nv-hs-photo-side {
    inset: 0 0 auto;
    left: 0;
    width: 100%;
    height: var(--nv-hs-photo-h);
    object-position: var(--nv-hs-pos-m, 50%) top;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 92%);
  }
  /* The text begins where the photo has nearly faded out. */
  body .nv-hs .nv-hs-inner { padding: calc(var(--nv-hs-photo-h) * .84) 16px 64px; }
  body .nv-hs .nv-hs-copy { max-width: none; }
  body .nv-hs .nv-hs-title { color: #fff; font-size: clamp(32px, 8.6vw, 48px); }
  body .nv-hs .nv-hs-sub, body .nv-hs .nv-hs-note { color: #fff; }
  body .nv-hs .nv-hs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body .nv-hs .nv-hs-btn { gap: 4px; padding: 10px 6px; border-color: #fff; font-size: 15px; white-space: nowrap; }
  body .nv-hs .nv-hs-btn-main { background: #fff; color: var(--nv-hs-dark); }
  body .nv-hs .nv-hs-btn-main:hover { background: #E6F2E8; border-color: #E6F2E8; color: var(--nv-hs-dark); }
  body .nv-hs .nv-hs-btn-alt { background: transparent; color: #fff; }
  body .nv-hs .nv-hs-btn-alt:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  body .nv-hs.nv-hs-ready .nv-hs-arrow { top: calc(var(--nv-hs-photo-h) * .36); width: 44px; height: 44px; }
  body .nv-hs .nv-hs-prev { left: 8px; }
  body .nv-hs .nv-hs-next { right: 8px; }
  body .nv-hs.nv-hs-ready .nv-hs-controls { bottom: 12px; background: none; }
  body .nv-hs .nv-hs-toggle { color: #fff; }
  body .nv-hs .nv-hs-dot::before { border-color: #fff; }
  body .nv-hs .nv-hs-dot[aria-current="true"]::before { background: #fff; border-color: #fff; }
  body .nv-hs :focus-visible { outline-color: #fff; }
}

/* On phones, a taller photo keeps the person and the machine large. */
@media (max-width: 599px) {
  .nv-hs { --nv-hs-photo-h: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  body .nv-hs .nv-hs-slide, body .nv-hs .nv-hs-slide.nv-hs-on, body .nv-hs .nv-hs-btn { transition: none; }
}
