/* Frontend block styles: hero. */
.block-hero {
  display: grid;
  overflow: hidden;
  background: var(--hero-background-color, var(--color-background));
  padding-block: clamp(3rem, 7vw, 7rem);
}

.block-hero-fullscreen,
.block-hero-fullscreen_half {
  position: relative;
  padding-block: calc(var(--site-header-height, 0px) + clamp(3rem, 6vw, 6rem)) clamp(3rem, 6vw, 6rem);
  background: var(--hero-background-color, var(--color-background));
  isolation: isolate;
}

.block-hero-bg-image.block-hero-fullscreen,
.block-hero-bg-image.block-hero-fullscreen_half {
  background: #111;
}

.block-hero-fullscreen {
  min-height: 100svh;
}

.block-hero-fullscreen_half {
  min-height: 50svh;
}

.block-hero-half {
  min-height: 50svh;
  background:
    linear-gradient(135deg, rgba(239, 228, 216, .52), rgba(222, 235, 232, .68)),
    var(--hero-background-color, var(--color-background));
}

.block-hero-bg-blurred_image,
.block-hero-bg-image {
  isolation: isolate;
}

.block-hero-bg-blurred_image::before,
.block-hero-bg-blurred_image::after,
.block-hero-bg-image::before,
.block-hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.block-hero-bg-blurred_image::before {
  z-index: -2;
  background-image: var(--hero-bg-image);
  background-position: center;
  background-size: cover;
  filter: blur(26px) saturate(.75);
  transform: scale(1.08);
}

.block-hero-bg-image::before {
  z-index: -2;
  background-image: var(--hero-bg-image);
  background-position: center;
  background-size: cover;
  transform: none;
}

.block-hero-bg-blurred_image::after {
  z-index: -1;
  background: rgba(27, 35, 35, .36);
}

.block-hero-bg-image::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 24, 24, .66), rgba(17, 24, 24, .28) 52%, rgba(17, 24, 24, .18));
}

.block-hero-overlay-soft::after {
  background: rgba(27, 35, 35, .24);
}

.block-hero-overlay-dark::after {
  background: rgba(27, 35, 35, .54);
}

.block-hero-bg-blurred_image .hero-content .block__title,
.block-hero-bg-image .hero-content .block__title {
  color: rgba(255, 252, 246, .95);
}

.block-hero-bg-blurred_image .hero-content .block__text,
.block-hero-bg-image .hero-content .block__text {
  color: rgba(255, 252, 246, .65);
}

.block-hero .block__content {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: inherit;
}

@media (width >= 900px) {
  .block-hero-text_left .block__content,
  .block-hero-image_left .block__content {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .block-hero-image_left .hero-image {
    order: -1;
  }
}

.block-hero-overlay .block__content {
  display: grid;
}

.block-hero-overlay .hero-content,
.block-hero-overlay .hero-image {
  grid-area: 1 / 1;
}

.block-hero-overlay .hero-content {
  z-index: 1;
  align-self: center;
  max-width: 54rem;
  padding: clamp(1rem, 4vw, 4rem);
}

.block-hero-overlay .hero-image {
  min-height: min(72svh, 48rem);
  opacity: .74;
}

.block-hero-fullscreen .block__inner,
.block-hero-fullscreen .block__content,
.block-hero-fullscreen_half .block__inner,
.block-hero-fullscreen_half .block__content {
  min-height: inherit;
}

.block-hero-fullscreen .block__content,
.block-hero-fullscreen_half .block__content {
  grid-template-columns: minmax(0, 1fr);
}

.block-hero-fullscreen .hero-content,
.block-hero-fullscreen_half .hero-content {
  z-index: 1;
  align-self: center;
  max-width: min(46rem, 100%);
}

.block-hero-bg-image.block-hero-fullscreen .hero-image,
.block-hero-bg-image.block-hero-fullscreen_half .hero-image {
  display: none;
}

.hero-content {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.hero-eyebrow {
  max-width: 100%;
  margin: 0;
}

.block-hero-bg-blurred_image .hero-eyebrow,
.block-hero-bg-image .hero-eyebrow {
  color: #fff !important;
}

.hero-content .block__title {
  margin-top: -1rem;
  color: rgba(255, 252, 246, .95);
  font-size: clamp(2.5rem, 5vw, 5.75rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: .98;
}

.hero-content .block__text {
  color: rgba(255, 252, 246, .65);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.65;
  max-width: 38rem;
}

.hero-btn {
  width: fit-content;
  margin-top: 1.4rem;
}

.hero-image {
  overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  background: rgba(255, 255, 255, .4);
  box-shadow: 0 1.8rem 4rem rgba(68, 77, 72, .16);
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.88) contrast(.96);
}

body[class*="theme-riva-"] .block-hero-fullscreen_half {
  min-height: clamp(34rem, 72svh, 46rem);
}

body[class*="theme-riva-"] .hero-content {
  gap: 1rem;
}

body[class*="theme-riva-"] .hero-content .block__title {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
}

body[class*="theme-riva-"] .hero-content .block__text {
  max-width: 34rem;
}

body.theme-felix-arba .block-hero-fullscreen_half {
  min-height: clamp(32rem, 64svh, 44rem);
  border-bottom: .01rem solid var(--color-border);
}

body.theme-felix-arba .block-hero.felix-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(28, 105, 101, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 105, 101, .08) 1px, transparent 1px),
    #f4f7f1 !important;
  background-size: 4rem 4rem;
}

body.theme-felix-arba .block-hero.felix-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 7vw, 7rem);
  bottom: clamp(2rem, 6vw, 5rem);
  width: min(34rem, 42vw);
  aspect-ratio: 1.45;
  border: .01rem solid rgba(28, 105, 101, .24);
  background:
    linear-gradient(#1c6965 0 0) 8% 20% / 72% .42rem no-repeat,
    linear-gradient(#cf5b45 0 0) 8% 42% / 54% .34rem no-repeat,
    linear-gradient(#1c6965 0 0) 8% 64% / 84% .34rem no-repeat,
    linear-gradient(#101614 0 0) 8% 80% / 42% .34rem no-repeat,
    #ffffff;
  pointer-events: none;
}

body.theme-felix-arba .block-hero:not(.block-hero-bg-image):not(.block-hero-bg-blurred_image) .hero-content .block__title {
  max-width: 11ch;
  color: #101614;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
}

body.theme-felix-arba .block-hero:not(.block-hero-bg-image):not(.block-hero-bg-blurred_image) .hero-content .block__text {
  color: rgba(16, 22, 20, .72);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 400;
}

body.theme-felix-arba .hero-eyebrow {
  color: #1c6965;
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0;
}

body.theme-felix-arba .felix-hero .hero-btn {
  background: #1c6965;
  color: #ffffff;
}

.hero-lead-capture {
  display: grid;
  gap: .7rem;
  width: min(100%, 42rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.hero-lead-row {
  display: grid;
  gap: .65rem;
  padding: .35rem;
  border: .12rem solid rgba(16, 22, 20, .16);
  border-radius: .3rem;
  background: #ffffff;
}

@media (width >= 680px) {
  .hero-lead-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.hero-lead-row input {
  min-width: 0;
  min-height: 4rem;
  border: 0;
  padding: 0 1rem;
  background: transparent;
  color: #101614;
  font: inherit;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-lead-row input:focus {
  outline: 0;
  box-shadow: inset 0 -.12rem 0 #1c6965;
}

.hero-lead-row button {
  min-height: 4rem;
  border: 0;
  border-radius: .15rem;
  padding-inline: clamp(1.2rem, 3vw, 2rem);
  background: #1c6965;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hero-lead-row button:hover {
  background: #101614;
}

.hero-lead-capture p {
  margin: 0;
  color: rgba(16, 22, 20, .62);
  font-size: .92rem;
}

@media (width < 900px) {
  body.theme-felix-arba .block-hero.felix-hero::after {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 24rem);
    margin-top: 1.5rem;
  }
}
