/* Component: hero */

.cbf-hero-container {
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: max(100vh, 500px);
  position: relative;
}

body.admin-bar .cbf-hero-container {
  min-height: max(calc(100vh - 32px), 500px);
}

/* "Use Row Background" = yes: let the BB row's own background (e.g. a row video)
   show through. The gradient overlay below still applies. */
.cbf-hero-container--row-bg {
  background-color: transparent;
}

.cbf-hero-container::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.65) 100%);
  content: '';
  inset: 0;
  position: absolute;
}

.cbf-hero-content-wrapper {
  align-items: center;
  display: flex;
  inset: 0;
  padding-top: 90px;
  padding-bottom: 90px;
  padding-left: 20px;
  padding-right: 20px;
  position: absolute;
  width: 100%;
}

.cbf-hero-content-inner {
  width: 100%;
}

@media (min-width: 992px) {
  .cbf-hero-content-inner,
  .cbf-hero-highlights-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.cbf-hero-content {
  max-width: 100%;
  width: 100%;
}

.cbf-hero-eyebrow {
  color: #0cfea7;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cbf-hero-eyebrow:empty {
  display: none;
}

.cbf-hero-title {
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cbf-hero-subtitle {
  color: #ffffff;
  margin-bottom: 2rem;
  max-width: 650px;
  opacity: 0.9;
}

.cbf-hero-buttons {
  gap: 1rem;
}

.cbf-hero-highlights-wrapper {
  flex: 0 0 auto !important;
  margin-top: auto;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.cbf-hero-highlights-inner {
  width: 100%;
}

.cbf-hero-highlights {
  gap: 1.5rem;
}

.cbf-hero-highlight-item {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  flex: 1 1 200px;
  padding-top: 1rem;
}

.cbf-hero-highlight-label {
  color: #ffffff;
  font-size: 1.1rem;
}

@media (max-width: 782px) {
  body.admin-bar .cbf-hero-container {
    min-height: max(calc(100vh - 46px), 500px);
  }
}

@media (max-width: 767.98px) {
  .cbf-hero-content-wrapper {
    flex: 1 0 auto;
    inset: auto;
    padding-top: 110px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    position: static;
  }

  .cbf-hero-highlights-wrapper {
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cbf-hero-highlights {
    gap: 0.75rem;
  }

  .cbf-hero-highlight-item {
    flex: 1 1 100%;
    padding-top: 0.5rem;
  }
}

/* An empty subtitle (e.g. a Service with no Hero Introduction) leaves no gap. */
.cbf-hero-subtitle:empty {
  display: none;
}
