/* 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;
  box-sizing: border-box;
  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: var(--hero-background-color, #ded8d1);
}

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

.block-hero-fullscreen_half {
  height: calc(60svh + var(--site-header-height, 0px));
  min-height: 0;
}

.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);
  will-change: transform;
}

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

.block-hero-parallax.block-hero-bg-image::before {
  inset: 0;
  background-attachment: scroll;
  background-position: center calc(50% + var(--hero-parallax-y, 0px));
  transform: none;
}

.block-hero-parallax.block-hero-bg-blurred_image::before {
  --hero-parallax-scale: 1.08;
  inset: 0;
  background-attachment: scroll;
  background-position: center calc(50% + var(--hero-parallax-y, 0px));
  transform: scale(var(--hero-parallax-scale));
}

@media (max-width: 799px) {
  .block-hero-parallax.block-hero-mobile-parallax-disabled.block-hero-bg-image::before,
  .block-hero-parallax.block-hero-mobile-parallax-disabled.block-hero-bg-blurred_image::before,
  .block-hero-mobile-fullscreen.block-hero-parallax.block-hero-mobile-parallax-disabled.block-hero-has-image::before {
    background-position: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-hero-parallax.block-hero-bg-image::before {
    inset: 0;
    background-attachment: scroll;
    background-position: center;
    transform: none;
  }

  .block-hero-parallax.block-hero-bg-blurred_image::before {
    inset: 0;
    background-position: center;
    background-attachment: scroll;
    transform: scale(1.08);
  }
}

.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-foreground-light {
  --hero-foreground-title: rgba(255, 252, 246, .95);
  --hero-foreground-text: rgba(255, 252, 246, .7);
  --hero-foreground-eyebrow: rgba(255, 252, 246, .88);
  --hero-button-background: rgba(255, 252, 246, .92);
  --hero-button-color: rgba(16, 20, 25, .92);
  --hero-button-border: rgba(255, 252, 246, .52);
}

.block-hero-foreground-dark {
  --hero-foreground-title: rgba(16, 20, 25, .9);
  --hero-foreground-text: rgba(16, 20, 25, .68);
  --hero-foreground-eyebrow: rgba(16, 20, 25, .78);
  --hero-button-background: rgba(16, 20, 25, .9);
  --hero-button-color: rgba(255, 252, 246, .96);
  --hero-button-border: rgba(16, 20, 25, .18);
}

.block-hero-foreground-light.block-hero-bg-image::after,
.block-hero-foreground-light.block-hero-bg-blurred_image::after {
  background: linear-gradient(90deg, rgba(17, 24, 24, .68), rgba(17, 24, 24, .3) 52%, rgba(17, 24, 24, .16));
}

.block-hero-foreground-dark.block-hero-bg-image::after,
.block-hero-foreground-dark.block-hero-bg-blurred_image::after {
  background: linear-gradient(90deg, rgba(255, 252, 246, .72), rgba(255, 252, 246, .34) 52%, rgba(255, 252, 246, .12));
}

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

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

.block-hero-foreground-dark.block-hero-overlay-soft::after {
  background: rgba(255, 252, 246, .34);
}

.block-hero-foreground-dark.block-hero-overlay-dark::after {
  background: rgba(255, 252, 246, .62);
}

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

@media (min-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 {
  height: 100%;
  min-height: 0;
}

.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;
}

@media (max-width: 899px) {
  .block-hero-mobile-fullscreen {
    position: relative;
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding-block: calc(var(--site-header-height, 0px) + clamp(2rem, 8vw, 3rem)) clamp(2rem, 8vw, 3rem);
    isolation: isolate;
  }

  .block-hero-mobile-fullscreen .block__inner,
  .block-hero-mobile-fullscreen .block__content {
    height: 100%;
    min-height: 0;
  }

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

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

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

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

  .block-hero-mobile-fullscreen.block-hero-parallax.block-hero-has-image::before {
    background-position: center calc(50% + var(--hero-parallax-y, 0px));
  }

  .block-hero-mobile-fullscreen.block-hero-has-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-mobile-fullscreen.block-hero-foreground-light.block-hero-overlay-soft::after {
    background: rgba(27, 35, 35, .24);
  }

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

  .block-hero-mobile-fullscreen.block-hero-foreground-dark.block-hero-overlay-soft::after {
    background: rgba(255, 252, 246, .34);
  }

  .block-hero-mobile-fullscreen.block-hero-foreground-dark.block-hero-overlay-dark::after {
    background: rgba(255, 252, 246, .62);
  }

  .block-hero-mobile-fullscreen.block-hero-has-image .hero-image {
    display: none;
  }

  .block-hero-mobile-fullscreen.block-hero-has-image .hero-eyebrow {
    color: var(--hero-foreground-eyebrow, #fff) !important;
  }
}

.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: var(--hero-foreground-eyebrow, #fff) !important;
}

.hero-content .block__title {
  margin-top: -1rem;
  color: var(--hero-foreground-title, 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: var(--hero-foreground-text, rgba(255, 252, 246, .65));
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.65;
  max-width: 38rem;
}

.block-hero-foreground-dark .hero-content .block__title {
  color: var(--hero-foreground-title, rgba(16, 20, 25, .9));
}

.block-hero-foreground-dark .hero-content .block__text {
  color: var(--hero-foreground-text, rgba(16, 20, 25, .68));
}

.hero-btn {
  --button-bg: var(--hero-button-background, var(--color-primary));
  --button-color: var(--hero-button-color, var(--color-surface));
  width: fit-content;
  margin-top: 1.4rem;
  border-color: var(--hero-button-border, transparent);
  background: var(--hero-button-background, var(--color-primary));
  color: var(--hero-button-color, var(--color-surface));
}

body[class*="theme-riva-"] .block-hero-foreground-light {
  --riva-hero-button-background: transparent;
  --riva-hero-button-color: rgba(16, 20, 25, .92);
  --riva-hero-button-border: rgba(255, 252, 246, .34);
  --riva-hero-button-hover-background: rgba(255, 252, 246, .32);
}

body[class*="theme-riva-"] .block-hero-foreground-dark {
  --riva-hero-button-background: transparent;
  --riva-hero-button-color: rgba(16, 20, 25, .92);
  --riva-hero-button-border: rgba(16, 20, 25, .14);
  --riva-hero-button-hover-background: rgba(255, 252, 246, .32);
}

body[class*="theme-riva-"] .block-hero-overlay-medium.block-hero-foreground-light,
body[class*="theme-riva-"] .block-hero-overlay-dark.block-hero-foreground-light {
  --riva-hero-button-background: rgba(255, 252, 246, .46);
  --riva-hero-button-hover-background: rgba(255, 252, 246, .62);
}

body[class*="theme-riva-"] .block-hero-overlay-medium.block-hero-foreground-dark,
body[class*="theme-riva-"] .block-hero-overlay-dark.block-hero-foreground-dark {
  --riva-hero-button-background: rgba(255, 252, 246, .46);
  --riva-hero-button-hover-background: rgba(255, 252, 246, .62);
}

body[class*="theme-riva-"] .hero-btn {
  --button-bg: var(--riva-hero-button-background);
  --button-bg-hover: var(--riva-hero-button-hover-background);
  --button-color: rgba(16, 20, 25, .92);
  --button-color-hover: rgba(16, 20, 25, .92);
  position: relative;
  z-index: 2;
  border-color: transparent;
  background: var(--riva-hero-button-background);
  background-color: var(--riva-hero-button-background);
  color: rgba(16, 20, 25, .92) !important;
  box-shadow: 0 .85rem 1.8rem rgba(16, 20, 25, .12);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
}

body[class*="theme-riva-"] .hero-btn:hover {
  border-color: transparent;
  background: var(--riva-hero-button-hover-background);
  background-color: var(--riva-hero-button-hover-background);
  color: rgba(16, 20, 25, .92) !important;
}

.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 {
  height: calc(60svh + var(--site-header-height, 0px));
  min-height: 0;
}

@media (min-width: 900px) {
  body[class*="theme-riva-"] .block-hero-fullscreen_half .hero-content {
    transform: translateY(clamp(2.2rem, 7.7svh, 5.5rem));
  }
}

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);
}

@media (max-width: 899px) {
  body[class] .block-hero-mobile-fullscreen {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
}

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 (min-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 (max-width: 899px) {
  body.theme-felix-arba .block-hero.felix-hero::after {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 24rem);
    margin-top: 1.5rem;
  }
}
