/* =========================================================
   CRT — Search Bridge Hero V2.3 DEV
   Premium reusable hero/bridge section
   ========================================================= */

.crt-sbh {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: var(--crt-sbh-height-desktop, 640px);
  overflow: hidden;
  color: #fffaf2;
  background: var(--crt-sbh-bg-color, #071019);
  box-sizing: border-box;
}

.crt-sbh *,
.crt-sbh *::before,
.crt-sbh *::after {
  box-sizing: border-box;
}

/* Full-bleed breakout
   Allows the hero background to escape HubSpot row/column gutters and occupy the real viewport width. */

.crt-sbh--full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@supports (width: 100dvw) {
  .crt-sbh--full-bleed {
    width: 100dvw;
    max-width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

@media (max-width: 767px) {
  .crt-sbh--full-bleed:not(.crt-sbh--full-bleed-mobile) {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.crt-sbh__base-gradient,
.crt-sbh__bg,
.crt-sbh__overlay,
.crt-sbh__gradient,
.crt-sbh__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-sbh__base-gradient {
  z-index: 0;
  opacity: var(--crt-sbh-bg-gradient-opacity, 1);
  background:
    linear-gradient(
      var(--crt-sbh-bg-gradient-direction, 135deg),
      var(--crt-sbh-bg-gradient-start, #071019) 0%,
      var(--crt-sbh-bg-gradient-end, #c6a46a) 100%
    );
}

.crt-sbh__bg {
  z-index: 0;
  overflow: hidden;
}

.crt-sbh__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--crt-sbh-bg-size, cover);
  object-position: var(--crt-sbh-bg-position-desktop, center center);
  transform: scale(1.001);
}

.crt-sbh__overlay {
  z-index: 1;
  background: var(--crt-sbh-overlay-color, #071019);
  opacity: var(--crt-sbh-overlay-opacity, 0.34);
}

.crt-sbh__gradient {
  z-index: 2;
  opacity: var(--crt-sbh-layer-gradient-opacity, 0.58);
  background:
    linear-gradient(
      var(--crt-sbh-layer-gradient-direction, to right),
      var(--crt-sbh-layer-gradient-start, #000000) 0%,
      rgba(0, 0, 0, 0.62) 42%,
      var(--crt-sbh-layer-gradient-end, #000000) 100%
    );
}

.crt-sbh__glow {
  z-index: 3;
  opacity: var(--crt-sbh-glow-opacity, 0.24);
  mix-blend-mode: var(--crt-sbh-glow-blend-mode, screen);
  background:
    radial-gradient(
      circle at var(--crt-sbh-glow-position, 18% 50%),
      var(--crt-sbh-glow-color, #fffaf2) 0%,
      rgba(255, 250, 242, 0.32) 30%,
      rgba(255, 250, 242, 0) var(--crt-sbh-glow-size, 620px)
    );
}

.crt-sbh__inner {
  position: relative;
  z-index: 5;
  display: flex;
  width: 100%;
  max-width: 1280px;
  min-height: inherit;
  margin: 0 auto;
  padding:
    var(--crt-sbh-padding-desktop-y, 96px)
    var(--crt-sbh-padding-desktop-x, 64px);
}

/* Horizontal alignment */

.crt-sbh--h-left .crt-sbh__inner {
  justify-content: flex-start;
}

.crt-sbh--h-center .crt-sbh__inner {
  justify-content: center;
}

.crt-sbh--h-right .crt-sbh__inner {
  justify-content: flex-end;
}

/* Vertical alignment */

.crt-sbh--v-top .crt-sbh__inner {
  align-items: flex-start;
}

.crt-sbh--v-center .crt-sbh__inner {
  align-items: center;
}

.crt-sbh--v-bottom .crt-sbh__inner {
  align-items: flex-end;
}

/* Content */

.crt-sbh__content {
  width: 100%;
  max-width: min(var(--crt-sbh-content-max-width, 680px), 100%);
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

.crt-sbh--text-left .crt-sbh__content {
  text-align: left;
}

.crt-sbh--text-center .crt-sbh__content {
  text-align: center;
}

.crt-sbh--text-right .crt-sbh__content {
  text-align: right;
}

/* Eyebrow */

.crt-sbh__eyebrow {
  margin: 0 0 18px;
  color: var(--crt-sbh-eyebrow-color, #f1ddbf);
  opacity: var(--crt-sbh-eyebrow-opacity, 1);
  font-family: var(--crt-sbh-eyebrow-font-family, inherit);
  font-size: var(--crt-sbh-eyebrow-font-size-desktop, 12px);
  font-weight: var(--crt-sbh-eyebrow-font-weight, 700);
  font-style: var(--crt-sbh-eyebrow-font-style, normal);
  line-height: var(--crt-sbh-eyebrow-line-height, 1.2);
  letter-spacing: var(--crt-sbh-eyebrow-letter-spacing, 0.18em);
  text-transform: var(--crt-sbh-eyebrow-transform, uppercase);
}

/* Headline */

.crt-sbh__headline {
  margin: 0;
  max-width: 12.5em;
  color: var(--crt-sbh-headline-color, #fffaf2);
  opacity: var(--crt-sbh-headline-opacity, 1);
  font-family: var(--crt-sbh-headline-font-family, inherit);
  font-size: var(--crt-sbh-headline-font-size-desktop, 68px);
  font-weight: var(--crt-sbh-headline-font-weight, 650);
  font-style: var(--crt-sbh-headline-font-style, normal);
  line-height: var(--crt-sbh-headline-line-height, 0.96);
  letter-spacing: var(--crt-sbh-headline-letter-spacing, -0.055em);
}

.crt-sbh--text-center .crt-sbh__headline {
  margin-right: auto;
  margin-left: auto;
}

.crt-sbh--text-right .crt-sbh__headline {
  margin-left: auto;
}

/* Main text */

.crt-sbh__text {
  max-width: min(var(--crt-sbh-main-max-width, 650px), 100%);
  margin-top: 24px;
  color: var(--crt-sbh-main-color, #fffaf2);
  opacity: var(--crt-sbh-main-opacity, 0.9);
  font-family: var(--crt-sbh-main-font-family, inherit);
  font-size: var(--crt-sbh-main-font-size-desktop, 20px);
  font-weight: var(--crt-sbh-main-font-weight, 400);
  font-style: var(--crt-sbh-main-font-style, normal);
  line-height: var(--crt-sbh-main-line-height, 1.58);
  letter-spacing: var(--crt-sbh-main-letter-spacing, 0em);
}

.crt-sbh__text p,
.crt-sbh__note p {
  margin: 0;
}

.crt-sbh__text p + p {
  margin-top: 0.85em;
}

.crt-sbh--text-center .crt-sbh__text,
.crt-sbh--text-center .crt-sbh__note {
  margin-right: auto;
  margin-left: auto;
}

.crt-sbh--text-right .crt-sbh__text,
.crt-sbh--text-right .crt-sbh__note {
  margin-left: auto;
}

/* Note */

.crt-sbh__note {
  max-width: min(var(--crt-sbh-note-max-width, 620px), 100%);
  margin-top: 22px;
  color: var(--crt-sbh-note-color, #fffaf2);
  opacity: var(--crt-sbh-note-opacity, 0.78);
  font-family: var(--crt-sbh-note-font-family, inherit);
  font-size: var(--crt-sbh-note-font-size-desktop, 16px);
  font-weight: var(--crt-sbh-note-font-weight, 400);
  font-style: var(--crt-sbh-note-font-style, normal);
  line-height: var(--crt-sbh-note-line-height, 1.55);
  letter-spacing: var(--crt-sbh-note-letter-spacing, 0em);
}

/* Actions */

.crt-sbh__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--crt-sbh-button-gap, 14px);
  margin-top: 28px;
}

.crt-sbh--buttons-inline .crt-sbh__actions {
  flex-direction: row;
  align-items: center;
}

.crt-sbh--buttons-stacked .crt-sbh__actions {
  flex-direction: column;
}

/* Button alignment */

.crt-sbh--buttons-align-left .crt-sbh__actions {
  justify-content: flex-start;
  align-items: flex-start;
}

.crt-sbh--buttons-align-center .crt-sbh__actions {
  justify-content: center;
  align-items: center;
}

.crt-sbh--buttons-align-right .crt-sbh__actions {
  justify-content: flex-end;
  align-items: flex-end;
}

.crt-sbh--buttons-align-follow_text.crt-sbh--text-left .crt-sbh__actions {
  justify-content: flex-start;
  align-items: flex-start;
}

.crt-sbh--buttons-align-follow_text.crt-sbh--text-center .crt-sbh__actions {
  justify-content: center;
  align-items: center;
}

.crt-sbh--buttons-align-follow_text.crt-sbh--text-right .crt-sbh__actions {
  justify-content: flex-end;
  align-items: flex-end;
}

/* Buttons */

.crt-sbh__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid transparent;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.crt-sbh__button:hover,
.crt-sbh__button:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.crt-sbh__button:focus-visible {
  outline: 3px solid rgba(255, 250, 242, 0.75);
  outline-offset: 4px;
}

.crt-sbh__button-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.crt-sbh__button-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

.crt-sbh__button-icon:first-child {
  margin-right: 8px;
}

.crt-sbh__button-icon:last-child {
  margin-left: 8px;
}

/* Primary base */

.crt-sbh__button--primary {
  padding:
    var(--crt-sbh-primary-padding-y, 15px)
    var(--crt-sbh-primary-padding-x, 24px);
  border-radius: var(--crt-sbh-primary-radius, 999px);
  font-family: var(--crt-sbh-primary-font-family, inherit);
  font-size: var(--crt-sbh-primary-font-size, 14px);
  font-weight: var(--crt-sbh-primary-font-weight, 750);
  font-style: var(--crt-sbh-primary-font-style, normal);
}

/* Secondary base */

.crt-sbh__button--secondary {
  padding:
    var(--crt-sbh-secondary-padding-y, 15px)
    var(--crt-sbh-secondary-padding-x, 24px);
  border-radius: var(--crt-sbh-secondary-radius, 999px);
  font-family: var(--crt-sbh-secondary-font-family, inherit);
  font-size: var(--crt-sbh-secondary-font-size, 14px);
  font-weight: var(--crt-sbh-secondary-font-weight, 700);
  font-style: var(--crt-sbh-secondary-font-style, normal);
}

/* Presets */

.crt-sbh__button--preset-light {
  background: #fffaf2;
  color: #101418;
  border-color: #fffaf2;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.crt-sbh__button--preset-light:hover,
.crt-sbh__button--preset-light:focus {
  background: #ffffff;
  color: #070b10;
  border-color: #ffffff;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.crt-sbh__button--preset-dark {
  background: #101418;
  color: #fffaf2;
  border-color: #101418;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.crt-sbh__button--preset-dark:hover,
.crt-sbh__button--preset-dark:focus {
  background: #05070a;
  color: #fffaf2;
  border-color: #05070a;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.crt-sbh__button--preset-glass {
  background: rgba(255, 250, 242, 0.10);
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.crt-sbh__button--preset-glass:hover,
.crt-sbh__button--preset-glass:focus {
  background: rgba(255, 250, 242, 0.18);
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.70);
}

.crt-sbh__button--preset-outline_light {
  background: transparent;
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.68);
}

.crt-sbh__button--preset-outline_light:hover,
.crt-sbh__button--preset-outline_light:focus {
  background: #fffaf2;
  color: #101418;
  border-color: #fffaf2;
}

.crt-sbh__button--preset-outline_dark {
  background: rgba(255, 250, 242, 0.72);
  color: #101418;
  border-color: rgba(16, 20, 24, 0.46);
}

.crt-sbh__button--preset-outline_dark:hover,
.crt-sbh__button--preset-outline_dark:focus {
  background: #101418;
  color: #fffaf2;
  border-color: #101418;
}

/* Custom primary */

.crt-sbh__button--primary.crt-sbh__button--preset-custom {
  background: var(--crt-sbh-primary-bg, #fffaf2);
  color: var(--crt-sbh-primary-text, #101418);
  border-color: var(--crt-sbh-primary-border, #fffaf2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.crt-sbh__button--primary.crt-sbh__button--preset-custom:hover,
.crt-sbh__button--primary.crt-sbh__button--preset-custom:focus {
  background: var(--crt-sbh-primary-hover-bg, #ffffff);
  color: var(--crt-sbh-primary-hover-text, #070b10);
  border-color: var(--crt-sbh-primary-hover-border, #ffffff);
}

/* Custom secondary */

.crt-sbh__button--secondary.crt-sbh__button--preset-custom {
  background: var(--crt-sbh-secondary-bg, rgba(255, 255, 255, 0.12));
  color: var(--crt-sbh-secondary-text, #fffaf2);
  border-color: var(--crt-sbh-secondary-border, rgba(255, 250, 242, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.crt-sbh__button--secondary.crt-sbh__button--preset-custom:hover,
.crt-sbh__button--secondary.crt-sbh__button--preset-custom:focus {
  background: var(--crt-sbh-secondary-hover-bg, rgba(255, 255, 255, 0.2));
  color: var(--crt-sbh-secondary-hover-text, #fffaf2);
  border-color: var(--crt-sbh-secondary-hover-border, rgba(255, 250, 242, 0.76));
}

/* Tablet */

@media (max-width: 1024px) {
  .crt-sbh__headline {
    font-size: clamp(
      var(--crt-sbh-headline-font-size-mobile, 42px),
      7vw,
      var(--crt-sbh-headline-font-size-desktop, 68px)
    );
  }
}

/* Mobile */

@media (max-width: 767px) {
  .crt-sbh {
    min-height: var(--crt-sbh-height-mobile, 620px);
  }

  .crt-sbh__image {
    object-position: var(--crt-sbh-bg-position-mobile, center center);
  }

  .crt-sbh__inner {
    padding:
      var(--crt-sbh-padding-mobile-y, 72px)
      var(--crt-sbh-padding-mobile-x, 24px);
  }

  .crt-sbh__content {
    max-width: 100%;
  }

  .crt-sbh__eyebrow {
    margin-bottom: 14px;
    font-size: var(--crt-sbh-eyebrow-font-size-mobile, 11px);
  }

  .crt-sbh__headline {
    font-size: var(--crt-sbh-headline-font-size-mobile, 42px);
  }

  .crt-sbh__text {
    margin-top: 20px;
    font-size: var(--crt-sbh-main-font-size-mobile, 16px);
  }

  .crt-sbh__note {
    margin-top: 18px;
    font-size: var(--crt-sbh-note-font-size-mobile, 14px);
  }

  .crt-sbh--mobile-buttons-stacked .crt-sbh__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .crt-sbh--mobile-buttons-stacked .crt-sbh__button {
    width: 100%;
  }

  .crt-sbh__button--primary {
    padding:
      var(--crt-sbh-primary-mobile-padding-y, 15px)
      var(--crt-sbh-primary-mobile-padding-x, 20px);
  }

  .crt-sbh__button--secondary {
    padding:
      var(--crt-sbh-secondary-mobile-padding-y, 15px)
      var(--crt-sbh-secondary-mobile-padding-x, 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt-sbh__button {
    transition: none;
  }

  .crt-sbh__button:hover,
  .crt-sbh__button:focus {
    transform: none;
  }
}

/* =========================================================
   V2.3 — Inline rich text normalization
   Allows superscript, bold, italic and simple inline formatting
   in eyebrow, headline, notes and button labels.
   ========================================================= */

.crt-sbh__eyebrow p,
.crt-sbh__headline p,
.crt-sbh__button-label p {
  display: inline;
  margin: 0;
}

.crt-sbh__button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crt-sbh__eyebrow strong,
.crt-sbh__eyebrow b,
.crt-sbh__headline strong,
.crt-sbh__headline b,
.crt-sbh__text strong,
.crt-sbh__text b,
.crt-sbh__note strong,
.crt-sbh__note b,
.crt-sbh__button-label strong,
.crt-sbh__button-label b {
  font-weight: 700;
}

.crt-sbh__eyebrow em,
.crt-sbh__eyebrow i,
.crt-sbh__headline em,
.crt-sbh__headline i,
.crt-sbh__text em,
.crt-sbh__text i,
.crt-sbh__note em,
.crt-sbh__note i,
.crt-sbh__button-label em,
.crt-sbh__button-label i {
  font-style: italic;
}

.crt-sbh__eyebrow sup,
.crt-sbh__headline sup,
.crt-sbh__text sup,
.crt-sbh__note sup,
.crt-sbh__button-label sup,
.crt-sbh__eyebrow sub,
.crt-sbh__headline sub,
.crt-sbh__text sub,
.crt-sbh__note sub,
.crt-sbh__button-label sub {
  position: relative;
  font-size: 0.58em;
  line-height: 0;
  vertical-align: baseline;
}

.crt-sbh__eyebrow sup,
.crt-sbh__headline sup,
.crt-sbh__text sup,
.crt-sbh__note sup,
.crt-sbh__button-label sup {
  top: -0.55em;
}

.crt-sbh__eyebrow sub,
.crt-sbh__headline sub,
.crt-sbh__text sub,
.crt-sbh__note sub,
.crt-sbh__button-label sub {
  bottom: -0.25em;
}

.crt-sbh__eyebrow a,
.crt-sbh__headline a,
.crt-sbh__text a,
.crt-sbh__note a,
.crt-sbh__button-label a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.18em;
}
