/* Block: Contact Hero
 * Placed in blocks/contact-hero/style.css so ACF enqueues it with the block.
 */

.contact-hero-block .contact-hero {
  padding: 0;
  padding-top: 3.5rem;
  margin-bottom: -1rem;
  background-color: var(--orange);
  border-bottom: 1px solid #d9dee5;
  box-shadow: inset 0 -6px 15px 0 rgba(64, 79, 104, 0.15);
  overflow: hidden;
}

.contact-hero-block .contact-hero__card {
  background: linear-gradient(180deg, #f1f1f1 0%, #ffffff 100%);
  border: 1px solid #d9dee5;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  transform-origin: bottom center;
  transform: perspective(800px) scaley(0.3) rotateY(60deg) translateY(30rem) translateX(30rem);
}

.contact-hero-block .contact-hero__split {
  display: flex;
  flex-direction: column;
}

.contact-hero-block .contact-hero__content {
  order: 2;
  padding: 7rem 2.5rem;
}

.contact-hero-block .contact-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 5px 12px 3px;
  border-radius: 999px;
  background: var(--darkBlack);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.contact-hero-block .contact-hero__title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
  color: var(--darkBlack);
}

.contact-hero-block .contact-hero__copy {
  margin-bottom: 2rem;
}

.contact-hero-block .contact-hero__copy p {
  margin: 0 0 2rem;
  max-width: 36ch;
  color: var(--darkBlack);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.contact-hero-block .contact-hero__copy p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

.contact-hero-block .contact-hero__button {
  display: inline-flex;
}

.contact-hero-block .contact-hero__media {
  order: 1;
  min-height: 260px;
  background-color: #eef3f9;
}

.contact-hero-block .contact-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-block .contact-hero__media--placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #dfe7f2 0%, #eef3f9 100%);
}

@media (max-width: 991.98px) {
  .contact-hero-block .contact-hero {
    padding: 0;
    padding-top: 2.5rem;
    margin-bottom: 0;
  }

  .contact-hero-block .contact-hero__content {
    padding: 2rem;
  }

  .contact-hero-block .contact-hero__copy p {
    max-width: none;
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .contact-hero-block .contact-hero__content {
    padding: 1.5rem;
  }

  .contact-hero-block .contact-hero__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .contact-hero-block .contact-hero__title {
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .contact-hero-block .contact-hero__copy p {
    font-size: 1.1rem;
    line-height: 1.5;
  }
}

@media (min-width: 992px) {
  .contact-hero-block .contact-hero__split {
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
  }

  .contact-hero-block .contact-hero__content {
    flex: 0 0 50%;
    order: 1;
  }

  .contact-hero-block .contact-hero__media {
    flex: 0 0 50%;
    min-height: 0;
    order: 2;
  }
}
