/* ==========================================================================
   Contacts page
   ========================================================================== */

.page-contact {
  background-color: var(--color-menu-bg);
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--home-max-width);
  min-height: calc(100dvh - var(--header-offset));
  margin-inline: auto;
  padding: 180px var(--home-padding-x) 80px;
  box-sizing: border-box;
}

.contact__inner {
  width: 100%;
}

.contact__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 590px;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark-bg);
}

.contact__intro {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

.contact__cards {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-top: 100px;
}

.contact-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  height: 211px;
  padding: 24px 18px;
  background-color: var(--color-sand);
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 8px;
}

.contact-card__icon img {
  width: 40px;
  height: 40px;
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card__label {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark-bg);
}

.contact-card__value {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-dark-bg);
}

.contact-card__value:hover {
  opacity: 0.8;
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 65px 0;
}

.contact__social-link {
  display: flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-dark-bg);
  transition: opacity var(--transition-fast);
}

.contact__social-link:hover {
  opacity: 0.7;
}

.contact__social-link svg,
.contact__social-link img {
  width: 100%;
  height: 100%;
}

.contact__map {
  width: 100%;
  max-width: 100%;
  background-color: var(--color-sand);
  border-radius: 16px;
  overflow: hidden;
}

.contact__map-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1199px) {
  .contact {
    padding: 100px clamp(20px, 5vw, 80px) 64px;
  }

  .contact__title {
    font-size: clamp(40px, 8vw, 64px);
  }

  .contact__cards {
    flex-direction: column;
    margin-top: 64px;
  }

  .contact-card {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 767px) {
  .contact__cards {
    gap: 16px;
    margin-top: 48px;
  }

  .contact-card__label {
    font-size: 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .contact-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .contact-cursor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-sand);
    opacity: 0.4;
    filter: blur(22px);
    transform: translate(-50%, -50%);
    animation: contact-cursor-glow-pulse 3.6s ease-in-out infinite;
  }

  .contact-cursor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--color-sand) 40%, transparent);
    box-shadow:
      0 0 28px 10px color-mix(in srgb, var(--color-sand) 55%, transparent),
      0 0 56px 24px color-mix(in srgb, var(--color-sand) 30%, transparent);
    transform: translate(-50%, -50%);
    animation: contact-cursor-ring-pulse 3.6s ease-in-out infinite;
  }

  .contact-cursor.is-visible {
    opacity: 1;
  }

  body.menu-open .contact-cursor {
    opacity: 0;
  }
}

@keyframes contact-cursor-glow-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes contact-cursor-ring-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.97);
  }

  50% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-cursor::before {
    animation: none;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  .contact-cursor::after {
    animation: none;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
}
