/* FLOATING-CONTACTS-V1 */
.floating-actions {
  position: fixed;
  z-index: 1000;
  left: 22px;
  right: 22px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.floating-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  pointer-events: auto;
}

.floating-action {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border: 0;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background-color 0.2s ease;
}

.floating-action em {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-action__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.floating-action__icon svg {
  display: block;
  pointer-events: none;
}

/* Mail Button (Blue) */
.floating-action--mail {
  width: 58px;
  height: 58px;
  min-width: 58px;
  flex: 0 0 58px;
  background: #0f62fe !important;
  box-shadow:
    0 10px 25px rgba(15, 98, 254, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.floating-action--mail:hover {
  background: #0050e6 !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 16px 36px rgba(15, 98, 254, 0.55),
    0 0 0 8px rgba(15, 98, 254, 0.15) !important;
}

.floating-action--mail:active {
  transform: scale(0.96);
}

.floating-action--mail:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow:
    0 0 0 7px #0f62fe,
    0 16px 34px rgba(15, 98, 254, 0.45) !important;
}

/* WhatsApp Button (Green) */
.floating-action--wa {
  width: 58px;
  height: 58px;
  min-width: 58px;
  flex: 0 0 58px;
  background: #25d366 !important;
  box-shadow:
    0 10px 25px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.floating-action--wa:hover {
  background: #20ba5a !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 16px 36px rgba(37, 211, 102, 0.55),
    0 0 0 8px rgba(37, 211, 102, 0.15) !important;
}

.floating-action--wa:active {
  transform: scale(0.96);
}

.floating-action--wa:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow:
    0 0 0 7px #1da851,
    0 16px 34px rgba(37, 211, 102, 0.45) !important;
}

/* Back to top (Dark circle on bottom left) */
.floating-action--top {
  width: 60px;
  height: 60px;
  min-width: 60px;
  flex: 0 0 60px;
  background: #10192b !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(8, 17, 34, 0.35) !important;
}

.floating-action--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.floating-action--top span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.floating-action--top.is-visible:hover {
  transform: translateY(-2px);
  background: #1a263e !important;
}

@media (max-width: 760px) {
  .floating-actions {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }
  .floating-contacts {
    gap: 10px;
  }
  .floating-action--mail,
  .floating-action--wa {
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex: 0 0 52px;
  }
  .floating-action--mail svg {
    width: 24px;
    height: 24px;
  }
  .floating-action--wa svg {
    width: 26px;
    height: 26px;
  }
  .floating-action--top {
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex: 0 0 52px;
  }
  .floating-action--top span {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-action,
  .floating-action--mail,
  .floating-action--wa,
  .floating-action--top {
    transition: none !important;
    transform: none !important;
  }
}
