/* Base layout + type — brand decoration in templates/<tpl>/blocks/hero/css/style.css */

.px-hero.style-1 {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-color: var(--px-color-dark);
  color: var(--px-color-on-dark);
  min-height: var(--px-hero-min-height);
  display: flex;
  align-items: center;
}

.px-hero.style-1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.px-hero__inner {
  position: relative;
  z-index: 1;
}

.px-hero.style-1 .h1,
.px-hero.style-1 .lead {
  color: inherit;
}

/* Fluid display size: template .h1 can be a fixed desktop size */
.px-hero.style-1 .h1 {
  font-size: var(--px-hero-title-size);
  line-height: var(--px-display-leading, 1.05);
  overflow-wrap: break-word;
  margin-bottom: var(--px-gap-lg);
}

.px-hero.style-1 .lead {
  max-width: 40rem;
}

.px-hero__inner.text-center .lead {
  margin-inline: auto;
}

.px-hero__inner.text-end .lead {
  margin-inline-start: auto;
}

.px-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--px-gap);
  margin-top: var(--px-gap);
}

.px-hero__inner.text-center .px-hero__actions {
  justify-content: center;
}

.px-hero__inner.text-end .px-hero__actions {
  justify-content: flex-end;
}

.px-hero.overlay-dark-sm::before {
  background: color-mix(in srgb, var(--px-color-dark) 30%, transparent);
}

.px-hero.overlay-dark-md::before {
  background: color-mix(in srgb, var(--px-color-dark) 50%, transparent);
}

.px-hero.overlay-dark-lg::before {
  background: color-mix(in srgb, var(--px-color-dark) 70%, transparent);
}

.px-hero.overlay-light-sm,
.px-hero.overlay-light-md,
.px-hero.overlay-light-lg {
  color: var(--body-text-color, var(--px-color-dark));
}

.px-hero.overlay-light-sm::before {
  background: color-mix(in srgb, var(--px-color-on-dark) 35%, transparent);
}

.px-hero.overlay-light-md::before {
  background: color-mix(in srgb, var(--px-color-on-dark) 55%, transparent);
}

.px-hero.overlay-light-lg::before {
  background: color-mix(in srgb, var(--px-color-on-dark) 75%, transparent);
}

/* Style 2 — agency: copy + visual image */
/* Vertical spacing comes from .px-block (Global › Spacing top/bottom) */
.px-hero.style-2 {
  background: transparent;
  color: var(--body-text-color, var(--px-ink-strong));
}

.px-hero.style-2 .px-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: calc(var(--px-gap) * 3);
  align-items: center;
}

.px-hero.style-2 .px-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--px-gap-xs);
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--px-color-border, var(--px-border-light));
  border-radius: var(--px-radius-pill);
  background: transparent;
  font-size: var(--px-fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.px-hero.style-2 .px-hero__eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--px-color-primary);
  flex-shrink: 0;
}

.px-hero.style-2 .px-hero__title {
  margin: 0 0 1rem;
  font-family: var(--px-font-display, var(--heading-font-family, inherit));
  font-size: var(--px-hero-title-size);
  font-weight: var(--heading-font-weight, 700);
  line-height: var(--px-display-leading, 1.05);
  letter-spacing: var(--px-display-tracking, -0.03em);
  color: var(--headings-color, var(--px-ink-strong));
}

/* <em> = outline stroke; <b> = lime pill */
.px-hero.style-2 .px-hero__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--headings-color, var(--px-ink-strong));
}

.px-hero.style-2 .px-hero__title b {
  font-weight: inherit;
  display: inline-block;
  padding: 0.05em 0.32em;
  border-radius: var(--px-radius-pill);
  background: var(--px-color-primary);
  white-space: nowrap;
}

.px-hero.style-2 .px-hero__intro {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: var(--px-fs-lg);
  color: var(--px-muted, var(--px-color-muted));
}

.px-hero.style-2 .px-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.75rem 2rem;
}

.px-hero.style-2 .px-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  max-width: 30rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--px-color-border, var(--px-border-light));
}

.px-hero.style-2 .px-hero__stat {
  padding-inline: 1.25rem;
}

.px-hero.style-2 .px-hero__stat:first-child {
  padding-inline-start: 0;
}

.px-hero.style-2 .px-hero__stat + .px-hero__stat {
  border-inline-start: 1px solid var(--px-color-border, var(--px-border-light));
}

.px-hero.style-2 .px-hero__copy.text-center .px-hero__stats {
  margin-inline: auto;
}

.px-hero.style-2 .px-hero__copy.text-center .px-hero__actions {
  justify-content: center;
}

.px-hero.style-2 .px-hero__copy.text-end .px-hero__actions {
  justify-content: flex-end;
}

.px-hero.style-2 .px-hero__copy.text-end .px-hero__stats {
  margin-inline-start: auto;
}

.px-hero.style-2 .px-hero__stat-value {
  margin: 0 0 0.25rem;
  font-family: var(--heading-font-family, inherit);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--headings-color, var(--px-ink-strong));
}

.px-hero.style-2 .px-hero__stat-label {
  font-size: var(--px-fs-sm);
  color: var(--px-muted, var(--px-color-muted));
}

.px-hero.style-2 .px-hero__visual {
  position: relative;
  min-height: var(--px-hero-min-visual);
  border-radius: var(--px-radius);
  overflow: hidden;
}

.px-hero.style-2 .px-hero__visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--px-hero-min-visual);
  object-fit: cover;
  border-radius: var(--px-radius);
}

.px-hero.style-2 .px-hero__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--px-hero-min-visual, 16rem);
  border-radius: var(--px-radius);
  border: 1px dashed color-mix(in srgb, var(--body-text-color, currentColor) 25%, transparent);
  color: var(--px-muted, var(--px-color-muted));
  font-size: var(--px-fs-sm);
}

@media (max-width: 991.98px) {
  .px-hero.style-2 .px-hero__grid {
    grid-template-columns: 1fr;
    gap: calc(var(--px-gap) * 2);
  }

  .px-hero.style-2 .px-hero__visual,
  .px-hero.style-2 .px-hero__visual-img {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .px-hero.style-2 .px-hero__btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .px-hero.style-2 .px-hero__stat {
    padding-inline: 0.75rem;
  }

  .px-hero.style-2 .px-hero__stat-label {
    font-size: var(--px-fs-xs, 0.75rem);
  }
}
