/* FishMe — Contact page sidebar motion */

@keyframes fishme-contact-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fishme-contact-icon-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.fishme-contact-sidebar .fishme-contact-reveal {
  opacity: 0;
  animation: fishme-contact-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s * var(--fishme-delay, 0));
}

.fishme-contact-sidebar > .title.fishme-contact-reveal {
  --fishme-delay: 0;
}

.fishme-contact-sidebar > .disc.fishme-contact-reveal {
  --fishme-delay: 1;
}

.fishme-contact-sidebar .location-single-card.fishme-contact-reveal:nth-of-type(1) {
  --fishme-delay: 2;
}

.fishme-contact-sidebar .location-single-card.fishme-contact-reveal:nth-of-type(2) {
  --fishme-delay: 3;
}

/* Location cards — hover */
.fishme-contact-sidebar .location-single-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.fishme-contact-sidebar .location-single-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary, #c00208);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fishme-contact-sidebar .location-single-card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: rgba(192, 2, 8, 0.15);
  box-shadow: 0 14px 32px rgba(31, 31, 37, 0.1);
}

.fishme-contact-sidebar .location-single-card:hover::before {
  transform: scaleY(1);
}

/* Icon */
.fishme-contact-sidebar .location-single-card .icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fishme-contact-sidebar .location-single-card:hover .icon {
  transform: scale(1.05);
}

.fishme-contact-sidebar .location-single-card .icon i {
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.fishme-contact-sidebar .location-single-card:hover .icon i {
  background: rgba(192, 2, 8, 0.1);
  color: var(--color-primary, #c00208);
  transform: rotate(-6deg);
}

.fishme-contact-sidebar .location-single-card .icon::after {
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.fishme-contact-sidebar .location-single-card:hover .icon::after {
  background: #fff;
  box-shadow: 0 4px 16px rgba(192, 2, 8, 0.12);
  animation: fishme-contact-icon-pulse 1.2s ease-in-out infinite;
}

/* Text & links */
.fishme-contact-sidebar .location-single-card .information .title {
  transition: color 0.25s ease;
}

.fishme-contact-sidebar .location-single-card:hover .information .title {
  color: var(--color-primary, #c00208);
}

.fishme-contact-sidebar .location-single-card .information p {
  transition: color 0.25s ease;
}

.fishme-contact-sidebar .location-single-card .information a.number,
.fishme-contact-sidebar .location-single-card .information a.email {
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}

.fishme-contact-sidebar .location-single-card .information a.number::after,
.fishme-contact-sidebar .location-single-card .information a.email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.fishme-contact-sidebar .location-single-card .information a.number:hover,
.fishme-contact-sidebar .location-single-card .information a.email:hover {
  color: var(--color-primary, #c00208);
  transform: translateX(4px);
}

.fishme-contact-sidebar .location-single-card .information a.number:hover::after,
.fishme-contact-sidebar .location-single-card .information a.email:hover::after {
  width: 100%;
}

/* Scroll-in (when JS adds .is-visible) */
.fishme-contact-sidebar.fishme-contact-inview .fishme-contact-reveal {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .fishme-contact-sidebar .fishme-contact-reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .fishme-contact-sidebar .location-single-card,
  .fishme-contact-sidebar .location-single-card .icon,
  .fishme-contact-sidebar .location-single-card .icon i,
  .fishme-contact-sidebar .location-single-card .icon::after,
  .fishme-contact-sidebar .location-single-card .information a {
    transition: none;
  }

  .fishme-contact-sidebar .location-single-card:hover {
    transform: none;
  }

  .fishme-contact-sidebar .location-single-card:hover .icon::after {
    animation: none;
  }
}
