/* Quote wizard sits on the plum field. The cream site header is a second logo and a white bar. */
body.page-quote .ee-header,
body.page-quote .ee-mob { display: none !important; }
body.page-quote { background: #2b1550; }
.ee-quote-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 20px 4px;
}
.ee-quote-logo { width: 112px; display: block; flex: none; }
.ee-quote-logo img { width: 100%; height: auto; display: block; }
.ee-quote-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-left: auto;
}
.ee-quote-nav a {
  color: rgba(255, 255, 255, 0.92);
  font: 600 12px/1 "Open Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ee-quote-nav a:hover { color: #e9ddff; }
.ee-quote-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(43, 21, 80, 0.55);
  padding: 10px 12px;
  border-radius: 999px;
}

/* Homepage hero: full-bleed photo, one header logo, batteries clear of the type. */
body.page-home #top {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100svh !important;
  height: 100svh !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  gap: clamp(12px, 2vh, 28px) !important;
  padding: calc(76px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
}
body.page-home #top > picture,
body.page-home #top [data-hero-scrim] {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  pointer-events: none;
}
body.page-home #top > picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
body.page-home #top > a[aria-label="Earthed Energy home"],
body.page-home [data-hero-pin] {
  display: none !important;
}
body.page-home #top [data-hero-copy] {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  width: min(100%, 40rem) !important;
  max-width: 100% !important;
  padding: 0 8px !important;
  align-self: end;
  z-index: 2;
}
body.page-home #top [data-hero-copy] h1 {
  font-size: clamp(28px, 4.6vw, 56px) !important;
  line-height: 1.08 !important;
  max-width: 18ch;
}
body.page-home #top [data-hero-copy] p {
  font-size: clamp(12px, 1.4vw, 16px) !important;
  letter-spacing: 0.12em !important;
  line-height: 1.45 !important;
}
body.page-home #top [data-hero-product] {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  align-self: center;
  z-index: 2;
}
body.page-home #top [data-hero-product] img {
  height: clamp(88px, 20vh, 210px) !important;
  width: auto !important;
  max-width: 42vw !important;
}
body.page-home #top [data-hero-rebate] {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  box-sizing: border-box !important;
  width: min(100%, 40rem) !important;
  max-width: 100% !important;
  padding: 0 !important;
  gap: 12px !important;
  align-self: end;
  z-index: 2;
}
body.page-home .ee-hero-more,
body.page-home #top [data-hero-rebate] a {
  color: #f5f1e8 !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
}
body.page-home .ee-mob {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
}
body.page-home .ee-iconbtn {
  background: rgba(43, 21, 80, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

/* Small-screen overrides. Loaded after inlined page CSS. */

@media (max-width: 720px) {
  /* Portrait cover has to crop this wide photo. The panels are on the left roofs, so keep that edge. */
  body.page-home #top > picture img {
    object-position: left center !important;
  }

  body.page-home #top {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  [data-glow],
  [style*="width:900px"] {
    display: none !important;
  }

  html.js [data-reveal] {
    transform: none !important;
    opacity: 1 !important;
  }

  .ee-fold,
  [data-collage] {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }

  [data-collage] {
    margin-left: -20px !important;
    margin-right: -20px !important;
    max-width: 100vw !important;
  }

  [style*="min-width:260px"] {
    min-width: 0 !important;
    flex-basis: 100% !important;
  }

  [style*="max-width:320px"] {
    max-width: 100% !important;
    text-align: left !important;
  }

  [style*="white-space:nowrap"] {
    white-space: normal !important;
  }

  img,
  video {
    max-width: 100%;
  }

  body:not(.page-quote) {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:not(.page-quote) main > .ee-fold:last-of-type {
    scroll-margin-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

}
