/* ── Custom Hero Banner ────────────────────────────────────── */

.cew-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 109px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clips the video to the section edges */
}

.cew-hero--overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 100%);
  z-index: 1;
  pointer-events: none;
}

.cew-hero--overlay-gradient::before {
  background: linear-gradient(
    var(--cew-overlay-angle, 0deg),
    var(--cew-overlay-start, rgba(0, 0, 0, 0.80)) 0%,
    var(--cew-overlay-end, rgba(0, 0, 0, 0.20)) 100%
  );
}

.cew-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cew-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
}

/* ── Copy + mockup row ───────────────────────────────────────
 * Without a mockup the row is `display: contents`, so the hero keeps its
 * original single-column layout untouched. It only becomes a flex row when
 * a mockup window is actually present.
 * ------------------------------------------------------------ */
.cew-hero-row {
  display: contents;
}

.cew-hero--has-panel .cew-hero-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.cew-hero--panel-left .cew-hero-row {
  flex-direction: row-reverse;
}

/* The `margin: 0 auto` that centres the copy in single-column mode would eat
   the row's free space and squash the mockup, so it is reset here. */
.cew-hero--has-panel .cew-content {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.cew-hero-media {
  display: flex;
  flex: 0 1 auto;
  min-width: 0; /* lets a wide image shrink instead of overflowing the row */
  justify-content: flex-end;
}

/* Side image — the alternative to the mockup window. The column shrinks to
   the image, so Max Width on the image is what sizes the whole side. */
.cew-hero-image-wrap {
  display: block;
  width: 100%;
  max-width: 540px;
}

.cew-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* ── Content ─────────────────────────────────────────────────── */
.cew-content {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 2;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 70px 0;
}

/* Top Heading (badge) */
.cew-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 16px;
  font-family: 'Plus Jakarta Sans';
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid;
  background-color: rgba(9, 20, 32, 0.45);
  color: #00C850;
}

/* Heading */
.cew-heading {
  color: #fff;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-size: 52px;
  font-weight: 700;
  line-height: 60.7px;
}

.cew-highlight {
  color: #1654C0;
}

.cew-heading-break {
  display: block;
}

/* Description */
.cew-description {
  color: #FFF;
  font-family: "Plus Jakarta Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30.6px;
  opacity: 0.8;
}

/* Buttons */
.cew-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cew-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans';
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 0;
}

.cew-btn-arrow {
  font-size: 16px;
  line-height: 1;
}

.cew-btn-primary {
  color: #fff;
  border: 1px solid #1654C0;
  background-color: #1654C0;
}

.cew-btn-primary:hover {
  color: #1654C0;
  background-color: #ffffff;
}

.cew-btn-outline {
  background-color: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.cew-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Tick List */
.cew-tick-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.cew-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cew-tick-icon {
  display: inline-flex;
  font-size: 16px;
  color: #00C850;
}

.cew-tick-icon svg {
  width: 16px;
  height: 16px;
}

.cew-tick-text {
  font-family: 'Plus Jakarta Sans';
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  line-height: normal;
  color: #fff;
}

@media (min-width: 1281px) {
  .cew-hero {
    justify-content: center !important;
    padding-top: 82px;
  }

  .cew-content {
    padding-bottom: 0;
  }
}

/* Laptop — 1280px and below */
@media (max-width: 1280px) {
  .cew-hero {
    padding: 150px 60px 90px;
  }

  .cew-heading {
    font-size: 40px;
    line-height: 47px;
  }
  .cew-description {
    font-size: 14px;
    line-height: 28px;
  }
}

/* Tablet landscape — 1024px and below */
@media (max-width: 1024px) {
  .cew-content {
    padding: 120px 0;
  }
  .cew-hero {
    padding: 0 24px;
  }
}

/* Tablet portrait — 768px and below */
@media (max-width: 768px) {

}

/* Stack the copy above the mockup — 991px and below */
@media (max-width: 991px) {
  .cew-hero--has-panel .cew-hero-row,
  .cew-hero--panel-left .cew-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cew-hero-media {
    justify-content: flex-start;
  }

  .cew-hero-image-wrap {
    max-width: 100%;
  }
}

/* "Solid Colour on Mobile" — drop the image/video and show the background
   colour instead. `display: none` on the wrapper also stops the video from
   being fetched on phones. */
@media (max-width: 768px) {
  .cew-content {
    padding: 142px 0 0;
  }
  .cew-hero--plain-mobile {
    background-image: none !important;
  }

  .cew-hero--plain-mobile .cew-video-wrap {
    display: none;
  }

  .cew-hero--plain-mobile.cew-hero--overlay::before {
    display: none;
  }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
  .cew-content {
    padding: 120px 0;
  }
  .cew-hero {
    padding: 0 24px;
  }
  .cew-hero--has-panel .cew-content {
    padding-bottom: 32px;
  }

  .cew-buttons {
    display: block;

  }
  .cew-btn {
    display: flex;
    margin-bottom: 12px;
  }
}
