.contact-page {
  min-height: calc(100vh - 12rem);
  margin-top: calc(-1 * var(--site-header-height, 7rem));
  padding: calc(var(--site-header-height, 7rem) + 3rem) 1.25rem 4.5rem;
  background-color: #fff9f2;
}

.contact-hero {
  width: min(100%, 52rem);
  margin: 0 auto;
  text-align: center;
}

.contact-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero__heading-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-top: 0.75rem;
  padding-left: 2.5rem;
}

.contact-hero__cloud {
  position: absolute;
  top: -0.15rem;
  left: -12.5rem;
  display: inline-flex;
  animation: contact-cloud-float 3.6s ease-in-out infinite;
  will-change: transform;
}

.contact-hero__cloud-image {
  display: block;
  width: 6.5rem;
  height: auto;
  object-fit: contain;
}

.contact-hero__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #5c5348;
}

.contact-hero__lead {
  max-width: 34rem;
  margin: 1.15rem 0 0;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.75;
  color: #7a7168;
}

@keyframes contact-cloud-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.85rem);
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(100%, 70rem);
  margin: 3rem auto 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 2rem;
}

.contact-card--info {
  background-color: #ede6f5;
}

.contact-card--location {
  background-color: #fbe8d8;
}

.contact-card__title {
  margin: 0 0 1.5rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #5b3f7a;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-details__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #fff;
  color: #5b3f7a;
}

.contact-details__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-details__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.2rem;
}

.contact-details__label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6a5a7d;
}

.contact-details__value {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #4a355f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details__value:hover,
.contact-details__value:focus-visible {
  color: #7a4f9e;
}

.contact-social {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(91, 63, 122, 0.14);
}

.contact-social__title {
  margin: 0 0 1rem;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6a5a7d;
}

.contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #fff;
  color: #5b3f7a;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-social__link img,
.contact-social__icon {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.contact-social__link:hover,
.contact-social__link:focus-visible {
  color: #7a4f9e;
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 0.85rem rgba(91, 63, 122, 0.14);
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-style: normal;
}

.contact-address__line {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: #6b4f3f;
}

.contact-map {
  flex: 1;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(107, 79, 63, 0.08);
}

.contact-map__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border: 0;
}

@media (max-width: 767.98px) {
  .contact-hero__cloud {
    left: -3.75rem;
    top: 0.1rem;
  }

  .contact-hero__cloud-image {
    width: 4.25rem;
  }

  .contact-hero__heading-wrap {
    padding-left: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 2.25rem;
  }

  .contact-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.5rem;
  }

  .contact-map,
  .contact-map__frame {
    min-height: 12rem;
  }
}

@media (max-width: 479.98px) {
  .contact-hero__cloud {
    left: -2.5rem;
  }

  .contact-hero__cloud-image {
    width: 3.75rem;
  }

  .contact-hero__heading-wrap {
    padding-left: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__cloud {
    animation: none;
  }
}
