.commercial-hero {
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  padding: clamp(48px, 8vw, 120px);
  box-sizing: border-box;
  color: var(--White, #f3f4f6);
  text-align: center;
  background: linear-gradient(0deg, rgba(33, 65, 151, 0.20), rgba(33, 65, 151, 0.20));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.commercial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(33, 65, 151, 0.2), rgba(33, 65, 151, 0.2));
  pointer-events: none;
}

.commercial-hero > * {
  position: relative;
  z-index: 1;
}

.commercial-hero__inner {
  display: flex;
  width: 100%;
  max-width: var(--Container-container-large, 1280px);
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.commercial-hero__content {
  display: flex;
  max-width: min(960px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.commercial-hero__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.commercial-hero__heading {
  margin: 0;
  color: var(--White, #f3f4f6);
  font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
  font-size: clamp(48px, 8vw, var(--Text-Sizes-Heading-1, 84px));
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -0.84px;
}

.commercial-hero__heading * {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.commercial-hero__subtext {
  margin: 0;
  color: var(--White, #f3f4f6);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--Text-Sizes-Text-Medium, 20px);
  font-weight: 400;
  line-height: 150%;
}

.commercial-hero__subtext p {
  margin: 0 0 0.75em;
}

.commercial-hero__subtext > :last-child {
  margin-bottom: 0;
}

.commercial-hero__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.commercial-hero__pill {
  display: flex;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  color: var(--White, #f3f4f6);
  font-family: Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 150%;
  border-radius: 0;
  border: 1px solid var(--Accented-Blue, #214197);
  background: var(--Accented-Blue, #214197);
}

.commercial-hero.is-visible .commercial-hero__text-group,
.commercial-hero.is-visible .commercial-hero__pills {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .commercial-hero {
    padding: clamp(48px, 12vw, 72px) clamp(24px, 6vw, 48px);
    min-height: 480px;
  }

  .commercial-hero__inner {
    gap: 48px;
  }

  .commercial-hero__pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-hero__pill {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .commercial-hero__pills {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-items: center;
  }

  .commercial-hero__pill {
    width: min(100%, 320px);
  }
}

@media (max-width: 480px) {
  .commercial-hero__heading {
    font-size: clamp(36px, 12vw, 48px);
  }

  .commercial-hero__pills {
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-hero__text-group,
  .commercial-hero__pills {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
