/* Home contact */
.mps-home-contact {
  background: #fff;
}

.mps-home-contact__header {
  max-width: 720px;
}

.mps-home-contact__header h2 {
  margin: 0;
  font-family: var(--mps-font-heading);
  font-size: clamp(44px, 4vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.mps-home-contact__rule {
  width: min(100%, 540px);
  height: 1px;
  margin-top: 12px;
  background: currentColor;
}

.mps-home-contact__header p {
  margin: 16px 0 0;
  color: var(--mps-color-text-muted);
  font-size: 16px;
}

.mps-home-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.mps-contact-card,
.mps-home-contact__address,
.mps-home-contact__map {
  border: 1px solid rgba(36, 34, 32, .28);
  background: #fff;
}

.mps-contact-card,
.mps-home-contact__address {
  display: flex;
  min-height: 206px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 34px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mps-contact-card:hover {
  background: #fbf8f5;
  box-shadow: 0 18px 38px rgba(39, 32, 27, .09);
  transform: translateY(-2px);
}

.mps-contact-card__heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mps-font-heading);
  font-size: clamp(27px, 2vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.mps-contact-card__heading img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mps-contact-card strong,
.mps-home-contact__address strong {
  font-family: var(--mps-font-body);
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 400;
  line-height: 1.35;
}

.mps-contact-card--social {
  gap: 24px;
}

.mps-contact-card__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mps-contact-card__socials a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.mps-contact-card__socials a:hover,
.mps-contact-card__socials a:focus-visible {
  background: #2a2a2a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  transform: translateY(-2px);
}

.mps-contact-card__socials:empty {
  display: none;
}

.mps-contact-card__socials img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mps-home-contact__address {
  grid-column: 1 / 2;
  min-height: 410px;
}

.mps-home-contact__map {
  grid-column: 2 / 4;
  min-height: 410px;
  overflow: hidden;
}

.mps-home-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  filter: saturate(.72) sepia(.08) contrast(.96);
  transition: filter var(--mps-transition);
}

.mps-home-contact__map:hover iframe {
  filter: saturate(.92) sepia(.03) contrast(1);
}

.mps-home-contact__map-placeholder {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 30px;
  background: #f3efeb;
  color: var(--mps-color-text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .mps-home-contact__grid { gap: 20px; }
  .mps-contact-card,
  .mps-home-contact__address { min-height: 176px; padding: 26px; }
  .mps-home-contact__address,
  .mps-home-contact__map,
  .mps-home-contact__map iframe,
  .mps-home-contact__map-placeholder { min-height: 340px; }
}

@media (max-width: 767px) {
  .mps-home-contact__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
  .mps-home-contact__address,
  .mps-home-contact__map { grid-column: auto; }
  .mps-contact-card,
  .mps-home-contact__address { min-height: 150px; padding: 24px 20px; }
  .mps-home-contact__address,
  .mps-home-contact__map,
  .mps-home-contact__map iframe,
  .mps-home-contact__map-placeholder { min-height: 280px; }
  .mps-contact-card__heading { font-size: 28px; }
  .mps-contact-card__heading img { width: 32px; height: 32px; }
  .mps-contact-card strong,
  .mps-home-contact__address strong { font-size: 18px; }
}

@media (max-width: 520px) {
  .mps-home-contact__header h2 { font-size: 42px; }
}
