/* =====================================================================
   Solar Harbour home page video banner
   Loaded by index.php. Upload to: assets/css/sh-banner.css
   Colours: navy #18457b, gold #f8bc2d and white. Every class starts with
   "sh-vb" so nothing here clashes with the theme.
   ===================================================================== */

.sh-vb {
  /* ---- THE TWO BRAND COLOURS (the only colours used, plus white) ---- */
  --sh-vb-navy: #18457b;
  --sh-vb-gold: #f8bc2d;
  --sh-vb-navy-rgb: 24, 69, 123;
  --sh-vb-gold-rgb: 248, 188, 45;

  --sh-vb-interval: 7000ms;     /* kept in sync by the script */
  --sh-vb-top: 72px;            /* space above the headline; the script adds your header's height if it sits over the banner */
  --sh-vb-head: var(--font-primary, "Exo"), system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(620px, calc(100vh - var(--sh-vb-offset, 6vh)), 920px);   /* fills the screen below your header */
  background: var(--sh-vb-navy);
  color: #ffffff;
  font-family: var(--font-secondary, "Albert Sans"), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: normal; font-weight: 400; text-align: left;
}
.sh-vb *, .sh-vb *::before, .sh-vb *::after { box-sizing: border-box; }
/* undo the site's global p / ul / li / heading styles inside the banner (zero-specificity, so the rules below still win) */
:where(.sh-vb) p, :where(.sh-vb) h1, :where(.sh-vb) h2 { margin: 0; color: inherit; }
:where(.sh-vb) ul, :where(.sh-vb) ul li { margin: 0; padding: 0; list-style: none; font-size: inherit; line-height: inherit; color: inherit; }
:where(.sh-vb) b, :where(.sh-vb) strong { font-weight: inherit; }
.sh-vb .sh-vb__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- footage ---- */
.sh-vb__media { position: absolute; inset: 0; z-index: -5; overflow: hidden; }
.sh-vb__poster, .sh-vb__poster img,
.sh-vb__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.sh-vb__video { opacity: 0; transition: opacity 1.2s ease; will-change: opacity; }
.sh-vb__video.is-front { opacity: 1; }
.sh-vb.no-video .sh-vb__poster img { animation: sh-vb-drift 28s ease-in-out infinite alternate; transform-origin: 60% 45%; }
.sh-vb.is-paused .sh-vb__poster img { animation-play-state: paused; }
@keyframes sh-vb-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -1%); } }

/* ---- navy colour wash: turns any footage into brand tones ---- */
/* plain see-through navy (no blending, so the browser doesn't redraw it every video frame) */
.sh-vb__wash { position: absolute; inset: 0; z-index: -4; background: var(--sh-vb-navy); opacity: .38; transition: opacity 1.2s ease; }

/* ---- the gold sun: drifts across the sky as slides change ---- */
.sh-vb__sun {
  position: absolute; z-index: -3; left: 0; top: 0;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--sh-vb-gold-rgb), .38) 0%, rgba(var(--sh-vb-gold-rgb), .12) 30%, rgba(var(--sh-vb-gold-rgb), 0) 62%);
  pointer-events: none; will-change: transform;
  transform: translate(var(--sun-x, 82vw), var(--sun-y, 12vh));
  transition: transform 2.6s cubic-bezier(.45, 0, .2, 1);
}

/* ---- readability shade (navy only) ---- */
.sh-vb__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(var(--sh-vb-navy-rgb), .94) 0%, rgba(var(--sh-vb-navy-rgb), .72) 40%, rgba(var(--sh-vb-navy-rgb), .2) 72%, rgba(var(--sh-vb-navy-rgb), .3) 100%),
    linear-gradient(0deg, rgba(var(--sh-vb-navy-rgb), .95) 0%, rgba(var(--sh-vb-navy-rgb), 0) 42%),
    linear-gradient(180deg, rgba(var(--sh-vb-navy-rgb), .6) 0%, rgba(var(--sh-vb-navy-rgb), 0) 22%);
}
@media (max-width: 767px) {
  .sh-vb__shade {
    background:
      linear-gradient(0deg, rgba(var(--sh-vb-navy-rgb), .97) 0%, rgba(var(--sh-vb-navy-rgb), .75) 50%, rgba(var(--sh-vb-navy-rgb), .3) 80%, rgba(var(--sh-vb-navy-rgb), .6) 100%);
  }
}

/* ---- content ---- */
.sh-vb__inner {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 40px;
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: var(--sh-vb-top) 24px 40px;
}
@media (min-width: 1024px) { .sh-vb__inner { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 56px; } }
.sh-vb__slides { display: grid; }
.sh-vb__slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
  pointer-events: none;
}
.sh-vb__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }

.sh-vb__title {
  margin: 0; max-width: 14ch;
  font-family: var(--sh-vb-head); font-weight: 800;
  font-size: clamp(40px, 6vw, 78.4px); line-height: 1.04; letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 2px 28px rgba(var(--sh-vb-navy-rgb), .6);
}
.sh-vb__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sh-vb__w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms + .15s);
}
.sh-vb__slide.is-active .sh-vb__w > span { transform: none; }
.sh-vb__title::after {
  content: ""; display: block;
  width: 72px; height: 5px; margin-top: 22px; border-radius: 3px;
  background: var(--sh-vb-gold);
  transform-origin: left; transform: scaleX(0);
  transition: transform .7s cubic-bezier(.2,.75,.2,1) .45s;
}
.sh-vb__slide.is-active .sh-vb__title::after { transform: scaleX(1); }
.sh-vb__text, .sh-vb__more {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease .5s, transform .7s ease .5s;
}
.sh-vb__more { transition-delay: .65s; }
.sh-vb__slide.is-active .sh-vb__text, .sh-vb__slide.is-active .sh-vb__more { opacity: 1; transform: none; }
.sh-vb__text { margin: 18px 0 0; max-width: 36ch; font-size: clamp(17.6px, 1.6vw, 20.8px); line-height: 1.55; color: rgba(255,255,255,.92); }
.sh-vb__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 32px;
  color: var(--sh-vb-gold); font-weight: 700; font-size: 16px; text-decoration: none;
  border-bottom: 2px solid rgba(var(--sh-vb-gold-rgb), .45);
}
.sh-vb__more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sh-vb__more:hover, .sh-vb__more:focus { color: var(--sh-vb-gold); border-bottom-color: var(--sh-vb-gold); }
.sh-vb__more:hover svg { transform: translateX(3px); }

.sh-vb__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sh-vb__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 8px; border: 2px solid transparent;
  font-family: var(--sh-vb-head); font-weight: 700; font-size: 16.8px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sh-vb__btn svg { width: 19px; height: 19px; flex: none; }
.sh-vb__btn--solid { background: var(--sh-vb-gold); color: var(--sh-vb-navy); box-shadow: 0 10px 28px -10px rgba(var(--sh-vb-gold-rgb), .7); }
.sh-vb__btn--solid:hover, .sh-vb__btn--solid:focus-visible { background: #ffffff; color: var(--sh-vb-navy); }
.sh-vb__btn--ghost, .sh-vb__btn--ghost:visited { border-color: rgba(255,255,255,.75); color: #ffffff; background: rgba(var(--sh-vb-navy-rgb), .3); }
.sh-vb__btn--ghost:hover, .sh-vb__btn--ghost:focus-visible { background: #ffffff; border-color: #ffffff; color: var(--sh-vb-navy); }
@media (min-width: 1024px) { .sh-vb__actions .sh-vb__btn--solid { display: none; } }
.sh-vb a:focus-visible, .sh-vb button:focus-visible,
#sh-vb-quote select:focus-visible, #sh-vb-quote input:focus-visible { outline: 3px solid var(--sh-vb-gold); outline-offset: 3px; }

/* ---- quick-quote panel ---- */
.sh-vb__quote { display: none; }
@media (min-width: 1024px) {
  .sh-vb__quote {
    display: block; position: relative;
    padding: 26px 28px; border-radius: 18px;
    background: rgba(var(--sh-vb-navy-rgb), .9);    /* solid enough to read, no live blur over the video */
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 30px 60px -24px rgba(var(--sh-vb-navy-rgb), .9);
  }
  .sh-vb__quote::before {          /* gold edge-light along the top of the panel */
    content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(var(--sh-vb-gold-rgb), 0), var(--sh-vb-gold), rgba(var(--sh-vb-gold-rgb), 0));
  }
}
.sh-vb__quote h2 { margin: 0; font-family: var(--sh-vb-head); font-weight: 800; font-size: 24.8px; line-height: 1.15; color: #ffffff; }
.sh-vb__quote-sub { margin: 4px 0 0; font-size: 15.2px; color: rgba(255,255,255,.82); }
.sh-vb__q { margin-top: 14px; }
.sh-vb__q-lbl { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14.72px; color: #ffffff; }
.sh-vb__seg { display: grid; grid-template-columns: 1fr 1fr; border: 0; margin: 16px 0 0; padding: 0; gap: 8px; }
#sh-vb-quote .sh-vb__seg legend { float: none; width: auto; padding: 0; }   /* Bootstrap floats legends */
.sh-vb__seg label { position: relative; }
#sh-vb-quote .sh-vb__seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.sh-vb__seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.35); color: #ffffff; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sh-vb__seg span svg { width: 18px; height: 18px; }
.sh-vb__seg span:hover { border-color: #ffffff; }
#sh-vb-quote .sh-vb__seg input:checked + span { background: var(--sh-vb-gold); border-color: var(--sh-vb-gold); color: var(--sh-vb-navy); }
#sh-vb-quote .sh-vb__seg input:focus-visible + span { outline: 3px solid var(--sh-vb-gold); outline-offset: 2px; }
#sh-vb-quote .sh-vb__field {
  display: block; width: 100%; max-width: 100%; height: auto; min-height: 48px; margin: 0; padding: 10px 14px; border-radius: 10px;
  line-height: 1.4; box-shadow: none;
  border: 2px solid transparent; background: #ffffff; color: var(--sh-vb-navy);
  font: 600 16px var(--font-secondary, "Albert Sans"), system-ui, sans-serif;
}
#sh-vb-quote .sh-vb__field::placeholder { color: rgba(var(--sh-vb-navy-rgb), .55); font-weight: 500; }
#sh-vb-quote select.sh-vb__field {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318457b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
#sh-vb-quote .sh-vb__field[aria-invalid="true"] { border-color: var(--sh-vb-gold); }
.sh-vb__err { display: none; margin: 6px 0 0; font-size: 13.76px; font-weight: 700; color: var(--sh-vb-gold); }
.sh-vb__err.is-on { display: flex; align-items: center; gap: 6px; }
.sh-vb__err svg { width: 16px; height: 16px; flex: none; }
.sh-vb__quote .sh-vb__btn { width: 100%; margin-top: 18px; }
.sh-vb__quote-foot { margin: 12px 0 0; font-size: 14.08px; color: rgba(255,255,255,.8); text-align: center; }
.sh-vb__quote-foot a, .sh-vb__quote-foot a:hover { color: #ffffff; font-weight: 700; }

/* ---- lead form: two fields per row, sending state, thank-you ---- */
.sh-vb__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.sh-vb__row--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.sh-vb__row .sh-vb__err { align-items: flex-start; }
.sh-vb__row .sh-vb__err svg { margin-top: 1px; }
.sh-vb__hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sh-vb__form-err { display: none; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; color: #ffffff; background: rgba(var(--sh-vb-gold-rgb), .14); border: 1px solid rgba(var(--sh-vb-gold-rgb), .55); }
.sh-vb__form-err.is-on { display: block; }
.sh-vb__form-err a, .sh-vb__form-err a:hover { color: var(--sh-vb-gold); font-weight: 700; }
.sh-vb__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(var(--sh-vb-navy-rgb), .25); border-top-color: var(--sh-vb-navy); animation: sh-vb-spin .8s linear infinite; }
@keyframes sh-vb-spin { to { transform: rotate(360deg); } }
.sh-vb__quote.is-sending .sh-vb__spin { display: block; }
.sh-vb__quote.is-sending .sh-vb__btn { cursor: progress; }
.sh-vb__quote-foot svg { width: 14px; height: 14px; margin: -2px 6px 0 0; vertical-align: middle; }
.sh-vb__thanks { display: none; text-align: center; }
.sh-vb__quote.is-sent .sh-vb__quote-body { display: none; }
.sh-vb__quote.is-sent .sh-vb__thanks { display: block; }
@media (min-width: 1024px) {
  .sh-vb__quote.is-sent { display: flex; flex-direction: column; justify-content: center; }
}
.sh-vb__thanks-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--sh-vb-gold); color: var(--sh-vb-navy); box-shadow: 0 0 0 8px rgba(var(--sh-vb-gold-rgb), .18); }
.sh-vb__thanks-icon svg { width: 32px; height: 32px; }
.sh-vb__thanks h2:focus { outline: none; }
.sh-vb__thanks-text { margin: 12px auto 0; max-width: 30ch; font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.9); }
.sh-vb__thanks .sh-vb__quote-foot { margin-top: 22px; }
.sh-vb__thanks .sh-vb__quote-foot a { color: var(--sh-vb-gold); }

/* compact spacing so the taller form still fits the screen */
.sh-vb__seg { margin-top: 14px; }
.sh-vb__seg span { min-height: 42px; }
.sh-vb__q { margin-top: 12px; }
#sh-vb-quote .sh-vb__field { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.sh-vb__quote .sh-vb__btn { min-height: 50px; margin-top: 16px; }
.sh-vb__quote-foot { margin-top: 10px; font-size: 13.5px; }
@media (min-width: 1024px) {
  .sh-vb { --sh-vb-top: 40px; }
  .sh-vb__inner { padding-bottom: 28px; }
  .sh-vb__quote { padding: 22px 26px 20px; }
}
.sh-vb__quote-sub { line-height: 1.45; }
.sh-vb__err { line-height: 1.35; }

/* ---- bottom bar ---- */
.sh-vb__bar { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px 22px; }
.sh-vb__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
}
.sh-vb__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15.68px; color: rgba(255,255,255,.86); }
.sh-vb__facts strong { display: inline; color: var(--sh-vb-gold); margin-right: 4px; font-family: var(--sh-vb-head); font-weight: 800; font-size: 19.2px; font-variant-numeric: tabular-nums; }

.sh-vb__controls { display: flex; align-items: center; gap: 4px; }
.sh-vb__count { margin-right: 8px; font-family: var(--sh-vb-head); font-weight: 700; font-size: 15.2px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.sh-vb__count b { color: #ffffff; font-weight: 800; }
.sh-vb__dot { width: 48px; height: 44px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.sh-vb__dot-track { position: relative; overflow: hidden; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.sh-vb__dot-fill { position: absolute; inset: 0; background: var(--sh-vb-gold); transform: scaleX(0); transform-origin: left; }
.sh-vb__dot.is-active .sh-vb__dot-fill { animation: sh-vb-progress var(--sh-vb-interval) linear forwards; }
.sh-vb.is-paused .sh-vb__dot.is-active .sh-vb__dot-fill { animation: none; transform: scaleX(1); }
@keyframes sh-vb-progress { to { transform: scaleX(1); } }
.sh-vb__toggle {
  width: 44px; height: 44px; margin-left: 8px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6); background: rgba(var(--sh-vb-navy-rgb), .35); color: #ffffff; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.sh-vb__toggle:hover { background: #ffffff; color: var(--sh-vb-navy); }
.sh-vb__toggle svg { width: 18px; height: 18px; }
.sh-vb__toggle .sh-vb__icon-play { display: none; }
.sh-vb__toggle.is-play .sh-vb__icon-play { display: block; }
.sh-vb__toggle.is-play .sh-vb__icon-pause { display: none; }

/* ---- brands strip ---- */
.sh-vb__brands {
  position: relative; overflow: hidden;
  background: rgba(var(--sh-vb-navy-rgb), .92);
  border-top: 1px solid rgba(255,255,255,.14);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #fff 8%, #fff 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #fff 8%, #fff 92%, transparent 100%);
}
.sh-vb__brands-track { display: flex; width: max-content; animation: sh-vb-marquee 48s linear infinite; }
.sh-vb.is-paused .sh-vb__brands-track, .sh-vb__brands:hover .sh-vb__brands-track { animation-play-state: paused; }
.sh-vb__brands ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.sh-vb__brands li {
  margin: 0;
  display: flex; align-items: center; gap: 34px; padding-right: 34px; min-height: 58px; white-space: nowrap;
  font-family: var(--sh-vb-head); font-weight: 700; font-size: 17.28px; letter-spacing: .02em; color: rgba(255,255,255,.78);
}
.sh-vb__brands li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sh-vb-gold); }
@keyframes sh-vb-marquee { to { transform: translateX(-50%); } }

/* thin progress line along the very bottom */
.sh-vb__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255,255,255,.12); }
.sh-vb__line span { position: absolute; inset: 0; background: var(--sh-vb-gold); transform: scaleX(0); transform-origin: left; }
.sh-vb__line.is-running span { animation: sh-vb-progress var(--sh-vb-interval) linear forwards; }
.sh-vb.is-paused .sh-vb__line span { animation-play-state: paused; }

@media (max-width: 767px) {
  .sh-vb { min-height: calc(100svh - var(--sh-vb-offset, 6svh)); }
  .sh-vb__inner { align-content: end; padding-bottom: 26px; }
  .sh-vb__btn { flex: 1 1 100%; }
  .sh-vb__facts li:nth-child(3) { display: none; }
  .sh-vb__count { display: none; }
  .sh-vb__bar-inner { gap: 12px; }
  .sh-vb__sun { width: 560px; height: 560px; margin: -280px 0 0 -280px; }
  .sh-vb__brands li { min-height: 50px; font-size: 15.68px; gap: 26px; padding-right: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-vb__slide, .sh-vb__video, .sh-vb__text, .sh-vb__more, .sh-vb__w > span, .sh-vb__title::after, .sh-vb__sun { transition: none !important; }
  .sh-vb.no-video .sh-vb__poster img { animation: none; }
  .sh-vb__brands-track { animation: none; width: auto; }
  .sh-vb__brands { -webkit-mask-image: none; mask-image: none; }
  .sh-vb__brands ul { flex-wrap: wrap; justify-content: center; padding: 6px 24px; }
  .sh-vb__brands ul[aria-hidden="true"] { display: none; }
  .sh-vb__brands li { min-height: 40px; }
  .sh-vb__brands li:last-child::after { display: none; }
}
