.z5pagehead {
  --z5pagehead-dark: #171214;
  --z5pagehead-light: #ffffff;
  --z5pagehead-light-bg: #F4F4F4;
  --z5pagehead-accent: #D32127;
  --z5pagehead-gutter: 32px;
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--z5pagehead-dark);
  color: var(--z5pagehead-light);
  padding: 120px 0 112px;
}

.z5pagehead,
.z5pagehead * {
  box-sizing: border-box;
}

.z5pagehead--light {
  background: var(--z5pagehead-light-bg);
  color: var(--z5pagehead-dark);
}

.z5pagehead__inner {
  width: min(100%, calc(100vw - (var(--z5pagehead-gutter) * 2)));
  max-width: 1500px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.z5pagehead__content {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.z5pagehead__eyebrow {
  margin: 0 0 26px;
  color: var(--z5pagehead-accent);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.z5pagehead__title {
  margin: 0;
  color: currentColor;
  font-family: inherit;
  font-size: clamp(40px, 4.25vw, 78px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 100%;
}

.z5pagehead__description {
  margin: 28px 0 0;
  width: min(100%, 760px);
  color: rgba(255,255,255,.72);
  font-family: inherit;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.58;
  font-weight: 400;
}

.z5pagehead--light .z5pagehead__description {
  color: rgba(23,18,20,.68);
}

.z5pagehead__description p {
  margin: 0;
}

.z5pagehead__description p + p {
  margin-top: 1em;
}

.z5pagehead__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.z5pagehead__button {
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .28s cubic-bezier(.625,.05,0,1), color .28s cubic-bezier(.625,.05,0,1), border-color .28s cubic-bezier(.625,.05,0,1), transform .28s cubic-bezier(.625,.05,0,1);
}

span.z5pagehead__button {
  cursor: default;
}

.z5pagehead--dark .z5pagehead__button {
  color: #fff;
  border-color: rgba(255,255,255,.82);
}

.z5pagehead--light .z5pagehead__button {
  color: var(--z5pagehead-dark);
  border-color: rgba(23,18,20,.35);
}

.z5pagehead__button:hover,
.z5pagehead__button:focus-visible {
  background: #fff;
  color: var(--z5pagehead-dark);
  border-color: #fff;
  transform: translateY(-2px);
}

.z5pagehead--light .z5pagehead__button:hover,
.z5pagehead--light .z5pagehead__button:focus-visible {
  background: var(--z5pagehead-dark);
  color: #fff;
  border-color: var(--z5pagehead-dark);
}

.z5pagehead__button-arrow {
  display: inline-flex;
  line-height: 1;
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.625,.05,0,1);
}

.z5pagehead__button:hover .z5pagehead__button-arrow,
.z5pagehead__button:focus-visible .z5pagehead__button-arrow {
  transform: translateX(4px);
}

.z5pagehead[data-intro-animation="true"] [data-z5-page-header-reveal="item"] {
  will-change: transform, opacity;
}

.elementor-editor-active .z5pagehead[data-intro-animation="true"] [data-z5-page-header-reveal="item"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  .z5pagehead__eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: .22em;
  }

  .z5pagehead__title {
    font-size: clamp(36px, 7vw, 64px);
    letter-spacing: .065em;
  }

  .z5pagehead__description {
    margin-top: 22px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .z5pagehead {
    padding: 78px 0 72px;
  }

  .z5pagehead__inner {
    width: min(100%, calc(100vw - (var(--z5pagehead-gutter) * 2)));
  }

  .z5pagehead__title {
    font-size: clamp(32px, 11vw, 48px);
    line-height: 1;
    letter-spacing: .055em;
  }

  .z5pagehead__description {
    font-size: 15px;
    line-height: 1.55;
  }

  .z5pagehead__actions {
    margin-top: 28px;
    gap: 10px;
  }

  .z5pagehead__button {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 12px;
  }
}
