/* ==========================================================================
Split Content Hero Banner
========================================================================== */

.split-hero {
  /* Height of the transparent site header on desktop. Measure it in DevTools and adjust. */
  --split-hero-header-h: 160px;
  /* Space between the bottom of the header and the breadcrumb / heading.
     The content now starts at the same height on every page, however much
     text there is (it no longer floats to the middle of the screen). */
  --split-hero-content-gap: 80px;
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #eef1f4 var(--split-hero-bg, none) center / cover no-repeat;
}

/* Use the small-viewport unit where supported so mobile browser bars don't crop the hero */
@supports (height: 100svh) {
  .split-hero { min-height: 100svh; }
}

/* Readability overlay — left-side fade on desktop (overridden on mobile) */
.split-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.65) 30%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0) 58%);
}

/* Soft white fade behind the transparent header so the nav never sits on busy artwork */
.split-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--split-hero-header-h) + 90px);
  z-index: 0; /* above the background image, below .split-hero__container (z-index: 1) */
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%);
}


/* ==========================================================================
Container & Columns
========================================================================== */

.split-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Text starts at the top of the column instead of being centred vertically */
  align-items: start;
  column-gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  /* Top: clears the header + a fixed gap, so short and long headings start at the same height.
     Bottom: room for the floating chat bar. */
  padding: calc(var(--split-hero-header-h) + var(--split-hero-content-gap)) 24px 120px;
}

.split-hero--has-media .split-hero__container {
  column-gap: 50px;
}

.split-hero__content,
.split-hero__media {
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* With a video, the tablet frame lines up with the top of the text as well */
.split-hero__media {
  align-self: start;
}

.split-hero__spacer {
  min-height: 1px;
}

/* Subtle halo so the subheading stays legible over background details */
.split-hero .section-description {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
Right-side Media — Tablet Frame
cqw = 1% of the media column width, so the frame scales with it.
Pixel values before each cqw line are fallbacks for older browsers.
========================================================================== */

.split-hero__media {
  width: 100%;
  container-type: inline-size;
}

.split-hero__tablet {
  position: relative;
  box-sizing: border-box;
  padding: 22px;
  padding: 3.3cqw;
  border: 4px solid transparent;
  border-width: clamp(3px, 0.55cqw, 5px);
  border-radius: 40px;
  border-radius: 5.2cqw;
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(90deg,
      #1468d4 0%,
      #1689e3 25%,
      #2b9a9b 50%,
      #849447 68%,
      #e99400 82%,
      #f28a00 100%) border-box;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Top-edge side buttons */
.split-hero__tablet::before {
  content: "";
  position: absolute;
  top: -6px;
  top: calc(-0.55cqw - 2px);
  left: 10%;
  width: 6%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #1468d4, #1689e3);
  box-shadow: 8cqw 0 0 #1689e3;
}

/* Glass reflection (behind the screen) */
.split-hero__tablet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(215deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 9%,
    rgba(255, 255, 255, 0) 18%);
  pointer-events: none;
}

/* Front camera */
.split-hero__tablet-camera {
  position: absolute;
  top: 11px;
  top: 1.65cqw;
  left: 50%;
  z-index: 2;
  width: 7px;
  width: 0.75cqw;
  height: 7px;
  height: 0.75cqw;
  min-width: 4px;
  min-height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a63 0%, #11151c 55%, #000 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
}

/* Screen */
.split-hero__tablet-screen {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  border-radius: 1.8cqw;
  background: #000;
  line-height: 0;
}

.split-hero__tablet-screen .hs-video-widget,
.split-hero__tablet-screen iframe,
.split-hero__tablet-screen video {
  display: block;
  width: 100%;
  border: 0;
}


/* ==========================================================================
Breadcrumb — Minimal
========================================================================== */

.split-hero__breadcrumb {
  max-width: 100%;
  margin: 0 0 30px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.split-hero__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #5b6472;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.split-hero__breadcrumb-home,
.split-hero__breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.split-hero__breadcrumb-item {
  min-width: 0;
}

.split-hero__breadcrumb a {
  color: #5b6472;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.split-hero__breadcrumb a:hover {
  color: #0373bb;
}

.split-hero__breadcrumb-home a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-hero__breadcrumb-home a:hover {
  transform: translateY(-1px);
}

.split-hero__breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  color: #9aa3af;
  font-size: 17px;
  line-height: 1;
}

.split-hero__breadcrumb-item [aria-current="page"] {
  color: #1f2937;
  font-weight: 600;
}


/* ==========================================================================
Tablet (769px – 1024px)
========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {

  /* Header fade height on tablet. Only change this if the header is
     shorter at this size (measure it in DevTools). */
  .split-hero {
    --split-hero-header-h: 160px;
    --split-hero-content-gap: 60px;
  }

  .split-hero__container {
    grid-template-columns: 48% 1fr;
  }

  .split-hero--has-media .split-hero__container {
    column-gap: 32px;
  }

  /* Text column is wider here, so extend the fade a little further */
  .split-hero::before {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.7) 38%,
      rgba(255, 255, 255, 0.3) 52%,
      rgba(255, 255, 255, 0) 64%);
  }

}


/* ==========================================================================
Mobile (768px and below)
========================================================================== */

@media (max-width: 768px) {

  .split-hero {
    min-height: 0;
    align-items: flex-start;
    background-image: var(--split-hero-bg-mobile, var(--split-hero-bg, none));
    background-position: center top;
  }

  /* White fade behind the text, clear at the bottom */
  .split-hero::before {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.78) 55%,
      rgba(255, 255, 255, 0) 100%);
  }

  /* The top-down overlay above already covers the header area */
  .split-hero::after {
    display: none;
  }

  /* Top padding clears the site header (logo + menu ≈ 120px tall) */
  .split-hero__container {
    grid-template-columns: 1fr;
    padding: 160px 20px 240px;
  }

  /* Keep the CTA at its natural width instead of stretching */
  .split-hero__cta {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }

  .split-hero__spacer {
    display: none;
  }

  /* Media */
  .split-hero--has-media:not(.split-hero--media-hide-mobile) .split-hero__container {
    row-gap: 30px;
    padding: 180px 20px 40px;
  }

  .split-hero__tablet-screen iframe,
  .split-hero__tablet-screen video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .split-hero--media-first-mobile .split-hero__media {
    order: -1;
  }

  .split-hero--media-hide-mobile .split-hero__media {
    display: none;
  }

  /* Breadcrumb */
  .split-hero__breadcrumb {
    margin-bottom: 22px;
    padding: 0;
  }

  .split-hero__breadcrumb-sep {
    margin: 0 6px;
  }

}