/* Small hero — stacked layout per Figma (node 378:7): banner image, dark band, centered copy */

.smallHero {
  width: min(95vw, 2439px);
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.smallHero__inner {
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Banner image (~2439×688 in design) — rounded corners, cover */
.smallHero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  position: relative;
}

.smallHero__media-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2439 / 688;
  object-fit: cover;
}

/* Optional text row pinned to the bottom of the image */
.smallHero__image-text-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(0.75rem, 1.2vw + 0.45rem, 1.25rem)
    clamp(1rem, 3vw, 2rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.smallHero__image-text {
  margin: 0;
  width: 100%;
  color: #fff;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.35vw + 0.82rem, 1.6875rem);
  line-height: 1.35;
  text-align: left;
}

.smallHero--image-full-height .smallHero__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  margin-inline: auto;
  overflow: hidden;
}

.smallHero--image-full-height .smallHero__media-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}

.smallHero--text-overlay.smallHero--image-full-height .smallHero__inner {
  height: auto;
  min-height: 0;
  max-height: none;
}

.smallHero--text-overlay.smallHero--image-full-height .smallHero__figure {
  position: relative;
  inset: auto;
  width: fit-content;
  max-width: calc(100% - 20px);
  max-height: 500px;
  margin-left: auto;
  margin-right: 20px;
}

.smallHero--text-overlay.smallHero--image-full-height .smallHero__media-img {
  min-height: 0;
}

/* Dark strip below image — centered column, gap 45px between major blocks */
.smallHero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  width: 100%;
  box-sizing: border-box;
  padding-block: clamp(2.75rem, 5vw + 1.75rem, 5rem)
    clamp(2.75rem, 4vw + 1.75rem, 4.5rem);
  padding-inline: clamp(1.25rem, 7.5vw, 184px);
  margin-top: 0;
}

/* Below-image: full width matches heroBlock (default) */
.smallHero--text-full .smallHero__content,
.smallHero--text-full .smallHero__copy,
.smallHero--text-full .smallHero__description {
  width: 100%;
  max-width: none;
}

/* Below-image: original narrower text column */
.smallHero--text-contained .smallHero__description {
  max-width: 1271px;
}

.smallHero__title {
  margin: 0;
  max-width: 100%;
  color: #a3b199;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 1.65rem + 3.85vw, 7.5rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.smallHero__description {
  margin: 0;
  width: 100%;
  max-width: none;
  color: #fff;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 0.8rem + 1.1vw, 2.25rem);
  line-height: 1.333;
  text-align: center;
}

.smallHero__description p {
  margin: 0 0 1em;
  width: 100%;
  max-width: none;
}

.smallHero__description p:last-child {
  margin-bottom: 0;
}

.smallHero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  width: 100%;
}

/* Decorative rule — Figma: ~345×1 vector between copy and footer area */
.smallHero__divider {
  flex-shrink: 0;
  width: min(345px, 100%);
  height: 1px;
  background-color: rgba(163, 177, 153, 0.5);
}

.smallHero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.95rem, 0.35vw + 0.35rem, 0.55rem)
    clamp(1rem, 1.5vw + 0.65rem, 1.35rem);
  border-radius: 40px;
  background-color: #a3b199;
  color: #1a1a1a;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-size: clamp(0.8125rem, 0.22vw + 0.74rem, 0.9375rem);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  box-shadow: -3px -3px 5px 0 rgba(255, 255, 255, 0.2);
}

.smallHero__button:hover,
.smallHero__button:focus-visible {
  background: #79896d;
  box-shadow:
    0 5px 6px 0 rgba(0, 0, 0, 0.42) inset,
    3px 3px 10px 0 rgba(255, 255, 255, 0.2);
}

/* Text overlaid on the banner */
.smallHero--text-overlay .smallHero__inner {
  position: relative;
  padding: 0;
}

.smallHero--text-overlay .smallHero__figure {
  position: relative;
  isolation: isolate;
}

.smallHero__figure-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.55) 0%,
      rgba(102, 102, 102, 0) 72%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0.92;
}

.smallHero--text-overlay .smallHero__content {
  position: absolute;
  top: 50%;
  left: clamp(1.25rem, 4.5vw, 4.5rem);
  z-index: 2;
  transform: translateY(-50%);
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: min(720px, 62%);
  max-width: 62%;
  padding: 0;
  margin-top: 0;
}

.smallHero--text-overlay .smallHero__copy {
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.25rem);
  width: 100%;
}

.smallHero--text-overlay.smallHero--copy-row .smallHero__content {
  width: min(960px, 78%);
  max-width: 78%;
}

.smallHero--text-overlay.smallHero--copy-row .smallHero__copy {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.smallHero--text-overlay.smallHero--copy-row .smallHero__title {
  flex: 0 1 42%;
  max-width: 14ch;
}

.smallHero--text-overlay .smallHero__copy-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.25rem);
  width: 100%;
}

.smallHero--text-overlay.smallHero--copy-row .smallHero__copy-body {
  flex: 1 1 58%;
  max-width: none;
}

.smallHero--text-overlay.smallHero--copy-row .smallHero__description {
  max-width: none;
}

.smallHero--text-overlay .smallHero__title {
  max-width: 14ch;
  font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: left;
}

.smallHero--text-overlay .smallHero__description {
  max-width: 38rem;
  font-size: clamp(0.9375rem, 0.82rem + 0.55vw, 1.125rem);
  line-height: 1.45;
  text-align: left;
}

.smallHero--text-overlay .smallHero__divider {
  display: none;
}

@media (max-width: 699px) {
  .smallHero__content {
    gap: clamp(1.75rem, 6vw, 2.8125rem);
    padding-inline: clamp(1rem, 4vw, 1.75rem);
  }

  .smallHero--text-overlay .smallHero__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 5vw, 2rem);
    padding: 0;
  }

  .smallHero--text-overlay .smallHero__content {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    align-items: center;
    gap: clamp(0.875rem, 4vw, 1.25rem);
    padding-inline: clamp(1rem, 4vw, 1.75rem);
  }

  .smallHero--text-overlay .smallHero__copy {
    align-items: center;
    gap: clamp(0.875rem, 4vw, 1.25rem);
  }

  .smallHero--text-overlay.smallHero--copy-row .smallHero__copy {
    flex-direction: column;
  }

  .smallHero--text-overlay.smallHero--copy-row .smallHero__title {
    flex: none;
  }

  .smallHero--text-overlay.smallHero--copy-row .smallHero__copy-body {
    flex: none;
    width: 100%;
  }

  .smallHero--text-overlay .smallHero__title {
    max-width: 100%;
    font-size: clamp(1.75rem, 1.1rem + 4vw, 2.5rem);
    text-align: center;
  }

  .smallHero--text-overlay .smallHero__description {
    text-align: center;
  }

  .smallHero--text-overlay.smallHero--image-full-height .smallHero__figure {
    max-width: 100%;
    margin-inline: auto;
  }

  .smallHero--image-full-height .smallHero__figure {
    max-height: 500px;
  }

  .smallHero--image-full-height .smallHero__media-img {
    max-height: 500px;
  }

  .smallHero__divider {
    width: min(280px, 85%);
  }

  .smallHero__image-text-row {
    padding: clamp(0.65rem, 3vw, 0.9rem) clamp(0.85rem, 4vw, 1.25rem);
  }

  .smallHero__image-text {
    font-size: clamp(0.9375rem, 0.8rem + 1.4vw, 1.125rem);
  }
}
