/**
 * Hero Section.
 *
 * Seção Hero reutilizável do Nexo Page Kit.
 */

.nexo-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--nexo-hero-section-min-height, 680px);
  padding: var(--nexo-hero-section-padding-y, 170px)
    var(--nexo-hero-section-padding-x, 24px)
    var(--nexo-hero-section-padding-bottom, 130px);
  color: var(--nexo-hero-section-text-color, #ffffff);
  background-color: #111827;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, var(--nexo-hero-section-overlay-opacity, 0.62)),
      rgba(0, 0, 0, var(--nexo-hero-section-overlay-opacity, 0.62))
    ),
    var(--nexo-hero-section-background-image, none);
  background-repeat: no-repeat;
  background-position: var(
    --nexo-hero-section-background-position,
    center center
  );
  background-size: cover;
  overflow: hidden;
}

.nexo-hero-section *,
.nexo-hero-section *::before,
.nexo-hero-section *::after {
  box-sizing: border-box;
}

.nexo-hero-section__inner {
  position: relative;
  z-index: 1;
  width: min(var(--nexo-hero-section-content-width, 980px), 100%);
  margin: 0 auto;
  text-align: var(--nexo-hero-section-text-align, center);
}

.nexo-hero-section__title {
  max-width: var(--nexo-hero-section-title-width, 920px);
  margin: 0 auto;
  color: currentColor;
  font-family: var(
    --nexo-font-family-headings,
    "Nunito Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif
  );
  font-size: var(--nexo-hero-section-title-size, clamp(40px, 5vw, 68px));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.nexo-hero-section__title-line {
  display: block;
}

.nexo-hero-section__title-accent {
  color: var(--nexo-hero-section-accent-color, #ff5a00);
}

.nexo-hero-section__subtitle {
  max-width: var(--nexo-hero-section-subtitle-width, 620px);
  margin: 28px auto 0;
  color: currentColor;
  font-family: var(
    --nexo-font-family-body,
    "Nunito Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif
  );
  font-size: var(--nexo-hero-section-subtitle-size, 17px);
  font-weight: 400;
  line-height: 1.35;
}

.nexo-hero-section__inner[style*="left"] .nexo-hero-section__title,
.nexo-hero-section__inner[style*="left"] .nexo-hero-section__subtitle {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .nexo-hero-section {
    min-height: var(--nexo-hero-section-min-height-tablet, 560px);
    padding-top: var(--nexo-hero-section-padding-y-tablet, 140px);
    padding-bottom: var(--nexo-hero-section-padding-bottom-tablet, 96px);
  }

  .nexo-hero-section__title {
    font-size: var(
      --nexo-hero-section-title-size-tablet,
      clamp(34px, 6vw, 54px)
    );
  }
}

@media (max-width: 640px) {
  .nexo-hero-section {
    min-height: var(--nexo-hero-section-min-height-mobile, 480px);
    padding-right: 20px;
    padding-left: 20px;
    padding-top: var(--nexo-hero-section-padding-y-mobile, 120px);
    padding-bottom: var(--nexo-hero-section-padding-bottom-mobile, 76px);
  }

  .nexo-hero-section__title {
    font-size: var(--nexo-hero-section-title-size-mobile, 34px);
    line-height: 1.08;
  }

  .nexo-hero-section__subtitle {
    margin-top: 22px;
    font-size: var(--nexo-hero-section-subtitle-size-mobile, 15px);
  }
}
