/* Home continuation: live project query, contact layout and footer. */
.mhz-projects {
  background: var(--wp--custom--design--charcoal);
}
.mhz-projects__title,
.mhz-contact .mhz-container > h2 {
  margin-bottom: var(--wp--custom--design--space-heading-content);
}
.mhz-project__image {
  margin: 0;
}
.mhz-project__image a,
.mhz-project__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.mhz-project__image img {
  object-fit: fill;
}
.mhz-project__tags {
  z-index: 2;
}
.mhz-project__tags :is(a, .mhz-project__label) {
  text-decoration: none;
}
.mhz-visually-hidden {
  clip-path: inset(50%);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.mhz-contact-card {
  position: relative;
}
.mhz-contact-card__value {
  font-family: var(--wp--custom--design--font-display);
  font-weight: var(--wp--custom--design--font-weight-display);
}
.mhz-contact-card__value a {
  color: inherit;
}
.mhz-contact-card__value a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.mhz-contact-card:focus-within {
  outline: 3px solid var(--wp--preset--color--brand);
  outline-offset: 4px;
}
.mhz-projects {
  padding-bottom: 144px;
}

.mhz-projects__grid {
  display: grid;
  height: auto;
  aspect-ratio: 1400 / 1316;
  grid-template-columns: 453fr 454fr 453fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1200px) {
  .mhz-projects > .mhz-container {
    width: 81.0185%;
    max-width: none;
  }
}

.mhz-project {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: #242424;
}

.mhz-projects__grid
  > li:nth-child(1 of .mhz-project:not([style*="display: none"])) {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.mhz-projects__grid
  > li:nth-child(2 of .mhz-project:not([style*="display: none"])) {
  grid-column: 3;
  grid-row: 1;
}

.mhz-projects__grid
  > li:nth-child(3 of .mhz-project:not([style*="display: none"])) {
  grid-column: 1;
  grid-row: 2;
}

.mhz-projects__grid
  > li:nth-child(4 of .mhz-project:not([style*="display: none"])) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.mhz-project__image {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mhz-project--ddt .mhz-project__image {
  top: 0;
  left: -25.37%;
  width: 128.55%;
  height: 100%;
}

.mhz-project--startpunt-zzp .mhz-project__image {
  top: -28.38%;
  left: -9.88%;
  width: 139.1%;
  height: 132.95%;
}

.mhz-project--de-poolvos .mhz-project__image {
  top: 0;
  left: -43.82%;
  width: 238.55%;
  height: 100%;
}

.mhz-project--pitstop .mhz-project__image {
  top: -35.85%;
  left: -14.27%;
  width: 145.69%;
  height: 156.31%;
}

.mhz-project:hover .mhz-project__image {
  transform: scale(1.025);
}

.mhz-project__tags {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mhz-project__tags :is(a, .mhz-project__label) {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--wp--custom--design--yellow);
  padding: 16px 24px;
  backdrop-filter: blur(5px);
}

.mhz-projects__action {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.mhz-contact {
  position: relative;
  height: 1046px;
  background: var(--wp--custom--design--black);
  padding-top: 150px;
}

.mhz-contact__intro {
  width: 691px;
}

.mhz-contact__layout {
  display: grid;
  grid-template-columns: 690px 690px;
  gap: 20px;
  margin-top: 90px;
}

.mhz-contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 335px);
  grid-template-rows: repeat(2, 245px);
  gap: 23px 20px;
}

.mhz-contact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 16px;
  background: var(--wp--custom--design--charcoal);
  padding: 40px 22px;
  text-align: center;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.mhz-contact-card:has(a):hover {
  background: #202020;
  transform: translateY(-2px);
}

.mhz-contact-card > p:not(.mhz-contact-card__value) {
  width: 236px;
  min-height: 59px;
  margin-top: 12px;
}

.mhz-contact-card .mhz-contact-card__value {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-top: auto;
  color: var(--wp--custom--design--yellow);
  font-size: var(--wp--custom--design--type-contact-value-size);
  line-height: var(--wp--custom--design--type-ui-line-height);
}

.mhz-contact__decoration {
  position: absolute;
  top: 100px;
  right: max(120px, calc(50% - 700px));
  width: 260px;
  height: 230px;
  pointer-events: none;
}

.mhz-contact__decoration::before,
.mhz-contact__decoration::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  width: 98px;
  height: 98px;
  transform: rotate(-6deg);
  border: 3px solid var(--wp--custom--design--yellow);
  border-radius: 16px;
}

.mhz-contact__decoration::before {
  top: 0;
  right: 0;
}

.mhz-contact__decoration::after {
  z-index: 2;
  right: 110px;
  bottom: 0;
  transform: rotate(6deg);
}

.mhz-contact__decoration img {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: 50px;
  width: 130px;
  height: 129px;
  border-radius: 16px;
  object-fit: cover;
  object-position: 72% 40%;
}

.mhz-footer {
  height: 210px;
  border-top: 2px solid var(--wp--custom--design--charcoal);
  background: var(--wp--custom--design--black);
}
.mhz-footer__inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}
.mhz-footer__nav {
  position: absolute;
  left: -26px;
  font-family: var(--wp--custom--design--font-display);
  font-size: var(--wp--custom--design--type-footer-nav-size);
  font-weight: 700;
  line-height: 0.8;
}
.mhz-footer__nav .wp-block-navigation__container {
  gap: 0;
}
.mhz-footer__nav .wp-block-navigation-item__content {
  position: relative;
  padding-inline: 24px;
}
.mhz-footer__nav .wp-block-navigation-item + .wp-block-navigation-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  transform: translateY(-50%);
  background: #4a4a4a;
}
.mhz-footer__nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px 8px;
  border-radius: 8px;
  background: var(--wp--custom--design--charcoal);
  opacity: 0;
  transition: opacity 180ms ease;
}
.mhz-footer__nav
  .wp-block-navigation-item__content:is(:hover, :focus-visible)::after {
  opacity: 1;
}
.mhz-footer__logo {
  position: absolute;
  right: 5px;
  top: 79px;
  width: 291px;
}
.mhz-footer__logo a,
.mhz-footer__logo img {
  display: block;
  width: 100%;
}
.mhz-project-single > .mhz-project__tags {
  position: static;
  margin-block: 24px;
}
.mhz-project-single > .wp-block-post-featured-image {
  margin-block: 32px;
}
.mhz-project-single > .wp-block-post-featured-image img {
  max-height: 850px;
  width: auto;
  margin: auto;
  object-fit: contain;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .mhz-contact__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .mhz-contact__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mhz-contact-card {
    padding-inline: 12px;
  }
  .mhz-contact-card > p:not(.mhz-contact-card__value) {
    width: 100%;
  }
  .mhz-contact-card__value {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 1199px) {
  .mhz-projects {
    padding-block: 24px 96px;
  }
  .mhz-projects__grid {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, min(42vw, 500px));
  }
  .mhz-projects__grid .mhz-project__image {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mhz-project__image img {
    object-fit: cover;
  }
  .mhz-projects__grid
    > li:nth-child(odd of .mhz-project:not([style*="display: none"])) {
    grid-column: 1;
  }
  .mhz-projects__grid
    > li:nth-child(even of .mhz-project:not([style*="display: none"])) {
    grid-column: 2;
  }
  .mhz-contact {
    height: auto;
    padding-block: 96px;
  }
  .mhz-contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .mhz-contact__cards {
    grid-template-columns: repeat(2, minmax(0, 335px));
  }
  .mhz-form {
    width: min(100%, 690px);
  }
  .mhz-footer__nav,
  .mhz-footer__logo {
    position: static;
  }
}
@media (min-width: 701px) and (max-width: 1199px) {
  .mhz-contact__intro {
    width: min(691px, calc(100% - 320px));
  }
  .mhz-contact__decoration {
    right: 24px;
  }
}
@media (max-width: 700px) {
  .mhz-projects {
    padding-block: 12px 72px;
  }
  .mhz-projects__grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mhz-project {
    height: 360px;
    border-radius: 24px;
  }
  .mhz-project__tags {
    top: 14px;
    left: 14px;
  }
  .mhz-project__tags :is(a, .mhz-project__label) {
    padding: 11px 15px;
  }
  .mhz-projects__action {
    justify-content: flex-start;
    margin-top: 32px;
  }
  .mhz-contact {
    padding-block: 72px;
  }
  .mhz-contact__decoration {
    display: none;
  }
  .mhz-contact__intro {
    width: auto;
  }
  .mhz-contact__layout {
    gap: 16px;
    margin-top: 48px;
  }
  .mhz-contact__cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 12px;
  }
  .mhz-contact-card {
    min-height: 210px;
  }
  .mhz-footer {
    height: auto;
    min-height: 210px;
  }
  .mhz-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 48px;
    padding-block: 48px;
  }
  .mhz-footer__logo {
    width: min(291px, 78vw);
  }
  .mhz-project-archive-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mhz-contact__decoration {
    animation: mhz-contact-float 5s ease-in-out infinite;
  }
}
@keyframes mhz-contact-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mhz-project__image,
  .mhz-contact-card,
  .mhz-footer__nav .wp-block-navigation-item__content::after {
    transition: none;
  }
}
/* Core navigation repeats its custom class on the list; keep that list in flow. */
.mhz-footer__nav .wp-block-navigation__container {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.mhz-project__tags .wp-block-post-terms__separator {
  display: none;
}
